work/apply_monoclecount.R

#' run_monoclecount
#'
#' This is the description.
#'
#' @param x A description of the parameter 'x'. The
#' @param y A description of the parameter 'y'.
#'
#' @export run_monoclecount

run_monoclecount <- function(L, alpha=0.05) {

		meta <- L$meta
		counts <- L$counts
		model_matrix <- L$design
		contrast <- L$contrast

      mce <- monocle::newCellDataSet(counts,  phenoData=meta,
                            lowerDetectionLimit = 0.5,
                            expressionFamily = monocle::negbinomial.size())

      mce <- monocle::estimateSizeFactors(mon)

      mce <- monocle::estimateDispersions(mce)

      res <- monocle::differentialGeneTest(mce, fullModelFormulaStr = " ~ condition")
    
	  return(res)
}
twesleyb/conquerDE documentation built on Dec. 23, 2021, 1:03 p.m.