Usage
npGSEA(x, y, set, covars = NULL, approx = c("norm", "beta", "chiSq"), w = NULL, epsilonBetaAdj=TRUE, scaleXY=TRUE, uniVarX=TRUE )
Arguments
x
A matrix of expression data or an object of type ExpressionSet.
The columns of x represent samples in a given experiment. The rows are genes.
The names of each row (or featureNames
of the eSet)
must be of the same type (e.g., entrez ids) as the ids of the gene set.
y
A vector containing the treatment for each sample.
The length of y must be more than 4 for the "chisq" approximation.
Each treatment group must have at least two observations for all approximation methods.
There can only be two treatment groups.
covars
A vector or matrix containing covariate(s) of interest, optional
set
A GeneSet
object containing a set of genes of interest or a
GeneSetCollection
object containing a collection of GeneSets
approx
A string of either "norm" (default), "beta" or "chiSq".
If "norm", the normal approximation to the non-permutation GSEA is calculated and returned.
If "beta", the beta approximation is reported. If "chiSq", the Chi-squared approximation to the
permutation GSEA is calculated.
w
A vector or list containing the weights of each gene in the set or sets, optional. If w is a list,
the number of elements in the list must correspond to the number of gene sets in the collection.
epsilonBetaAdj
A boolean indicating whether or to not to use an epsilon adjusted p-value for the Beta approximation.
When TRUE, this prevents observed p-values of 0. The default is TRUE.
scaleXY
A boolean indicating whether or to not to scale x and y. The default is TRUE.
uniVarX
A boolean indicating whether or to not to scale x to have unit variance. The default is TRUE.