赞
踩
library(TwoSampleMR)
library(BiocManager)
library(VariantAnnotation)
library(gwasglue)
library(data.table)
library(dplyr)
library(tidyr)
library(devtools)
library(usethis)
setwd(“E:\R_project\MR\data”)
exposureFile=“ukb-b-19953.vcf.gz”
vcfRT <- readVcf(exposureFile)
data = gwasvcf_to_TwoSampleMR(vcf = vcfRT, type=“exposure”)
一直以为gwasglue和gwasglue2是一个东西,包里面下好了gwasglue2,但是没有gwasglue
下载gwasglue包
install.packages(“devtools”)
devtools::install_github(“mrcieu/gwasglue”)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。