open target platform SNP to Gene qurey
1
1
Entering edit mode
7 days ago
SeoG ▴ 10

Hello, open target genetics is using the function to map the gene for snp by doing a snp to gene query. However, maybe because it was renewed, the old code doesn’t seem to work. Below is a part of the query statement.

search_query <- "
query searchRsId($rsId: String!) {
search(queryString: $rsId) {
variants {
id
}
}
}
"

query_string <-"
query v2g($variantId: String!) {
genesForVariant(variantId: $variantId) {
gene {
symbol
id
}
variant
overallScore
distances {
sourceId
aggregatedScore
tissues {
distance
}
}
}
}"

I wonder if it’s not available now or if the code has been changed. Thank you.

SNPtoGene GWAS SNP • 344 views
ADD COMMENT
2
Entering edit mode
7 days ago
GenoMax 152k

Did you see this announcement:

Open Targets Genetics has been superseded by the Open Targets Platform 25.03 release with updated genetics data and analyses. Open Targets Genetics is no longer maintained and will be deprecated on 9 July 2025.

Looks like you will need to use https://platform.opentargets.org/ and the new API.

ADD COMMENT

Login before adding your answer.

Traffic: 2769 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6