def step_impl(context):
    mapper = LeaderMapper()
    match = HlaBGenotypeMatch(context.genotype_patient,
                              context.genotypes_donors)
    match_status_info = mapper.get_match_status_info(match)
    context.match_statuses = ",".join(
        [subj["leader_match_status"] for subj in match_status_info])
예제 #2
0
def step_impl(context):
    mapper = LeaderMapper()
    match = HlaBGenotypeMatch(context.genotype_patient,
                              context.genotypes_donors)
    match_status_info = mapper.get_match_status_info(match)
    context.rank_list = ",".join(
        [str(subj["rank"]) for subj in match_status_info])
def step_impl(context):
    mapper = LeaderMapper()
    match_status_info = mapper.get_match_status_info(context.genotype_match)[0]
    context.match_status = match_status_info["leader_match_status"] or "invalid"