acidgenomes.download_ensembl_genome

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

Download Ensembl genome FASTA, transcriptome FASTA, and GTF/GFF3.

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

  • genome_build (str or None) – Ensembl genome build. Auto-detected if None.

  • release (int or None) – Ensembl release number. 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 ("genome", "transcriptome", "gtf", "gff3") to the downloaded local path.

Return type:

dict[str, Path]