Replies: 1 comment 1 reply
-
Hi @mshpak76 👋 The code for converting from ms parameters to msprime equivalents is here, hopefully that's help to answer your questions. Sorry I don't have time to go into more detail. Perhaps this is something we should add to the Switching from other simulators section in the docs? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to implement an msprime script in ms to make sure that I am generating equivalent results. The one parameter that I'm struggling with converting is the gene conversion rate, specifically what to use for the f = g/r parameter in ms. In msprime, I have a per-site recombination rate of 1.14e-8 and a gene conversion rate of 5.9e-8 per site in each generation. In ms, f = g/r, where r is the per generation probability of crossing over between adjacent sites. I'm not sure how to convert this 5.9e-8 to the equivalent f = g/r. I assume r = 7.04e-8, the sum of conversion and recombination rates, but what is g? Is f simply the ratio 5.9/1.14 = 0.838 in this case, or is there some other scaling parameter that I'm missing?
Additionally, the scaling for the gene conversion rate isn't the same as the recombination rate in ms associated with the -r parameter, which isn't per site but rather per region/sequence length.
If somebody could clarify how to parameterize f wrt to the msprime equivalent rates, that would be very helpful.
Beta Was this translation helpful? Give feedback.
All reactions