Anthony-Nolan / Atlas

A free & open-source Donor Search Algorithm Service
GNU General Public License v3.0
9 stars 5 forks source link

Only fetch Haplotype Frequencies when subject is not high res typed #1135

Closed zabeen closed 5 months ago

zabeen commented 9 months ago

This will save some memory when dealing with high res typed subjects - in this case, the single genotype is generated from their HLA and assigned a likelihood of 1, and HFs are not used.

https://github.com/Anthony-Nolan/Atlas/blob/7bc7eb45e5eef7689ece727caba127e99ff34c0b/Atlas.MatchPrediction/Services/CompressedPhenotypeExpansion/CompressedPhenotypeExpander.cs#L77

zabeen commented 9 months ago

Testing

Regression test:

Results: all 4 cases returned the same genotype likelihoods for patients and donors

Testing passed