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:
  • patient (HLAPair) – Patient HLAPair containing two HLA alleles.

  • donor (HLAPair) – Donor HLAPair containing two HLA alleles.

Returns:

MatchResult object storing allele-level match categories and all ARD and molecular refinements for the optimal pairing.

Return type:

MatchResult

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