tracts.population#

Defines Population, a collection of Indiv objects loaded from a sample directory of .bed files. This is the sample-data entry point used by run_tracts() to compute observed tract length distributions and ancestry proportions.

Functions

collect_pop(flatdat)

Organizes a list of tracts into a dictionary keyed on ancestry labels.

preprocess_color_dict(colordict, dat)

Preprocesses the color dictionary to ensure that all ancestry labels present in the data have an entry in the color dictionary.

Classes

Population([list_indivs, names, fname, ...])

A class representing a population of diploid individuals.