I have a very basic question - extracting specific variants from a matrix table.
If I wanted to extract a couple of variants, e.g.,
variant_list = ['chr1:xx', 'chr1:xx'] #locus var_select = mt.filter_rows(hl.literal(set(variant_list).contains(mt.locus)))
Then I got the error message about ‘TypeError’:
set element type: 'str' type of arg 'item': locus<GRCh38>
I sort of understand the error, but how should exactly I generate the variant lists (as locus format) to extract variants?
Thank you very much!