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

All Samples(4)  |  Call(1)  |  Derive(2)  |  Import(1)
Indicates the color of a clade when rendered graphically.

The color should be interpreted by client code (e.g. visualization
programs) as applying to the whole clade, unless overwritten by the
color(s) of sub-clades.

Color values must be integers from 0 to 255.

src/b/i/biopython-HEAD/Bio/Phylo/PhyloXML.py   biopython(Download)
class BranchColor(PhyloElement, BaseTree.BranchColor):
    def __init__(self, *args, **kwargs):
        BaseTree.BranchColor.__init__(self, *args, **kwargs)
 
 

src/b/i/biopython-1.63/Bio/Phylo/PhyloXML.py   biopython(Download)
class BranchColor(PhyloElement, BaseTree.BranchColor):
    def __init__(self, *args, **kwargs):
        BaseTree.BranchColor.__init__(self, *args, **kwargs)
 
 

src/f/a/fammer-0.2/fammerlib/cluster.py   fammer(Download)
 
from Bio import AlignIO, SeqIO, Phylo
from Bio.Phylo.BaseTree import BranchColor
from Bio.Graphics.ColorSpiral import ColorSpiral
 
        logging.info("Wrote %s (%d sequences)", fname, len(records))
 
    colors = [BranchColor(*map(lambda x: int(x*255), rgb))
            for rgb in ColorSpiral().get_colors(len(clusters))]
    for i, item in enumerate(sorted(clusters.iteritems(), reverse=True,