initialize()
{
defineConstant("N", 10000);
defineConstant("L", 1e7);
initializeMutationType("m1", 0.0, "g", -(5 / N), 1.0); //Mean and shape
initializeGenomicElementType("g1", m1, 1.0);
initializeMutationRate(1e-10);
initializeGenomicElement(g1, 0, 2*L - 1);
initializeRecombinationRate(c(1e-6, 1e-8), c(L - 1, 2*L - 1));
}
1 { sim.addSubpop("p1", N); }
1: late() {
if (sim.generation % 1000 != 0)
return;
genomes = sim.subpopulations.genomes;
high_r = calcHeterozygosity(genomes, start = 0, end = L - 1);
low_r = calcHeterozygosity(genomes, start = L, end = 2*L - 1);
catn(sim.generation + ": high r == " + high_r + ", low r == " + low_r);
}
100000 late() { sim.simulationFinished(); }
1000: high r == 1.69526e-07, low r == 1.82844e-07
2000: high r == 3.59783e-07, low r == 3.89605e-07
3000: high r == 5.20246e-07, low r == 5.41626e-07
4000: high r == 7.13875e-07, low r == 6.6935e-07
5000: high r == 8.01378e-07, low r == 7.91837e-07
6000: high r == 8.66481e-07, low r == 1.00161e-06
7000: high r == 9.26864e-07, low r == 1.24064e-06
8000: high r == 1.01754e-06, low r == 1.39038e-06
9000: high r == 1.10932e-06, low r == 1.45669e-06
10000: high r == 1.06537e-06, low r == 1.45886e-06
11000: high r == 1.26335e-06, low r == 1.53748e-06
12000: high r == 1.31336e-06, low r == 1.66525e-06
13000: high r == 1.44629e-06, low r == 1.78663e-06
14000: high r == 1.51388e-06, low r == 1.92276e-06
15000: high r == 1.43256e-06, low r == 1.94525e-06
16000: high r == 1.3436e-06, low r == 2.00036e-06
17000: high r == 1.44247e-06, low r == 2.16455e-06
18000: high r == 1.49168e-06, low r == 2.07088e-06
19000: high r == 1.54869e-06, low r == 2.05062e-06
20000: high r == 1.66637e-06, low r == 2.16987e-06
That's only one run, though, and for only 20,000 generations; I don't know whether this is replicable/significant, or what the equilibrium would look like. But anyhow, I didn't see any obvious bug in your model, and what you observe seems plausible to me. Maybe folks who know more pop-gen than I will chime in on this (I'd be interested to hear that), but I think maybe there is no problem here?
--
SLiM forward genetic simulation: http://messerlab.org/slim/
---
You received this message because you are subscribed to the Google Groups "slim-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to slim-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/slim-discuss/c9f5b359-cb24-4581-bf80-02c4dffcbceen%40googlegroups.com.