Package picard.analysis
Class CollectQualityYieldMetrics.QualityYieldMetrics
java.lang.Object
htsjdk.samtools.metrics.MetricBase
picard.analysis.MergeableMetricBase
picard.analysis.CollectQualityYieldMetrics.QualityYieldMetrics
- Enclosing class:
CollectQualityYieldMetrics
@DocumentedFeature(groupName="Metrics",
summary="Metrics")
public static class CollectQualityYieldMetrics.QualityYieldMetrics
extends MergeableMetricBase
A set of metrics used to describe the general quality of a BAM file
-
Nested Class Summary
Nested classes/interfaces inherited from class picard.analysis.MergeableMetricBase
MergeableMetricBase.MergeByAdding, MergeableMetricBase.MergeByAssertEquals, MergeableMetricBase.MergingIsManual, MergeableMetricBase.NoMergingIsDerived, MergeableMetricBase.NoMergingKeepsValue -
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe total number of bases in all PF readslongThe number of bases in PF reads that achieve quality score 20 or higherlongThe sum of quality scores of all bases in PF reads divided by 20longThe number of bases in PF reads that achieve quality score 30 or higherlongThe number of reads that are PF - pass filterlongThe number of bases in all reads that achieve quality score 20 or higherlongThe sum of quality scores of all bases divided by 20longThe number of bases in all reads that achieve quality score 30 or higherintThe average read length of all the readslongThe total number of bases in all readslongThe total number of reads in the input fileprotected final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPlaceholder method that will calculate the derived fields from the other ones.merge(MergeableMetricBase other) Merge another metric into this oneMethods inherited from class picard.analysis.MergeableMetricBase
canMerge, merge, mergeIfCanMethods inherited from class htsjdk.samtools.metrics.MetricBase
equals, hashCode, toString
-
Field Details
-
TOTAL_READS
public long TOTAL_READSThe total number of reads in the input file -
PF_READS
public long PF_READSThe number of reads that are PF - pass filter -
READ_LENGTH
public int READ_LENGTHThe average read length of all the reads -
TOTAL_BASES
public long TOTAL_BASESThe total number of bases in all reads -
PF_BASES
public long PF_BASESThe total number of bases in all PF reads -
Q20_BASES
public long Q20_BASESThe number of bases in all reads that achieve quality score 20 or higher -
PF_Q20_BASES
public long PF_Q20_BASESThe number of bases in PF reads that achieve quality score 20 or higher -
Q30_BASES
public long Q30_BASESThe number of bases in all reads that achieve quality score 30 or higher -
PF_Q30_BASES
public long PF_Q30_BASESThe number of bases in PF reads that achieve quality score 30 or higher -
Q20_EQUIVALENT_YIELD
public long Q20_EQUIVALENT_YIELDThe sum of quality scores of all bases divided by 20 -
PF_Q20_EQUIVALENT_YIELD
public long PF_Q20_EQUIVALENT_YIELDThe sum of quality scores of all bases in PF reads divided by 20 -
useOriginalQualities
protected final boolean useOriginalQualities
-
-
Constructor Details
-
QualityYieldMetrics
public QualityYieldMetrics() -
QualityYieldMetrics
public QualityYieldMetrics(boolean useOriginalQualities)
-
-
Method Details
-
calculateDerivedFields
public void calculateDerivedFields()Description copied from class:MergeableMetricBasePlaceholder method that will calculate the derived fields from the other ones. Classes that are derived from non-trivial derived classes should consider calling super.calculateDerivedFields() as well. Fields whose value will change due to this method should be annotated withNoMergingKeepsValue.- Overrides:
calculateDerivedFieldsin classMergeableMetricBase
-
merge
Description copied from class:MergeableMetricBaseMerge another metric into this one- Overrides:
mergein classMergeableMetricBase- Parameters:
other- metric to merge into this one.
-