| Contents | Index |
Contain metadata from microarray experiment
The MetaData class is designed to contain metadata (variable values and descriptions) from a microarray experiment. It provides a convenient way to store related metadata in a single data structure (object). It also lets you manage and subset the data.
The metadata is a collection of variable names, for example related to samples or microarray features, along with descriptions and values for the variables. A MetaData object stores the metadata in two dataset arrays.
Values dataset array — A dataset array containing the measured value of each variable per sample or feature. In this dataset array, the columns correspond to variables and rows correspond to either samples or features. The number and names of the columns in this dataset array must match the number and names of the rows in the Descriptions dataset array. If this dataset array contains sample metadata, then the number and names of the rows (samples) must match the number and names of the columns in the DataMatrix objects in the same ExpressionSet object. If this dataset array contains feature metadata, then the number and names of the rows (features) must match the number and names of the rows in the DataMatrix objects in the same ExpressionSet object.
Descriptions dataset array — A dataset array containing a list of the variable names and their descriptions. In this dataset array, each row corresponds to a variable. The row names are the variable names, and a column, named VariableDescription, contains a description of the variable. The number and names of the rows in the Descriptions dataset array must match the number and names of the columns in the Values dataset array.
The MetaData class includes properties and methods that let you access, retrieve, and change metadata variables, and their values and descriptions. These properties and methods are useful to view and analyze the metadata.
MDobj = bioma.data.MetaData(VarValues) creates a MetaData object from one dataset array whose rows correspond to sample (observation) names and whose columns correspond to variables. The dataset array contains the measured value of each variable per sample.
MDobj = bioma.data.MetaData(VarValues, VarDescriptions) creates a MetaData object from two dataset arrays. VarDescriptions is a dataset array whose rows correspond to variables. The row names are the variable names, and another column, named VariableDescription, contains a description of each variable.
MDobj = bioma.data.MetaData(VarValues, VarDesc) creates a MetaData object from a dataset array and VarDesc a cell array of strings containing descriptions of the variables.
MDobj = bioma.data.MetaData(..., 'PropertyName', PropertyValue) constructs the object using options, specified as property name/property value pairs.
MDobj = bioma.data.MetaData('File', FileValue) creates a MetaData object from a text file containing a table of metadata. The table row labels must be sample names, and its column headers must be variable names.
MDobj = bioma.data.MetaData('File', FileValue, ...'Path', PathValue) specifies a folder or path and folder where FileValue is stored.
MDobj = bioma.data.MetaData('File', FileValue, ...'Delimiter', DelimiterValue) specifies a delimiter symbol to use as a column separator for FileValue. Default is '\t'.
MDobj = bioma.data.MetaData('File', FileValue, ...'RowNames', RowNamesValue) specifies the row names (sample names) for the MetaData object. Default is the information in the first column of the table.
MDobj = bioma.data.MetaData('File', FileValue, ...'ColumnNames', ColumnNamesValue) specifies the columns of data to read from the table. ColumnNamesValue is a cell array of strings specifying the column header names. Default is to read all columns of data from the table, assuming the first row contains column headers.
MDobj = bioma.data.MetaData('File', FileValue, ...'VarDescChar', VarDescCharValue) specifies that lines in the table prefixed by VarDescCharValue to be read as descriptions and used to create the VarDescriptions dataset array. By default, bioma.data.MetaData does not read variable description information, and does not create a Descriptions dataset array. These prefixed lines must appear at the top of the file, before the table of metadata values.
MDobj = bioma.data.MetaData(...'Name', NameValue) specifies a name for the MetaData object.
MDobj = bioma.data.MetaData('File', FileValue, ...'Description', DescriptionValue) specifies a description for the MetaData object.
MDobj = bioma.data.MetaData('File', FileValue, ...'SampleNames', SampleNamesValue) specifies sample names (row names) for the MetaData object.
MDobj = bioma.data.MetaData('File', FileValue, ...'VariableNames', VariableNamesValue) specifies variable names (column names) for the MetaData object.
| combine | Combine two MetaData objects |
| isempty | Determine whether MetaData object is empty |
| sampleNames | Retrieve or set sample names in MetaData object |
| size | Return size of MetaData object |
| variableDesc | Retrieve or set variable descriptions for samples in MetaData object |
| variableNames | Retrieve or set variable names for samples in MetaData object |
| variableValues | Retrieve or set variable values for samples in MetaData object |
| varValuesTable | Create 2-D graphic table GUI of variable values in MetaData object |
An ExpressionSet object contains two MetaData objects, one for sample information and one for microarray feature information. A MetaData object contains two dataset arrays. One dataset array contains the measured value of each variable per sample or feature. The other dataset array contains a list of the variable names and their descriptions.
To learn about attributes of classes, see Class Attributes in the MATLAB Object-Oriented Programming documentation.
Value. To learn how this affects your use of the class, see Copying Objects in the MATLAB Programming Fundamentals documentation.
MetaData objects support 2-D parenthesis ( ) indexing and dot . indexing to extract, assign, and delete data.
MetaData objects do not support:
Curly brace { } indexing
Linear indexing
Construct a MetaData object containing sample variable information from a text file:
% Import bioma.data package to make constructor function
% available
import bioma.data.*
% Construct MetaData object from .txt file
MDObj2 = MetaData('File', 'mouseSampleData.txt', 'VarDescChar', '#');
% Display information about the MetaData object
MDObj2
% Supply a description for the MetaData object
MDObj2.Description = 'This MetaData Object contains sample variable info.'bioma.data.ExptData | bioma.data.MIAME | bioma.ExpressionSet

See how to analyze, visualize, and model biological data and systems using MathWorks products.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |