Package picard.sam.SamErrorMetric
Class SimpleErrorCalculator
- java.lang.Object
-
- picard.sam.SamErrorMetric.BaseErrorCalculator
-
- picard.sam.SamErrorMetric.SimpleErrorCalculator
-
- All Implemented Interfaces:
BaseCalculator
public class SimpleErrorCalculator extends BaseErrorCalculator
A calculator that estimates the error rate of the bases it observes, assuming that the reference is truth.
-
-
Field Summary
Fields Modifier and Type Field Description protected longnMismatchingBases
-
Constructor Summary
Constructors Constructor Description SimpleErrorCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBase(htsjdk.samtools.util.SamLocusIterator.RecordAndOffset recordAndOffset, htsjdk.samtools.reference.SamLocusAndReferenceIterator.SAMLocusAndReference locusAndRef)The function by which new loci are "shown" to the calculatorBaseErrorMetricgetMetric()Returns the metric generated by the observed lociStringgetSuffix()The suffix that pertains to the implementation of aggregation
-
-
-
Method Detail
-
addBase
public void addBase(htsjdk.samtools.util.SamLocusIterator.RecordAndOffset recordAndOffset, htsjdk.samtools.reference.SamLocusAndReferenceIterator.SAMLocusAndReference locusAndRef)The function by which new loci are "shown" to the calculator- Specified by:
addBasein interfaceBaseCalculator- Overrides:
addBasein classBaseErrorCalculator
-
getSuffix
public String getSuffix()
The suffix that pertains to the implementation of aggregation
-
getMetric
public BaseErrorMetric getMetric()
Returns the metric generated by the observed loci
-
-