biocontext_kb.core.kegg
=======================

.. py:module:: biocontext_kb.core.kegg


Functions
---------

.. autoapisummary::

   biocontext_kb.core.kegg.get_kegg_id_by_gene_symbol
   biocontext_kb.core.kegg.query_kegg


Package Contents
----------------

.. py:function:: get_kegg_id_by_gene_symbol(gene_symbol, organism_code)

   Convert gene symbol to KEGG ID for use in subsequent API calls. Returns KEGG gene ID required for query_kegg().

   :returns: KEGG gene ID string (e.g., 'hsa:7157') or error dict.
   :rtype: str or dict


.. py:function:: query_kegg(operation, database = None, target_db = None, source_db = None, query = None, option = None, entries = None)

   Execute flexible KEGG API queries across pathways, genes, compounds, diseases, drugs. Use get_kegg_id_by_gene_symbol() first.

   :returns: Raw text response from KEGG API with requested data (pathways, genes, compounds, etc.) or error dict.
   :rtype: str or dict


