Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def Bio.Nexus.Nodes.Chain.trace (   self,
  start,
  finish 
) [inherited]
Returns a list of all node_ids between two nodes (excluding start, including end): trace(start,end).

Definition at line 107 of file Nodes.py.

References Bio.Nexus.Nodes.Chain.chain, Bio.Nexus.Nodes.Chain.is_parent_of(), Bio::UniGene::SequenceLine.trace, and Bio.Nexus.Nodes.Chain.trace().

Referenced by Bio.Nexus.Trees.Tree.common_ancestor(), and Bio.Nexus.Nodes.Chain.trace().

00107 
    def trace(self,start,finish):
        """Returns a list of all node_ids between two nodes (excluding start, including end): trace(start,end)."""
        if start not in self.chain or finish not in self.chain:
            raise NodeException('Unknown node.')
        if not self.is_parent_of(start,finish) or start==finish:
            return []
        for sn in self.chain[start].get_succ():
            if self.is_parent_of(sn,finish):
                return [sn]+self.trace(sn,finish)
                

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index