R/dplyr-filter.R

Defines functions filter.compareClusterResult filter.enrichResult

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


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

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