How do I download the exact results of this API in bulk. I want to download the result for 3000 variants.
query search($variantId: String!) {
pheWAS(variantId: $variantId) {
totalGWASStudies
associations {
pval
beta
oddsRatio
study {
studyId
source
pmid
pubDate
traitReported
traitCategory
}
nTotal
}
}
}
Does the v2d data on the FTP site contain pheWAS results?
For 3k variants you should be able to use the “otargen” package in R which contains the “phewas” function that can return the Open targets genetics results.
Thanks for your message. Where can I find the data about diseases associated with genetic variants in the new ftp download site. I am a bit confused due to the change in the terminologies.
Thanks for your message. I don’t see the reported traits (disease name/study.trait_reported) in that table. Do I have to extract it from some other table?