"""
ensembl_lookup_gene

Lookup gene information by Ensembl gene ID or symbol. Returns gene details including location, de...
"""

from typing import Any, Optional, Callable
from ._shared_client import get_shared_client


def ensembl_lookup_gene(
    gene_id: str,
    species: Optional[str] = None,
    *,
    stream_callback: Optional[Callable[[str], None]] = None,
    use_cache: bool = False,
    validate: bool = True,
) -> dict[str, Any]:
    """
    Lookup gene information by Ensembl gene ID or symbol. Returns gene details including location, de...

    Parameters
    ----------
    gene_id : str
        Ensembl gene ID or symbol (e.g., 'ENSG00000139618' or 'BRCA1'). If using a st...
    species : str
        Species name required for gene symbols (default 'homo_sapiens'). Examples: 'h...
    stream_callback : Callable, optional
        Callback for streaming output
    use_cache : bool, default False
        Enable caching
    validate : bool, default True
        Validate parameters

    Returns
    -------
    dict[str, Any]
    """
    # Handle mutable defaults to avoid B006 linting error

    return get_shared_client().run_one_function(
        {
            "name": "ensembl_lookup_gene",
            "arguments": {"gene_id": gene_id, "species": species},
        },
        stream_callback=stream_callback,
        use_cache=use_cache,
        validate=validate,
    )


__all__ = ["ensembl_lookup_gene"]
