Class SpearmanMetrics
java.lang.Object
ubic.gemma.core.analysis.expression.coexpression.links.AbstractMatrixRowPairAnalysis
ubic.gemma.core.analysis.expression.coexpression.links.PearsonMetrics
ubic.gemma.core.analysis.expression.coexpression.links.SpearmanMetrics
- All Implemented Interfaces:
MatrixRowPairAnalysis
Subclass that computes correlations using ranks.
- Author:
- paul
-
Field Summary
Fields inherited from class ubic.gemma.core.analysis.expression.coexpression.links.AbstractMatrixRowPairAnalysis
HARD_LIMIT_MIN_NUM_USED
Fields inherited from interface ubic.gemma.core.analysis.expression.coexpression.links.MatrixRowPairAnalysis
NUM_BINS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SpearmanMetrics
(int size) SpearmanMetrics
(ExpressionDataDoubleMatrix dataMatrix) SpearmanMetrics
(ExpressionDataDoubleMatrix dataMatrix, double tmts) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Compute correlations.double
correctedPvalue
(int i, int j, double correl, int numused) protected void
Calculate mean and sumsqsqrt for each row -- using the ranks of course!protected double
spearman
(double[] vectorA, double[] vectorB, boolean[] usedA, boolean[] usedB, int i, int j) Methods inherited from class ubic.gemma.core.analysis.expression.coexpression.links.PearsonMetrics
correlFast
Methods inherited from class ubic.gemma.core.analysis.expression.coexpression.links.AbstractMatrixRowPairAnalysis
getCrossHybridizationRejections, getHistogramArrayList, getKeepers, getMatrix, getNumUniqueGenes, getProbeForRow, getScoreInBin, isUsePvalueThreshold, kurtosis, nullMatrix, numCached, setDuplicateMap, setLowerTailThreshold, setMinNumpresent, setOmitNegativeCorrelationLinks, setPValueThreshold, setUpperTailThreshold, setUseAbsoluteValue, setUsePvalueThreshold, size, toString
-
Constructor Details
-
SpearmanMetrics
-
SpearmanMetrics
- Parameters:
dataMatrix
- DenseDoubleMatrix2DNamedtmts
- Values of the correlation that are deemed too small to store in the matrix. Setting this as high as possible can greatly reduce memory requirements, but can slow things down.
-
SpearmanMetrics
protected SpearmanMetrics(int size) - Parameters:
size
- Dimensions of the required (square) matrix.
-
-
Method Details
-
calculateMetrics
public void calculateMetrics()Compute correlations.- Specified by:
calculateMetrics
in interfaceMatrixRowPairAnalysis
- Overrides:
calculateMetrics
in classPearsonMetrics
-
getMetricType
- Specified by:
getMetricType
in interfaceMatrixRowPairAnalysis
- Overrides:
getMetricType
in classPearsonMetrics
-
rowStatistics
protected void rowStatistics()Calculate mean and sumsqsqrt for each row -- using the ranks of course!- Overrides:
rowStatistics
in classPearsonMetrics
-
correctedPvalue
public double correctedPvalue(int i, int j, double correl, int numused) -
spearman
protected double spearman(double[] vectorA, double[] vectorB, boolean[] usedA, boolean[] usedB, int i, int j)
-