sampleNames
Class: bioma.data.ExptData
Namespace: bioma.data
Retrieve or set sample names in ExptData object
Syntax
SamNames
= sampleNames(EDObj
)
SamNames
= sampleNames(EDObj
, Subset
)
NewEDObj
= sampleNames(EDObj
, Subset
, NewSamNames
)
Description
returns
a cell array of character vectors specifying all sample names in an
ExptData object. SamNames
= sampleNames(EDObj
)
returns
a cell array of character vectors specifying a subset the sample names
in an ExptData object. SamNames
= sampleNames(EDObj
, Subset
)
replaces
the sample names specified by NewEDObj
= sampleNames(EDObj
, Subset
, NewSamNames
)Subset
in EDObj
,
an ExptData object, with NewSamNames
, and
returns NewEDObj
, a new ExptData object.
Input Arguments
|
Object of the |
|
One of the following to specify a subset of the sample names in an ExptData object:
|
|
New sample names for specific sample names within an ExptData object, specified by one of the following:
The number of sample names in |
Output Arguments
|
Cell array of character vectors specifying all or some of the sample names in an ExptData object. The sample names are the column names in the DataMatrix objects in the ExptData object. |
|
Object of the |
Examples
Construct an ExptData object, and then retrieve the sample names from it:
% Import the bioma.data namespace to make constructor functions % available import bioma.data.* % Create DataMatrix object from .txt file containing % expression values from microarray experiment dmObj = DataMatrix('File', 'mouseExprsData.txt'); % Construct ExptData object EDObj = ExptData(dmObj); % Retrieve sample names SNames = sampleNames(EDObj);