Class AbstractMatrixRowPairAnalysis
java.lang.Object
ubic.gemma.core.analysis.expression.coexpression.links.AbstractMatrixRowPairAnalysis
- All Implemented Interfaces:
MatrixRowPairAnalysis
- Direct Known Subclasses:
PearsonMetrics
- Author:
- paul
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAbsolute lower limit to minNumUsed.Fields inherited from interface ubic.gemma.core.analysis.expression.coexpression.links.MatrixRowPairAnalysis
NUM_BINS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongUse after analysis.Read back the histogram as a DoubleArrayList of counts.Identify the correlations that are above the set thresholds.doubledoublegetScoreInBin(int i) booleandoublekurtosis()voidFlag the correlation matrix as un-fillable.intprotected abstract voidvoidsetDuplicateMap(Map<CompositeSequence, Set<Gene>> probeToGeneMap) voidsetLowerTailThreshold(double k) Set the threshold, below which correlations are kept (e.g., negative values)voidsetMinNumpresent(int minSamplesToKeepCorrelation) Set the number of mutually present values in a pairwise comparison that must be attained before the correlation is stored.voidsetOmitNegativeCorrelationLinks(boolean omitNegativeCorrelationLinks) voidsetPValueThreshold(double k) voidsetUpperTailThreshold(double k) Set the threshold, above which correlations are kept.voidsetUseAbsoluteValue(boolean k) If set to true, then the absolute value of the correlation is used for histograms and choosing correlations to keep.voidsetUsePvalueThreshold(boolean usePvalueThreshold) Default is true; set to false to disable use of the pvalue threshold, in which case only the upper and lower tail thresholds will be used.intsize()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ubic.gemma.core.analysis.expression.coexpression.links.MatrixRowPairAnalysis
calculateMetrics, getMetricType
-
Field Details
-
HARD_LIMIT_MIN_NUM_USED
public static final int HARD_LIMIT_MIN_NUM_USEDAbsolute lower limit to minNumUsed. (This used to be 3, and then 5). It doesn't make much sense to set this higher than ExpressionExperimentFilter.MIN_NUMBER_OF_SAMPLES_PRESENT- See Also:
-
-
Constructor Details
-
AbstractMatrixRowPairAnalysis
public AbstractMatrixRowPairAnalysis()
-
-
Method Details
-
getHistogramArrayList
Read back the histogram as a DoubleArrayList of counts.- Specified by:
getHistogramArrayListin interfaceMatrixRowPairAnalysis- Returns:
- cern.colt.list.DoubleArrayList
-
getKeepers
Identify the correlations that are above the set thresholds.- Specified by:
getKeepersin interfaceMatrixRowPairAnalysis- Returns:
- cern.colt.list.ObjectArrayList
-
getProbeForRow
- Specified by:
getProbeForRowin interfaceMatrixRowPairAnalysis
-
getScoreInBin
public double getScoreInBin(int i) - Specified by:
getScoreInBinin interfaceMatrixRowPairAnalysis
-
numCached
public int numCached()- Specified by:
numCachedin interfaceMatrixRowPairAnalysis- Returns:
- The number of values stored in the correlation matrix.
-
setDuplicateMap
- Specified by:
setDuplicateMapin interfaceMatrixRowPairAnalysis
-
setLowerTailThreshold
public void setLowerTailThreshold(double k) Set the threshold, below which correlations are kept (e.g., negative values)- Specified by:
setLowerTailThresholdin interfaceMatrixRowPairAnalysis- Parameters:
k- double
-
setMinNumpresent
public void setMinNumpresent(int minSamplesToKeepCorrelation) Set the number of mutually present values in a pairwise comparison that must be attained before the correlation is stored. Note that you cannot set the value less than HARD_LIMIT_MIN_NUM_USED.- Specified by:
setMinNumpresentin interfaceMatrixRowPairAnalysis
-
setOmitNegativeCorrelationLinks
public void setOmitNegativeCorrelationLinks(boolean omitNegativeCorrelationLinks) - Specified by:
setOmitNegativeCorrelationLinksin interfaceMatrixRowPairAnalysis- Parameters:
omitNegativeCorrelationLinks- the omitNegativeCorrelationLinks to set
-
setPValueThreshold
public void setPValueThreshold(double k) - Specified by:
setPValueThresholdin interfaceMatrixRowPairAnalysis- Parameters:
k- double
-
setUpperTailThreshold
public void setUpperTailThreshold(double k) Set the threshold, above which correlations are kept.- Specified by:
setUpperTailThresholdin interfaceMatrixRowPairAnalysis- Parameters:
k- double
-
setUseAbsoluteValue
public void setUseAbsoluteValue(boolean k) If set to true, then the absolute value of the correlation is used for histograms and choosing correlations to keep. The correlation matrix, if actually used to store all the values, maintains the actual number.- Specified by:
setUseAbsoluteValuein interfaceMatrixRowPairAnalysis- Parameters:
k- boolean
-
getMatrix
- Returns:
- baseCode.dataStructure.NamedMatrix
-
isUsePvalueThreshold
public boolean isUsePvalueThreshold()- Returns:
- the usePvalueThreshold
-
setUsePvalueThreshold
public void setUsePvalueThreshold(boolean usePvalueThreshold) Description copied from interface:MatrixRowPairAnalysisDefault is true; set to false to disable use of the pvalue threshold, in which case only the upper and lower tail thresholds will be used.- Specified by:
setUsePvalueThresholdin interfaceMatrixRowPairAnalysis- Parameters:
usePvalueThreshold- the usePvalueThreshold to set
-
getCrossHybridizationRejections
public long getCrossHybridizationRejections()Description copied from interface:MatrixRowPairAnalysisUse after analysis.- Specified by:
getCrossHybridizationRejectionsin interfaceMatrixRowPairAnalysis- Returns:
- how many pairs were rejected due to cross-hybridization potential
-
getNumUniqueGenes
public double getNumUniqueGenes()- Specified by:
getNumUniqueGenesin interfaceMatrixRowPairAnalysis
-
size
public int size()- Specified by:
sizein interfaceMatrixRowPairAnalysis- Returns:
- how many rows/columns the matrix has.
-
kurtosis
public double kurtosis()- Returns:
- double
-
nullMatrix
public void nullMatrix()Flag the correlation matrix as un-fillable. This means that when PearsonMatrix is called, only the histogram will be filled in. Also trashes any values that might have been stored there. -
toString
-
rowStatistics
protected abstract void rowStatistics()
-