locus_go_annotations
Retrieve Gene Ontology annotations for a plant locus by resolving it to a UniProt accession and querying QuickGO, returning annotations grouped by aspect.
Instructions
Fetch Gene Ontology annotations for a plant locus from QuickGO (EBI). Free, no API key. The locus is first resolved to a UniProt accession via the same logic as resolve_locus_to_uniprot, then QuickGO is queried by geneProductId. Returns annotations[] with goId/goName/goAspect/qualifier/evidence + a by_aspect rollup ({molecular_function: [{goId, goName}, ...], biological_process: [...], cellular_component: [...]}) deduped on goId so the high-level term set is one read away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locus | Yes | e.g. AT1G01010 (Arabidopsis), Os01g0100100 (rice) | |
| organism | No | Plant organism — accepts canonical slug (arabidopsis_thaliana), scientific or common name, or NCBI taxid | arabidopsis_thaliana |
| limit | No | Max annotations from QuickGO (1–100, default 50) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locus | Yes | ||
| uniprot_accession | Yes | UniProt accession used to query QuickGO | |
| numberOfHits | Yes | Total annotations available upstream | |
| returned | Yes | Number of annotations in annotations[] | |
| annotations | Yes | ||
| by_aspect | Yes | aspect → [{goId, goName}, ...], deduped on goId |