Package Utils
Class ProbToCall
- java.lang.Object
-
- Utils.ProbToCall
-
public class ProbToCall extends java.lang.Object
Converts genotype probabilities to a called genotype
-
-
Constructor Summary
Constructors Constructor Description ProbToCall()
Default constructor - always calls a genotype, no matter the probability of the most probable genotypeProbToCall(double minProb)
Creates an instance that will only call a genotype if the most probable genotype has a probability greater than the minProb
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[][]
call(double[][][] probs)
Call a table of genotypesjava.util.List<SingleGenotypeCall>
call(java.util.List<SingleGenotypeProbability> probs)
Call a list of genotypesbyte
callSingle(double[] prob)
Call a single genotype
-
-
-
Constructor Detail
-
ProbToCall
public ProbToCall()
Default constructor - always calls a genotype, no matter the probability of the most probable genotype
-
ProbToCall
public ProbToCall(double minProb)
Creates an instance that will only call a genotype if the most probable genotype has a probability greater than the minProb- Parameters:
minProb
- Minimum probability at which to call a genotype
-
-
Method Detail
-
callSingle
public byte callSingle(double[] prob)
Call a single genotype- Parameters:
prob
- Genotype probabilities- Returns:
- The called genotype
-
call
public byte[][] call(double[][][] probs)
Call a table of genotypes- Parameters:
probs
- Table of genotype probabilities- Returns:
- Table of called genotypes
-
call
public java.util.List<SingleGenotypeCall> call(java.util.List<SingleGenotypeProbability> probs)
Call a list of genotypes- Parameters:
probs
- List og genotype probabilities- Returns:
- List of called genotypes
-
-