def correct_chrom_names(chroms):
    """Make sure chromosome names follow UCSC chr convention."""
    chrom_list = []
    for chrom in chroms:
        # fix chrom numbering
        chrom = str(chrom)
        chrom = chrom.replace('23', 'X')
        chrom = chrom.replace('24', 'Y')
        chrom = chrom.replace('25', 'Mt')
        if not chrom.startswith('chr'):
            chrom = 'chr' + chrom
        chrom_list.append(chrom)
    return chrom_list
Make sure chromosome names follow UCSC chr convention.