Hello,
I want to use the following query in order to retrieve the stidyID associated with a variant ID.
query Variant {
indexVariantsAndStudiesForTagVariant(variantId: "1_17500056_C_T"){
associations {
study {
studyId
pmid
}
indexVariant {
id
rsId
refAllele
altAllele
nearestGeneDistance
}
pval
}
}
}
After doing this i want to use the studyID and the variantID for the studyLocus2GeneTable. Unfortunately only the sample exaple of indexVariantsAndStudiesForTagVariant
is working in the API but when i am trying different variantId i always get :
{
"data": {
"indexVariantsAndStudiesForTagVariant": {
"associations": []
}
}
}
Why this is not working ?
My plan is to try this query from R for multiple IDs. Is it possible to make it work?
If not could you please provide me with an alternative for retrieving study IDs from variantId ?