Skip to content

Commit

Permalink
Set minimal coverage to 5 (same as in mtDNA-Server)
Browse files Browse the repository at this point in the history
  • Loading branch information
seppinho committed Jan 22, 2019
1 parent c2e5860 commit 5c0099d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/genepi/mut/util/VariantCaller.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ public static double calcLevelTop(VariantLine line) {
}

private static boolean checkAlleleCoverage(VariantLine line, double minorPercentFWD, double minorPercentREV) {
if (line.getTopBasePercentsREV() * line.getCovREV() < 3
|| (line.getTopBasePercentsFWD() * line.getCovFWD()) < 3) {
if (line.getTopBasePercentsREV() * line.getCovREV() <= 5
|| (line.getTopBasePercentsFWD() * line.getCovFWD()) <= 5) {
return false;
}

if ((minorPercentREV * line.getCovREV() < 3) || (line.getTopBasePercentsFWD() * line.getCovFWD()) < 3) {
if ((minorPercentREV * line.getCovREV() <= 5) || (line.getTopBasePercentsFWD() * line.getCovFWD()) <= 5) {
return false;
}

Expand Down

0 comments on commit 5c0099d

Please sign in to comment.