import re


def get_phased(glstring):
    """
    Take a GL String and return a list of phased alleles
    """
    phased_list = []
    for phased in re.split(r'[+|^\]', glstring):
        if "~" in phased:
            phased_list.append(phased)
    return phased_list