Skip to content

Commit

Permalink
Fixes...
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeiferd committed Jan 30, 2025
1 parent 613eaa6 commit ece8912
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ protected void doLog() {
double totalHours = totalTime == -1 ? -1 : totalTime / 1000 / 60 / 60;
logger.trace("Progress for fastq: " + currentFastq);
logger.trace("Elapsed hours: " + diff / 1000 / 60 / 60);
if (totalHours != -1) {
if (totalHours != -1 && !Double.isNaN(totalHours) && !Double.isInfinite(totalHours)) {
logger.trace("Estimated total hours: " + totalHours);
}
}
Expand All @@ -137,7 +137,7 @@ protected void doLog() {
double totalHours = totalTime == -1 ? -1 : totalTime / 1000 / 60 / 60;
logger.trace("Total progress: ");
logger.trace("Elapsed hours: " + diff / 1000 / 60 / 60);
if (totalHours != -1) {
if (totalHours != -1 && !Double.isNaN(totalHours) && !Double.isInfinite(totalHours)) {
logger.trace("Estimated total hours: " + totalHours);
}
logger.trace("Reads processed: " + (totalReads + reads));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void printMatchResult(MatchingResult res, PrintStream out, Database wrapp
if (estimator != null) {
out.print("db coverage;normalized kmers;exp. unique kmers;unique kmers / exp.;quality prediction;");
}
out.print("normalized reads; reads >= 1 kmer; normalized reads >= 1 kmer; reads >= 1 kmer bps; avg read >= 1 kmer len; normalized reads >= 1 kmer * avg len;");
out.print("normalized reads; reads >= 1 kmer; normalized reads >= 1 kmer; reads >= 1 kmer bps; avg read >= 1 kmer len; normalized reads * avg len;");
if (res.isWithMaxKMerCounts()) {
out.print("max kmer counts;");
}
Expand Down Expand Up @@ -231,7 +231,7 @@ public void printMatchResult(MatchingResult res, PrintStream out, Database wrapp
double avg1 = ((double) stats.getReads1KmerBPs()) / stats.getReads1Kmer();
out.print(DF.format(avg1));
out.print(';');
out.print(DF.format(n1 * avg1));
out.print(DF.format(nreads * avg1));
out.print(';');
if (res.isWithMaxKMerCounts()) {
short[] counts = stats.getMaxKMerCounts();
Expand Down

0 comments on commit ece8912

Please sign in to comment.