open target platform SNP to Gene qurey
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.
• 795 views
•
link
1 answer
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.
• 0 views
•
link
Log in to answer this question.