gaynorr / AlphaSimR

R package for breeding program simulations
https://gaynorr.github.io/AlphaSimR/
Other
40 stars 17 forks source link

Sync stdpopsim & AlphaSimR runMaCS() parameters of Holstein #164

Closed gregorgorjanc closed 6 months ago

gregorgorjanc commented 8 months ago

When implementing BosTau & Holstein demography between in runMacs() I eyeballed numbers from figure 4 in Macleod et al. paper, while I later implemented the same in stdpopsim and figured out that there is a table with exact numbers in the paper appendix - see https://popsim-consortium.github.io/stdpopsim-docs/stable/catalog.html#sec_catalog_bostau_models_holsteinfriesian_1m13

gregorgorjanc commented 6 months ago

I now looked into this.

First a bit of background.

We initially implemented Ne trends for cattle based on SNP array estimates and some basic cattle genome biology params. We got about ~50K sites per chromosome in total, which seemed enough.

Then we got a reviewer saying in one manuscript that we should be getting ~1M sites per chromosomes. To achieve that I implemented the Macleod et al. (2013) model as the best demographic model I have found. That bumped sites up qiute a bit, but it was still too low. I was at the same time reading a human genetics paper on de-novo mutation rate (~2.5e-8) and once I used that rate, we got the suggested ~1M sites.

As I was implementing the stdpopsim BosTaurus model, I was advised that we should not be changing model parameters freely because estimated model parameters depends on some inputs and that it is best to faithfully represent the published model with all inputs and estimates.

Currently we have these values:

I am proposing this change to be fully in line Macleod et al. (2013):

It should also run a bit faster;) Will push a PR for this soon.

gregorgorjanc commented 6 months ago

Closing as addressed in https://github.com/gaynorr/AlphaSimR/pull/172