public class TargetMetricsCollector.PerUnitTargetMetricCollector extends java.lang.Object implements PerUnitMetricCollector<METRIC_TYPE,java.lang.Integer,htsjdk.samtools.SAMRecord>
| Constructor and Description |
|---|
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,
int minimumMappingQuality,
int minimumBaseQuality,
boolean clipOverlappingReads)
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 record)
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 |
setPerBaseOutput(java.io.File perBaseOutput)
Sets the (optional) File to write per-base coverage information to.
|
void |
setPerTargetOutput(java.io.File perTargetOutput)
Sets the (optional) File to write per-target coverage information to.
|
public 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,
int minimumMappingQuality,
int minimumBaseQuality,
boolean clipOverlappingReads)
public void setPerTargetOutput(java.io.File perTargetOutput)
public void setPerBaseOutput(java.io.File perBaseOutput)
public void setBaitSetName(java.lang.String name)
public void acceptRecord(htsjdk.samtools.SAMRecord record)
acceptRecord in interface PerUnitMetricCollector<METRIC_TYPE extends MultilevelMetrics,java.lang.Integer,htsjdk.samtools.SAMRecord>record - 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