I am having trouble formulating an input file to simulate a simple scenario. I have a single population that experienced a bottleneck in the past (at generation 18). I would like to sample sequences from the population at the present time (generation 0), and well before the bottleneck (generation 35).
I have read the manual and find the examples are not descriptive enough.
Can you provide a .par file that sets up this simulation? Any explanation for the choices would also be useful.
Here I attach the code of what I have come up with, but fsc25221 seems to go into an infinite loop when reading the file, and the .simparams output file goes on forever with nonsense, creating 100s of demes of size 0, etc.:
//Number of population samples (demes)
3
//Population effective sizes (number of genes)
2000
0
0
//Sample sizes
26
0 18
22 35
//Growth rates : negative growth implies population expansion
0
0
0
//Number of migration matrices : 0 implies no migration between demes
0
//historical event: time, source, sink, migrants, new size, growth rate, migr. matrix
2 historical events
18 2 1 1 3 0 0
35 1 0 1 1 0 0
//Number of independent loci [chromosome]
1 0
//Per chromosome: Number of linkage blocks
1
//per Block: data type, num loci, rec. rate and mut rate + optional parameters
DNA 100000 0.000000013 0.00000002 0.33
I re-created my par file using your tips as well as an example of a working par file from elsewhere in the google group. I find that now the simulations run, but I am unsure if the desired model is being implemented. Will you have a look?
Again, I have a very simple scenario: A single population experienced a bottleneck in the past (at generation 18). I would like to sample sequences from the population at the present time (generation 0), and well before the bottleneck (generation 35).
par file:
//Number of population samples (demes)
3
//Population effective sizes (number of genes)
20000
0
0
//Sample sizes
26
0 18
22 35
//Growth rates : negative growth implies population expansion
0
0
0
//Number of migration matrices : 0 implies no migration between demes
0
//historical event: time, source, sink, migrants, new size, growth rate, migr. matrix
2 historical events
18 1 0 1 3 0 0
35 2 0 1 1 0 0
//Number of independent loci [chromosome]
1 0
//Per chromosome: Number of linkage blocks
1
//per Block: data type, num loci, rec. rate and mut rate + optional parameters
DNA 130681887 0.000000013 0.00000002 0.33