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_USEDFields inherited from interface ubic.gemma.core.analysis.expression.coexpression.links.MatrixRowPairAnalysis
NUM_BINS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSpearmanMetrics(int size) SpearmanMetrics(ExpressionDataDoubleMatrix dataMatrix) SpearmanMetrics(ExpressionDataDoubleMatrix dataMatrix, double tmts) -
Method Summary
Modifier and TypeMethodDescriptionvoidCompute correlations.doublecorrectedPvalue(int i, int j, double correl, int numused) protected voidCalculate mean and sumsqsqrt for each row -- using the ranks of course!protected doublespearman(double[] vectorA, double[] vectorB, boolean[] usedA, boolean[] usedB, int i, int j) Methods inherited from class ubic.gemma.core.analysis.expression.coexpression.links.PearsonMetrics
correlFastMethods 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:
calculateMetricsin interfaceMatrixRowPairAnalysis- Overrides:
calculateMetricsin classPearsonMetrics
-
getMetricType
- Specified by:
getMetricTypein interfaceMatrixRowPairAnalysis- Overrides:
getMetricTypein classPearsonMetrics
-
rowStatistics
protected void rowStatistics()Calculate mean and sumsqsqrt for each row -- using the ranks of course!- Overrides:
rowStatisticsin 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)
-