Class DominantLogLikelihood

java.lang.Object
org.gorpipe.gor.gava.GavaLogLikelihood
org.gorpipe.gor.gava.DominantLogLikelihood

public class DominantLogLikelihood extends GavaLogLikelihood
Log likelihood calculator for dominant variant association.
  • Constructor Details

    • DominantLogLikelihood

      public DominantLogLikelihood()
  • Method Details

    • computeLogLikelihood

      public double computeLogLikelihood(List<org.gorpipe.gor.gava.CollapsedCounts> collapsedCounts, int[] perm, boolean debug)
      Description copied from class: GavaLogLikelihood
      Compute the log-likelihood ratio for a feature. The first numControls subjects in the given permutation are used as controls, and the remaining perm.length-numControls are used as cases.
      Specified by:
      computeLogLikelihood in class GavaLogLikelihood
      Parameters:
      collapsedCounts - the call counts for the subjects (with very rare variants collapsed)
      perm - permutation of the subjects
      debug - if true, print out debug information
      Returns: