Package org.snpeff.geneOntology
Class GoTerm
java.lang.Object
org.snpeff.geneOntology.GoTerm
- All Implemented Interfaces:
Serializable,Comparable<GoTerm>,Iterable<String>
An instance of a GO term (a node in the DAG)
- Author:
- Pablo Cingolani
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a goTermId as a child of this GOTerm Also adds 'this' as parent of 'goTerm'voidaddInterestingSymbolId(String symbolId) Add one gene to interestingGenesSetvoidaddSymbolId(String symbolId) Add one gene to genesSetvoidaddSymbolsFromChilds(GoTerm goTerm) Add all symbols from childs to goTermintgetAcc()Return first child in the listReturn first parent in the listintNumber of 'interesting' symbolsintgetLevel()Calculate node's levelintintNumber of symbols in this node (total = interesting + not-interesting)intNumber of symbols in this node (total = interesting + not-interesting)voidintersection(GoTerm goTerm) Intersects this term with 'goTerm' (intersects 'symbolIdSet' and 'interestingSymbolIdSet').booleanisLeave()Is this GOTerm a leave?iterator()rootNode()Get the root nodevoidvoidvoidsetGenesSet(HashSet<String> genesSet) voidsetGoTerms(GoTerms goTerms) voidsetInterestingSymbolIdSet(HashSet<String> interestingSymbolIdSet) voidsetLevel(int level) voidsetMaxRank(int maxRank) voidPerform a 'set minus' between this term and 'goTerm' (set minus for 'symbolIdSet' and 'interestingSymbolIdSet').voidsetNameSpace(String goTermType) voidsetParents(HashSet<GoTerm> parents) voidsetRankedSymbols(int rankedSymbols) voidsetRankSum(int rankSum) voidsetSescription(String description) voidsetSymbolIdSet(HashSet<String> symbolIdSet) toString()toStringAll(boolean showSymbols) voidUnion this term with 'goTerm' (union for 'symbolIdSet' and 'interestingSymbolIdSet').Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
debug
public static boolean debug
-
-
Constructor Details
-
GoTerm
Create a new GOTerm by joining all GOTerms in the list- Parameters:
goTermList-
-
GoTerm
-
-
Method Details
-
addChild
Add a goTermId as a child of this GOTerm Also adds 'this' as parent of 'goTerm'- Parameters:
goTermAcc-
-
addInterestingSymbolId
Add one gene to interestingGenesSet- Parameters:
symbolId-
-
addSymbolId
Add one gene to genesSet- Parameters:
symbolId-
-
addSymbolsFromChilds
Add all symbols from childs to goTerm -
compareTo
- Specified by:
compareToin interfaceComparable<GoTerm>
-
getAcc
-
getChilds
-
getDescription
-
getFirstChild
Return first child in the list- Returns:
- First child (or null if there are no children)
-
getFirstParent
Return first parent in the list- Returns:
- First parent (or null if there are no parents)
-
getGoTerms
-
getInterestingSymbolIdSet
-
getInterestingSymbolIdsSize
public int getInterestingSymbolIdsSize()Number of 'interesting' symbols- Returns:
-
getLevel
public int getLevel()Calculate node's level- Returns:
-
getMaxRank
public int getMaxRank() -
getNameSpace
-
getParents
-
getRankedSymbols
public int getRankedSymbols() -
getSymbolIdSet
Number of symbols in this node (total = interesting + not-interesting)- Returns:
-
getTotalCount
public int getTotalCount()Number of symbols in this node (total = interesting + not-interesting)- Returns:
-
intersection
Intersects this term with 'goTerm' (intersects 'symbolIdSet' and 'interestingSymbolIdSet').- Parameters:
goTerm- : GOTerm to intercept
-
isLeave
public boolean isLeave()Is this GOTerm a leave?- Returns:
-
iterator
-
rootNode
Get the root node- Returns:
-
setAcc
-
setChilds
-
setGenesSet
-
setGoTerms
-
setInterestingSymbolIdSet
-
setLevel
public void setLevel(int level) -
setMaxRank
public void setMaxRank(int maxRank) -
setMinus
Perform a 'set minus' between this term and 'goTerm' (set minus for 'symbolIdSet' and 'interestingSymbolIdSet').- Parameters:
goTerm- : GOTerm to use for 'set minus' operation
-
setNameSpace
-
setParents
-
setRankedSymbols
public void setRankedSymbols(int rankedSymbols) -
setRankSum
public void setRankSum(int rankSum) -
setSescription
-
setSymbolIdSet
-
toString
-
toStringAll
-
toStringAll
-
union
Union this term with 'goTerm' (union for 'symbolIdSet' and 'interestingSymbolIdSet').- Parameters:
goTerm- : GOTerm to use for union
-