def get_dosage(haps: list, alleles: list) -> list:
    """
    Get index for GT fiels for a given sample

    Args:
        haps (list): possible haplotypes
        alleles (list): alleles

    Returns:
        list: sample dosages for each allele
    """
    return [alleles.index(s) for s in haps]