# HG changeset patch # User dfornika # Date 1515625878 18000 # Node ID 2073ce44237f6594159a2e8775d2c0be8f430678 planemo upload diff -r 000000000000 -r 2073ce44237f nwdisplay.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nwdisplay.xml Wed Jan 10 18:11:18 2018 -0500 @@ -0,0 +1,258 @@ + + Display a phylogenetic tree as SVG + + operation_0567 + + + newick_utils + + + 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:$leafFont;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 + + diff -r 000000000000 -r 2073ce44237f test-data/tree.nwk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/tree.nwk Wed Jan 10 18:11:18 2018 -0500 @@ -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 2073ce44237f test-data/tree.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/tree.svg Wed Jan 10 18:11:18 2018 -0500 @@ -0,0 +1,8 @@ + + +raccoon19.19959bear6.800410.84600sea lion11.99700seal12.003007.52973monkey100.85930cat47.1406920.59201weasel18.879532.094603.87382dog25.461540255075100125 diff -r 000000000000 -r 2073ce44237f test-data/tree2.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/tree2.svg Wed Jan 10 18:11:18 2018 -0500 @@ -0,0 +1,8 @@ + + +raccoon19.19959bear6.800410.84600sea lion11.99700seal12.003007.52973monkey100.85930cat47.1406920.59201weasel18.879532.094603.87382dog25.461540255075100125