ó
gbc           @   sD   d  Z  d d l m Z d Z d „  Z d „  Z d „  Z d „  Z d S(	   s,   
Created on 25 nov. 2011

@author: merciece
iÿÿÿÿ(   t   nexusFormats“	  begin figtree;
    set appearance.backgroundColorAttribute="User Selection";
    set appearance.backgroundColour=#-1;
    set appearance.branchColorAttribute="bc";
    set appearance.branchLineWidth=2.0;
    set appearance.foregroundColour=#-16777216;
    set appearance.selectionColour=#-2144520576;
    set branchLabels.colorAttribute="User Selection";
    set branchLabels.displayAttribute="errors";
    set branchLabels.fontName="sansserif";
    set branchLabels.fontSize=10;
    set branchLabels.fontStyle=0;
    set branchLabels.isShown=true;
    set branchLabels.significantDigits=4;
    set layout.expansion=2000;
    set layout.layoutType="RECTILINEAR";
    set layout.zoom=0;
    set nodeBars.barWidth=4.0;
    set nodeLabels.colorAttribute="User Selection";
    set nodeLabels.displayAttribute="label";
    set nodeLabels.fontName="sansserif";
    set nodeLabels.fontSize=10;
    set nodeLabels.fontStyle=0;
    set nodeLabels.isShown=true;
    set nodeLabels.significantDigits=4;
    set polarLayout.alignTipLabels=false;
    set polarLayout.angularRange=0;
    set polarLayout.rootAngle=0;
    set polarLayout.rootLength=100;
    set polarLayout.showRoot=true;
    set radialLayout.spread=0.0;
    set rectilinearLayout.alignTipLabels=false;
    set rectilinearLayout.curvature=0;
    set rectilinearLayout.rootLength=100;
    set scale.offsetAge=0.0;
    set scale.rootAge=1.0;
    set scale.scaleFactor=1.0;
    set scale.scaleRoot=false;
    set scaleAxis.automaticScale=true;
    set scaleAxis.fontSize=8.0;
    set scaleAxis.isShown=false;
    set scaleAxis.lineWidth=2.0;
    set scaleAxis.majorTicks=1.0;
    set scaleAxis.origin=0.0;
    set scaleAxis.reverseAxis=false;
    set scaleAxis.showGrid=true;
    set scaleAxis.significantDigits=4;
    set scaleBar.automaticScale=true;
    set scaleBar.fontSize=10.0;
    set scaleBar.isShown=true;
    set scaleBar.lineWidth=1.0;
    set scaleBar.scaleRange=0.0;
    set scaleBar.significantDigits=4;
    set tipLabels.colorAttribute="User Selection";
    set tipLabels.displayAttribute="Names";
    set tipLabels.fontName="sansserif";
    set tipLabels.fontSize=10;
    set tipLabels.fontStyle=0;
    set tipLabels.isShown=true;
    set tipLabels.significantDigits=4;
    set trees.order=false;
    set trees.orderType="increasing";
    set trees.rooting=false;
    set trees.rootingType="User Selection";
    set trees.transform=false;
    set trees.transformType="cladogram";
end;
c            s   ‡  f d †  } | S(   Nc            s   d |  k o |  d ˆ  k S(   Nt   rank(    (   t   node(   R   (    sB   lib/python2.7/site-packages/obitools/barcodecoverage/drawBcTree.pyt   cartoonS   s    (    (   R   R   (    (   R   sB   lib/python2.7/site-packages/obitools/barcodecoverage/drawBcTree.pyt   cartoonRankGeneratorR   s    c            s   ‡  f d †  } | S(   Nc            s   d |  k o |  d ˆ  k S(   Nt   bc(    (   R   (   t   Bclimit(    sB   lib/python2.7/site-packages/obitools/barcodecoverage/drawBcTree.pyt   collapseZ   s    (    (   R   R   (    (   R   sB   lib/python2.7/site-packages/obitools/barcodecoverage/drawBcTree.pyt   collapseBcGeneratorY   s    c         C   s2   d |  k r" d |  d |  d f Sd |  d Sd  S(   NR   s   (%+3.1f) %st   names         %s(    (   R   (    (    sB   lib/python2.7/site-packages/obitools/barcodecoverage/drawBcTree.pyt   label_   s    c      	   C   s'   t  |  d t d t d t d ƒ ƒGHd  S(   NR
   t   blocksR   t   family(   R    R
   t   figtreeR   (   t   coverageTree(    (    sB   lib/python2.7/site-packages/obitools/barcodecoverage/drawBcTree.pyt   mainf   s    	N(   t   __doc__t   obitools.graph.rootedtreeR    R   R   R   R
   R   (    (    (    sB   lib/python2.7/site-packages/obitools/barcodecoverage/drawBcTree.pyt   <module>   s   G			