Skip to content

Commit

Permalink
Fix exon annotation not showing (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinlu3 authored Jan 10, 2025
1 parent 73006f5 commit 63bbd18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ public AlterationAnnotationStatus annotateAlteration(ReferenceGenome referenceGe
alteration.setName(alteration.getAlteration());
}

alterationWithStatus.setMessage(alterationWithEntityStatus.getMessage());
alterationWithStatus.setType(alterationWithEntityStatus.getType());

// update reference genome
if (alteration.getGenes().size() > 0 && PROTEIN_CHANGE.equals(alteration.getType())) {
Gene gene = alteration.getGenes().iterator().next();
Expand Down Expand Up @@ -241,17 +244,13 @@ public AlterationAnnotationStatus annotateAlteration(ReferenceGenome referenceGe
"The reference allele does not match with the transcript. It's supposed to be " + refRe
);
alterationWithStatus.setType(EntityStatusType.WARNING);
return alterationWithStatus;
}
}
}
}
}
}

alterationWithStatus.setMessage(alterationWithEntityStatus.getMessage());
alterationWithStatus.setType(alterationWithEntityStatus.getType());

// Provide annotation for the alteration
// 1. check whether alteration is hotspot
AnnotationDTO annotationDTO = new AnnotationDTO();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import static java.util.regex.Pattern.CASE_INSENSITIVE;
import static org.mskcc.oncokb.curation.domain.enumeration.MutationConsequence.*;
import static org.mskcc.oncokb.curation.domain.enumeration.MutationConsequence.INFRAME_DELETION;

import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -142,8 +141,8 @@ public static ParsingStatus<Alteration> parseInframe(String proteinChange) {
if (m.group(1) != null && m.group(3) == null) {
// we only want to specify reference when it's one position ins/del
alteration.setRefResidues(m.group(1).toUpperCase());
revisedProteinChange += alteration.getRefResidues();
}
revisedProteinChange += alteration.getRefResidues();
alteration.setStart(Integer.valueOf(m.group(2)));
revisedProteinChange += alteration.getStart();
if (m.group(3) != null) {
Expand Down

0 comments on commit 63bbd18

Please sign in to comment.