-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdev.cfg
77 lines (65 loc) · 3.9 KB
/
dev.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# =============================================================================
# All floating point numbers *must* be specified with a first decimal place,
# e.g. 1.0 as opposed to 1! Not doing this will cause silent errors!
# =============================================================================
# Sample size per island. Also implicitly determines the number of islands.
# Pad with zeros for unsampled islands.
sample_sizes = (250, 250);
# Time points (in numbers of generations) at which simulation parameters
# change. Generations are converted to simulation time by the algorithm
# via 1 gen = N^(1 - alpha) units of time. Also implicitly determines
# the number of epochs as length + 1.
# Use an empty vector () for a time-homogeneous simulation.
change_times = (200.0);
# Relative population size at each island per epoch.
# Format: island_1_epoch_1, ..., island_n_epoch_1, island_1_epoch_2, ..., island_n_epoch_m.
# Entries must be > 0, and sum to 1 within epoch 1.
relative_population_sizes = (0.5, 0.5, 1.0, 0.0);
# Selection strength on each island per epoch.
# Format: island_1_epoch_1, ..., island_n_epoch_1, island_1_epoch_2, ..., island_n_epoch_m.
# Entries must be >= 0.
# Details of these parameters should be specified in the fitness
# and max_fitness functions in ancestry.hh
selection_strengths = (0.0002, 0.0, 0.0002, 0.0);
# The fraction of migrants leaving each island in each generation per epoch.
# Once rescaled, this corresponds to the migration rates away from islands.
# Format: island_1_epoch_1, ..., island_n_epoch_1, island_1_epoch_2, ..., island_n_epoch_m.
# Entries must be >= 0, and all islands must be reachable from each other.
# Details of the distribution of the target island of a migrant are implemented
# in migration_probability in ancestry.hh.
migrant_fractions = (0.0, 0.0, 0.0, 0.0);
# The length of each neutral locus in sites, and the length of the amount of
# material for selective mutations (in sites). These also implicitly define the
# number of loci.
locus_lengths = (28e6, 24e6);
selective_window_lengths = (8e5, 8e5);
#locus_lengths = (28e6,24e6,29e6,35e6,24e6,25e6,31e6,27e6,25e6,25e6,29e6,27e6,26e6,29e6,27e6,31e6,19e6,23e6,21e6,24e6,23e6,22e6,23e6);
#selective_window_lengths = (8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5,8e5);
# Probabilities of a recombination somewhere along a locus in one generation.
# Format: locus_1, ..., locus_n.
# The position of a recombination event given that one happens is implemented
# in sample_recombination_point in ancestor.hh.
recombination_probabilities = (0.0, 0.0);
#recombination_probabilities = (0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0);
# Population growth rate per generation per epoch.
# Format: epoch_1, ..., epoch_m.
# Entries must be >= 0.
growth_rates = (0.0, 0.0);
# Mutation probability per generation.
# Overall mutation rate = per_site_probability * window_length * N^(alpha - 1).
per_site_mutation_probability = 1e-8;
# The parameter of the Beta(2 - alpha, alpha)-measure driving the Xi-coalescent
# Set to alpha = 2.0 for the Kingman coalescent.
alpha = 2.0;
# Total effective population size across islands for scaling parameters as
# N^(alpha - 1).
effective_population_size = 500.0;
# Given n islands and m + 1 epochs, this binary vector has the following form:
# i11_e2, i12_e2, ..., i21_e2, ..., inn_e2, ..., i11_em, i12_em, ..., i21_em, ..., inn_em,
# where ijk_el denotes the ordered pair of islands j and k at the start of epoch l.
# ijk_el = 1 means that, at the start of epoch l, the populations on islands j and k are
# merged into one. All lineages on island k are migrated to island j. Note that island k
# remains in the simulation, and can be repopulated by further migration events unless
# migration rates into island k are set to zero for all subsequent epochs. The algorithm
# does not do this automatically.
population_mergers = (0, 1);