Package org.biojava.nbio.alignment
Class GuideTree.Node
java.lang.Object
org.biojava.nbio.alignment.GuideTree.Node
- All Implemented Interfaces:
TreeNode,GuideTreeNode<S,C>
Implements a data structure for the node in a guide tree used during progressive multiple sequence alignment.
-
Method Summary
Modifier and TypeMethodDescriptionchildren()booleanReturns the first child node of this node.Returns the second child node of this node.getChildAt(int childIndex) intdoubleReturns the difference in height of this node and it's parent node.intgetName()Returns the name of this node.Returns the profile stored at this node.Future<ProfilePair<S, C>> Returns the profile future stored at this node, but does not force the calculation, yet.booleanisLeaf()voidsetProfile(Profile<S, C> profile) Stores the given profile.voidsetProfileFuture(Future<ProfilePair<S, C>> profileFuture) Stores the given profile future.
-
Method Details
-
getChild1
Description copied from interface:GuideTreeNodeReturns the first child node of this node. For leaf nodes (sequences), this will be null. -
getChild2
Description copied from interface:GuideTreeNodeReturns the second child node of this node. For leaf nodes (sequences), this will be null. -
getDistanceToParent
Description copied from interface:GuideTreeNodeReturns the difference in height of this node and it's parent node. A likely meaning of this distance is half the percent difference between this node and it's sibling node.- Specified by:
getDistanceToParentin interfaceGuideTreeNode<S extends Sequence<C>,C extends Compound> - Returns:
- the difference in height of this node to it's parent node
-
getName
Description copied from interface:GuideTreeNodeReturns the name of this node. For leaf nodes (sequences), this will likely be the accession ID. -
getProfile
Description copied from interface:GuideTreeNodeReturns the profile stored at this node. If the node is a leaf, the profile is that of a single sequence. If not, this returns null untilGuideTreeNode.setProfile(Profile)has been called.- Specified by:
getProfilein interfaceGuideTreeNode<S extends Sequence<C>,C extends Compound> - Returns:
- the profile stored at this node
-
getProfileFuture
Description copied from interface:GuideTreeNodeReturns the profile future stored at this node, but does not force the calculation, yet. This allows alignment tasks for the entire tree to be queued in a post-order traversal before concurrent execution.- Specified by:
getProfileFuturein interfaceGuideTreeNode<S extends Sequence<C>,C extends Compound> - Returns:
- the profile future stored at this node
-
setProfile
Description copied from interface:GuideTreeNodeStores the given profile.- Specified by:
setProfilein interfaceGuideTreeNode<S extends Sequence<C>,C extends Compound> - Parameters:
profile- new profile stored at this node
-
setProfileFuture
Description copied from interface:GuideTreeNodeStores the given profile future. This allows concurrent execution of alignment tasks.- Specified by:
setProfileFuturein interfaceGuideTreeNode<S extends Sequence<C>,C extends Compound> - Parameters:
profileFuture- new profile to be calculated and then stored at this node
-
children
-
getAllowsChildren
- Specified by:
getAllowsChildrenin interfaceTreeNode
-
getChildAt
- Specified by:
getChildAtin interfaceTreeNode
-
getChildCount
- Specified by:
getChildCountin interfaceTreeNode
-
getIndex
-
getParent
-
isLeaf
-