Replace matrix dataset within a MultiDataSet object
Source:R/multidataset_utils.R
replace_dataset.Rd
Replaces the matrix for an omics dataset by a new matrix in a MultiDataSet object.
Arguments
- mo_data
A MultiDataSet::MultiDataSet object.
- dataset_name
Character, the name of the dataset for which the matrix data should be changed.
- new_data
Matrix, the new data. Should have features as rows and samples as columns. Rownames should match the corresponding feature IDs, colnames should match the corresponding sample IDs.