1.5 Create MSnSet
The create_msnset
function can be used to easily create an MSnSet from the cross-tab and samples tables. More details about MSnSets will be added in a separate section at a later date. For now, read the documentation with help("MSnSet")
or ?MSnSet
.
# Create MSnSet
<- create_msnset(crosstab = crosstab, samples = samples)
m1 m1
## MSnSet (storageMode: lockedEnvironment)
## assayData: 5173 features, 18 samples
## element names: exprs
## protocolData: none
## phenoData
## sampleNames: S1_1 S1_2 ... S2_9 (18 total)
## varLabels: ReporterName PlexID ... MeasurementName (5 total)
## varMetadata: labelDescription
## featureData: none
## experimentData: use 'experimentData(object)'
## Annotation:
## - - - Processing information - - -
## MSnbase version: 2.22.0
# Save global MSnSet
save(m1, file = "data/global_msnset.RData", compress = TRUE)