Main Content

featureVarNames

Class: bioma.ExpressionSet
Namespace: bioma

Retrieve or set feature variable names in ExpressionSet object

Syntax

FeatVarNames = featureVarNames(ESObj)
FeatVarNames = featureVarNames(ESObj, Subset)
NewESObj = featureVarNames(ESObj, Subset, NewFeatVarNames)

Description

FeatVarNames = featureVarNames(ESObj) returns a cell array of character vectors specifying all feature variable names in an ExpressionSet object.

FeatVarNames = featureVarNames(ESObj, Subset) returns a cell array of character vectors specifying a subset the feature variable names in an ExpressionSet object.

NewESObj = featureVarNames(ESObj, Subset, NewFeatVarNames) replaces the feature variable names specified by Subset in ESObj, an ExpressionSet object, with NewFeatVarNames, and returns NewESObj, a new ExpressionSet object.

Input Arguments

ESObj

Object of the bioma.ExpressionSet class.

Subset

One of the following to specify a subset of the feature variable names in an ExpressionSet object:

  • Character vector or string specifying a feature variable name

  • Cell array of character vectors or string vector specifying feature variable names

  • Positive integer

  • Vector of positive integers

  • Logical vector

NewFeatVarNames

New feature variable names for specific feature variable names within an ExpressionSet object, specified by one of the following:

  • Numeric vector

  • Cell array of character vectors or string vector

  • Character array

  • Character vector or string, which featureVarNames uses as a prefix for the feature variable names, with feature variable numbers appended to the prefix

  • Logical true or false (default). If true, featureVarNames assigns unique feature variable names using the format Var1, Var2, etc.

The number of feature variable names in NewFeatVarNames must equal the number of feature variable names specified by Subset.

Output Arguments

FeatVarNames

Cell array of character vectors specifying all or some of the feature variable names in an ExpressionSet object. The feature variable names are the column names of the VarValues dataset array. The feature variable names are also the row names of the VarDescriptions dataset array. Both dataset arrays are in the MetaData object in the ExpressionSet object.

NewESObj

Object of the bioma.ExpressionSet class, returned after replacing specific feature names.