Main Content

size

Class: bioma.ExpressionSet
Namespace: bioma

Return size of ExpressionSet object

Syntax

NFeatSam = size(ESObj)
[NFeatures, NSamples] = size(ESObj)
DimLength = size(ESObj, Dim)

Description

NFeatSam = size(ESObj) returns a two-element row vector containing the number of features and number of samples in an ExpressionSet object.

[NFeatures, NSamples] = size(ESObj) returns the number of features and number of samples in an ExpressionSet object as separate variables.

DimLength = size(ESObj, Dim) returns the length of the dimension specified by Dim.

Input Arguments

ESObj

Object of the bioma.ExpressionSet class.

Dim

Scalar specifying the dimension of the ExpressionSet object. Choices are:

  • 1 — Features

  • 2 — Samples

Examples

Construct an ExpressionSet object, ESObj, as described in the Examples section of the bioma.ExpressionSet class reference page. Determine the number of features and samples in the ExpressionSet object:

% Retrieve the number of features and samples
NumFeatSam = size(ESObj)