CollectWgsMetrics.WgsMetricsCollector, FastWgsMetricsCollectorpublic abstract class AbstractWgsMetricsCollector<T extends htsjdk.samtools.util.AbstractRecordAndOffset> extends Object
The shared code for forming result for CollectWgsMetrics is abstracted into this class. Classes that extend this collector implement their logic in addInfo() method.
| Modifier and Type | Field | Description |
|---|---|---|
protected long |
counter |
The number of processed genomic bases
|
protected int |
coverageCap |
Positions with coverage exceeding this value are treated as if they had coverage at this value
|
protected long[] |
highQualityDepthHistogramArray |
Count of sites with a given depth of coverage.
|
protected htsjdk.samtools.util.IntervalList |
intervals |
|
protected long[] |
unfilteredBaseQHistogramArray |
Count of bases observed with a given base quality.
|
protected long[] |
unfilteredDepthHistogramArray |
Count of sites with a given depth of coverage.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addBaseQHistogram(htsjdk.samtools.metrics.MetricsFile<CollectWgsMetrics.WgsMetrics,Integer> file) |
|
abstract void |
addInfo(htsjdk.samtools.util.AbstractLocusInfo<T> info,
htsjdk.samtools.reference.ReferenceSequence ref,
boolean referenceBaseN) |
Accumulates the data from AbstractLocusInfo in inner structures
|
void |
addToMetricsFile(htsjdk.samtools.metrics.MetricsFile<CollectWgsMetrics.WgsMetrics,Integer> file,
boolean includeBQHistogram,
CountingFilter dupeFilter,
CountingFilter mapqFilter,
CountingPairedFilter pairFilter) |
Adds collected metrics and depth histogram to file
|
protected htsjdk.samtools.util.Histogram<Integer> |
getHighQualityDepthHistogram() |
|
protected htsjdk.samtools.util.Histogram<Integer> |
getHistogram(long[] array,
String binLabel,
String valueLabel) |
|
protected CollectWgsMetrics.WgsMetrics |
getMetrics(CountingFilter dupeFilter,
CountingFilter mapqFilter,
CountingPairedFilter pairFilter) |
Creates CollectWgsMetrics.WgsMetrics - the object holding the result of CollectWgsMetrics
|
protected htsjdk.samtools.util.Histogram<Integer> |
getUnfilteredBaseQHistogram() |
|
protected htsjdk.samtools.util.Histogram<Integer> |
getUnfilteredDepthHistogram() |
|
void |
setCounter(long counter) |
Sets the counter to the current number of processed loci.
|
protected final long[] unfilteredDepthHistogramArray
protected final long[] unfilteredBaseQHistogramArray
protected final long[] highQualityDepthHistogramArray
protected final int coverageCap
protected final htsjdk.samtools.util.IntervalList intervals
protected long counter
public abstract void addInfo(htsjdk.samtools.util.AbstractLocusInfo<T> info, htsjdk.samtools.reference.ReferenceSequence ref, boolean referenceBaseN)
info - AbstractLocusInfo with aligned to reference position readsref - ReferenceSequencereferenceBaseN - true if current the value of reference base represents a no callpublic void addToMetricsFile(htsjdk.samtools.metrics.MetricsFile<CollectWgsMetrics.WgsMetrics,Integer> file, boolean includeBQHistogram, CountingFilter dupeFilter, CountingFilter mapqFilter, CountingPairedFilter pairFilter)
file - MetricsFile for result of collector's workdupeFilter - counting filter for duplicate readsmapqFilter - counting filter for mapping qualitypairFilter - counting filter for reads without a mapped mate pairprotected void addBaseQHistogram(htsjdk.samtools.metrics.MetricsFile<CollectWgsMetrics.WgsMetrics,Integer> file)
protected htsjdk.samtools.util.Histogram<Integer> getHighQualityDepthHistogram()
protected htsjdk.samtools.util.Histogram<Integer> getUnfilteredDepthHistogram()
protected htsjdk.samtools.util.Histogram<Integer> getUnfilteredBaseQHistogram()
protected htsjdk.samtools.util.Histogram<Integer> getHistogram(long[] array, String binLabel, String valueLabel)
protected CollectWgsMetrics.WgsMetrics getMetrics(CountingFilter dupeFilter, CountingFilter mapqFilter, CountingPairedFilter pairFilter)
dupeFilter - counting filter for duplicate readsmapqFilter - counting filter for mapping qualitypairFilter - counting filter for reads without a mapped mate pairpublic void setCounter(long counter)
counter - number of processed loci