• Method Detail

      • getChild1

        GuideTreeNode<S,​CgetChild1()

        Returns the first child node of this node. For leaf nodes (sequences), this will be null.

        Returns:
        the first child node of this node
      • getChild2

        GuideTreeNode<S,​CgetChild2()

        Returns the second child node of this node. For leaf nodes (sequences), this will be null.

        Returns:
        the second child node of this node
      • getDistanceToParent

        double getDistanceToParent()

        Returns 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.

        Returns:
        the difference in height of this node to it's parent node
      • getName

        String getName()

        Returns the name of this node. For leaf nodes (sequences), this will likely be the accession ID.

        Returns:
        the name of this node
      • getProfile

        Profile<S,​CgetProfile()

        Returns 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 until setProfile(Profile) has been called.

        Returns:
        the profile stored at this node
      • getProfileFuture

        Future<ProfilePair<S,​C>> getProfileFuture()

        Returns 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.

        Returns:
        the profile future stored at this node
      • setProfile

        void setProfile​(Profile<S,​C> profile)

        Stores the given profile.

        Parameters:
        profile - new profile stored at this node
      • setProfileFuture

        void setProfileFuture​(Future<ProfilePair<S,​C>> profileFuture)

        Stores the given profile future. This allows concurrent execution of alignment tasks.

        Parameters:
        profileFuture - new profile to be calculated and then stored at this node