goci
goci copied to clipboard
Cannot search associations API by gene
We had a GWAS-info query as follows:
"We have a question about the associations API (https://www.ebi.ac.uk/gwas/rest/api/associations). We would like to get the associations associated to a gene. Precisely, we would like to filter on the field _embedded/associations/loci/authorReportedGenes/geneName . We have searched the documentation (https://www.ebi.ac.uk/gwas/rest/docs/api), where we found that we could filter on other fields (for instance pubmed id), but there were nothing about filtering on gene. Is it possible to filter on that field ? In that case, how to do it ?"
Our FAQ documentation states: "You can also use our REST API to return associations for a specific gene or genomic region" However, I think it is only possible to search the SNP endpoint by gene, not the associations endpoint.