public class GeneSetResamplingBackgroundDistributionGenerator extends AbstractResamplingGeneSetScore
classMaxSize, classMinSize, hist, histogramMax, histogramMin, log, NORMAL_APPROX_SAMPLE_FREQUENCY, numClasses, numRuns, SPEDUPSIZEEXTRASTEP, SPEEDUPSIZECUT, TOLERANCE, useNormalApprox, useSpeedUp
Constructor and Description |
---|
GeneSetResamplingBackgroundDistributionGenerator(SettingsHolder settings,
Map<Gene,Double> geneToScoreMap) |
Modifier and Type | Method and Description |
---|---|
protected double |
averagePrecision(Collection<Gene> genesInSet) |
double |
computeRawScore(double[] genevalues,
Collection<Gene> genesInSet)
Basic method to calculate the raw score for a gene set, given an array of the gene scores for items in the class.
|
Histogram |
generateNullDistribution(StatusViewer m)
Used for methods which require randomly sampling classes to generate a null distribution of scores based on
gene-by-gene scores.
|
Histogram |
generateNulldistribution(StatusViewer m,
long randomSeed)
Generate a null distribution, using a selected random seed.
|
void |
setHistogramRange()
Figure out the limits that should be used for the histogram.
|
void |
setQuantile(int value) |
void |
setRandomSeed(long randomSeed) |
getHist, setClassMaxSize, setUseNormalApprox, setUseSpeedUp
ifInterruptedStop
public GeneSetResamplingBackgroundDistributionGenerator(SettingsHolder settings, Map<Gene,Double> geneToScoreMap)
settings
- geneScores
- Should already be multifunctionality corrected if desired.public double computeRawScore(double[] genevalues, Collection<Gene> genesInSet)
genevalues
- double[] raw scores for the items in the class.genesInSet
- for choices of methods.
public Histogram generateNulldistribution(StatusViewer m, long randomSeed)
m
- randomSeed
- public Histogram generateNullDistribution(StatusViewer m)
m
- public void setHistogramRange()
public void setQuantile(int value)
value
- intpublic void setRandomSeed(long randomSeed)
protected double averagePrecision(Collection<Gene> genesInSet)
genesInSet
- Copyright © 2002-2013 UBC Centre for High-Throughput Biology. All Rights Reserved.