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

All Samples(12)  |  Call(11)  |  Derive(0)  |  Import(1)

src/e/t/ete-HEAD/tools/ete_tools/ete_maptrees.py   ete(Download)
import os
from collections import defaultdict
from common import __CITATION__,  Tree, PhyloTree, argparse, add_face_to_node, TreeStyle, faces, NodeStyle
import numpy
import hashlib
 
    if node.ndups is not None:
        add_face_to_node(faces.TextFace("Dups=%d(%0.2g dup/tree)" %(node.ndups, node.dup_rate),
                                        fsize=8, fgcolor="orange"), node, 2, position="branch-bottom")
    if node.losses is not None:
        add_face_to_node(faces.TextFace("Losses=%d(%0.2g losses/tree)" %(node.losses, node.losses_rate),
                                    fsize=8, fgcolor="green"), node, 2, position="branch-bottom")
 
    if node.nduplosses is not None:
        add_face_to_node(faces.TextFace("dupLosses=%d(%0.2g losses/tree)" %(node.nduplosses, node.duplosses_rate),
                                        fsize=8, fgcolor="blue"), node, 2, position="branch-bottom")
    if node.gt_support is not None:
        add_face_to_node(faces.TextFace("GTsupport=%g" %(node.gt_support),
                                        fsize=8, fgcolor="black"), node, 1, position="branch-top")
    if node.nsupport_trees is not None: