Description Usage Arguments Value See Also Examples
View source: R/concatenate_by_features.R
Combines MSnset objects by concatenating features. Samples must be the same and maintained the same. Pheno data also must be the same.
1 | concatenate_by_features(..., tags = NULL)
|
... |
MSnSet objects |
tags |
vector of characters attached to feature names of corresponding MSnSet objects |
MSnSet object with concatenated features
1 2 3 4 5 6 7 8 9 10 11 12 | data(srm_msnset)
dim(msnset)
featureNames(msnset)
msnset3 <- msnset2 <- msnset
# Z-score transform
exprs(msnset2) <- sweep(exprs(msnset2), 1, apply(exprs(msnset2), 1, sd), '/')
# retaining just the sign
exprs(msnset3) <- ifelse(exprs(msnset3) > 0, 1, -1)
m <- concatenate_by_features(msnset, msnset2, msnset3,
tags=c("_ori","_zsc","_sgn"))
dim(m)
featureNames(m)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.