"""
EVA_get_variants_by_region

Get genetic variants from the European Variation Archive (EVA) within a specific genomic region. ...
"""

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


def EVA_get_variants_by_region(
    region: str,
    species: Optional[str] = "hsapiens_grch38",
    limit: Optional[int] = 20,
    *,
    stream_callback: Optional[Callable[[str], None]] = None,
    use_cache: bool = False,
    validate: bool = True,
) -> Any:
    """
    Get genetic variants from the European Variation Archive (EVA) within a specific genomic region. ...

    Parameters
    ----------
    region : str
        Genomic region in 'chr:start-end' format (e.g., '17:41200000-41210000', '7:14...
    species : str
        Species and assembly (e.g., 'hsapiens_grch38', 'hsapiens_grch37')
    limit : int
        Maximum number of variants to return
    stream_callback : Callable, optional
        Callback for streaming output
    use_cache : bool, default False
        Enable caching
    validate : bool, default True
        Validate parameters

    Returns
    -------
    Any
    """
    # Handle mutable defaults to avoid B006 linting error

    return get_shared_client().run_one_function(
        {
            "name": "EVA_get_variants_by_region",
            "arguments": {"region": region, "species": species, "limit": limit},
        },
        stream_callback=stream_callback,
        use_cache=use_cache,
        validate=validate,
    )


__all__ = ["EVA_get_variants_by_region"]
