Skip to content

Commit

Permalink
feat(app): remove lookup matching with phenotype for HLA
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Sep 6, 2024
1 parent 3bfde6f commit 2339939
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions app/lib/common/utilities/genome_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,8 @@ Future<void> updateGenotypeResults() async {
// we know that labData is present because we check this in
// shouldUpdateGenotypeResults
for (final labResult in UserData.instance.labData!) {
final variantAlternatives = [
labResult.variant,
labResult.phenotype.toLowerCase(), // for HLA matching
];
LookupInformation? lookup;
for (final variant in variantAlternatives) {
final potentialLookupMapKey = formatLookupMapKey(labResult.gene, variant);
if (lookupsHashMap.containsKey(potentialLookupMapKey)) {
lookup = lookupsHashMap[potentialLookupMapKey];
break;
}
}
final lookupMapKey = formatLookupMapKey(labResult.gene, labResult.variant);
final lookup = lookupsHashMap[lookupMapKey];
if (lookup == null) continue;
final genotypeResult = GenotypeResult.fromGenotypeData(labResult, lookup);
genotypeResults[genotypeResult.key.value] = genotypeResult;
Expand Down

0 comments on commit 2339939

Please sign in to comment.