R/dplyr-slice.R

Defines functions slice.compareClusterResult slice.enrichResult

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

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

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