acidgenomes.download_ucsc_genome

acidgenomes.download_ucsc_genome(organism: str, *, genome_build: str | None = None, output_dir: Path | None = None, cache: bool = False) dict[str, Path]

Download UCSC genome FASTA and annotation files.

Parameters:
  • organism (str) – Latin organism name, e.g. "Homo sapiens".

  • genome_build (str or None) – UCSC genome build (e.g. "hg38"). Auto-detected if None.

  • output_dir (Path or None) – Parent directory for the download. Defaults to the current working directory at call time if None.

  • cache (bool) – If True, skip downloading files that already exist.

Returns:

Mapping of file type to local path.

Return type:

dict[str, Path]