R/aov.r

Defines functions aov.dl

Documented in aov.dl

#' Perform an analysis of variance to select genes for the DeLorean model.
#'
#' @param dl DeLorean object.
#'
#' @export
#'
aov.dl <- function(dl) {
  dl$aov <- melt.expr(dl) %>%
    dplyr::left_join(dl$cell.meta) %>%
    dplyr::group_by(gene) %>%
    dplyr::do(broom::tidy(aov(x ~ capture, .))) %>%
    dplyr::ungroup() %>%
    dplyr::filter(term == 'capture') %>%
    dplyr::arrange(p.value)
  dl
}

Try the DeLorean package in your browser

Any scripts or data that you put into this service are public.

DeLorean documentation built on May 2, 2019, 9:24 a.m.