Obtain the stitched IBD segments between all pairs of sampled individuals. #3142
RomainPechey
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
(shall we specify licensing for the snippet @jeromekelleher or does it automatically inherits Tskit's MIT?) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With Iago Bonnici (@iago-lito) and Océane Eychenne (@OceaneEYCHENNE), we were looking to obtain stitched IBD segments for all pairs of sampled individuals, which is not done natively by the ibd_segments() function. In other words, we wanted to assemble, for each pair of individuals, the adjacent segments sharing the same MRCA. We developed a script that solves this problem.
Our script has the dual advantage of being fast to execute and robust in taking into account parameters that can be added to the ibd_segments() function.
Attached you will find the code and an explanatory document schematically presenting how the combination of the convolution function and the concatenation function, which is at the heart of our approach, works.
We would be delighted to receive your feedback and comments.
Best,
Iago Bonnici, Océane Eychenne, and Romain Pechey
Beta Was this translation helpful? Give feedback.
All reactions