burn-in before pedigree #2351
Replies: 3 comments 3 replies
-
I don't think there is a way to use msprime to simulate with given initial allele frequencies. The reason is that this is contrary to how msprime works fundamentally: msprime works by simulating backwards in time, from today towards the past; so specifying allele frequencies at some point in the past is not a natural thing to do at all. More generally, I don't know of a good way to simulate genomes conditional on allele frequencies at a fixed set of positions (at least, simulate from a legit stochastic process, as opposed to just shuffling up nucleotides somehow). |
Beta Was this translation helpful? Give feedback.
-
@JaneeshBansal I imagine you want to recreate what might have happened in reality - where someone created crosses (pedigree) with parents that had certain alleles or genotypes. I assume that these parents were picked out of a larger population, and then crossed to build the pedigree you now have. One way to simulate this would be to run msprime with many samples, to get the population. From this population select samples that match your criteria, (possibly simplify the tree sequence), then use SLiM in forward mode through pedigree (I assume this is possible - if not, you could pass haplotypes into AlphaSimR and drop them forward in time through your pedigree). |
Beta Was this translation helpful? Give feedback.
-
I think you want to recapitate the pedigree tree sequence before dropping
mutation.
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a pedigree which I want to run for the final 4 generations of my simulation. But I would like to run a burn-in prior to the pedigree.
I have seen that the pedigree is usually specified as the initial state when simulating the ancestry. But I want to specify particular allele frequencies of the population before the pedigree. Would I need to extract the tree sequence from the pedigree simulation and then run recapitate?
Thank you!
Janeesh
Beta Was this translation helpful? Give feedback.
All reactions