Closed pbashyal-nmdp closed 12 months ago
Should this be invalid? Should this be py-ard's job? Yea, I guess so on both counts.
This is the reference I've found that mentions how "allele specific" codes work.
https://bioinformatics.bethematchclinical.org/hla-resources/allele-codes/allele-code-lists
Allele combinations that contain an expression character (e.g., N = null, S = soluble, L = low expression), or which cross serologic families (e.g., DRB3*01:01/01:02/02:03/02:06) are called "allele specific" codes and can only be used with the locus and allele family that were used when it was initially created.
Should this be invalid? Should this be py-ard's job? Yea, I guess so on both counts.
We currently only use the locus name when it's "allele specific" code. https://github.com/nmdp-bioinformatics/py-ard/blob/master/pyard/ard.py#L569-L576
Expansion rules for allele specific MACs: based on documentation by @bmilius-nmdp
The MAC codes that have allele field expansion should only work with the same antigen field as that in the MAC.
DRB1*07:DFJR
expands toDRB1*15...
,DFJR
for DRB1 should only be valid forDRB1*15:DFJR
DRB1*07:DFJR
should be invalid.