PheWAS Download

Hi,

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?

Thanks

Hello,

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.

Best,
Elena

Hi Elena,

It’s 3k for just 1 gene, I have 15000 genes.
Is there a way I can download it in bulk? Where can I find this data on the FTP website?

Thanks.

Hi @kamalika_ray,

Next week’s release of the Open Targets Platform will include updated variant information, including data downloads.

Thanks,

Helena