annotate nwdisplay.xml @ 0:2073ce44237f draft default tip

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