variableDesc
Retrieve or set variable descriptions for samples in MetaData object
Syntax
DSVarDescriptions
= variableDesc(MDObj
)
NewMDObj
= variableDesc(MDObj
, NewDSVarDescriptions
)
Description
returns
a dataset array containing the variable names and descriptions for
samples from a MetaData object.DSVarDescriptions
= variableDesc(MDObj
)
replaces
the sample variable descriptions in NewMDObj
= variableDesc(MDObj
, NewDSVarDescriptions
)MDObj
,
a MetaData object, with NewDSVarDescriptions
,
and returns NewMDObj
, a new MetaData object.
Input Arguments
|
Object of the |
|
Descriptions of the sample variable names, specified by one of the following:
|
Output Arguments
|
A dataset array containing the variable names and descriptions
from a MetaData object. In this dataset array, each row corresponds
to a sample variable. The first column contains the variable name,
and the second column ( |
|
Object of the |
Examples
Construct a MetaData object, and then retrieve the sample variable descriptions 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 descriptions VarDescriptions = variableDesc(MDObj2)