tracts.haploid

Classes

Haploid([Ls, lschroms, fname, selectchrom, ...])

A class representing a haploid genome, composed of a set of chromosomes, each of which consists of a list of tracts.

class tracts.haploid.Haploid(Ls=None, lschroms=None, fname=None, selectchrom=None, labs=None, name=None, allosomes=None)

Bases: object

A class representing a haploid genome, composed of a set of chromosomes, each of which consists of a list of tracts.

Ls

The lengths of the chromosomes.

Type:

list of float

chroms

The chromosome objects.

Type:

list of Chrom

labs

Labels identifying the chromosomes.

Type:

list of str

name

An optional name for the haploid.

Type:

str

__init__(Ls=None, lschroms=None, fname=None, selectchrom=None, labs=None, name=None, allosomes=None)
static from_file(path, name=None, selectchrom=None, allosome_labels={})