Replies: 2 comments 2 replies
-
I don't have anything built-in to AlphaSimR for this, so you'd have to dig around a bit in the internals to work something out or use a hack. Doing this by looking at the internals can take a while. You'll need two objects from SimParam: recHist (a history of observed recombinations) and pedigree. The hack is much easier but may not work for you in all cases. The hack is to just use
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick answer and the hack @gaynorr ! |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
If I'l not mistaken, when using the
pullIbdHaplo()
function, the origin of the haplotypes in the studied population is given relative to the population of founders. Would there be a trick to obtain the origin of the haplotypes relative to another population?For example, with the following code:
Would there be a way to obtain the origin of the haplotypes in the
rand_pop2
population relative to therand_pop
population? The result would then be:Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions