annotate nwdisplay.xml @ 1:3200899efad9 draft default tip

Uploaded
author dcorreia
date Tue, 12 Dec 2017 12:02:31 -0500
parents 5c11638687d0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3200899efad9 Uploaded
dcorreia
parents: 0
diff changeset
1 <tool id="nwdisplay" name="Newick Display" version="1.6">
0
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
2 <description>Display a phylogenetic tree as SVG</description>
1
3200899efad9 Uploaded
dcorreia
parents: 0
diff changeset
3 <edam_operations>
3200899efad9 Uploaded
dcorreia
parents: 0
diff changeset
4 <edam_operation>operation_0567</edam_operation>
3200899efad9 Uploaded
dcorreia
parents: 0
diff changeset
5 </edam_operations>
0
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
6 <requirements>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
7 <requirement type="package" version="1.6">newick_utilities</requirement>
1
3200899efad9 Uploaded
dcorreia
parents: 0
diff changeset
8 <requirement type="package" version="1.6">newick_utils</requirement>
0
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
9 </requirements>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
10 <command>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
11 nw_display
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
12 -s
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
13 $scalebar
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
14 -u "$legend"
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
15 -I 'r'
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
16 -i
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
17 #if $condbranchsupport.branchsupport == "true":
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
18 "fill:$condbranchsupport.supcolor;
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
19 font-size:$condbranchsupport.supfontsize;
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
20 transform:$condbranchsupport.suptransform;"
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
21 #else:
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
22 "visibility:hidden;"
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
23 #end if
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
24 -b
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
25 #if $condbranchlength.branchlength == "true":
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
26 "fill:$condbranchlength.lencolor;
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
27 font-size:$condbranchlength.lenfontsize;
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
28 transform:$condbranchlength.lentransform;"
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
29 #else:
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
30 "visibility:hidden;"
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
31 #end if
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
32
1
3200899efad9 Uploaded
dcorreia
parents: 0
diff changeset
33 -l "font-family:$leafFont;font-size:$leafSize;"
0
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
34 -d "stroke:grey;fill:none;stroke-width:2;stoke-linecap:round;"
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
35 -w $width
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
36 $radial
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
37
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
38 $fileNewick > $output
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
39
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
40 </command>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
41 <inputs>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
42 <param name="fileNewick" format="txt,nw,nwk,nhx" type="data" label="Newick file" />
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
43 <param name="scalebar" type="boolean" truevalue="" falsevalue="-S" checked="True" label="Display scale bar" />
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
44 <param name="legend" type="text" value="" label="Unit name scale" />
1
3200899efad9 Uploaded
dcorreia
parents: 0
diff changeset
45 <param name="leafFont" type="text" value="sans-serif" label="Leaf font" />
0
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
46 <param name="leafSize" type="text" value="10px" label="Leaf font-size" />
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
47 <conditional name="condbranchsupport">
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
48 <param name="branchsupport" type="select" label="Branch support">
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
49 <option value="true">Display branch support</option>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
50 <option value="false" selected="true">Hide branch support</option>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
51 </param>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
52 <when value="true">
1
3200899efad9 Uploaded
dcorreia
parents: 0
diff changeset
53 <param name="supcolor" type="color" value="red" label="color" />
0
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
54 <param name="supfontsize" type="text" value="10px" label="font-size" />
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
55 <param name="suptransform" type="text" value="translateY(1.5em)" label="move" />
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
56 </when>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
57 <when value="false" />
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
58 </conditional>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
59 <conditional name="condbranchlength">
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
60 <param name="branchlength" type="select" label="Branch length">
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
61 <option value="true">Display branch length</option>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
62 <option value="false" selected="true">Hide branch length</option>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
63 </param>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
64 <when value="true">
1
3200899efad9 Uploaded
dcorreia
parents: 0
diff changeset
65 <param name="lencolor" type="color" value="blue" label="color" />
0
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
66 <param name="lenfontsize" type="text" value="10px" label="font-size" />
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
67 <param name="lentransform" type="text" value="translate(-1.5em,0em)" label="move" />
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
68 </when>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
69 <when value="false" />
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
70 </conditional>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
71 <param name="width" type="integer" value="800" label="SVG Tree width (px)" />
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
72 <param name="radial" type="boolean" truevalue="-r" falsevalue="" checked="False" label="Draw a radial tree" />
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
73 </inputs>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
74 <outputs>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
75 <data name="output" format="svg" label="${fileNewick.name}.svg" />
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
76 </outputs>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
77 <tests>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
78 <test>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
79 <param name="fileNewick" value="tree.nwk"/>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
80 <param name="width" value="400"/>
1
3200899efad9 Uploaded
dcorreia
parents: 0
diff changeset
81 <param name="leafFont" value="courier"/>
0
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
82 <output name="output" file="tree.svg" lines_diff="2"/>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
83 </test>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
84 <test>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
85 <param name="fileNewick" value="tree.nwk"/>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
86 <param name="radial" value="-r"/>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
87 <param name="branchlength" value="true"/>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
88 <output name="output" file="tree2.svg" lines_diff="2"/>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
89 </test>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
90 </tests>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
91 <help>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
92 <![CDATA[
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
93 **Displays a tree as a graph, as text or SVG.**
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
94
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
95
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
96 Synopsis
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
97 --------
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
98
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
99 nw_display [options] <tree filename|->
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
100
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
101 Input
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
102 -----
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
103
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
104 Argument is the name of the file containing one or more trees,
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
105 or '-' (in which case the tree is read on stdin).
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
106
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
107 Output
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
108 ------
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
109
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
110 Outputs a graph representing the tree, either as text (default) or
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
111 as SVG (option -s). Underscores in labels are replaced with spaces.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
112 Trees with no branch lengths are taken to be cladograms and are
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
113 drawn with leaves aligned. Otherwise, the tree is assumed to be a
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
114 phylogram: branch lengths are honored and a scale bar is drawn.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
115
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
116 SVG graphics can be converted to other formats with converters
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
117 such as Inkscape (e.g. to PDF) or ImageMagick (e.g. to PNG or JPEG).
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
118 Inkscape is available from www.inkscape.org and ImageMagick from
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
119 www.imagemagick.org.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
120
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
121 Options
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
122 -------
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
123
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
124 -a <number>: rotate all labels by this amount (radians, default: 0)
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
125 [only SVG radial]
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
126 -A <number>: rotate left-side labels by this amount (radians,
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
127 default: 0.0349 (=~ 2°)) [only SVG radial]
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
128 -b <string>: CSS for branch length labels. [only SVG]
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
129 Default: 'font-size:small;font-family:sans'.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
130 setting 'opacity:0' disables printing of branch lengths.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
131 -c <filename>: use specified file as CSS map [only SVG]. A CSS map
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
132 is a text file which specifies a style (CSS) for a clade.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
133 Each line has the following structure:
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
134 <CSS> <flag> <label>+
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
135 <CSS> is a valid CSS style specification (no spaces allowed)
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
136 e.g. 'font-size:small;font-family:italics;stroke:green'.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
137 <flag> is either 'Individual' or 'Clade' (case is not important, can
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
138 be abbreviated down to 'I' or 'C'). If set to 'Clade', the style is
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
139 applied to the clade defined by the labels. If 'Individual', the
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
140 style is applied to each node individually.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
141 <label>+ is a nonempty, whitespace-separated list of Newick labels
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
142 (spaces are allowed IFF the label is enclosed in ''). If a label
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
143 matches more than one node, all matching nodes are used.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
144 Default: no CSS map, whole tree is black (unless specified otherwise
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
145 via option -d).
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
146 <CSS>, <flag>, and <labels>+ are separated by whitespace.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
147 The following specifies red stroke for a clade defined by A, B and C;
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
148 and 2-pixel wide, blue stroke for individual nodes D, E, and F:
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
149 stroke:red Clade A B C
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
150 stroke:blue;stroke-width:2 I D E F
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
151 If no colormap is specified, the default is (but see option -d):
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
152 stroke:black;fill:none;stroke-width:1;stroke-linecap:round
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
153 -d <string>: CSS for 'plain' tree nodes (i.e., unless overridden by -c)
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
154 [only SVG]
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
155 Default: stroke:black;fill:none;stroke-width:1;stroke-linecap:round
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
156
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
157 -h: prints this message and exits
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
158
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
159 -i <string>: CSS for inner node labels. [only SVG]
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
160 Default: 'font-size:small;font-family:sans'.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
161
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
162 setting 'visibility:hidden' disables printing of inner node labels.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
163 -I <char> sets the position of the inner node label. Valid options are
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
164 'l' (near the leaves), 'm' (middle) or 'r' (near the root). Default
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
165 is 'l'.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
166
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
167 -l <string>: CSS for leaf node labels. [only SVG]
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
168 Default: 'font-size:medium;font-family:sans'.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
169 setting 'visibility:hidden' disables printing of leaf node labels.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
170 Note: if you change this, you will probably need to adjust the
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
171 space allocated to leaf labels - see option -W.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
172 -n <number> add this number of pixels to the horizontal position of
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
173 node labels. [SVG only]
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
174
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
175 -o <filename>: use specified file as ornament map. Works like the CSS
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
176 map (see option -c), except that it specifies arbitrary SVG snippets
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
177 instead of CSS styles. For example, the following
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
178 "<circle style='fill:red' r='5'>" Clade A B C
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
179 will draw a red circle of radius 5 at the root of the clade defined
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
180 by nodes A, B, and C. Keyword 'Individual' is also accepted and
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
181 works like for CSS.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
182
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
183 -R <integer>: use that many pixels for the root [only SVG]
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
184
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
185 -r: draw a radial tree (default: orthogonal) [only SVG]
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
186
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
187 -s: output graph as SVG (default: ASCII graphics). All output is on
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
188 stdout, so if there is more than one tree, stdout will be a
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
189 concatenation of SVG documents. These can be split into individual
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
190 files with the csplit(1) command:
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
191
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
192 $ nw_display -s many_trees.nw > multiple_svg
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
193 $ csplit -zs -f tree\_ -b '%02d.svg' multiple_svg '/<?xml/' {*}
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
194
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
195 will generate as many SVG files as there are Newick trees in
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
196 many_trees.nw. The files will be named tree_01.svg, tree_02.svg, etc.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
197
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
198 -S: suppress scale bar (ignored for cladograms)
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
199
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
200 -t: set the zero of the scale at the maximum depth instead of the root.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
201 This is useful when the branch lengths are in time units: zero marks
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
202 the present, and the scale shows the age of the ancestral nodes.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
203 -u <string>: string is used as unit name for scale bar (ignored
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
204 if no scale bar is drawn).
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
205 -U <URL_filename>: use specified URL map [only SVG]. A URL map
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
206 is a text file which specifies a URL for a label.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
207 Each line has the following structure:
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
208 <label> <URL>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
209 Clicking on a label will follow the link (if any).
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
210 -v <number>: number of pixels between leaves (default: 40) [only SVG
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
211 orthogonal]
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
212 -w <number>: graph should be no wider than <number>, measured in
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
213 characters for text and pixels for SVG. Defaults: 80 (text),
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
214 300 (SVG)
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
215 -W <number>: use this as an estimate of the width of a leaf label
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
216 character (in pixels) [only SVG]. This affects the space left for
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
217 the tree nodes. Default: 5.0 You will probably need this if you
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
218 change the leaf label font properties (option -l), especially size.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
219 You will probably need trial and error to find the right value.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
220
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
221 LibXML
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
222 ......
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
223
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
224 If LibXML is being used, the handling of ornaments (-o) is more elaborate.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
225 See the tutorial, section 2.2 (displaying) for details.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
226 This executable uses LibXML2.
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
227
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
228 Examples
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
229 --------
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
230
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
231 # display tree as ASCII::
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
232
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
233 $ nw_display data/catarrhini
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
234
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
235 # display tree as SVG, using a color map::
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
236
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
237 $ nw_display -s -c data/color.map data/catarrhini
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
238
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
239 # ditto, convert to other graphics formats::
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
240
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
241 $ nw_display -s -c data/color.map data/catarrhini > catarrhini.svg
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
242 $ convert catarrhini.svg catarrhini.png # PNG, with ImageMagick
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
243 $ convert catarrhini.svg catarrhini.jpeg # JPEG, with ImageMagick
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
244 $ inkscape -z -f catarrhini.svg -A catarrhini.pdf # PDF, with Inkscape
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
245
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
246 # the same; no branch lengths::
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
247
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
248 $ nw_display -s -b 'visibility:hidden' -c data/color.map data/catarrhini
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
249
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
250 # radial tree, leaf labels in italics::
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
251
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
252 $ nw_display -s -r -l 'font-style:italics' data/catarrhini
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
253
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
254 ]]>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
255 </help>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
256 <citations>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
257 <citation type="doi">10.1186/1748-7188-3-7</citation>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
258 </citations>
5c11638687d0 Imported from capsule None
dcorreia
parents:
diff changeset
259 </tool>