Class SingleCellExpressionDataDoubleMatrix
java.lang.Object
ubic.gemma.core.datastructure.matrix.AbstractExpressionDataMatrix<Double>
ubic.gemma.core.datastructure.matrix.AbstractSingleCellExpressionDataMatrix<Double>
ubic.gemma.core.datastructure.matrix.SingleCellExpressionDataDoubleMatrix
- All Implemented Interfaces:
ExpressionDataMatrix<Double>,ExpressionDataPrimitiveDoubleMatrix,SingleCellExpressionDataMatrix<Double>
public class SingleCellExpressionDataDoubleMatrix
extends AbstractSingleCellExpressionDataMatrix<Double>
implements ExpressionDataPrimitiveDoubleMatrix
- Author:
- poirigui
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionintcolumns()Obtain the total number of columns.protected 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.doublegetAsDouble(int row, int column) Retrieve the value at the given row and column without boxing.getBioAssayForColumn(int j) Obtain a bioassay applicable to a given column.Obtain the list of bioassays.getBioMaterialForColumn(int j) getCellIdForColumn(int j) Obtain the cell ID of a given column.Note: cell IDs are only unique within a given assayDouble[]getColumn(int column) Access a single column of the matrix.double[]getColumnAsDoubles(int column) Retrieve the given column without boxing.getDesignElementForRow(int index) Return a design element for a given index.Obtain all the design elements in this data matrix.Return the expression experiment this matrix is holding data for, if known.no.uib.cipr.matrix.sparse.CompRowMatrixObtain the sparse matrix underlying this.Obtain the quantitation type for this matrix.Double[]getRow(int index) Access a single row of the matrix, by index.Double[]getRow(CompositeSequence designElement) Return a row that 'came from' the given design element.double[]getRowAsDoubles(int index) Retrieve a row without boxing.double[]getRowAsDoubles(CompositeSequence designElement) Retrieve the row for the given design element without boxing.getRowElement(int row) intgetRowIndex(CompositeSequence designElement) int[]getRowIndices(CompositeSequence designElement) Obtain all the rows that correspond to the given design element, ornullif the design element is not found.Return the single-cell dimension for this matrix.introws()sliceRows(List<CompositeSequence> designElements) Methods inherited from class ubic.gemma.core.datastructure.matrix.AbstractSingleCellExpressionDataMatrix
getColumnLabel, getRowLabelMethods inherited from class ubic.gemma.core.datastructure.matrix.AbstractExpressionDataMatrix
format, format, formatRepresentation, toString
-
Constructor Details
-
SingleCellExpressionDataDoubleMatrix
-
-
Method Details
-
getMatrix
public no.uib.cipr.matrix.sparse.CompRowMatrix getMatrix()Obtain the sparse matrix underlying this. -
getExpressionExperiment
Description copied from interface:ExpressionDataMatrixReturn the expression experiment this matrix is holding data for, if known.- Specified by:
getExpressionExperimentin interfaceExpressionDataMatrix<Double>
-
columns
public int columns()Description copied from interface:ExpressionDataMatrixObtain the total number of columns.- Specified by:
columnsin interfaceExpressionDataMatrix<Double>
-
get
Description copied from interface:ExpressionDataMatrixAccess a single value of the matrix by row and column.- Specified by:
getin interfaceExpressionDataMatrix<Double>
-
getAsDouble
public double getAsDouble(int row, int column) Description copied from interface:ExpressionDataPrimitiveDoubleMatrixRetrieve the value at the given row and column without boxing.- Specified by:
getAsDoublein interfaceExpressionDataPrimitiveDoubleMatrix- See Also:
-
getColumn
Description copied from interface:ExpressionDataMatrixAccess a single column of the matrix.- Specified by:
getColumnin interfaceExpressionDataMatrix<Double>- Specified by:
getColumnin interfaceSingleCellExpressionDataMatrix<Double>- Parameters:
column- index- Returns:
- T[]
-
getColumnAsDoubles
public double[] getColumnAsDoubles(int column) Description copied from interface:ExpressionDataPrimitiveDoubleMatrixRetrieve the given column without boxing.- Specified by:
getColumnAsDoublesin interfaceExpressionDataPrimitiveDoubleMatrix- See Also:
-
getBioAssays
Description copied from interface:SingleCellExpressionDataMatrixObtain the list of bioassays.- Specified by:
getBioAssaysin interfaceSingleCellExpressionDataMatrix<Double>
-
getBioAssayForColumn
Description copied from interface:SingleCellExpressionDataMatrixObtain a bioassay applicable to a given column.- Specified by:
getBioAssayForColumnin interfaceSingleCellExpressionDataMatrix<Double>
-
getBioMaterialForColumn
- Specified by:
getBioMaterialForColumnin interfaceSingleCellExpressionDataMatrix<Double>
-
getCellIds
Description copied from interface:SingleCellExpressionDataMatrixNote: cell IDs are only unique within a given assay- Specified by:
getCellIdsin interfaceSingleCellExpressionDataMatrix<Double>
-
getCellIdForColumn
Description copied from interface:SingleCellExpressionDataMatrixObtain the cell ID of a given column.- Specified by:
getCellIdForColumnin interfaceSingleCellExpressionDataMatrix<Double>
-
getDesignElements
Description copied from interface:ExpressionDataMatrixObtain all the design elements in this data matrix.- Specified by:
getDesignElementsin interfaceExpressionDataMatrix<Double>
-
getDesignElementForRow
Description copied from interface:ExpressionDataMatrixReturn a design element for a given index.- Specified by:
getDesignElementForRowin interfaceExpressionDataMatrix<Double>
-
getRow
Description copied from interface:ExpressionDataMatrixReturn a row that 'came from' the given design element.- Specified by:
getRowin interfaceExpressionDataMatrix<Double>- Parameters:
designElement- de- Returns:
- the corresponding row or null if the design element is not found in the matrix
-
getRowAsDoubles
Description copied from interface:ExpressionDataPrimitiveDoubleMatrixRetrieve the row for the given design element without boxing.- Specified by:
getRowAsDoublesin interfaceExpressionDataPrimitiveDoubleMatrix- See Also:
-
getRow
Description copied from interface:ExpressionDataMatrixAccess a single row of the matrix, by index. A complete row is returned.- Specified by:
getRowin interfaceExpressionDataMatrix<Double>- Parameters:
index- i- Returns:
- t[]
-
getRowAsDoubles
public double[] getRowAsDoubles(int index) Description copied from interface:ExpressionDataPrimitiveDoubleMatrixRetrieve a row without boxing.- Specified by:
getRowAsDoublesin interfaceExpressionDataPrimitiveDoubleMatrix- See Also:
-
getRowIndex
- Specified by:
getRowIndexin interfaceExpressionDataMatrix<Double>- Returns:
- the index for the given design element, or -1 if not found
-
getRowIndices
Description copied from interface:ExpressionDataMatrixObtain all the rows that correspond to the given design element, ornullif the design element is not found.- Specified by:
getRowIndicesin interfaceExpressionDataMatrix<Double>
-
sliceRows
- Specified by:
sliceRowsin interfaceExpressionDataMatrix<Double>
-
getRowElements
- Specified by:
getRowElementsin interfaceExpressionDataMatrix<Double>- Returns:
- list of elements representing the row 'labels'.
-
getRowElement
- Specified by:
getRowElementin interfaceExpressionDataMatrix<Double>
-
rows
public int rows()- Specified by:
rowsin interfaceExpressionDataMatrix<Double>- Returns:
- int
-
getQuantitationType
Description copied from interface:ExpressionDataMatrixObtain the quantitation type for this matrix.- Specified by:
getQuantitationTypein interfaceExpressionDataMatrix<Double>- Specified by:
getQuantitationTypein interfaceSingleCellExpressionDataMatrix<Double>
-
getSingleCellDimension
Description copied from interface:SingleCellExpressionDataMatrixReturn the single-cell dimension for this matrix.- Specified by:
getSingleCellDimensionin interfaceSingleCellExpressionDataMatrix<Double>
-
format
Description copied from class:AbstractExpressionDataMatrixFormat a matrix entry at a particular row/column.- Specified by:
formatin classAbstractExpressionDataMatrix<Double>
-