Class RegularLogLikelihood


  • public class RegularLogLikelihood
    extends GavaLogLikelihood
    Log likelihood calculator for regular variant association.
    • Constructor Detail

      • RegularLogLikelihood

        public RegularLogLikelihood()
    • Method Detail

      • computeLogLikelihood

        public double computeLogLikelihood​(java.util.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: