KEGG Pathways
kegg_pathwaysFetches KEGG pathway memberships for a plant locus, returning pathway IDs, names, and categories. Supports Arabidopsis and major crops; pairs with locus_go_annotations for functional insights.
Instructions
Fetch KEGG pathway memberships for a plant locus from rest.kegg.jp. Returns a list of pathway IDs + names + KEGG category classes the locus participates in. Pairs with locus_go_annotations for the GO-level functional view. Covers: arabidopsis_thaliana, brachypodium_distachyon, glycine_max, hordeum_vulgare, oryza_sativa, populus_trichocarpa, zea_mays. Any other organism raises OrganismNotSupported before any request (both the single and batch forms). Non-Arabidopsis loci are bridged to the NCBI Entrez Gene ID KEGG indexes (returned as entrez_gene_id). A gene KEGG knows with no pathway memberships is an ok answer with pathways=[]; a gene KEGG has no record of raises NotFoundError. KEGG v118+ is case-sensitive on the locus: pass AGI loci as uppercase.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locus | Yes | Arabidopsis AGI locus, e.g. AT1G01010 (case preserved verbatim — KEGG v118+ is case-sensitive) | |
| organism | No | Plant organism — accepts canonical slug, scientific or common name, or NCBI taxid; see the tool description for which KEGG covers | arabidopsis_thaliana |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locus | Yes | ||
| errors | No | Per-pathway step-2 failures (kept inline so the call doesn't abort) | |
| organism | Yes | Resolved canonical organism slug, e.g. arabidopsis_thaliana | |
| pathways | Yes | ||
| kegg_gene_id | Yes | e.g. "ath:at1g01010" | |
| entrez_gene_id | No | Entrez Gene ID from the non-Arabidopsis KEGG↔Entrez bridge; absent for ath. | |
| upstream_version | No | KEGG release that produced THIS response, — always null today: this backend states no release on its responses; upstream_release(backend='kegg') reports the release its own endpoint calls current at query time, or why there is none. null means KEGG did not state one — never that no release exists, and never inferred from a separate metadata call, which can describe a different release than the one that answered. |