py_hla_match.matching.allele_pair_match
- py_hla_match.matching.allele_pair_match(patient, donor)[source]
Compute research match/mismatch levels for two HLA allele pairs, one in the ‘patient’ role and one in the ‘donor’ role.
Intended for research workflows.
- Parameters:
- Returns:
MatchResultobject storing allele-level match categories and all ARD and molecular refinements for the optimal pairing.- Return type:
Notes
The function assumes that both patient and donor have exactly two
HLA alleles
Uses _get_correct_allele_pairing to evaluate all possible
allele pairings and selects the one with the highest score