Class ExpressionDataBooleanMatrix
java.lang.Object
ubic.gemma.core.datastructure.matrix.AbstractExpressionDataMatrix<Boolean>
ubic.gemma.core.datastructure.matrix.AbstractMultiAssayExpressionDataMatrix<Boolean>
ubic.gemma.core.datastructure.matrix.ExpressionDataBooleanMatrix
- All Implemented Interfaces:
BulkExpressionDataMatrix<Boolean>,ExpressionDataMatrix<Boolean>,MultiAssayBulkExpressionDataMatrix<Boolean>
Matrix of booleans mapped from an ExpressionExperiment.
- Author:
- pavlidis
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionDataBooleanMatrix(ExpressionExperiment ee, Collection<? extends BulkExpressionDataVector> vectors) ExpressionDataBooleanMatrix(ExpressionExperiment ee, Collection<? extends BulkExpressionDataVector> vectors, List<QuantitationType> qtypes) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringformat(int row, int column) Format the value at the provided indices of the matrix.get(int row, int column) Access a single value of the matrix by row and column.Boolean[]getColumn(int column) Access a single column of the matrix.Boolean[][]Access the entire matrix.Boolean[]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 ubic.gemma.core.datastructure.matrix.AbstractMultiAssayExpressionDataMatrix
addToRowMaps, addToRowMaps, columns, columns, formatRepresentation, get, getBestBioAssayDimension, getBioAssayDimension, getBioAssayDimension, getBioAssayDimensions, getBioAssayForColumn, getBioAssaysForColumn, getBioMaterialForColumn, getBioMaterials, getColumn, getColumnIndex, getColumnIndex, getColumnLabel, getDesignElementForRow, getDesignElements, getExpressionExperiment, getQuantitationType, getQuantitationType, getQuantitationTypes, getRow, getRowElement, getRowElements, getRowIndex, getRowIndices, getRowLabel, rows, selectVectors, selectVectors, selectVectors, selectVectors, setUpColumnElements, setUpColumnElementsMethods inherited from class ubic.gemma.core.datastructure.matrix.AbstractExpressionDataMatrix
format, format, toString
-
Constructor Details
-
ExpressionDataBooleanMatrix
public ExpressionDataBooleanMatrix(ExpressionExperiment ee, Collection<? extends BulkExpressionDataVector> vectors) -
ExpressionDataBooleanMatrix
public ExpressionDataBooleanMatrix(ExpressionExperiment ee, Collection<? extends BulkExpressionDataVector> vectors, List<QuantitationType> qtypes)
-
-
Method Details
-
get
Description copied from interface:ExpressionDataMatrixAccess a single value of the matrix by row and column. -
getColumn
Description copied from interface:ExpressionDataMatrixAccess a single column of the matrix.- Parameters:
column- index- Returns:
- T[]
-
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 ExpressionDataBooleanMatrix 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
-
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. -
hasMissingValues
public boolean hasMissingValues()- Returns:
- true if any values are null or NaN (for doubles and floats); any other value that is considered missing.
-
format
Description copied from class:AbstractMultiAssayExpressionDataMatrixFormat the value at the provided indices of the matrix.- Specified by:
formatin classAbstractMultiAssayExpressionDataMatrix<Boolean>
-