This function calculates statistical measure(s) for each column in an input matrix. It is an internal function, and it is not intended to be called by users.
Usage
computeColMeasures(
x,
rows = NULL,
score = c("sum", "weightedSum", "mean", "trimmedMean", "weightedMean", "median",
"mode", "midrange", "midhinge", "trimean", "iqm", "iqr", "mad", "aad", "ssgsea",
"gsva", "plage", "zscore"),
na.rm = TRUE,
...
)
Arguments
- x
a numerical matrix features-by-samples
- rows
(optional) numerical vector giving the rows in
x
or character vector matching the row names inx
to operate over. Ifmissing
orrows = NULL
, all the rows inx
are considered for the computation of the measures- score
character string indicating the statistical measure to compute
- na.rm
logical, whether to remove
NA
values fromx
before computation- ...
further arguments to
score
Details
Internally, computeColMeasures
uses these
functions to compute the measures:
"sum"
"weightedSum"
"mean"
"trimmedMean"
"weightedMean"
"median"
"mode"
"midrange"
"midhinge"
"trimean"
"iqr"
"iqm"
"mad"
"aad"
"ssgsea"
"gsva"
"plage"
"zscore"
Look at the different functions to know which specific
arguments they accept (arguments can be passed via the
...
parameter).