Skip to content

Commit

Permalink
Check for FWD/REV swap
Browse files Browse the repository at this point in the history
  • Loading branch information
seppinho committed Jul 31, 2019
1 parent 157da51 commit ce20a3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/genepi/mut/objects/VariantLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,8 @@ public String toRawString() {

}

// TODO check topFWD == minorREV && topREV == minorFWD
private boolean checkBases(char topFWD, char topREV, char minorFWD, char minorREV) {
return (minorFWD == minorREV && topFWD == topREV);
return (minorFWD == minorREV && topFWD == topREV ) || (topFWD == minorREV && topREV == minorFWD && topBasePercentsFWD >= 0.4 && topBasePercentsFWD <= 0.6);
}

private char detectMinorFWD(double minorPercentage) {
Expand Down

0 comments on commit ce20a3c

Please sign in to comment.