py_hla_match.matching.allele_match
- py_hla_match.matching.allele_match(hla1, hla2)[source]
Compares two HLA alleles and returns a MatchLevel
- Parameters:
- Returns:
MatchLevel enum value indicating position of matches and mismatch (cf. HLA nomenclature)
- Raises:
TypeError – If hla1 or hla2 is not an instance of HLA
InvalidLocusComparisonError – If hla1 and hla2 have incompatible loci
- Return type: