public class BclQualityEvaluationStrategy
extends java.lang.Object
BclReader
s running in separate threads.
To replicate the functionality of BclReader
s prior to the introduction of this class, create a single instance passing
ILLUMINA_ALLEGED_MINIMUM_QUALITY
to the constructor, and then call assertMinimumQualities()
once the readers finish
their work.Modifier and Type | Field and Description |
---|---|
static int |
ILLUMINA_ALLEGED_MINIMUM_QUALITY |
Constructor and Description |
---|
BclQualityEvaluationStrategy(int minimumRevisedQuality) |
Modifier and Type | Method and Description |
---|---|
void |
assertMinimumQualities()
Reviews the qualities observed thus far and throws an exception if any are below the minimum quality threshold.
|
java.util.Map<java.lang.Byte,java.lang.Integer> |
getPoorQualityFrequencies()
Returns a view of number of qualities that failed, where the key is the quality score and the value is the number of observations.
|
byte |
reviseAndConditionallyLogQuality(byte quality)
Accepts a quality read from a BCL file and (1) returns a 1 if the value was 0 and (2) makes a note of the provided quality if it is
low.
|
public static final int ILLUMINA_ALLEGED_MINIMUM_QUALITY
public BclQualityEvaluationStrategy(int minimumRevisedQuality)
minimumRevisedQuality
- The minimum quality that should be seen from revised qualities; controls whether or not an exception
is thrown when calling assertMinimumQualities()
public byte reviseAndConditionallyLogQuality(byte quality)
quality
- The quality score read from the BCLpublic void assertMinimumQualities()
public java.util.Map<java.lang.Byte,java.lang.Integer> getPoorQualityFrequencies()