Sorry. Above it should have said “contig_recoding” but the autocorrect changed it to “config_recoding”. Your list comprehension wont work because it maps M to chrM. You need to remap MT.
Oh that make sense! However, the VCF file also has the issue where “chr1” is “1”, hence I cannot just do {'MT': 'chrM'}. I am not too familiar with this data type, can I know if there is a way to combine with the above recode?