Figure 1. Schematic of the symsim model.
(A) Additive fitness. The steps of the simulation are (i) growth/selection according to relative additive fitness within each niche, (ii) small probability of recombination (r) by gene conversion of homologous loci (diagonal lines) in a sympatric, mixed pool of genotypes from both niches, and (iii) individuals return to the niche to which their genotype is best adapted (e.g. in this 3-locus example, genotypes 000 and 010 go to niche 0, while 111 and 011 go to niche 1). Steps (i), (ii) and (iii) are iterated for a set number of generations or until any of the derived alleles go extinct. (B) Step fitness. The steps of the simulations are the same as for additive fitness, except that individuals can grow and be selected in both niches. Optimally adapted genotypes (111 and 000) compete in just one niche. Intermediates compete in both niches, but pay a fitness cost s for niche switching. In the example shown, an individual of genotype 010 obtains 2/3 of its resources in niche 0 (and adds a count of 2/3 of an individual to the population size of niche 0), and 1/3 from niche 1 (and adds a count of 1/3 of an individual to niche 1).