Can one simulate diploid individuals? #2022
-
Hi, I tried to address this question in Biostars and didn't get an answer. The current idea I have to deal with it, is to just join randomly genomes from the output to create diploid individuals. OF course to join genomes from the same sub populations. I am afraid though, my entire simulation, which has recombination, is not simulated correctly then. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @shaharMazia! You're using the legacy |
Beta Was this translation helpful? Give feedback.
Hi @shaharMazia!
You're using the legacy
simulate
function. It is highly recommended to use the updated methods ofsim_ancestry
andsim_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