PROPERLY print out list of intervals and their stats

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5074 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
fromer 2011-01-25 19:20:36 +00:00
parent db2e2cb0ff
commit af79fa629f
1 changed files with 2 additions and 2 deletions

View File

@ -171,9 +171,9 @@ public class CountHetPhasingInIntervalWalker extends RodWalker<Integer, Integer>
for (Map.Entry<String, SingleSampleIntervalStats> sampleStatEntry : sampleToStat.entrySet()) {
SingleSampleIntervalStats stats = sampleStatEntry.getValue();
if (perIntervalOut != null) {
if (perIntervalOut != null && stats.numHetsInCurrentInterval > 0) {
String sample = sampleStatEntry.getKey();
perIntervalOut.print(sample + "\t" + curInterval + "\t" + stats.numPhasedInCurrentInterval + "\t" + stats.numHetsInCurrentInterval + "\t" + stats.firstHetIsPhased);
perIntervalOut.println(sample + "\t" + curInterval + "\t" + stats.numPhasedInCurrentInterval + "\t" + stats.numHetsInCurrentInterval + "\t" + stats.firstHetIsPhased);
}
stats.finalizeStats(); // now, can reset the counters [after print-out]
}