This is pretty tailored to your example. I think I might do something like:
mts = mts.filter_rows(hl.agg.all(mt.GT.is_non_ref()), keep=False)
is_non_ref returns True if the call has at least one non-reference allele.
This is pretty tailored to your example. I think I might do something like:
mts = mts.filter_rows(hl.agg.all(mt.GT.is_non_ref()), keep=False)
is_non_ref returns True if the call has at least one non-reference allele.