当前位置:   article > 正文

运行代码提示could not find function “gwasvcf_to_TwoSampleMR“

gwasvcf_to_twosamplemr

项目场景:

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”)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/477427
推荐阅读
相关标签
  

闽ICP备14008679号