-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add recombination rate to stdpopsim.DemographicModel #1225
Comments
@gregorgorjanc look at how demography-specific mutation rate was handled in #839 |
I am looking into this since many demographic models are inferred/calibrated by assuming a specific recombination rate, maybe even a specific genetic map, which will invariably differ from the species recombination rate and genetic map we have implemented in I looked across the codebase, but found it tricky, hence writing this summary to see if I am following the structure correctly. We have:
The docs and code interchange between "recombination map" and "genetic map", which I understand as they are synonyms, but Potential TODOs:
Any suggestions or comments on this plan? |
I have implemented the above (except genetic map in a demographic model - not sure how important that is - maybe for future). Using that PR code I get this behaviour:
So, we now have a cleaner / more correct way to define demographic models as they are published. Python API would work like this:
|
Short description of what you'd like added:
Add recombination rate specification in demographic models in addition to in species
Rationale and considerations:
We can specify recombination rate in the species file, but demographic models for that species could have assumed different recombination rate (and mutation rate) in estimation. We can already specify mutation rate separately for species and demographic models, so it would be good to offer the same for recombination rate.
This came about in QC of the BosTau #579, where the difference between the most recent recombination estimate used for species definition and a bit older recombination rate estimate for demographic model are not too different, so the issue is not huge there, but could be much bigger in other species.
How can I help?
The text was updated successfully, but these errors were encountered: