biothings / mygene.info

MyGene.info: A BioThings API for gene annotations
http://mygene.info
Other
113 stars 20 forks source link

query for genes having a GO term or children #72

Open andrewsu opened 4 years ago

andrewsu commented 4 years ago

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?

newgene commented 4 years ago

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