elementData
Class: bioma.data.ExptData
Namespace: bioma.data
Retrieve or set data element (DataMatrix object) in ExptData object
Syntax
DMObj
= elementData(EDObj
, Element
)
NewEDObj
= elementData(EDObj
, Element
, NewDMObj
)
Description
returns
the DataMatrix object from an ExptData object, specified by DMObj
= elementData(EDObj
, Element
)Element
,
a positive integer or character vector specifying an element name.
replaces
the element (DataMatrix object) specified by NewEDObj
= elementData(EDObj
, Element
, NewDMObj
)Element
in EDObj
,
an ExptData object, with NewDMObj
, a new
DataMatrix object, and returns NewEDObj
,
a new ExptData object.
Input Arguments
|
Object of the |
|
Element (DataMatrix object) in an ExptData object, specified by either of the following:
|
|
Object of the DataMatrix class.
The sample names and feature names in |
Output Arguments
|
Object of the DataMatrix class, returned from an ExptData object. |
|
Object of the |
Examples
Construct an ExptData object, and then extract a DataMatrix object 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); % Extract first DataMatrix object ExtractedDMObj = elementData(EDObj, 1);