Repository navigation
How to use the data in gwascatelog directly? #506
Unanswered
yanhuayizha
asked this question in
Q&A
Replies: 1 comment
|
While the following example which given by the guide can work, I do not know where is wrong above. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I use the following codes (which learned from https://mrcieu.github.io/TwoSampleMR/articles/exposure.html)
remotes::install_github("MRCIEU/MRInstruments")
library(MRInstruments)
library(TwoSampleMR)
data(gwas_catalog)
head(gwas_catalog)
Carotid_artery_stenosis_gwas<-
subset(gwas_catalog,
grepl("Palmer", Author) &
Phenotype == "Carotid artery stenosis")
exp_dat<- format_data(Carotid_artery_stenosis_gwas)
But it didin't work. Who knows the problem? I am looking forward to your reply.
All reactions