def rm_sub_allele(allele: str) -> str:
    """
    Remove suballele from a called named allele.
    (star)2.001 -> (star)2
    (star)2.001_x2 -> (star)2x2

    Args:
        allele (str): [description]

    Returns:
        str: [description]
    """
    sv = allele.split("_")[-1] if "_" in allele else None
    main_allele = allele.split(".")[0]
    return "".join([main_allele, sv]) if sv else main_allele