Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Fixing problem with left-trimming variants (#99)
Browse files Browse the repository at this point in the history
Closes: #99
Related-Issue: #99
Projected-Results-Impact: require-revalidation
  • Loading branch information
holtgrewe committed Oct 11, 2023
1 parent 3da0bc3 commit 5a46f9f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private VariantDescription shiftLeft(VariantDescription desc) {
while (anyChange) {
anyChange = false;

// Trim left-most nucletoide
// Trim right-most nucletoide
if (ref.length() > 0
&& alt.length() > 0
&& ref.charAt(ref.length() - 1) == alt.charAt(alt.length() - 1)) {
Expand Down Expand Up @@ -103,6 +103,7 @@ private VariantDescription trimBasesLeft(VariantDescription desc, int minSize) {
if (ref.length() > minSize && alt.length() > minSize && ref.charAt(0) == alt.charAt(0)) {
ref = ref.substring(1);
alt = alt.substring(1);
start += 1;
} else {
break;
}
Expand Down

0 comments on commit 5a46f9f

Please sign in to comment.