R/dplyr-mutate.R

Defines functions mutate.compareClusterResult mutate.enrichResult

##' @method mutate enrichResult
##' @importFrom dplyr mutate
##' @importFrom rlang quos
##' @export
##' @author Guangchuang Yu 
mutate.enrichResult <- function(.data, ...) {
    dots <- quos(...)
    .data@result %<>% mutate(!!!dots)
    return(.data)
}

##' @method mutate gseaResult
##' @export
mutate.gseaResult <- mutate.enrichResult


##' @method mutate compareClusterResult
##' @export
mutate.compareClusterResult <- function(.data, ...) {
    dots <- quos(...)
    .data@compareClusterResult %<>% mutate(!!!dots)
    return(.data)
}

Try the clusterProfiler package in your browser

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

clusterProfiler documentation built on Feb. 11, 2021, 2:02 a.m.