scout/parse/variant/genotype.py
def parse_genotypes(variant, individuals, individual_positions):
    """Parse the genotype calls for a variant

        Args:
            variant(cyvcf2.Variant)
            individuals: List[dict]
            individual_positions(dict)
        Returns:
            genotypes(list(dict)): A list of genotypes
    """
    genotypes = []
    for ind in individuals:
        pos = individual_positions[ind['individual_id']]
        genotypes.append(parse_genotype(variant, ind, pos))
    return genotypes
def parse_genotypes(variant, individuals, individual_positions):
    """Parse the genotype calls for a variant

        Args:
            variant(cyvcf2.Variant)
            individuals: List[dict]
            individual_positions(dict)
        Returns:
            genotypes(list(dict)): A list of genotypes
    """
    genotypes = []
    for ind in individuals:
        pos = individual_positions[ind['individual_id']]
        genotypes.append(parse_genotype(variant, ind, pos))
    return genotypes
Parse the genotype calls for a variant

        Args:
            variant(cyvcf2.Variant)
            individuals: List[dict]
            individual_positions(dict)
        Returns:
            genotypes(list(dict)): A list of genotypes