snapatac2.genome.Genome#
- class snapatac2.genome.Genome(*, fasta, annotation, chrom_sizes=None)[source]#
A class that encapsulates information about a genome, including its FASTA sequence, its annotation, and chromosome sizes.
- Raises:
ValueError – If
fasta
orannotation
are not a Path, a string, or a callable.
Attributes
The Path to the annotation file.
A dictionary with chromosome names as keys and their lengths as values.
The Path to the FASTA file.
Methods