public class TargetMetricsCollector.PerUnitTargetMetricCollector extends java.lang.Object implements PerUnitMetricCollector<METRIC_TYPE,java.lang.Integer,htsjdk.samtools.SAMRecord>
| Constructor and Description |
|---|
TargetMetricsCollector.PerUnitTargetMetricCollector(java.lang.String probeSetName,
java.util.Set<htsjdk.samtools.util.Interval> coverageTargets,
java.lang.String sample,
java.lang.String library,
java.lang.String readGroup,
long probeTerritory,
long targetTerritory,
long genomeSize,
java.util.Map<htsjdk.samtools.util.Interval,java.lang.Double> intervalToGc)
Constructor that parses the squashed reference to genome reference file and stores the
information in a map for later use.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptRecord(htsjdk.samtools.SAMRecord rec)
Adds information about an individual SAMRecord to the statistics.
|
void |
addMetricsToFile(htsjdk.samtools.metrics.MetricsFile<METRIC_TYPE,java.lang.Integer> hsMetricsComparableMetricsFile)
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 |
setBaitSetName(java.lang.String name)
Sets the name of the bait set explicitly instead of inferring it from the bait file.
|
void |
setPerTargetOutput(java.io.File perTargetOutput)
If set, the metrics collector will output per target coverage information to this file.
|
public TargetMetricsCollector.PerUnitTargetMetricCollector(java.lang.String probeSetName,
java.util.Set<htsjdk.samtools.util.Interval> coverageTargets,
java.lang.String sample,
java.lang.String library,
java.lang.String readGroup,
long probeTerritory,
long targetTerritory,
long genomeSize,
java.util.Map<htsjdk.samtools.util.Interval,java.lang.Double> intervalToGc)
public void setPerTargetOutput(java.io.File perTargetOutput)
public void setBaitSetName(java.lang.String name)
public void acceptRecord(htsjdk.samtools.SAMRecord rec)
acceptRecord in interface PerUnitMetricCollector<METRIC_TYPE extends MultilevelMetrics,java.lang.Integer,htsjdk.samtools.SAMRecord>rec - Contains SAMRecord, SAMReadGroupRecord, ReferenceSequence of current record and any previously
computed values that might be needed for this classpublic void finish()
PerUnitMetricCollectorfinish in interface PerUnitMetricCollector<METRIC_TYPE extends MultilevelMetrics,java.lang.Integer,htsjdk.samtools.SAMRecord>public void addMetricsToFile(htsjdk.samtools.metrics.MetricsFile<METRIC_TYPE,java.lang.Integer> hsMetricsComparableMetricsFile)
PerUnitMetricCollectoraddMetricsToFile in interface PerUnitMetricCollector<METRIC_TYPE extends MultilevelMetrics,java.lang.Integer,htsjdk.samtools.SAMRecord>hsMetricsComparableMetricsFile - MetricsFile to which all metrics created by this collector should be added