Batch: Gramene Homologs
batch_gramene_homologsRetrieve homologs for up to 50 plant gene loci per call, filtering by ortholog/paralog type or target organism. Returns a structured batch envelope with counts, results, and errors.
Instructions
Batch version of gramene_homologs. Up to 50 loci per call; shares the homology_type filter across all loci. Returns the standard batch envelope (count + results dict + errors dict).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"loci": "<loci>"
},
"name": "batch_gramene_homologs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loci | Yes | List of locus identifiers (max 50) | |
| homology_type | No | ortholog | |
| with_organism | No | Add 'organism' (Gramene species slug, null when unknown) to every row without filtering; one extra call per 100 rows (#130) | |
| target_organism | No | Keep only homologs in this organism (slug, scientific/common name, or NCBI taxid), filtered BEFORE the cap so a hub gene's rice or wheat orthologs cannot be pushed past 'limit' by other species. Adds 'organism' to every row and 'total_all_organisms'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | The batch tool name, e.g. batch_resolve_locus_to_uniprot | |
| count | Yes | Number of distinct loci queried, returned (== len(results) + len(errors)). The input list is de-duplicated first, so this is LOWER than the number of loci you sent if you sent a duplicate — that is de-duplication, not a dropped locus. | |
| errors | Yes | locus → '[ClassName] message' for PlantGenomicsError failures | |
| results | Yes | locus → per-locus result dict (same shape as the single-locus tool) |