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)
}
YuLab-SMU/clusterProfiler documentation built on Nov. 3, 2024, 9:38 p.m.