gsvaParam-class | R Documentation |
gsvaParam
classS4 class for GSVA method parameter objects.
Objects of class gsvaParam
contain the parameters for running
the GSVA
method.
gsvaParam(
exprData,
geneSets,
assay = NA_character_,
annotation = NULL,
minSize = 1,
maxSize = Inf,
kcdf = c("auto", "Gaussian", "Poisson", "none"),
kcdfNoneMinSampleSize = 200,
tau = 1,
maxDiff = TRUE,
absRanking = FALSE,
sparse = TRUE,
checkNA = c("auto", "yes", "no"),
use = c("everything", "all.obs", "na.rm")
)
## S4 replacement method for signature 'gsvaRanksParam,GsvaGeneSets'
geneSets(object) <- value
exprData |
The expression data set. Must be one of the classes
supported by |
geneSets |
The gene sets. Must be one of the classes supported by
|
assay |
Character vector of length 1. The name of the assay to use in
case |
annotation |
An object of class If the default value |
minSize |
Numeric vector of length 1. Minimum size of the resulting gene sets after gene identifier mapping. By default, the minimum size is 1. |
maxSize |
Numeric vector of length 1. Maximum size of the resulting gene
sets after gene identifier mapping. By default, the maximum size is |
kcdf |
Character vector of length 1 denoting the kernel to use during
the non-parametric estimation of the empirical cumulative distribution
function (ECDF) of expression levels across samples. The value |
kcdfNoneMinSampleSize |
Integer vector of length 1. When |
tau |
Numeric vector of length 1. The exponent defining the weight of
the tail in the random walk performed by the |
maxDiff |
Logical vector of length 1 which offers two approaches to calculate the enrichment statistic (ES) from the KS random walk statistic.
|
absRanking |
Logical vector of length 1 used only when |
sparse |
Logical vector of length 1 used only when the input expression
data in |
checkNA |
Character vector of length 1 specifying whether the input
expression data should be checked for the presence of missing ( |
use |
Character vector of length 1 specifying a policy for dealing with
missing values ( |
object |
For the replacement method, an object of class
|
value |
For the replacement method, an object of the classes supported by
|
In addition to the common parameter slots inherited from [GsvaMethodParam]
,
this class has slots for the six method-specific parameters of the GSVA
method described below.
In addition to a number of parameters shared with all methods
implemented by package GSVA, GSVA
takes six method-specific parameters.
All of these parameters are described in detail below.
A new gsvaParam
object.
kcdf
Character vector of length 1 denoting the kernel to use during
the non-parametric estimation of the empirical cumulative distribution
function (ECDF) of expression levels across samples. The value kcdf="auto"
will allow GSVA to automatically choose one of the possible values. The
value kcdf="Gaussian"
is suitable when input expression values are
continuous, such as microarray fluorescent units in logarithmic scale,
RNA-seq log-CPMs, log-RPKMs, or log-TPMs. When input expression values are
integer counts, such as those derived from RNA-seq experiments, then this
argument should be set to kcdf="Poisson"
. When we do not want to use a
kernel approach for the estimation of the ECDF, then we should set
kcdf="none"
.
kcdfNoneMinSampleSize
Integer vector of length 1. When kcdf="auto"
,
this parameter decides at what minimum sample size kcdf="none"
, i.e., the
estimation of the empirical cumulative distribution function (ECDF) of
expression levels across samples is performed directly without using a
kernel; see the kcdf
slot.
tau
Numeric vector of length 1. The exponent defining the weight of the tail in the random walk performed by the GSVA (Hänzelmann et al., 2013) method.
maxDiff
Logical vector of length 1 which offers two approaches to calculate the enrichment statistic (ES) from the KS random walk statistic.
FALSE
: ES is calculated as the maximum distance of the random walk from 0.
TRUE
: ES is calculated as the magnitude difference between
the largest positive and negative random walk deviations.
absRanking
Logical vector of length 1 used only when maxDiff=TRUE
.
When absRanking=FALSE
a modified Kuiper statistic is used to calculate
enrichment scores, taking the magnitude difference between the largest
positive and negative random walk deviations. When absRanking=TRUE
the
original Kuiper statistic that sums the largest positive and negative
random walk deviations, is used. In this latter case, gene sets with genes
enriched on either extreme (high or low) will be regarded as ’highly’
activated.
sparse
Logical vector of length 1 used only when the input expression
data in exprData
is stored in a sparse matrix (e.g., a dgCMatrix
or a
container object, such as a SingleCellExperiment
, storing the expression
data in a dgCMatrix
).
In such a case, when sparse=TRUE
, a sparse version of the GSVA algorithm
will be applied. Otherwise, when sparse=FALSE
, the classical version of
the GSVA algorithm will be used.
checkNA
Character vector of length 1. One of the strings "auto"
(default), "yes"
, or "no"
, which refer to whether the input expression
data should be checked for the presence of missing (NA
) values.
didCheckNA
Logical vector of length 1, indicating whether the input
expression data was checked for the presence of missing (NA
) values.
anyNA
Logical vector of length 1, indicating whether the input
expression data contains missing (NA
) values.
use
Character vector of length 1. One of the strings "everything"
(default), "all.obs"
, or "na.rm"
, which refer to three different policies
to apply in the presence of missing values in the input expression data; see
ssgseaParam
.
Hänzelmann, S., Castelo, R. and Guinney, J. GSVA: Gene set variation analysis for microarray and RNA-Seq data. BMC Bioinformatics, 14:7, 2013. DOI
GsvaExprData
,
GsvaGeneSets
,
GsvaMethodParam
,
plageParam
,
zscoreParam
,
ssgseaParam
library(GSVA)
library(GSVAdata)
data(leukemia)
data(c2BroadSets)
## for simplicity, use only a subset of the sample data
ses <- leukemia_eset[1:1000, ]
gsc <- c2BroadSets[1:100]
gp1 <- gsvaParam(ses, gsc)
gp1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.