tooluniverse.tools.dbSNP_get_variant_by_rsid moduleΒΆ

dbSNP_get_variant_by_rsid

Fetch dbSNP variant by rsID using NCBI Variation Services (refsnp endpoint).

tooluniverse.tools.dbSNP_get_variant_by_rsid.dbSNP_get_variant_by_rsid(rsid, *, stream_callback=None, use_cache=False, validate=True)[source]ΒΆ

Fetch dbSNP variant by rsID using NCBI Variation Services (refsnp endpoint).

Parameters:
  • rsid (str) – rsID without β€˜rs’ prefix or with (e.g., rs699 or 699).

  • stream_callback (Callable, optional) – Callback for streaming output

  • use_cache (bool, default False) – Enable caching

  • validate (bool, default True) – Validate parameters

Return type:

dict[str, Any]