Main Content

sampleVarValues

Class: bioma.ExpressionSet
Namespace: bioma

Retrieve or set sample variable values in ExpressionSet object

Syntax

DSVarValues = sampleVarValues(ESObj)
NewESObj = sampleVarValues(ESObj, NewDSVarValues)

Description

DSVarValues = sampleVarValues(ESObj) returns a dataset array containing the measured value of each variable per sample from the MetaData object of an ExpressionSet object.

NewESObj = sampleVarValues(ESObj, NewDSVarValues) replaces the sample variable values in ESObj, an ExpressionSet object, with NewDSVarValues, and returns NewESObj, a new ExpressionSet object.

Input Arguments

ESObj

Object of the bioma.ExpressionSet class.

NewDSVarValues

A new dataset array containing a value for each variable per sample. In this dataset array, the columns correspond to variables and rows correspond to samples. The row names (sample names) must match the row names (sample names) in DSVarValues, the dataset array being replaced in the MetaData object in the ExpressionSet object, ESObj.

Output Arguments

DSVarValues

A dataset array containing the measured value of each variable per sample from the MetaData object of an ExpressionSet object. In this dataset array, the columns correspond to variables and rows correspond to samples.

NewESObj

Object of the bioma.ExpressionSet class, returned after replacing the dataset array containing the sample variable values.

Examples

Construct an ExpressionSet object, ESObj, as described in the Examples section of the bioma.ExpressionSet class reference page. Retrieve the sample variable values in ExpressionSet object:

% Retrieve the sample variable values
SVarValues = sampleVarValues(ESObj);