public class Multifunctionality extends Object
Note: This computes multifunctionality at 'startup' based on all the annotations available, not necessarily the ones selected for analysis. For example, if you load KEGG groups along with GO, multifunctionality is computed based on both of them. But if the user selects only to analyze KEGG, multifunctionality correction is based on the bias in KEGG+GO. This could be fixed by changing the 'subclone' method of GeneAnnotations to trim aspects, not just genes.
for another implementation of parts of this.
Constructor and Description |
---|
Multifunctionality(GeneAnnotations go,
StatusViewer m)
Construct Multifunctionality information based on the state of the GO annotations -- this accounts only for the
probes in the annotations.
|
Modifier and Type | Method and Description |
---|---|
Map<Gene,Double> |
adjustScores(Map<Gene,Double> geneToScoreMap,
boolean useRanks,
boolean weight)
Given a set of scores for genes, adjust them to correct for multifunctionality, using a regression approach.
|
double |
correlationWithGeneMultifunctionality(List<Gene> rankedGenes) |
double |
correlationWithGoTermMultifunctionality(List<GeneSetTerm> rankedGoTerms) |
double |
enrichmentForMultifunctionality(Collection<Gene> genesInSet)
This is like correlationWithGeneMultifunctionality(List
|
double |
enrichmentForMultifunctionalityPvalue(Collection<Gene> genesInSet) |
QuantileBin1D |
getGeneMultifunctionalityQuantiles()
Get QuantileBin1D, which can tell you the quantile for a given value, or the expected value for a given quantile.
|
double |
getGOTermMultifunctionality(GeneSetTerm goId) |
double |
getGOTermMultifunctionalityPvalue(GeneSetTerm goId) |
double |
getGOTermMultifunctionalityRank(GeneSetTerm goId) |
Gene |
getMostMultifunctional(Collection<Gene> genes)
Convenience method.
|
double |
getMultifunctionalityRank(Gene gene) |
double |
getMultifunctionalityScore(Gene gene) |
int |
getNumGenes()
How many genes have multifunctionality scores.
|
int |
getNumGoTerms(Gene gene) |
Double |
getRawGeneMultifunctionalityRank(Gene gene) |
boolean |
isStale() |
Map<Gene,Double> |
padogWeights() |
void |
setStale(boolean stale) |
public Multifunctionality(GeneAnnotations go, StatusViewer m)
go
- These annotations should already be pruned down to those used in analysis.public Map<Gene,Double> padogWeights()
public Map<Gene,Double> adjustScores(Map<Gene,Double> geneToScoreMap, boolean useRanks, boolean weight)
geneToScoreMap
- Should already be log transformed, if requested.useRanks
- If true, the ranks of the gene scores will be used for regression.weight
- If true, the regression will be weighted (current implementation is by 1/sqrt(rank))public double correlationWithGeneMultifunctionality(List<Gene> rankedGenes)
rankedGenes,
- with the "best" gene first.public double correlationWithGoTermMultifunctionality(List<GeneSetTerm> rankedGoTerms)
rankedGoTerms,
- with the "best" GO term first.public double enrichmentForMultifunctionality(Collection<Gene> genesInSet)
http://en.wikipedia.org/wiki/Mann%E2%80%93Whitney_U
.genesInSet
- in baseCode for a generic implementation
public double enrichmentForMultifunctionalityPvalue(Collection<Gene> genesInSet)
genesInSet
- public QuantileBin1D getGeneMultifunctionalityQuantiles()
public double getGOTermMultifunctionality(GeneSetTerm goId)
goId
- This is computed from the area under the ROC curve for the genes in the group, in the ranking of all genes for multifunctionality. The exact method for computing this is defined by computeGoTermMultifunctionalityRanks
public double getGOTermMultifunctionalityPvalue(GeneSetTerm goId)
goId
- getGOTermMultifunctionality
public double getGOTermMultifunctionalityRank(GeneSetTerm goId)
goId
- public Gene getMostMultifunctional(Collection<Gene> genes)
genes
- public double getMultifunctionalityRank(Gene gene)
gene
- public double getMultifunctionalityScore(Gene gene)
gene
- public int getNumGenes()
public int getNumGoTerms(Gene gene)
gene
- public Double getRawGeneMultifunctionalityRank(Gene gene)
gene
- public boolean isStale()
public void setStale(boolean stale)
Copyright © 2002-2013 UBC Centre for High-Throughput Biology. All Rights Reserved.