Package org.snpeff.geneSets
Class GeneSetsRanked
java.lang.Object
org.snpeff.geneSets.GeneSets
org.snpeff.geneSets.GeneSetsRanked
- All Implemented Interfaces:
Serializable,Iterable<GeneSet>
A collection of GeneSets
Genes are ranked (usually by 'value')
- Author:
- Pablo Cingolani
- See Also:
-
Field Summary
Fields inherited from class org.snpeff.geneSets.GeneSets
debug, LOG2, PRINT_SOMETHING_TIME -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorGeneSetsRanked(String msigDb) GeneSetsRanked(GeneSets geneSets) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a 'ranked' gene (to every corresponding GeneSet in this collection)voidcheckInterestingGenes(Set<String> intGenes) Checks that every symboolID is in the set (as 'interesting' genes)intGet maximum rankintGet gene's rankGet geneId <-> Rank mappingintHow many gene sets have ranked genes (i.e.booleanisRanked()booleanprotected booleanprotected booleanIs this gene set used? I.e.loadExperimentalValues(String fileName, boolean maskException) Reads a file with a list of genes and experimental values.intrankByValue(boolean orderAscending) Rank genes by valuevoidreset()Reset every 'interesting' gene or ranked gene (on every single GeneSet in this GeneSets)Methods inherited from class org.snpeff.geneSets.GeneSets
add, add, add, addInteresting, copy, disjointSet, factory, geneSetsSorted, geneSetsSortedSize, getGeneCount, getGenes, getGeneSet, getGeneSetCount, getGeneSetsByGene, getGeneSetsByName, getInterestingGenes, getInterestingGenesCount, getLabel, getValue, getValueByGene, hasGene, hasValue, isInteresting, iterator, iteratorSorted, keySet, listTopTerms, loadMSigDb, remove, removeGeneSet, removeUnusedSets, saveGseaGeneSets, setDoNotAddIfNotInGeneSet, setGeneSetByName, setInterestingGenes, setValue, setVerbose, toString, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
GeneSetsRanked
public GeneSetsRanked()Default constructor -
GeneSetsRanked
-
GeneSetsRanked
-
-
Method Details
-
add
Add a 'ranked' gene (to every corresponding GeneSet in this collection)- Parameters:
gene- : symbol's IDrank- : symbol's rank
-
checkInterestingGenes
Checks that every symboolID is in the set (as 'interesting' genes)- Overrides:
checkInterestingGenesin classGeneSets- Parameters:
intGenes- : A set of interesting genes Throws an exception on error
-
getMaxRank
public int getMaxRank()Get maximum rank- Returns:
-
getRank
Get gene's rank- Parameters:
gene-- Returns:
-
getRankByGene
Get geneId <-> Rank mapping- Returns:
-
getRankedSetsCount
public int getRankedSetsCount()How many gene sets have ranked genes (i.e. rank sum > 0)- Returns:
- Number of gene set such that rankSum > 0
-
isRanked
public boolean isRanked() -
isRanked
-
isUsed
Is this gene set used? I.e. is there at least one gene 'used'? (e.g. interesting or ranked) -
isUsed
-
loadExperimentalValues
Reads a file with a list of genes and experimental values. Format: "gene \t value \n"- Overrides:
loadExperimentalValuesin classGeneSets- Parameters:
fileName-- Returns:
- A list of genes not found
-
rankByValue
public int rankByValue(boolean orderAscending) Rank genes by value -
reset
public void reset()Reset every 'interesting' gene or ranked gene (on every single GeneSet in this GeneSets)
-