diff --git a/public/java/src/org/broadinstitute/sting/gatk/report/GATKReport.java b/public/java/src/org/broadinstitute/sting/gatk/report/GATKReport.java index 8fbfa96e9..f2291e5ec 100755 --- a/public/java/src/org/broadinstitute/sting/gatk/report/GATKReport.java +++ b/public/java/src/org/broadinstitute/sting/gatk/report/GATKReport.java @@ -177,11 +177,8 @@ public class GATKReport { */ public void print(PrintStream out) { out.println(GATKREPORT_HEADER_PREFIX + getVersion().toString() + SEPARATOR + getTables().size()); - for (GATKReportTable table : tables.values()) { - if (table.getNumRows() > 0) { - table.write(out); - } - } + for (GATKReportTable table : tables.values()) + table.write(out); } public Collection getTables() { diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/bqsr/RecalibrationReport.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/bqsr/RecalibrationReport.java index ce00240b8..897e1645d 100644 --- a/public/java/src/org/broadinstitute/sting/gatk/walkers/bqsr/RecalibrationReport.java +++ b/public/java/src/org/broadinstitute/sting/gatk/walkers/bqsr/RecalibrationReport.java @@ -94,8 +94,11 @@ public class RecalibrationReport { BitSet key = entry.getKey(); RecalDatum otherDatum = entry.getValue(); RecalDatum thisDatum = thisTable.get(key); - thisDatum.increment(otherDatum); // add the two datum objects into 'this' - thisDatum.resetCalculatedQualities(); // reset the empirical quality to make sure the user doesn't forget to recalculate it + if (thisDatum == null) + thisDatum = otherDatum; // sometimes the datum in other won't be present in 'this'. So just assign it! + else + thisDatum.increment(otherDatum); // add the two datum objects into 'this' + thisDatum.resetCalculatedQualities(); // reset the empirical quality to make sure the user doesn't forget to recalculate it } } }