Get Protein GO Terms
get_protein_go_termsRetrieve Gene Ontology annotations for a UniProt protein, grouped by aspect with GO IDs, labels, and evidence codes. Filter by biological process, molecular function, or cellular component.
Instructions
Return Gene Ontology annotations for an entry, grouped by aspect (biological_process / molecular_function / cellular_component) where available, each with GO id, label, and (when annotated) ECO evidence ids plus mapped GO evidence_codes (IDA/IEA/IMP/...) for citation. Always returns count and count_by_aspect; pass aspect to scope to one ontology and limit to cap a large set (token economy). Signature: get_protein_go_terms(accession, aspect=, limit=).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accession | Yes | UniProtKB accession, e.g. P05067 (isoforms like P05067-2 accepted). | |
| aspect | No | Restrict to one GO aspect (omit for all). | |
| limit | No | Max terms to return (0 = all). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | ||
| _meta | No | ||
| error_code | No | ||
| message | No | ||
| retryable | No | ||
| recovery_action | No | ||
| field | No | ||
| allowed_values | No | ||
| hint | No | ||
| accession | No | ||
| count | No | ||
| by_aspect | No | ||
| count_by_aspect | No | ||
| truncated | No |