Skip to content
Discussion options

You must be logged in to vote

Hi @danielpelletier116-prog - just for replicability issues, it might be worth adding a random_seed to the msprime issues.

I don't think there's a built-in way of doing this, but perhaps there should be (see e.g. #260 (comment)). I had a think, and there are some complex cases when e.g. there is a mutation M above node 10, but also mutations at the same site above all the children of node 10. In this case M is never seen. Here's a hacky way that replaces the derived state with the mutation ID, then collects the states using the variants() iterator. It would be nice to have a version of variants() that, rather than returning an array of genotypes, simply returned an array of mutation IDs, …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@danielpelletier116-prog
Comment options

Answer selected by danielpelletier116-prog
Comment options

You must be logged in to vote
1 reply
@hyanwong
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
3 participants