Package picard.analysis
Class FastWgsMetricsCollector
- java.lang.Object
-
- picard.analysis.AbstractWgsMetricsCollector<htsjdk.samtools.util.EdgingRecordAndOffset>
-
- picard.analysis.FastWgsMetricsCollector
-
public class FastWgsMetricsCollector extends AbstractWgsMetricsCollector<htsjdk.samtools.util.EdgingRecordAndOffset>
Class represents fast algorithm for collecting data fromAbstractLocusInfowith a list of alignedEdgingRecordAndOffsetobjects. According to the algorithm we receive only twoEdgingRecordAndOffsetobjects for each alignment block of a read: one for the start of block and one for the end. When meeting aEdgingRecordAndOffsetwith typeEdgingRecordAndOffset.Type.BEGIN, all information from the alignment block is accumulated in the collector, read name is added to a map holding the names of processed reads for detecting overlapping positions. When meeting aEdgingRecordAndOffsetwith typeEdgingRecordAndOffset.Type.END, the read name is removed from the map with names of processed reads.
-
-
Field Summary
-
Fields inherited from class picard.analysis.AbstractWgsMetricsCollector
counter, coverageCap, highQualityDepthHistogramArray, intervals, unfilteredBaseQHistogramArray, unfilteredDepthHistogramArray
-
-
Constructor Summary
Constructors Constructor Description FastWgsMetricsCollector(CollectWgsMetrics collectWgsMetrics, int coverageCap, htsjdk.samtools.util.IntervalList intervals)Creates a collector and initializes the inner data structures
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInfo(htsjdk.samtools.util.AbstractLocusInfo<htsjdk.samtools.util.EdgingRecordAndOffset> info, htsjdk.samtools.reference.ReferenceSequence ref, boolean referenceBaseN)Accumulates the data from AbstractLocusInfo in inner structures-
Methods inherited from class picard.analysis.AbstractWgsMetricsCollector
addBaseQHistogram, addToMetricsFile, getHighQualityDepthHistogram, getHistogram, getMetrics, getUnfilteredBaseQHistogram, getUnfilteredDepthHistogram, setCounter
-
-
-
-
Constructor Detail
-
FastWgsMetricsCollector
public FastWgsMetricsCollector(CollectWgsMetrics collectWgsMetrics, int coverageCap, htsjdk.samtools.util.IntervalList intervals)
Creates a collector and initializes the inner data structures- Parameters:
collectWgsMetrics- CollectWgsMetrics, that creates this collectorcoverageCap- coverage cap
-
-
Method Detail
-
addInfo
public void addInfo(htsjdk.samtools.util.AbstractLocusInfo<htsjdk.samtools.util.EdgingRecordAndOffset> info, htsjdk.samtools.reference.ReferenceSequence ref, boolean referenceBaseN)Description copied from class:AbstractWgsMetricsCollectorAccumulates the data from AbstractLocusInfo in inner structures- Specified by:
addInfoin classAbstractWgsMetricsCollector<htsjdk.samtools.util.EdgingRecordAndOffset>- Parameters:
info-AbstractLocusInfowith aligned to reference position readsref-ReferenceSequencereferenceBaseN- true if current the value of reference base represents a no call
-
-