Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix exon annotation not showing #484

Merged
merged 2 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -139,11 +139,8 @@ public static ParsingStatus<Alteration> parseInframe(String proteinChange) {
Alteration alteration = new Alteration();
String revisedProteinChange = "";
MutationConsequence term = UNKNOWN;
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();
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change requires discussion. Is Y770_G772dup or 770_G772dup valid?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to hgvs nomenclature, the reference allele can be include for multi position change

alteration.setRefResidues(m.group(1).toUpperCase());
revisedProteinChange += alteration.getRefResidues();
alteration.setStart(Integer.valueOf(m.group(2)));
revisedProteinChange += alteration.getStart();
if (m.group(3) != null) {
Expand Down
Loading