R/GSEA.Threshold.R

Defines functions GSEA.Threshold

Documented in GSEA.Threshold

#' Set thresholds for expression matrix
#'
#' `GSEA.Threshold` sets threshold and ceiling values to pre-process gene expression matrix
#'
#' Internal `GSEA` function.
#'
#' @keywords internal
#'

GSEA.Threshold <-
function(V, thres, ceil) {

 V[V < thres] <- thres
 V[V > ceil] <- ceil
 return(V)
}
GSEA-MSigDB/GSEA_R documentation built on Nov. 30, 2021, 4:50 a.m.