Learn R Programming

IdMappingAnalysis (version 1.16.0)

as.MultiSet.CorrData: Convert CorrData object into MultiSet object

Description

Convert CorrData object into MultiSet object.#

Usage

"as.MultiSet"(this, ...)

Arguments

...
Not used

Value

MultiSet object which assayData contain two matrices corresponding to the transposed data frames (with the mapping identifier column stripped out) encapsulated within the given CorrData object. Due to the nature of the MultiSet object, the sample names of the resulting MultiSet object should be accessed using featureNames() method, and the set of experiment identifiers should be accesed through the call to colnames on the list returned by the assayData() method.

See Also

For more information see CorrData.

Examples

Run this code
 library(Biobase);
 #convert CorrData object to MultiSet
 mset<-as.MultiSet(examples$corrData);
 #get sample names
 samples<-featureNames(mset);
 print(samples);
 #retrieve primary and secondary keys
 annotation(mset);
 #retreive primary and secondary IDs
 uniprotIDs<-colnames(assayData(mset)[[1]]);
 affyIDs<-colnames(assayData(mset)[[2]]);
 uniprotIDs[1:20];
 affyIDs[1:20];
 

Run the code above in your browser using DataLab