Main Content

sampleData

Class: bioma.ExpressionSet
Namespace: bioma

Retrieve or set sample metadata in ExpressionSet object

Syntax

MetaDataObj = sampleData(ESObj)
NewESObj = sampleData(ESObj, NewMetaDataObj)

Description

MetaDataObj = sampleData(ESObj) returns a MetaData object containing the sample metadata from an ExpressionSet object.

NewESObj = sampleData(ESObj, NewMetaDataObj) replaces the sample metadata in ESObj, an ExpressionSet object, with NewMetaDataObj, and returns NewESObj, a new ExpressionSet object.

Input Arguments

ESObj

Object of the bioma.ExpressionSet class.

NewMetaDataObj

Object of the bioma.data.MetaData class, containing sample metadata, stored in two dataset arrays. The sample names and variable names in NewMetaDataObj must match the sample names and variable names in the MetaDataObj being replaced in the ExpressionSet object, ESObj.

Output Arguments

MetaDataObj

Object of the bioma.data.MetaData class, containing the sample metadata, stored in two dataset arrays.

NewESObj

Object of the bioma.ExpressionSet class, returned after replacing the MetaData object containing the sample metadata.

Examples

Construct an ExpressionSet object, ESObj, as described in the Examples section of the bioma.ExpressionSet class reference page. Retrieve the MetaData object that contains sample metadata, stored in the ExpressionSet object:

% Retrieve the sample data 
NewMDObj = sampleData(ESObj);