public class ExpressionDataDoubleMatrixUtil extends Object
Constructor and Description |
---|
ExpressionDataDoubleMatrixUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addMatrices(ExpressionDataDoubleMatrix a,
ExpressionDataDoubleMatrix b)
Add two matrices.
|
static ExpressionDataDoubleMatrix |
ensureLog2Scale(QuantitationType quantitationType,
ExpressionDataDoubleMatrix dmatrix)
Ensures that the given matrix is on a Log2 scale.
|
static ExpressionDataDoubleMatrix |
filterAndLog2Transform(QuantitationType quantitationType,
ExpressionDataDoubleMatrix dmatrix)
Log2 transform if necessary, do any required filtering prior to analysis.
|
static ScaleType |
findScale(QuantitationType quantitationType,
DoubleMatrix<CompositeSequence,BioMaterial> namedMatrix) |
static void |
logTransformMatrix(ExpressionDataDoubleMatrix matrix)
Log-transform the values in the matrix (base 2).
|
static void |
maskMatrix(ExpressionDataDoubleMatrix matrix,
ExpressionDataBooleanMatrix mask)
Use the mask matrix to turn some values in a matrix to NaN.
|
static void |
scalarDivideMatrix(ExpressionDataDoubleMatrix matrix,
double dividend)
Divide all values by the dividend
|
static void |
subtractMatrices(ExpressionDataDoubleMatrix a,
ExpressionDataDoubleMatrix b)
Subtract two matrices.
|
public static ExpressionDataDoubleMatrix filterAndLog2Transform(QuantitationType quantitationType, ExpressionDataDoubleMatrix dmatrix)
quantitationType
- QTdmatrix
- matrixpublic static ExpressionDataDoubleMatrix ensureLog2Scale(QuantitationType quantitationType, ExpressionDataDoubleMatrix dmatrix)
quantitationType
- the quantitation type to be checked for the scale.dmatrix
- the matrix to be transformed to a log2 scale if necessary.public static ScaleType findScale(QuantitationType quantitationType, DoubleMatrix<CompositeSequence,BioMaterial> namedMatrix)
quantitationType
- QTnamedMatrix
- named matrixfor a related implementation.
public static void subtractMatrices(ExpressionDataDoubleMatrix a, ExpressionDataDoubleMatrix b)
a
- matrix ab
- matrix bIllegalArgumentException
- if the matrices are not column-conformant.public static void logTransformMatrix(ExpressionDataDoubleMatrix matrix)
matrix
- matrixpublic static void addMatrices(ExpressionDataDoubleMatrix a, ExpressionDataDoubleMatrix b)
a
- matrix ab
- matrix bIllegalArgumentException
- if the matrices are not column-conformant.public static void scalarDivideMatrix(ExpressionDataDoubleMatrix matrix, double dividend)
matrix
- matrixdividend
- dividendIllegalArgumentException
- if dividend == 0.public static void maskMatrix(ExpressionDataDoubleMatrix matrix, ExpressionDataBooleanMatrix mask)
matrix
- matrixmask
- if null, masking is not attempted.Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.