Skip to content

Commit

Permalink
Handle ambiguous codon change
Browse files Browse the repository at this point in the history
  • Loading branch information
markquintontulloch committed Nov 6, 2024
1 parent 7d9b6b9 commit 8de39ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public PredictedVariantConsequence validateTranscriptLevelConsequence(VepTxtDTO
String variantAminoAcids = null;
if (StringUtils.isNotBlank(dto.getAminoAcids())) {
String[] refVarAminoAcids = dto.getAminoAcids().split("/");
if (refVarAminoAcids.length == 1 && dto.getConsequence().contains("synonymous_variant")) {
if (refVarAminoAcids.length == 1 && (Objects.equals(dto.getAminoAcids(), "X") || dto.getConsequence().contains("synonymous_variant"))) {
referenceAminoAcids = refVarAminoAcids[0];
variantAminoAcids = refVarAminoAcids[0];
} else if (refVarAminoAcids.length == 2) {
Expand Down

0 comments on commit 8de39ca

Please sign in to comment.