Class EmptyBulkExpressionDataMatrix
java.lang.Object
ubic.gemma.core.datastructure.matrix.AbstractExpressionDataMatrix<Object>
ubic.gemma.core.datastructure.matrix.AbstractBulkExpressionDataMatrix<Object>
ubic.gemma.core.datastructure.matrix.EmptyBulkExpressionDataMatrix
- All Implemented Interfaces:
BulkExpressionDataMatrix<Object>, ExpressionDataMatrix<Object>
An empty bulk expression data matrix.
- Author:
- poirigui
-
Constructor Summary
ConstructorsConstructorDescriptionEmptyBulkExpressionDataMatrix(ExpressionExperiment expressionExperiment, BioAssayDimension dimension, QuantitationType quantitationType) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringformat(int i, int j) Format a matrix entry at a particular row/column.get(int row, int column) Access a single value of the matrix by row and column.Object[]getColumn(int column) Access a single column of the matrix.Object[][]Access the entire matrix.Object[]getRow(int index) Access a single row of the matrix, by index.booleansliceColumns(List<BioMaterial> bioMaterials) Slice the requested samples (columns) from this matrix.sliceColumns(List<BioMaterial> bioMaterials, BioAssayDimension dimension) Slice the requested samples (columns) from this matrix.sliceRows(List<CompositeSequence> designElements) Slice the given design elements (rows) from the matrix.Methods inherited from class AbstractBulkExpressionDataMatrix
columns, get, getBioAssayDimension, getBioAssayForColumn, getBioMaterialForColumn, getBioMaterials, getColumn, getColumnIndex, getColumnIndex, getColumnLabel, getDesignElementForRow, getDesignElements, getExpressionExperiment, getQuantitationType, getRow, getRowElement, getRowElements, getRowIndex, getRowIndices, getRowLabel, rowsMethods inherited from class AbstractExpressionDataMatrix
format, format, formatRepresentation, toString
-
Constructor Details
-
EmptyBulkExpressionDataMatrix
public EmptyBulkExpressionDataMatrix(ExpressionExperiment expressionExperiment, BioAssayDimension dimension, QuantitationType quantitationType)
-
-
Method Details
-
hasMissingValues
public boolean hasMissingValues()- Returns:
- true if any values are null or NaN (for doubles and floats); any other value that is considered missing.
-
getRawMatrix
Description copied from interface:BulkExpressionDataMatrixAccess the entire matrix.- Returns:
- T[][]
-
sliceColumns
Description copied from interface:BulkExpressionDataMatrixSlice the requested samples (columns) from this matrix.Dimensions will be altered to reflect only the selected samples.
- Parameters:
bioMaterials- samples to select from the matrix
-
sliceColumns
public EmptyBulkExpressionDataMatrix sliceColumns(List<BioMaterial> bioMaterials, BioAssayDimension dimension) Description copied from interface:BulkExpressionDataMatrixSlice the requested samples (columns) from this matrix.This also allows specifying a new dimension for the columns that will be used for every design element (rows).
- Parameters:
bioMaterials- samples to select from the matrixdimension- the dimension to use
-
getColumn
Description copied from interface:ExpressionDataMatrixAccess a single column of the matrix.- Parameters:
column- index- Returns:
- T[]
-
getRow
Description copied from interface:ExpressionDataMatrixAccess a single row of the matrix, by index. A complete row is returned.- Parameters:
index- i- Returns:
- t[]
-
sliceRows
Description copied from interface:ExpressionDataMatrixSlice the given design elements (rows) from the matrix. -
get
Description copied from interface:ExpressionDataMatrixAccess a single value of the matrix by row and column. -
format
Description copied from class:AbstractExpressionDataMatrixFormat a matrix entry at a particular row/column.- Specified by:
formatin classAbstractExpressionDataMatrix<Object>
-