Class EmptyExpressionMatrix
- java.lang.Object
-
- ubic.gemma.core.datastructure.matrix.AbstractExpressionDataMatrix<T>
-
- ubic.gemma.core.datastructure.matrix.AbstractMultiAssayExpressionDataMatrix<Object>
-
- ubic.gemma.core.datastructure.matrix.EmptyExpressionMatrix
-
- All Implemented Interfaces:
BulkExpressionDataMatrix<Object>
,ExpressionDataMatrix<Object>
,MultiAssayBulkExpressionDataMatrix<Object>
public class EmptyExpressionMatrix extends AbstractMultiAssayExpressionDataMatrix<Object>
Used to make a 'dummy matrix' that has the column information populated. This is useful for processing where we want the sample information organized,but not the data. Data access operations are not supported.- Author:
- paul
-
-
Field Summary
-
Fields inherited from class ubic.gemma.core.datastructure.matrix.AbstractMultiAssayExpressionDataMatrix
bioAssayDimensions, columnAssayMap, columnBioAssayMapByInteger, columnBioMaterialMap, columnBioMaterialMapByInteger, expressionExperiment, quantitationTypes, rowDesignElementMapByInteger, rowElementMap
-
-
Constructor Summary
Constructors Constructor Description EmptyExpressionMatrix(Collection<BioAssayDimension> dims)
EmptyExpressionMatrix(BioAssayDimension ba)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
columns()
Obtain the total number of columns.protected String
format(int row, int column)
Format the value at the provided indices of the matrix.Object
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[][]
getRawMatrix()
Access the entire matrix.Object[]
getRow(int index)
Access a single row of the matrix, by index.boolean
hasMissingValues()
int
rows()
protected void
vectorsToMatrix(Collection<? extends BulkExpressionDataVector> vectors)
-
Methods inherited from class ubic.gemma.core.datastructure.matrix.AbstractMultiAssayExpressionDataMatrix
addToRowMaps, columns, formatRepresentation, get, getBestBioAssayDimension, getBioAssayDimension, getBioAssayDimension, getBioAssayDimensions, getBioAssayForColumn, getBioAssaysForColumn, getBioMaterialForColumn, getColumn, getColumnIndex, getColumnIndex, getColumnLabel, getDesignElementForRow, getDesignElements, getExpressionExperiment, getQuantitationType, getQuantitationTypes, getRow, getRowElement, getRowElements, getRowIndex, getRowIndices, getRowLabel, selectVectors, selectVectors, selectVectors, setMatBioAssayValues, setUpColumnElements
-
Methods inherited from class ubic.gemma.core.datastructure.matrix.AbstractExpressionDataMatrix
format, format, toString
-
-
-
-
Constructor Detail
-
EmptyExpressionMatrix
public EmptyExpressionMatrix(BioAssayDimension ba)
-
EmptyExpressionMatrix
public EmptyExpressionMatrix(Collection<BioAssayDimension> dims)
-
-
Method Detail
-
columns
public int columns()
Description copied from interface:ExpressionDataMatrix
Obtain the total number of columns.
-
get
public Object get(int row, int column)
Description copied from interface:ExpressionDataMatrix
Access a single value of the matrix by row and column.
-
getColumn
public Object[] getColumn(int column)
Description copied from interface:ExpressionDataMatrix
Access a single column of the matrix.- Parameters:
column
- index- Returns:
- T[]
-
getRawMatrix
public Object[][] getRawMatrix()
Description copied from interface:BulkExpressionDataMatrix
Access the entire matrix.- Returns:
- T[][]
-
getRow
public Object[] getRow(int index)
Description copied from interface:ExpressionDataMatrix
Access a single row of the matrix, by index. A complete row is returned.- Parameters:
index
- i- Returns:
- t[]
-
hasMissingValues
public boolean hasMissingValues()
- Returns:
- true if any values are null or NaN (for doubles and floats); any other value that is considered missing.
-
rows
public int rows()
- Returns:
- int
-
format
protected String format(int row, int column)
Description copied from class:AbstractMultiAssayExpressionDataMatrix
Format the value at the provided indices of the matrix.- Specified by:
format
in classAbstractMultiAssayExpressionDataMatrix<Object>
-
vectorsToMatrix
protected void vectorsToMatrix(Collection<? extends BulkExpressionDataVector> vectors)
- Specified by:
vectorsToMatrix
in classAbstractMultiAssayExpressionDataMatrix<Object>
-
-