Replies: 3 comments 7 replies
-
Hi! Actually, this sort of thing is now pretty straightforward with facilities that will be released in SLiM 3.7 (which should be out before Christmas). I've attached two excerpts from the draft manual for 3.7. Together, they contain three sections; the sections on alternation of generations and haplodiploidy are probably the most central for you. SLiM_Manual_excerpt.pdf So, have a look through those and then let me know if you have questions remaining. It doesn't show exactly your system, of course, but I think things would be very similar for you – using |
Beta Was this translation helpful? Give feedback.
-
Oh, and also re: recombination between haploids, maybe this is relevant: This recipe is also in the 3.6 manual, but I think it maybe had some changes in it due to the changes in SLiM 3.7. I definitely very strongly urge you to develop this model in SLiM 3.7; a lot of improvements have been made in the modeling of unusual mating systems since 3.6. You can build the current GitHub head and it ought to work, although there are some issues left to shake out surrounding tree-sequence recording and tskit and pyslim. |
Beta Was this translation helpful? Give feedback.
-
I think it works with at least the following balancing selection on recombining haploids. One thing I still don't quite understand is that the balancing selection will not work as I would imagine when I try to kill all parents in early events (try to mick manual v3.6 section 16.15 implementing a Wright-Fisher model with a nonWF model). In this case, I got allele frequency like this: Any comments on this or suggested readings related to this behavior? Thanks.
|
Beta Was this translation helpful? Give feedback.
-
SLiM is so powerful for its flexibility and realisticity. I have been thinking about using SLiM+pyslim+msprime to simulate different kinds of selection after skimming the comprehensive SLiM manual and the excellent tutorial in pyslim/msprime documentation.
When it comes to the species I am currently working with - plasmodium - which presents as a haploid for the majority of its complicated life cycle but as a diploid only briefly during its sexual stage, I ran into a simulation case very different from the typical cases of simulating recombining diploid (for which SLiM is designed for) and simulating nonrecombining haploid (for which SLiM can still deal with by removing the mutations from one genome of each diploid individual).
The main features of Plasmodium that cause issues for simulation are
Based on my superficial understanding of SLiM, it could be challenging to simulate plasmodium selection with these features considered. I was imagining some naive ways of doing gametes selection so that simulating selection in Plasmodium could be realistic:
Both methods could work in theory but could be very slow. I am wondering if there is a better way of implementing this type of simulation - "selection in recombing haploid" just with Eidos scripting or it is necessary to dive deep into the C++ code.
Thanks,
Bing
Beta Was this translation helpful? Give feedback.
All reactions