forqs module reference
Forward simulation of Recombination, Quantitative traits, and Selection
 All Classes Groups Pages
VariantIndicator_SingleLocusHardyWeinberg Class Reference

Assigns SNP value 1 to both haplotypes of the first Np^2 individuals, and to one haplotype of the next N*2pq individuals. More...

N == population_size, p == 1-q == allele_frequency

Assumes chromosome ids are assigned consecutively (2 per individual): 0, ..., 2N-1

parameter default notes
locus = <id> none required
allele_frequency = <float> none required

Implementation note: requires call to initialize() to obtain population id ranges from PopulationConfigGenerator

Example: example_1_locus_selection.txt