variableValues
Retrieve or set variable values for samples in MetaData object
Syntax
DSVarValues
= variableValues(MDObj
)
NewMDObj
= variableValues(MDObj
, NewDSVarValues
)
Description
returns
a dataset array containing the measured value of each variable per
sample from a MetaData object.DSVarValues
= variableValues(MDObj
)
replaces
the sample variable values in NewMDObj
= variableValues(MDObj
, NewDSVarValues
)MDObj
, a
MetaData object, with NewDSVarValues
, and
returns NewMDObj
, a new MetaData object.
Input Arguments
|
Object of the |
|
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 |
Output Arguments
|
A dataset array containing the measured value of each variable per sample from a MetaData object. In this dataset array, the columns correspond to variables and rows correspond to samples. |
|
Object of the |
Examples
Construct a MetaData object, and then retrieve the sample variable values from it:
% Import the bioma.data namespace to make constructor function % available import bioma.data.* % Construct MetaData object from .txt file MDObj2 = MetaData('File', 'mouseSampleData.txt', 'VarDescChar', '#'); % Retrieve the sample variable values VarValues = variableValues(MDObj2)