Skip to content

Commit

Permalink
added a slightly better read filtering message
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesemery committed Jul 15, 2022
1 parent e81a361 commit 413983a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ public void resetFilteredCount() {
protected static final class CountingAndReadFilter extends CountingBinopReadFilter {

private static final long serialVersionUID = 1L;
private long totalCount = 0;

private CountingAndReadFilter(final CountingReadFilter lhs, final CountingReadFilter rhs) {
super(lhs, rhs);
Expand All @@ -212,6 +213,7 @@ public boolean test(final GATKRead read) {
if (!accept) {
filteredCount++;
}
totalCount++;
return accept;
}

Expand Down Expand Up @@ -249,7 +251,7 @@ private String getSummaryLineForLevelAllAndsSimplified() {
}
}

summaryLine.append(this.getFilteredCount() + " total reads filtered");
summaryLine.append(this.getFilteredCount() + " total reads filtered out of "+ this.totalCount+ " reads processed");

return summaryLine.toString();
}
Expand Down

0 comments on commit 413983a

Please sign in to comment.