Problem: I am doing GO enrichment using GO_terms from UniProt. I understand that these GO_terms are leaf nodes from the ancestor chart. I need a broader GO term to replace this leaf node.
Attempt 1: I thought to use the GO Ancestor Chart from QuickGO: https://www.ebi.ac.uk/QuickGO/term/GO:0030170, but the chart is not available via an API. It is not physically possible to download each chart manually because I have thousands of GO_terms.
Attempt 2: Therefore, I tried using Superfamily database suggested by ncl.lazzarini GO terms depth level, but the approach does not work for all GO_terms. Some GO_terms have missing hierarchy, but the chart is available on QuickGO.
I am now back to QuickGO and need to retrieve the chart for all of my GO_terms. Any suggestions? Any help will be much appreciated!
I got it.
There is a QuickGO API for this:
https://www.ebi.ac.uk/QuickGO/services/ontology/go/terms/{ids}/chart?ids=GO%3A0030170&base64=false&showKey=true&showIds=true&termBoxWidth=100&termBoxHeight=100&showSlimColours=false&showChildren=false&fontSize=14
GET rest api /ontology/go/terms/{ids}/chart