public interface PerUnitMetricCollector<BEAN extends htsjdk.samtools.metrics.MetricBase,HKEY extends java.lang.Comparable,ARGTYPE>
Modifier and Type | Method and Description |
---|---|
void |
acceptRecord(ARGTYPE args)
Add a SAMRecord (with ReferenceSequence and Read Group info) to the metric(s) being calculated)
|
void |
addMetricsToFile(htsjdk.samtools.metrics.MetricsFile<BEAN,HKEY> file)
Any metrics collected will be added to the metric file provided.
|
void |
finish()
When all records have been collected, compute any final values needed to finish constructing metrics/Histogram
|
void acceptRecord(ARGTYPE args)
args
- Contains SAMRecord, SAMReadGroupRecord, ReferenceSequence of current record and any previously
computed values that might be needed for this classvoid finish()