The mean sample is subtracted from all samples in the data matrix. The features in the centred matrix all have zero mean.
Arguments
- mode
(character) Mode of action. Allowed values are limited to the following:
"data"
: Centring is applied to the data block."sample_meta"
: Centring is applied to the sample_meta block."both"
: Centring is applied to both the data and the sample_meta blocks.
The default is
"data"
.- ...
Additional slots and values passed to
struct_class
.
Value
A mean_centre
object with the following output
slots:
centred | (DatasetExperiment) |
mean_data | (numeric) |
mean_sample_meta | (numeric) |