| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Bioinformatics Toolbox |
| Contents | Index |
| Learn more about Bioinformatics Toolbox |
DMobj =
DataMatrix(Matrix)
DMobj =
DataMatrix(Matrix, RowNames, ColumnNames)
DMobj =
DataMatrix('File', FileName)
DMobj =
DataMatrix(..., 'RowNames', RowNamesValue,
...)
DMobj = DataMatrix(...,
'ColNames', ColNamesValue, ...)
DMobj = DataMatrix(...,
'Name', NameValue, ...)
DMobj =
DataMatrix('File', FileName, ...'Delimiter', DelimiterValue,
...)
DMobj =
DataMatrix('File', FileName, ...'HLine', HLineValue,
...)
DMobj =
DataMatrix('File', FileName, ...'Rows', RowsValue,
...)
DMobj =
DataMatrix('File', FileName, ...'Columns', ColumnsValue,
...)
A DataMatrix object encapsulates measurement data and feature metadata from a microarray experiment so that it can be indexed by gene names or probe identifiers and by sample identifiers. For examples of creating and using DataMatrix objects, see Working with DataMatrix Objects in the Bioinformatics Toolbox User's Guide.
Note The DataMatrix constructor function is part of the microarray object package. To make it available, type the following in the MATLAB command line: import bioma.data.* Otherwise, use bioma.data.DataMatrix instead of DataMatrix, in the following syntaxes. |
DMobj = DataMatrix(Matrix) creates a DataMatrix object, DMobj, from Matrix, a two-dimensional numeric or logical array. Matrix can also be a DataMatrix object.
DMobj = DataMatrix(Matrix, RowNames, ColumnNames) creates a DataMatrix object, DMobj, from Matrix, a two-dimensional numeric or logical array, with row names and column names specified by RowNames and ColumnNames. RowNames and ColumnNames can be a numeric vector, character array, or cell array of strings, whose elements are equal in number to the number of rows and number of columns, respectively, in Matrix. RowNames are typically gene names or probe identifiers, while ColumnNames are typically sample identifiers.
DMobj = DataMatrix('File', FileName) creates a DataMatrix object, DMobj, from FileName, a string specifying a file name or a path and file name of a tab-delimited TXT or XLS file that contains table-oriented data and metadata.
Note Typically, the first row of the table contains column names, the first column contains row names, and the numeric data starts at the 2,2 position. The DataMatrix function will detect if the first column does not contain row names, and read data from the first column. However, if the first row does not contain header text (column names), set the HLine property to 0. |
DMobj = DataMatrix(..., 'PropertyName', PropertyValue, ...) calls DataMatrix with optional properties that use property name/property value pairs. You can specify one or more properties in any order. Each PropertyName must be enclosed in single quotation marks and is case insensitive. These property name/property value pairs are as follows:
DMobj =
DataMatrix(..., 'RowNames', RowNamesValue,
...) specifies row names for DMobj. RowNamesValue can
be any of the following:
Numeric vector, character array, or a cell array of strings, whose elements are equal in number to the number of rows of numeric data in the input matrix.
A single string, which is used as a prefix for row names. Row numbers will be appended to the prefix.
true — Unique row names will be assigned using the format row1, row2, row3, etc.
false — Default. No row names are assigned.
DMobj = DataMatrix(..., 'ColNames', ColNamesValue, ...) specifies column names for DMobj. ColNamesValue can be any of the following:
Numeric vector, character array, or a cell array of strings, whose elements are equal in number to the number of columns of numeric data in the input matrix.
A single string, which is used as a prefix for column names. Column numbers will be appended to the prefix.
true — Unique column names will be assigned using the format col1, col2, col3, etc.
false — Default. No column names are assigned.
DMobj = DataMatrix(..., 'Name', NameValue, ...) specifies a name for DMobj. Default is ''.
DMobj = DataMatrix('File', FileName, ...'Delimiter', DelimiterValue, ...) specifies a delimiter symbol to use for the input file. Typical choices are:
' '
'\t' (default)
','
';'
'|'
DMobj = DataMatrix('File', FileName, ...'HLine', HLineValue, ...) specifies which row of the input file contains the column header text (column names). HLineValue is a positive integer. Default is 1. When creating the DataMatrix object DMobj, the DataMatrix function loads data from (HLineValue + 1) to the end of the file.
DMobj = DataMatrix('File', FileName, ...'Rows', RowsValue, ...) specifies a subset of row names in File for the DataMatrix function to use to create DMobj. RowsValue can be a cell array of strings, a character array, or a numeric or logical vector.
DMobj = DataMatrix('File', FileName, ...'Columns', ColumnsValue, ...) specifies a subset of column names in File for the DataMatrix function to use to create DMobj. ColumnsValue can be a cell array of strings, a character array, or a numeric or logical vector.
For examples of creating and using DataMatrix objects, see Working with DataMatrix Objects in the Bioinformatics Toolbox User's Guide.
Bioinformatics Toolbox object: DataMatrix object
Bioinformatics Toolbox methods of a DataMatrix object: colnames, disp, dmarrayfun, dmbsxfun, dmwrite,double, eq, ge, get, gt, horzcat, isequal, isequalwithequalnans, ldivide, le, lt, max, mean, median, min, minus, ndims, ne, numel, plot, plus, power, rdivide, rownames, set, single, sortcols, sortrows, std, sum, times, var, vertcat
![]() | DataMatrix object | dayhoff | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |