-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pedigreeCross fails with half founders #131
Comments
The issue is that when we have a partial pedigree, we get individuals that have one parent known and one unknown. For founders (both parents unknown) we need to create one founding genome and we assign that genome to the founder. For the half founders, we need to create one parent genome for the unknown parent, hence one more founder for every individual that has only mother missing and one more founder for every individual that has only father missing - and then we cross these additional founders with full founders or newly generated individuals so that we can generate genome of these half founders. This issue is overlooked in the current implementation - probably due to limited testing. @AudreyAAMartin is working with real (=messy, partial) pedigree and found this issue. I have drafted an implementation that handles the above logic (requiring one extra founder for every half founder in addition to full founders) at gregorgorjanc@2190026, though it currently does not work with |
I have switched off random shuffle of founders as I think this can just create confusion - founder genomes are sampled anyway (hence there is no real order there), so best to avoid this. I get this now using the above
with this output
|
This relates to #79. As Gregor said, The intent of the random shuffling was to deal with imported real data. The idea was that this would make performing multiple replicates of a gene drop experiment easier when you were using |
This is an adapted example from the
pedigreeCross()
- we have added half-founders (individual 3 has missing mother, while individual 4 has a missing father)The text was updated successfully, but these errors were encountered: