tracts.population#

Functions

_split_indivs(indivs, count[, sort_ancestry])

Internal function used to split a list of individuals into equally sized groups after sorting the individuals according to the proportion of the ancestry identified by sort_ancestry.

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.