I am trying to combine mt.locus and mt.alleles into a single row annotation, like this "chr1:12345-[“A”, “T”]. I did not get much success playing with the data types as it is quite different from Python, can I get some advice on how to do it?
How about this function?
If you want literally the string you wrote, I think hl.str(mt.locus) + '-' + hl.str(mt.alleles) will give you chr1:12345-["A", "T"]
hl.str(mt.locus) + '-' + hl.str(mt.alleles)