MomentsLD / moments

MIT License
10 stars 3 forks source link

Function to rescale a Demes model #157

Closed apragsdale closed 7 months ago

apragsdale commented 7 months ago

This could be in the DemesUtil set of functions. It would take some factor Q and rescale all population sizes, model times, migration rates, by this factor to maintain consistent population-genetic parameters.

sgravel commented 7 months ago

Should this be implemented as part of moments, or as part of demes itself? Seems like the stdpopsim and slim people would also want to use this...

apragsdale commented 7 months ago

Ideally in a more general package, and not just moments, but I'm not sure how likely it is to be implemented within demes itself. For now, I was thinking of placing it in moments (like we have demes model slicing functions to take upper or lower portions of the demography), and if these functions get integrated into demes later we can remove them from moments?

apragsdale commented 7 months ago

Closed by #159