public final class QualityScoreCovariate extends java.lang.Object implements Covariate
Constructor and Description |
---|
QualityScoreCovariate(RecalibrationArgumentCollection RAC) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatKey(int key)
Converts the internal representation of the key to String format for file output.
|
int |
keyFromValue(java.lang.Object value)
Converts an Object key into a long key using only the lowest numberOfBits() bits
Only necessary for on-the-fly recalibration when you have the object, but need to store it in memory in long format.
|
int |
maximumKeyValue()
Returns the maximum value possible for any key representing this covariate
|
void |
recordValues(GATKRead read,
htsjdk.samtools.SAMFileHeader header,
ReadCovariates values,
boolean recordIndelValues)
Calculates covariate values for all positions in the read.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parseNameForReport
public QualityScoreCovariate(RecalibrationArgumentCollection RAC)
public void recordValues(GATKRead read, htsjdk.samtools.SAMFileHeader header, ReadCovariates values, boolean recordIndelValues)
Covariate
recordValues
in interface Covariate
read
- the read to calculate the covariates on.header
- SAM header for the readvalues
- the object to record the covariate values for every base in the read.recordIndelValues
- indicates whether values of the covariate are to be recorded for indelspublic java.lang.String formatKey(int key)
Covariate
public int keyFromValue(java.lang.Object value)
Covariate
keyFromValue
in interface Covariate
value
- the object corresponding to the covariatepublic int maximumKeyValue()
Covariate
maximumKeyValue
in interface Covariate