Class ExpressionDataStringMatrix
java.lang.Object
ubic.gemma.core.datastructure.matrix.AbstractExpressionDataMatrix<String>
ubic.gemma.core.datastructure.matrix.AbstractMultiAssayExpressionDataMatrix<String>
ubic.gemma.core.datastructure.matrix.ExpressionDataStringMatrix
- All Implemented Interfaces:
BulkExpressionDataMatrix<String>,ExpressionDataMatrix<String>,MultiAssayBulkExpressionDataMatrix<String>
- Author:
- pavlidis
-
Field Summary
Fields inherited from class ubic.gemma.core.datastructure.matrix.AbstractMultiAssayExpressionDataMatrix
bioAssayDimensions, columnAssayMap, columnBioAssayMapByInteger, columnBioMaterialMap, columnBioMaterialMapByInteger, expressionExperiment, quantitationTypes, rowDesignElementMapByInteger, rowElementMap -
Constructor Summary
ConstructorsConstructorDescriptionExpressionDataStringMatrix(Collection<? extends BulkExpressionDataVector> vectors) ExpressionDataStringMatrix(Collection<? extends BulkExpressionDataVector> dataVectors, QuantitationType quantitationType) ExpressionDataStringMatrix(ExpressionExperiment expressionExperiment, Collection<CompositeSequence> designElements, QuantitationType quantitationType) ExpressionDataStringMatrix(ExpressionExperiment expressionExperiment, QuantitationType quantitationType) -
Method Summary
Modifier and TypeMethodDescriptionintcolumns()Obtain the total number of columns.protected 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.String[]getColumn(int index) Access a single column of the matrix.String[][]Access the entire matrix.String[]getRow(int index) Access a single row of the matrix, by index.booleanintrows()sliceRows(List<CompositeSequence> designElements) protected voidvectorsToMatrix(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, setUpColumnElementsMethods inherited from class ubic.gemma.core.datastructure.matrix.AbstractExpressionDataMatrix
format, format, toString
-
Constructor Details
-
ExpressionDataStringMatrix
-
ExpressionDataStringMatrix
public ExpressionDataStringMatrix(Collection<? extends BulkExpressionDataVector> dataVectors, QuantitationType quantitationType) -
ExpressionDataStringMatrix
public ExpressionDataStringMatrix(ExpressionExperiment expressionExperiment, Collection<CompositeSequence> designElements, QuantitationType quantitationType) -
ExpressionDataStringMatrix
public ExpressionDataStringMatrix(ExpressionExperiment expressionExperiment, QuantitationType quantitationType)
-
-
Method Details
-
columns
public int columns()Description copied from interface:ExpressionDataMatrixObtain the total number of columns. -
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:
index- index- Returns:
- T[]
-
getRawMatrix
Description copied from interface:BulkExpressionDataMatrixAccess the entire matrix.- 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
-
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
Description copied from class:AbstractMultiAssayExpressionDataMatrixFormat the value at the provided indices of the matrix.- Specified by:
formatin classAbstractMultiAssayExpressionDataMatrix<String>
-
vectorsToMatrix
- Specified by:
vectorsToMatrixin classAbstractMultiAssayExpressionDataMatrix<String>
-