Hi,
I am working on a script that should simulate over-dominance in a mutation running over the whole of chromosome 3R of drosophila, specifically the fruitless gene region. The script splits the chromosome into 3 parts; 1 for the fruitless gene, and 1 region each for the rest of the flanking sequence on either side of this gene. I have set two mutations (m1 & m2) simply because I wish to play around with some parameters further on in my research.
The script loads in a tree sequence from an initial msprime coalescent simulation. This is just a neutral binary mutation simulation on N = 5000 to establish a burn-in period for genetic diversity.
The aim of the research is to then split this population into two; p1 = 2500, p2 = 2500, then into 10 "cage" populations consisting of 500 flies each (p3 - p12). AF is then tracked at 9 different time points until generation 56, sampling 48 (96 genomes) from each "cage" at each time point.
Apologies for the long detail! My question is if there is a way to set a starting allele frequency bias? I wish to be able to set the allele frequency to 90% for p1 within the fruitless gene region, and 10% for p2 within the same region. The reason being is when tracking the AF over time, I am hoping to detect instances of balancing selection.
Sincere apologies if this is clearly explained within the SLiM documentation! I somehow cannot seem to find it anywhere =(
Attached is the current script being used (the syntax could be cleaned up once everything is running as intended so apologies!)
Many thanks
Baron Koylass. LIDo DTP PhD student. Queen Mary University of London. Fumagalli lab.