This operator initializes sex of individuals, either randomly or use a list of sexes.
This operator initializes given information fields with a sequence of values, or a user-provided function such as random.random.
This operator assigns alleles at all or part of loci with given allele frequencies, proportions or values. This operator initializes all chromosomes, including unused genotype locations and customized chromosomes.
This function creates an initializer that initializes individual genotypes with random alleles or haplotypes with specified frequencies (parameter freq) or proportions (parameter prop). If parameter haplotypes is not specified, freq specifies the allele frequencies of alleles 0, 1, ... respectively. Alternatively, you can use parameter prop to specified the exact proportions of alleles 0, 1, ..., although alleles with small proportions might not be assigned at all. Values of parameter prob or prop should add up to 1. In addition to a vector, parameter prob and prop can also be a function that accepts optional parameters loc, subPop or vsp and returns a list of requencies for alleles 0, 1, etc, or a number for frequency of allele 0 as a speciail case for each locus, subpopulation (parameter subPop), or virtual subpopulations (parameter vsp, pass as a tuple). If parameter haplotypes is specified, it should contain a list of haplotypes and parameter prob or prop specifies frequencies or proportions of each haplotype (possibly diferently for each subpopulation but not each locus if the function form is used). If loci, ploidy and/or subPop are specified, only specified loci, ploidy, and individuals in these (virtual) subpopulations will be initialized. Parameter loci can be a list of loci indexes, names or ALL_AVAIL. If the length of a haplotype is not enough to fill all loci, the haplotype will be reused. If a list (or a single) haplotypes are specified without freq or prop, they are used with equal probability.
In the last case, if a sequence of genotype is specified, it will be used repeatedly to initialize all alleles sequentially. This works similar to function Population.setGenotype() except that you can limit the initialization to certain loci and ploidy.
This operator assigns lineages at all or part of loci with given values. This operator initializes all chromosomes, including unused lineage locations and customized chromosomes.