Documentation Center

  • Trial Software
  • Product Updates

elementData

Class: bioma.ExpressionSet
Package: bioma

Retrieve or set data element (DataMatrix object) in ExpressionSet object

Syntax

DMObj = elementData(ESObj, Element)
NewESObj = elementData(ESObj, Element, NewDMObj)

Description

DMObj = elementData(ESObj, Element) returns the DataMatrix object from an ExpressionSet object, specified by Element, a positive integer or a string specifying an element name.

NewESObj = elementData(ESObj, Element, NewDMObj) replaces the DataMatrix object specified by Element in ESObj, an ExpressionSet object, with NewDMObj, a new DataMatrix object, and returns NewESObj, a new ExpressionSet object.

Input Arguments

ESObj

Object of the bioma.ExpressionSet class.

Element

Element (DataMatrix object) in an ExpressionSet object, specified by either of the following:

  • Positive integer

  • String specifying the element name

NewDMObj

Object of the DataMatrix class. The sample names and feature names in NewDMObj must match the sample names and feature names in the DataMatrix object specified by Element.

Output Arguments

DMObj

Object of the DataMatrix class, returned from the ExptData object of an ExpressionSet object.

NewESObj

Object of the bioma.ExpressionSet class, returned after replacing a specified data element (DataMatrix object).

Examples

Construct an ExpressionSet object, ESObj, as described in the Examples section of the bioma.ExpressionSet class reference page. Extract a DataMatrix object from it:

% Extract first DataMatrix object
ExtractedDMObj = elementData(ESObj, 1);

See Also

| |

How To

Was this topic helpful?