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

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

src/c/g/CGAT-0.2.0/CGAT/TreeTools.py   CGAT(Download)
        if parent not in map_node2id:
            p = len(tree.chain)
            tree.chain[p] = Bio.Nexus.Nodes.Node(Bio.Nexus.Trees.NodeData())
            map_node2id[parent] = p
            map_id2node.append( parent )            
        if child not in map_node2id:
            c = len(tree.chain)
            tree.chain[c] = Bio.Nexus.Nodes.Node(Bio.Nexus.Trees.NodeData())
            map_node2id[child] = c
            map_id2node.append( child )                                    

src/c/g/cgat-HEAD/CGAT/TreeTools.py   cgat(Download)
        if parent not in map_node2id:
            p = len(tree.chain)
            tree.chain[p] = Bio.Nexus.Nodes.Node(Bio.Nexus.Trees.NodeData())
            map_node2id[parent] = p
            map_id2node.append(parent)
        if child not in map_node2id:
            c = len(tree.chain)
            tree.chain[c] = Bio.Nexus.Nodes.Node(Bio.Nexus.Trees.NodeData())
            map_node2id[child] = c
            map_id2node.append(child)

src/c/g/CGAT-0.2.0/CGAT/Tree.py   CGAT(Download)
 
        # now we just add both subtrees (outgroup and ingroup) branch for branch
        root=Bio.Nexus.Nodes.Node(data=Bio.Nexus.Trees.NodeData())            # new root    
        self.add(root)                              # add to tree description
        self.root=root.id                           # set as root

src/c/g/cgat-HEAD/CGAT/Tree.py   cgat(Download)
        # branch
        root = Bio.Nexus.Nodes.Node(
            data=Bio.Nexus.Trees.NodeData())            # new root
        self.add(root)                              # add to tree description
        self.root = root.id                           # set as root