Skip to content

Scaling in msprime? #1687

Answered by grahamgower
David-Peede asked this question in Q&A
May 19, 2021 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

Hi @David-Peede! In a coalescent setting, simulating the ancestry of a sample is agnostic to the time scale of the simulation. So it's probably the simulation of mutations that is the computational constraint in your case. The total number of mutations to be simulated is proportional to mu*T (where T the sum of the branch lengths in the tree(s) and mu is the mutation rate). When scaling a SLiM simulation, one generally divides the time values by the scaling factor and multiplies the mutation rate by the scaling factor, which maintains the same total diversity as an unscaled simulation. But this would imply that mu*T is held constant! So unless I'm missing something, I don't think any kind…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@David-Peede
Comment options

Answer selected by David-Peede
Comment options

You must be logged in to vote
3 replies
@David-Peede
Comment options

@benjeffery
Comment options

@petrelharp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants