Package Utils

Class 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 genotype
      ProbToCall​(double minProb)
      Creates an instance that will only call a genotype if the most probable genotype has a probability greater than the minProb
    • 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