Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/c/g/CGAT-0.2.0/CGAT/Tree.py   CGAT(Download)
 
        # now we destroy the old tree structure, but keep node data. Nodes will be reconnected according to new outgroup
        for n in self.all_ids():
            self.node(n).prev=None
            self.node(n).succ=[]
 
        # if theres still a lonely node in self.chain, then it's the old root, and we delete it
        oldroot=[i for i in self.all_ids() if self.node(i).prev is None and i!=self.root]
        if len(oldroot)>1:
            raise TreeError, 'Isolated nodes in tree description: %s' % ','.join(oldroot)

src/c/g/cgat-HEAD/CGAT/Tree.py   cgat(Download)
        # now we destroy the old tree structure, but keep node data. Nodes will
        # be reconnected according to new outgroup
        for n in self.all_ids():
            self.node(n).prev = None
            self.node(n).succ = []
        # if theres still a lonely node in self.chain, then it's the old root,
        # and we delete it
        oldroot = [i for i in self.all_ids() if self.node(
            i).prev is None and i != self.root]
        if len(oldroot) > 1: