Get Gene Homologs
ensembl_get_homologyFind orthologs and/or paralogs of a gene across species. Returns each homolog's stable ID, species, homology type (ortholog_one2one, ortholog_one2many, paralog_many2many, etc.), perc_id (percent identity), perc_pos (percent positives), and taxonomy level. Essential for cross-species research — for example, "what is the mouse equivalent of human TP53?" or "how conserved is BRCA2 across mammals?". Provide either symbol + species or a stable gene ID. Target species can be filtered to a single species or left open to return all available homologs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Ensembl stable gene ID (e.g. ENSG00000139618). Use ensembl_lookup_gene to get the stable ID from a symbol. Cannot be combined with symbol. | |
| type | No | Type of homologs to return. orthologues: genes related by speciation (cross-species equivalents). paralogues: genes related by duplication (within or across species). all: both orthologs and paralogs. | orthologues |
| symbol | No | Gene symbol in the source species (e.g. BRCA2, TP53). Species defaults to homo_sapiens; set species for other organisms. Cannot be combined with id. | |
| species | No | Source species (the species the query gene belongs to) in Ensembl internal format. Default is homo_sapiens. Use ensembl_list_species to discover valid values. | homo_sapiens |
| max_results | No | Maximum number of homologs to return. Broad orthology queries (e.g. BRCA2 across all species) can return 150+ homologs; the default keeps responses focused. Set to 0 to return every homolog uncapped. totalCount always reports the true number available before this cap. | |
| target_species | No | Filter to homologs in a single target species (e.g. mus_musculus for mouse). Omit to return homologs across all available species. Use ensembl_list_species to discover valid values. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The max_results limit applied to the homolog list. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Number of homologs returned after the max_results cap. | |
| notice | No | Guidance when no homologs are found or the list was capped. | |
| queryId | No | The resolved Ensembl gene ID used for the homology query. | |
| homologs | No | Homologous genes found for the query gene, capped to max_results. totalCount reports the full count available before the cap. | |
| queryType | No | The homology type queried (orthologues, paralogues, or all). | |
| truncated | No | True when the homolog list was capped at max_results. | |
| totalCount | No | Total number of homologs available before the max_results cap. Exceeds the returned homologs count when the list was capped. | |
| querySpecies | No | The source species used for the query. |