get_translation
Convert biological identifiers, such as gene symbols to Ensembl IDs, using Biomart MCP. Specify source and target attributes to retrieve translated results quickly with caching for efficiency.
Instructions
Translates a single identifier from one attribute type to another.
This function allows conversion between different identifier types, such as
converting a gene symbol to an Ensembl ID. Results are cached to improve performance.
Args:
mart (str): The mart identifier (e.g., "ENSEMBL_MART_ENSEMBL")
dataset (str): The dataset identifier (e.g., "hsapiens_gene_ensembl")
from_attr (str): The source attribute name (e.g., "hgnc_symbol")
to_attr (str): The target attribute name (e.g., "ensembl_gene_id")
target (str): The identifier value to translate (e.g., "TP53")
Returns:
str: The translated identifier, or an error message if not found.
Example:
get_translation("ENSEMBL_MART_ENSEMBL", "hsapiens_gene_ensembl", "hgnc_symbol", "ensembl_gene_id", "TP53")
>>> "ENSG00000141510"
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dataset | Yes | ||
from_attr | Yes | ||
mart | Yes | ||
target | Yes | ||
to_attr | Yes |
Input Schema (JSON Schema)
{
"properties": {
"dataset": {
"title": "Dataset",
"type": "string"
},
"from_attr": {
"title": "From Attr",
"type": "string"
},
"mart": {
"title": "Mart",
"type": "string"
},
"target": {
"title": "Target",
"type": "string"
},
"to_attr": {
"title": "To Attr",
"type": "string"
}
},
"required": [
"mart",
"dataset",
"from_attr",
"to_attr",
"target"
],
"title": "get_translationArguments",
"type": "object"
}