Hi everybody, I have a relatively simple question that I’m stuck with. I have a MatrixTable mt with 50 samples that I would like to filter for all heterozygous variants in a given sample
I managed to filter for the specific sample with
mt_filtered = mt.filter_cols(mt.s == 'USAUPNEG0002P'), but I struggling to filter by the GT field for heterozygous variants. The solution is probably quite straightforward, but I am having trouble understanding how to properly handle the MatrixTable format for this filtering step?
mt_gt = mt_filtered.filter_rows(mt_filtered.GT == hl.call(1, 0))
results in the error message
Found indices ['column', 'row'], with unexpected indices ['column']. Invalid fields: 'GT' (indices ['column', 'row']) 'MatrixTable.filter_rows' supports aggregation over axes ['column'], so these fields may appear inside an aggregator function.```