Hi all,
I'm trying to retrieve all the annotations for a given GO term using the QuickGO WebService. But the service is poorly documented (what is 'with' ? what is 'ref' ? what is 'ancestor' ? etc...).
For example, to find all the human genes with GO:0003015 (~800 gene product associations), I tried :
curl -s "http://www.ebi.ac.uk/QuickGO/GAnnotation?term=GO:0003015&format=tsv&tax=9606"
#weird/wrong results....
or
curl -s "http://www.ebi.ac.uk/QuickGO/GAnnotation?q=GO:0003015&format=tsv&tax=9606"
#no result
what would be the correct URL ?
Thanks,
Pierre
UPDATE: I've just received an anwser from the EBI:
Dear Pierre,
Thank you for writing to GOA. I'm sorry you are having problems with our webservices. We have investigated your problem and, indeed, there is a bug with this query. The query you are using returns all annotations from taxon 9606 not taking account of the GO:0003015 parameter.
While we put together a fix for this bug you can use the following URL to retrieve all annotations to human proteins using GO:0003015 or one of its descendents;
http://www.ebi.ac.uk/QuickGO/GAnnotation?tax=9606&relType=IP=&goid=GO:0003015&format=tsv
If you require a list of the proteins used in these annotations, you can use the following URL;
http://www.ebi.ac.uk/QuickGO/GAnnotation?tax=9606&relType=IP=&goid=GO:0003015&format=proteinList
We have taken note of your comment on the limited documentation on the webservices page and we will make it a priority to improve this. Some of the fields used in the wadl format are described in the Advanced Query section of QuickGO which is linked from the webservices page (http://www.ebi.ac.uk/QuickGO/WebServices.html), albeit not very obviously (we will improve this!). If you look at bullet point 4 in the 'Annotation' notes section and hover over the 'advanced search' phrase, this is actually a link to the relevant part of the QuickGO Reference Manual.
I hope this answers your query, please let us know if we can help you with anything else.
Thanks Pablo, but for my problem (I'm coding a heavy java client behind a firewall), I really would like to use a web service :-)
If you have any questions about how to get certain bits of data out of the GO database (and I agree that the diagram isn't much help!), you can always email the GO helpdesk at gohelp@geneontology.org or visit http://www.geneontology.org/help - helpdesk questions are always answered quickly and knowledgeably.