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.

fasta[source]#

The path to the FASTA file.

annotation[source]#

The path to the annotation file.

chrom_sizes[source]#

A dictionary containing chromosome names and sizes.

Raises:

ValueError – If fasta or annotation are not a Path, a string, or a callable.

Attributes

annotation

The Path to the annotation file.

chrom_sizes

A dictionary with chromosome names as keys and their lengths as values.

fasta

The Path to the FASTA file.

Methods