Skip to content

Can one simulate diploid individuals? #2022

Answered by benjeffery
shaharMazia asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @shaharMazia!

You're using the legacy simulate function. It is highly recommended to use the updated methods of sim_ancestry and sim_mutations.
There is a ploidy argument to sim_ancestry(). Have you seen the section on ploidy in the docs which explains the effect of this in msprime?
https://tskit.dev/msprime/docs/stable/ancestry.html#sec-ancestry-ploidy

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shaharMazia
Comment options

@shaharMazia
Comment options

@benjeffery
Comment options

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