public final class QualityUtil
extends java.lang.Object
Constructor and Description |
---|
QualityUtil() |
Modifier and Type | Method and Description |
---|---|
static double |
getErrorProbabilityFromPhredScore(int i)
Given a phred score between 0 and 100 returns the probability of error.
|
static int |
getPhredScoreFromErrorProbability(double probability)
Gets the phred score for any given probability of error.
|
static int |
getPhredScoreFromObsAndErrors(double observations,
double errors)
Gets the phred score given the specified observations and errors.
|
static double |
sumOfErrorProbabilities(SAMRecord rec)
Calculates the sum of error probabilities for all read bases in the SAM record.
|
public static double getErrorProbabilityFromPhredScore(int i)
public static int getPhredScoreFromErrorProbability(double probability)
public static int getPhredScoreFromObsAndErrors(double observations, double errors)
public static double sumOfErrorProbabilities(SAMRecord rec)