def convert_bxd_name(name: str) -> str:
    """
    the names of BXDs are not consistent across all metadata 
    and VCF files, so we sometimes have to convert their names

    >>> convert_bxd_name("4512-JFI-0469_BXD100_RwwJ_phased_possorted_bam")
    "BXD100_RwwJ_0469"
    >>> convert_bxd_name("4512-JFI-0410_BXD013_TyJ_phased_possorted_bam")
    "BXD013_TyJ_0410"
    """
    bxd_line_name = '_'.join(name.split('_phased')[0].split('_')[1:])
    bxd_line_num = name.split('_phased')[0].split('_')[0].split('-')[-1]

    bxd_line_new = bxd_line_name + '_' + bxd_line_num

    return bxd_line_new