return sum;
}
@Override
public void onTraversalDone(Map<Integer, Map<CigarOperator, Long>> result) {
GATKReport report = GATKReport.newSimpleReport("Events", "Position", "Event", "Observations");
for (Map.Entry<Integer, Map<CigarOperator, Long>> entry : result.entrySet()) {
int position = entry.getKey();
Map<CigarOperator, Long> operatorCount = entry.getValue();
for (Map.Entry<CigarOperator, Long> subEntry: operatorCount.entrySet()) {
String operator = subEntry.getKey().name();
Long observations = subEntry.getValue();
report.addRow(position, operator, observations);
}
}
report.print(out);
}