Class BulkExpressionDataDoubleMatrix
java.lang.Object
ubic.gemma.core.datastructure.matrix.AbstractExpressionDataMatrix<Double>
ubic.gemma.core.datastructure.matrix.AbstractBulkExpressionDataMatrix<Double>
ubic.gemma.core.datastructure.matrix.BulkExpressionDataDoubleMatrix
- All Implemented Interfaces:
BulkExpressionDataMatrix<Double>, BulkExpressionDataPrimitiveDoubleMatrix, ExpressionDataMatrix<Double>, ExpressionDataPrimitiveDoubleMatrix
public class BulkExpressionDataDoubleMatrix
extends AbstractBulkExpressionDataMatrix<Double>
implements BulkExpressionDataPrimitiveDoubleMatrix
-
Constructor Summary
ConstructorsConstructorDescriptionBulkExpressionDataDoubleMatrix(List<? extends BulkExpressionDataVector> vectors) -
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.doublegetAsDouble(int row, int column) Retrieve the value at the given row and column without boxing.Double[]getColumn(int column) Access a single column of the matrix.double[]getColumnAsDoubles(int column) Retrieve the given column without boxing.double[]getColumnAsDoubles(BioAssay bioAssay) Retrieve the given column without boxing, ornullif the assay is not part of this matrix.Double[][]Access the entire matrix.double[][]Obtain the raw matrix as a double array.Double[]getRow(int index) Access a single row of the matrix, by index.double[]getRowAsDoubles(int index) Retrieve a row without boxing.double[]getRowAsDoubles(CompositeSequence designElement) Retrieve the row for the given design element without boxing.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, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface BulkExpressionDataMatrix
get, getBioAssayDimension, getBioAssayForColumn, getBioMaterialForColumn, getBioMaterials, getColumn, getColumnIndex, getColumnIndexMethods inherited from interface ExpressionDataMatrix
columns, getDesignElementForRow, getDesignElements, getExpressionExperiment, getQuantitationType, getRow, getRowElement, getRowElements, getRowIndex, getRowIndices, rows
-
Constructor Details
-
BulkExpressionDataDoubleMatrix
-
-
Method Details
-
hasMissingValues
public boolean hasMissingValues()- Specified by:
hasMissingValuesin interfaceBulkExpressionDataMatrix<Double>- Returns:
- true if any values are null or NaN (for doubles and floats); any other value that is considered missing.
-
getColumn
Description copied from interface:ExpressionDataMatrixAccess a single column of the matrix.- Specified by:
getColumnin interfaceExpressionDataMatrix<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:
-
getColumnAsDoubles
Description copied from interface:BulkExpressionDataPrimitiveDoubleMatrixRetrieve the given column without boxing, ornullif the assay is not part of this matrix.- Specified by:
getColumnAsDoublesin interfaceBulkExpressionDataPrimitiveDoubleMatrix- 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[]
-
sliceRows
Description copied from interface:ExpressionDataMatrixSlice the given design elements (rows) from the matrix.- Specified by:
sliceRowsin interfaceExpressionDataMatrix<Double>
-
getRowAsDoubles
public double[] getRowAsDoubles(int index) Description copied from interface:ExpressionDataPrimitiveDoubleMatrixRetrieve a row without boxing.- Specified by:
getRowAsDoublesin interfaceExpressionDataPrimitiveDoubleMatrix- See Also:
-
getRowAsDoubles
Description copied from interface:ExpressionDataPrimitiveDoubleMatrixRetrieve the row for the given design element without boxing.- Specified by:
getRowAsDoublesin interfaceExpressionDataPrimitiveDoubleMatrix- See Also:
-
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:
-
getRawMatrix
Description copied from interface:BulkExpressionDataMatrixAccess the entire matrix.- Specified by:
getRawMatrixin interfaceBulkExpressionDataMatrix<Double>- 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.
- Specified by:
sliceColumnsin interfaceBulkExpressionDataMatrix<Double>- Parameters:
bioMaterials- samples to select from the matrix
-
sliceColumns
public BulkExpressionDataDoubleMatrix 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).
- Specified by:
sliceColumnsin interfaceBulkExpressionDataMatrix<Double>- Parameters:
bioMaterials- samples to select from the matrixdimension- the dimension to use
-
getRawMatrixAsDoubles
public double[][] getRawMatrixAsDoubles()Description copied from interface:BulkExpressionDataPrimitiveDoubleMatrixObtain the raw matrix as a double array.- Specified by:
getRawMatrixAsDoublesin interfaceBulkExpressionDataPrimitiveDoubleMatrix- See Also:
-
format
Description copied from class:AbstractExpressionDataMatrixFormat a matrix entry at a particular row/column.- Specified by:
formatin classAbstractExpressionDataMatrix<Double>
-