# HG changeset patch # User dcorreia # Date 1458053614 14400 # Node ID 5c11638687d0a071c19b29eff46d9eef3d34a851 Imported from capsule None diff -r 000000000000 -r 5c11638687d0 nwdisplay.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nwdisplay.xml Tue Mar 15 10:53:34 2016 -0400 @@ -0,0 +1,255 @@ + + Display a phylogenetic tree as SVG + + newick_utilities + + + nw_display + -s + $scalebar + -u "$legend" + -I 'r' + -i + #if $condbranchsupport.branchsupport == "true": + "fill:$condbranchsupport.supcolor; + font-size:$condbranchsupport.supfontsize; + transform:$condbranchsupport.suptransform;" + #else: + "visibility:hidden;" + #end if + -b + #if $condbranchlength.branchlength == "true": + "fill:$condbranchlength.lencolor; + font-size:$condbranchlength.lenfontsize; + transform:$condbranchlength.lentransform;" + #else: + "visibility:hidden;" + #end if + + -l "font-family:$leafPolice;font-size:$leafSize;" + -d "stroke:grey;fill:none;stroke-width:2;stoke-linecap:round;" + -w $width + $radial + + $fileNewick > $output + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Input +----- + +Argument is the name of the file containing one or more trees, +or '-' (in which case the tree is read on stdin). + +Output +------ + +Outputs a graph representing the tree, either as text (default) or +as SVG (option -s). Underscores in labels are replaced with spaces. +Trees with no branch lengths are taken to be cladograms and are +drawn with leaves aligned. Otherwise, the tree is assumed to be a +phylogram: branch lengths are honored and a scale bar is drawn. + +SVG graphics can be converted to other formats with converters +such as Inkscape (e.g. to PDF) or ImageMagick (e.g. to PNG or JPEG). +Inkscape is available from www.inkscape.org and ImageMagick from +www.imagemagick.org. + +Options +------- + + -a : rotate all labels by this amount (radians, default: 0) + [only SVG radial] + -A : rotate left-side labels by this amount (radians, + default: 0.0349 (=~ 2°)) [only SVG radial] + -b : CSS for branch length labels. [only SVG] + Default: 'font-size:small;font-family:sans'. + setting 'opacity:0' disables printing of branch lengths. + -c : use specified file as CSS map [only SVG]. A CSS map + is a text file which specifies a style (CSS) for a clade. + Each line has the following structure: + + + 10.1186/1748-7188-3-7 + + \ No newline at end of file diff -r 000000000000 -r 5c11638687d0 test-data/tree.nwk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/tree.nwk Tue Mar 15 10:53:34 2016 -0400 @@ -0,0 +1,1 @@ +((raccoon:19.19959,bear:6.80041):0.84600,((sea_lion:11.99700, seal:12.00300):7.52973,((monkey:100.85930,cat:47.14069):20.59201, weasel:18.87953):2.09460):3.87382,dog:25.46154); \ No newline at end of file diff -r 000000000000 -r 5c11638687d0 test-data/tree.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/tree.svg Tue Mar 15 10:53:34 2016 -0400 @@ -0,0 +1,8 @@ + + +raccoon19.19959bear6.800410.84600sea lion11.99700seal12.003007.52973monkey100.85930cat47.1406920.59201weasel18.879532.094603.87382dog25.461540255075100125 diff -r 000000000000 -r 5c11638687d0 test-data/tree2.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/tree2.svg Tue Mar 15 10:53:34 2016 -0400 @@ -0,0 +1,8 @@ + + +raccoon19.19959bear6.800410.84600sea lion11.99700seal12.003007.52973monkey100.85930cat47.1406920.59201weasel18.879532.094603.87382dog25.461540255075100125 diff -r 000000000000 -r 5c11638687d0 tool_dependencies.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_dependencies.xml Tue Mar 15 10:53:34 2016 -0400 @@ -0,0 +1,6 @@ + + + + + +