procope.evaluation.complexquality.go
Class CommonAncestors

java.lang.Object
  extended by procope.evaluation.complexquality.go.CommonAncestors

public class CommonAncestors
extends Object

Calculates and holds common ancestors for a given GO network. The ancestors of a GO Term are all parent terms on the way to the root node.

Author:
Jan Krumsiek
See Also:
GONetwork

Constructor Summary
CommonAncestors(GONetwork goNetwork)
          Creates common ancestors object for a given GO network.
 
Method Summary
 Collection<String> getAncestors(String term)
          Returns all ancestors of a given GO term.
 Set<String> getCommonAncestors(String term1, String term2)
          Returns the set of common ancestors of two given GO terms.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonAncestors

public CommonAncestors(GONetwork goNetwork)
Creates common ancestors object for a given GO network. The common ancestors are automatically calculated in this initialization step.

Parameters:
goNetwork - the GO network for which common ancestors are calculated
Method Detail

getAncestors

public Collection<String> getAncestors(String term)
Returns all ancestors of a given GO term.

Parameters:
term - identifier of the GO term
Returns:
identifiers of all ancestors of that term

getCommonAncestors

public Set<String> getCommonAncestors(String term1,
                                      String term2)
Returns the set of common ancestors of two given GO terms.

Parameters:
term1 - identifier of first GO term
term2 - identifier of second GO term
Returns:
identifiers of the common ancestors of the two given terms