Presets:
|
Core Parameters
100
Log scale: 10 – 10,000
100
5
0.50
Selection
0.05
Negative = deleterious to A allele
0.50
0 = recessive · 0.5 = additive · 1 = dominant · >1 = overdominant
Mutation
0.010
0.001
Migration
0.050
Island model - fraction from source each gen
0.50
Bottleneck
50
10
Log scale: 1 – 1,000
Sex Chromosome
0.000
0 = fully sex-linked · 0.5 = pseudoautosomal
Dashed lines track allele freq on secondary chromosome
♂ hemizygous · Ne,X = ¾Ne
Configure parameters and press Run Simulation
About this model

Each generation, forces are applied in order:

  1. Selection (diploid): p′ = (p²wAA + p(1−p)wAa) / w̄    where wAA = 1+s, wAa = 1+hs, waa = 1
  2. Mutation: p′ = p(1−μ) + (1−p)ν
  3. Migration (island model): p′ = p(1−m) + mpm
  4. Drift: sample 2Ne alleles from Binomial(2Ne, p)

Trajectories stop at fixation (p = 1) or loss (p = 0). A bottleneck replaces Ne with Nbottle for a single generation. The dashed amber line marks the bottleneck generation.

Sex Chromosome mode tracks three allele frequencies per replicate: pdip (sex chromosome in diploid homogametic sex), phap (sex chromosome in hemizygous heterogametic sex), psec (secondary chromosome: Y or W). The solid trajectory shows the overall population-level frequency p = (2pdip + phap + psec) / 4. Selection in the hemizygous sex is fully exposed (no dominance). Recombination rate r mixes allele pools between the sex chromosome and secondary chromosome in the heterogametic sex each generation. At r = 0.5 (pseudoautosomal), behavior converges to the autosomal model. Drift is applied separately to each chromosome class: 2×(Ne/2) alleles for the diploid sex, and 1×(Ne/2) each for the hemizygous sex's sex chromosome and secondary chromosome, giving effective population size Ne,X ≈ ¾Ne.