-
We were wondering to what extent ATLAS is able to validate the HLA that is coming in with a search and with the donors. We were able to find some code for generating and updating the storage tables and for importing MAC codes and valid alleles, but we haven't been able to find how you are doing MAC code verification itself. This because a MAC code (just the letters) could exist, but when one of its decoded alleles (so including locus and first field) does not exist, it automatically makes this particular HLA typing invalid. How do you check that? Which part of the ATLAS code base takes care of that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Existing MACs that expand to an "invalid" list of alleles would be discovered during lookup of the HLA typing within the HLA metadata dictionary component, causing an invalid HLA exception. This integration test covers the scenario you describe: |
Beta Was this translation helpful? Give feedback.
-
FWIW I believe this is the relevant ADR for this decision https://github.com/Anthony-Nolan/Atlas/blob/master/ArchitecturalDecisionRecord/Phase1/003-MultipleAlleleCodeLookup_Storage.md this ADR covers the differences between Atlas and the old Anthony Nolan algorithm more than it makes this specific decision explicit. I think this line I wonder if it's also worth emphasizing that this approach allows the MAC lookup component to be nomenclature agnostic - as otherwise the expansion of a single MAC/first field/locus could be valid in one nomenclature version, and not the next |
Beta Was this translation helpful? Give feedback.
Existing MACs that expand to an "invalid" list of alleles would be discovered during lookup of the HLA typing within the HLA metadata dictionary component, causing an invalid HLA exception.
This integration test covers the scenario you describe:
Atlas/Atlas.HlaMetadataDictionary.Test/IntegrationTests/Tests/SearchRelatedMetadataServiceTests.cs
Line 59 in dc7b0ec