Migration / Gene Flow Simulator

Migration / Gene Flow Simulator

Simulates allele frequency change when migrants enter a focal population. Each generation, a fraction m of the population is replaced by migrants with allele frequency pm.

Migration step: p′ = (1 − m₁ − m₂)p + m₁pm1 + m₂pm2   |   q′ = 1 − p′
p + q = 1   |   pm1 + qm1 = 1   |   pm2 + qm2 = 1   |   0 ≤ m₁ + m₂ ≤ 1

Inputs

If m₂ = 0, the second migrant population has no effect on the focal population.

This simulator is deterministic. Under repeated migration, the focal population moves toward the migrant allele frequency over time.

Results

Check pending
Starting p
Migrant pₘ₁ / pₘ₂
m₁ / m₂
Final p
Final q
Generations Simulated
Interpretation
Allele A (p) Allele a (q) Migrant pₘ₁ Migrant pₘ₂
Generation p q 2pq p(next) q(next) |p − pₘ₁| |p − pₘ₂|
No simulation yet