mygene.info icon indicating copy to clipboard operation
mygene.info copied to clipboard

query for genes having a GO term or children

Open andrewsu opened this issue 5 years ago • 1 comments

I can query for genes with an explicit annotation for a GO term, e.g., http://mygene.info/v3/query?q=GO:0061702

However, GO:0061702 has four children -- GO:0097169, GO:0072557, GO:0072558, and GO:0072559.

Is there an easy way (or should we create an easy way) to query for genes with both explicit AND inferred GO terms?

andrewsu avatar Sep 16 '19 21:09 andrewsu

One way doing this is to use EBI's OLS API to get the children GO IDs and then query MyGene.info API:

https://www.ebi.ac.uk/ols/docs/api

newgene avatar Sep 18 '19 18:09 newgene