Calculating kinship coefficients in multi-generational pedigrees #787
-
Hi All, I have a genealogical dataset of ~ 2.5 million individuals in a format where each individual is in a row with the mother and father IDs in columns along with the sex and date of birth. I wish to calculate the pairwise kinship coefficient between individuals within this multi-generational pedigree and for example, list all relatives for an individual that surpass a certain kinship coefficient in an efficient manner. This seems doable with the tskit library but I wanted to check if there is a similar implementation or tutorial for the methods that can get me started. I appreciate the help. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @vaqm2 - if I'm reading you correctly, this is purely a problem involving pedigrees, rather than genetic genealogies. Is that right? There is support in tskit (not tsinfer) for pedigrees, but I'm not sure it's been optimised much. @benjeffery: can we transfer this to the tskit discussions forum? |
Beta Was this translation helpful? Give feedback.
-
We don't have methods for computing these types of stats in tskit @vaqm2 I'm afraid. However, the sgkit library has a pedigree_kinship function which may compute what you need? |
Beta Was this translation helpful? Give feedback.
We don't have methods for computing these types of stats in tskit @vaqm2 I'm afraid. However, the sgkit library has a pedigree_kinship function which may compute what you need?