Skip to main content
Glama

BioContextAI Knowledgebase MCP

Official

bc_get_kegg_id_by_gene_symbol

Convert gene symbols (e.g., TP53) to KEGG IDs (e.g., hsa:7157) for use in KEGG API operations. Specify organism codes (e.g., 9606 for human) to retrieve accurate IDs essential for bioinformatics workflows.

Instructions

Get KEGG ID by gene symbol.

This function converts a gene symbol (like TP53) to a KEGG gene ID (like hsa:7157) for use in the KEGG API. The KEGG API typically requires KEGG IDs rather than gene symbols for most operations.

This is often the first step in a workflow - get the KEGG ID, then use it in subsequent API calls.

Common organism codes:

  • Human: 9606 (KEGG code: hsa)
  • Mouse: 10090 (KEGG code: mmu)
  • Rat: 10116 (KEGG code: rno)
  • E. coli: 562 (KEGG code: eco)
  • Yeast: 4932 (KEGG code: sce)

Args: gene_symbol (str): The gene symbol to search for (e.g., "TP53" for human, "Trp53" for mouse). organism_code (str): The organism code as taxonomy ID (e.g., "9606" for human, "10090" for mouse).

Returns: str | dict: The KEGG ID (e.g., "hsa:7157") or an error message.

Examples: >>> get_kegg_id_by_gene_symbol(gene_symbol="TP53", organism_code="9606") "hsa:7157"

>>> get_kegg_id_by_gene_symbol(gene_symbol="Trp53", organism_code="10090") "mmu:22059"

Input Schema

NameRequiredDescriptionDefault
gene_symbolYesGene symbol to convert to KEGG ID (e.g., 'TP53' for human, 'Trp53' for mouse)
organism_codeYesKEGG organism code or taxonomy ID (e.g., '9606' for human, '10090' for mouse)

Input Schema (JSON Schema)

{ "properties": { "gene_symbol": { "description": "Gene symbol to convert to KEGG ID (e.g., 'TP53' for human, 'Trp53' for mouse)", "title": "Gene Symbol", "type": "string" }, "organism_code": { "description": "KEGG organism code or taxonomy ID (e.g., '9606' for human, '10090' for mouse)", "title": "Organism Code", "type": "string" } }, "required": [ "gene_symbol", "organism_code" ], "type": "object" }

Other Tools from BioContextAI Knowledgebase MCP

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/biocontext-ai/knowledgebase-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server