Hello. Can I know if there is an in-built method to call inherited variants from trios? I am interested in these scenarios:
- Het in one parent / het in child.
- Het in one parent / hom ref in child
- Het in both parents / hom alt in child
Hello. Can I know if there is an in-built method to call inherited variants from trios? I am interested in these scenarios:
@pixel_123, you can use trio_matrix
with a pedigree file to get a Matrix Table with an easy-to-use structure. From there your queries are relatively straightforward:
mt = mt.entries()
calls = mt.filter(
(mt.proband_entry.is_het() & mt.father_entry.is_het() & ~mt.mother_entry.is_het())
| (mt.proband_entry.is_het() & ~mt.father_entry.is_het() & mt.mother_entry.is_het())
)