R/dplyr-rename.R

Defines functions rename.compareClusterResult rename.enrichResult

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

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

##' @method rename compareClusterResult
##' @export
rename.compareClusterResult <- function(.data, ...) {
    dots <- quos(...)
    .data@compareClusterResult %<>% rename(!!!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.