Population with size P1+P2 evolves for BURNIN generations in units of 2(P1+P2).
After BURNIN, this population evolves further with the same parameters
and at tSpeciation splits into two populations with sizes P1 and P2.
These two populations evolve independently for tSweepStart - tSpeciation generations
with m individuals per generation migrating from Population 2 to Population 1.
At tSweepStart selection switches on in Population 1 --- either on a random site
or on a predefined genome region.
All or only a fraction of sites int this region may be under selection.
Fitness may also be simply 1 if we have none of the alleles in the selected region,
or 1+s if we have any of the alleles in the selected region (regardless of how many
and whether they are homozygous or heterozygous). The user can
specify the dominance parameter h, which will make heterozygote
fitness in both populations to 1+hs. Additionally, two more fitness
options are available. Truncation selection and simple synergistic
epistasis. Truncation selection sets fitness to zero if the number of
mutated sites is larger than a prespecified threshold. Simple
synergistic epistasis models fitness using an additional quadratic
term f = 1+as+bs2. The parameters a and b can be specified by
the user.
These two populations evolve for further tTotal - tSweepStart generations
with selection in Population 1 and migration from Population 2 to
Population 1. Populations 1 and/or 2 may start expansion after BURNIN.
All time units are in 2(P1+P2) generations.
All evolutionary event times are measured from the end of BURNIN.