Debian Codegraph @

whelp/Dendrogram.html

raw
1 <HTML>
2
3 <HEAD>
4 <TITLE>Dendrogram Tree</TITLE>
5 </HEAD>
6
7 <BODY BGCOLOR=#ffffff LINK="#0000ff" VLINK="#800080">
8
9 <A NAME="Top"><H2>Dendrogram Tree Display</H2></A>
10
11 <P>
12 <A HREF=dndrgm.gif><IMG SRC="dndrgm.gif" WIDTH=590 HEIGHT=441 ALT="[screenshot]"></A>
13 </P>
14
15 <P>This display type is not to be confused with the generic ACEDB "Tree" display. The Dendrogram display represents true multi-object data ?Tree objects such as taxonomy, phylogenetic trees (of DNA sequences or proteins, for instance) and developmental cell lineages. ?Tree objects are composed of a "tree" of objects in the computing sense of a data tree, that is, the display recursively traverses "parent-child" linked ?TreeNode objects rooted from the "Root" tag of the ?Tree object in question.</P>
16 <H3>Contents</H3>
17
18 <UL>
19 <LI><A HREF="#Input">Tree Data Input</A> </LI>
20 <LI><A HREF="#Navigating">Navigating the Tree</A> </LI>
21 <LI><A HREF="#Buttons">Menu Buttons</A> </LI>
22 <LI><A HREF="#Menu">Pop-Up Menu</A> </LI>
23 <LI><A HREF="#Display">Display Information &amp; Configuration</A> </LI>
24 <LI><A HREF="#Models">Associated ACEDB Models</A></LI>
25 <LI><A HREF="#Bugs">Known Bugs</A></LI>
26 </UL>
27
28 <P><HR></P>
29
30 <H3><A NAME="Input">Tree Data Input</A></H3>
31
32 <P>The ?Tree and associated ACEDB models guiding dendrogram
33 construction are described at the end of this document
34 (see <A HREF="#Models">Models</A>).
35 </P>
36
37 <P>Tree data may be read into ACEDB from the main ACEDB class window
38 popup menu (under Phylogenetic Trees) as a "New Hampshire" formatted
39 tree file (the standard Phylip format for trees, default file
40 extension ".ph") . Users may designate the tree being input as a
41 "taxonomy", "DNA sequence" or "Protein Sequence" tree, depending upon
42 the menu item selected. If no ?Tree name is given in the .ph file (as
43 the first "root" label), then the user is prompted for such the
44 name. </P>
45
46 <P>Tree data (including cell lineages) may also be input directly as
47 ACEDB formatted ?Tree and ?TreeNode objects (with attached ?Taxon,
48 ?Sequence and/or ?Protein objects) by the usual ACEDB methods: with
49 direct object creation/updating or by using .ace data files (formatted
50 as per the "Associated Models" below). <B><I>Note</I></B>: "New
51 Hampshire" tree input modality does not currently apply for "cell
52 lineage" trees, Embedded_Tree ?Tree's, etc. which must be input using
53 direct ACEDB methods.</P>
54
55
56 <P>In general, the display code assumes that given ?TreeNode objects
57 in a given ?Tree are unique (un-duplicated, non-cyclic) in the
58 tree. Also, "Embedded ?Tree's" should probably not be directly or
59 indirectly self referential! Undefined problems may occur in
60 dendrogram displays if this is not the case.</P>
61
62 <P><B><I>"New Hampshire" format</I></B> </P>
63
64 <P>The "New Hampshire" format consists of parenthesized, comma
65 delimited nested lists of items representing the structure of a
66 tree. A list is composed of atoms (leaves) or lists (subtrees). The
67 outer list is terminated by a semi-colon. Everything in the file
68 following the semi-colon is ignored. Any item (including sublists) in
69 a list may be labeled and/or may have a numerically descriptive suffix
70 with either or both a float number label designating bootstrap value
71 and a second float number (after any bootstrap value and prefixed with
72 a colon) designating a subtree "branch length" (i.e. " (...)100:0.56"
73 where 100 is the bootstrap value and 0.56 is the distance (the (...)
74 denoting the subtree list itself). Alternatively, the bootstrap value
75 may be a number enclosed in square brackets, coming after the branch
76 length value (i.e. (...):0.56[100] alternative notation for the
77 previous example).</P>
78
79 <P>All that been said, unlabeled nodes and/or nodes without distances
80 and/or bootstrap values are perfectly acceptable.</P>
81
82 <P>Valid labels must begin with an alphabetic character but may
83 contain other characters. The nature of tree parsing is such that
84 whitespace in the .ph file is ignored. In order to put a space into
85 any label, substitute "_" for the spaces in the label string. If an
86 underscore "_" is required in a label, the backslash "\" character can
87 be used to "escape" the very next character. The backslash character
88 may also be used to insert a space or any of the special characters in
89 the following string: "_\{}[](),; :" (not including the double
90 quotation marks).</P>
91
92 <P>Labels may be placed either before or after a list description
93 corresponding to a subtree (or the total tree). If the label is placed
94 <B><I>before</I></B> the list, then it may be used for labelling the
95 ?TreeNode in taxonomic and cell lineage trees. For DNA or Protein
96 trees, the label is only inserted into the Label Text tag-value field
97 of the ?TreeNode but not used as the ?TreeNode name. If a label is
98 found <B><I>after</I></B> the list, it is used in the "Label" value
99 only.</P>
100
101 <P>Valid numbers (distance and bootstrap values) must begin with a
102 digit (even if only a zero) and may contain a decimal point. Negative
103 signs on numbers are ignored (but the user is notified if one is
104 encountered).</P>
105
106 <P>The following is an example of a tree encoded New Hampshire format:</P>
107
108 <PRE>
109 (A,B:10.0,C(D:3.0,(E:2.0):4.0,,F:2.0)1.0:13.0,(G:2.0,H:1.0):5.0[0.9]);</PRE>
110 <P>(approximately) representing the tree:</P>
111 <PRE>
112 +-A
113 |
114 +----------B
115 | +---D
116 | 100% |
117 +-------------C--E
118 | |
119 | +-? ? == an unlabeled ?TreeNode
120 | |
121 | +--F
122 | +--G
123 | 90% |
124 +-----+
125 |
126 +-H</PRE>
127
128 <P>The "Phylogenetic Tree" popup menu item gives you the choice of
129 entering a "Taxonomic", "DNA Sequence" or "Protein Sequence"
130 tree. Depending on which option you pick, your leaf node label names
131 are automatically used to generate ?Taxon, ?Sequence or ?Protein
132 objects, respectively, during tree input. In the case of "Taxonomic"
133 trees, interior node labels are also used to generate ?Taxon objects
134 (i.e. for higher "rank" taxons, e.g. phylum, order, family, genus,
135 etc... see "Associated Models" below). </P>
136
137
138 <P>Once entered, the trees may be edited using all the usual ACEDB
139 techniques of object editing (i.e. object Updating). No specialized
140 tool for tree editing is currently available; however, the semantics
141 of the models is simple enough: the UNIQUE Parent and the Child nodes
142 of ?TreeNodes may be deleted or modified to "manually" prune from, or
143 graft subtrees onto, each other. Also, manual editing (or .ace file
144 input) can add additional node data which is not easily input in the
145 New Hampshire format, e.g. ?Taxon colour coding, associated sequences,
146 etc.</P>
147
148 <P><B><I>*** ACEDB Extensions to the basic New Hampshire standard ****</I></B> </P>
149
150 <P>The "C" label above just before the sublist is interpreted as
151 "interior" node label for the subtree. Such labels, with or without
152 Taxon embellishments (see below) may either preceed (prefix) or come
153 after (postfix) a sublist (Developer's Note: I think that "postfix"
154 labels are the convention in the New Hampshire tree definition
155 standard, but the ACEDB dendrogram tree data input facility accepts
156 both prefix and postfix labels; however, only prefix labels are used
157 in ?TreeNode ACEDB object names; postfix labels merely set the Label
158 Text tag-value of the ?TreeNode, or the Taxon embellishment (see
159 below)). </P>
160
161 <P>The "interior" node labeling facility is especially useful for
162 Taxonomy trees or for labeling subtree cuts ("subfamilies") of
163 phylogenetic trees. <B><I>Note: One can even label the "Root" node of
164 a tree in this way. In fact, if such a label is provided, it is also
165 taken to be the name of the ?Tree, by default (i.e. the user is not
166 prompted for the tree name).</I></B> </P>
167
168 <P>An additional ACEDB specific extension to the basic New Hampshire
169 standard trees is that ?Taxon rank may be specified in between the
170 internal label and the list, as a brace ("{" and "}") enclosed tag
171 field. The tag name must be listed under the "Rank" tag in the ACEDB
172 ?Taxon model class. For example, a "Taxonomic" tree describing the
173 nematode would be written as follows (several taxa omitted for
174 clarity):</P> <P>NCBI_Taxonomy(Eukaryotae {Superkingdom}(Metazoa
175 {Kingdom}( Nematoda {Phylum} ... (Caenorhabditis {Genus}(
176 Caenorhabditis_elegans{Species}))))))))))));</P>
177
178 <P>Alternatively, the taxon name may appear within the "rank" list,
179 delimited by a colon. Thus, the above "Taxonomic" tree can be
180 equivalently written:</P>
181
182 <P>NCBI_Taxonomy ({Superkingdom:Eukaryotae}( {Kingdom: Metazoa }(
183 {Phylum: Nematoda } ... ({Genus: Caenorhabditis }( {Species:
184 Caenorhabditis_elegans }))))))))))));</P>
185
186 <P>The merits of this latter syntax is that Sequence and Protein trees
187 may attach a "{Species:&lt;name&gt;}" value to their leaf labels,
188 which will be sequence names. Note that when you input taxonomic trees
189 in this manner, it is generally necessary to provide the whole
190 taxonomic path complete with taxon rank labels for every level, to
191 guarantee the proper construction of the taxonomic subtree.</P>
192
193 <P><B><I>Troubleshooting a Tree Parse Failure</I></B></P>
194
195 <P>Sometimes, ACEDB will fail to successfully parse in a given tree
196 file. The program will generally give an error message giving some
197 indication of the source of the parse failure. Common (indirect)
198 reasons for failure include unmatched parentheses, braces, brackets,
199 or commas. If the program complains about a missing comma, check also
200 for labels in which you have used spaces rather than underscores to
201 indicate blank characters. Remember that labels must begin with a
202 character and numbers with at least a digit (not a decimal point).</P>
203
204 <P>Back to <A HREF="#Top">Top of Page</A> | <A HREF="TOC.html">Table of Contents</A></P>
205
206 <P><HR></P>
207
208 <A NAME="Navigating"><H3>Navigating through the Tree</H3></A>
209
210 <P>Both the mouse and the keyboard may be used to navigate through a
211 tree and display associated information. Refer to the corresponding
212 tables about keyboard and menu operations (below). Clicking the "Middle" mouse
213 button (or "shift+Left mouse button" in a two button mouse) scrolls
214 the tree display to centre it at the point of the mouse click. "Page
215 Up" and "Page Down" can be used to scroll the display too.</P>
216
217 <P>The active (clickable) components are the ?TreeNodes, which may be
218 unlabeled or labeled. Tree nodes have two parts, an 'anterior' node
219 box and a 'posterior' label box (possibly empty). The primary feature of
220 the 'anterior' box is a small circles designating the node. The context
221 of the anterior versus posterior node box is slight different, with
222 respect to double clicking actions and pop-up menus; however, when
223 either box is selected, the whole tree node becomes 'currently active'
224 with highlighting. The actual colour of a highlighted node is
225 influenced by the setting of tags in the model, as follows:
226 <UL>
227 <LI>If no tags are set, or if the display is in 'Black n' White' (not colour) mode,
228 then the default colour of a selected 'anterior' node box is
229 green, while its corresponding 'posterior' label box is labelled blue.</LI>
230 <LI>If the display is in 'Colour' mode, and if
231 the 'Display' Colour tag of a given node or any 'Parent' node above it
232 in the tree is set to a colour, then the 'anterior' node (as are the branch lines)
233 is set to that colour. Local settings of a given node Display Colour override any
234 colour setting inherited from a parent, and is propagated down its subtree.</LI>
235 <LI>If the display is in 'Colour' mode, and if the node has an associated ?Taxon
236 which has its Colour tags set, then the 'posterior' node label is drawn
237 in the complement to that colour.</LI>
238 </UL>
239 </P>
240 <P>Nodes without a subtree (child nodes) attached or the root nodes of hidden subtrees are
241 treated as "leaves" of a tree for the purposes of navigation.</P>
242
243 <P> <B><I>Displaying Associated Data</I></B> </P>
244
245 <P>As expected, one mouse "pick" of a tree node label highlights it,
246 and a second pick (or "double click") results in the display of
247 information associated with the node. Alternatively, highlighting
248 nodes, followed by pressing of the "Enter" key, also result in such a
249 data display. The manner of display is object specific: i.e. ?Sequence
250 objects give a "feature map" display; ?Proteins give a "peptide map"
251 display; Embedded_Tree ?Tree's give a new dendrogram display. For user
252 reference, the ACEDB text only object records are also concurrently
253 displayed for the non-text displayed objects. This is now a general
254 "tag2" driven feature: any ?TreeNode "Contains" associate tag-value
255 with a non-textonly ACEDB display type, will be displayed with its
256 default display when the treenode is "displayed". Generally,
257 all associated information under the "Contains" tag of the tree node
258 object is concurrently displayed. If no 'Contains' tag associated
259 data is found, the ?TreeNode object itself is displayed by default
260 (as 'text only') <B><I>Note:</I></B> ?Tree's may be embedded in ?TreeNode's
261 of other ?Tree's. Clicking on such a node generates display of the
262 associated ?Tree in a new ACEDB display window.</P>
263 <P>Pop-up menu commands (see below) are also available to display
264 'Contains' tag associated data as 'text only' or to display the
265 underlying ?TreeNode data object rather than the associated data.</P>
266 <P>?Protein and ?Sequence objects (and any other class with a Species
267 ?Species tag-value pair) will also trigger display of any embedded
268 "Taxon ?Taxon" or "Species ?Species" data from their own object
269 (i.e. not the ?TreeNode but the ?Protein/?Sequence object itself). If
270 a ?TreeNode contains a Taxon ?Taxon tag-value pair, though, this
271 overrides the Species in any associated ?Protein or ?Sequence
272 object.</P>
273
274 <P>"Pick_me_to_call" tag/value pairs may be used to invoke scripts
275 (e.g. to display node associated jpeg or gif images). The default
276 "ground state" of information is a ?TreeNode object record. For tree
277 nodes without labels, the ?TreeNode associated data may always be
278 displayed by selecting the given node then doing a "Show selected
279 object as text" popup menu operation.</P>
280
281 <P><B><I>Hiding Subtrees</I></B></P>
282
283 <P>Double picking tree node circles results in the
284 expansion/contraction of the subtree rooted by the given node. Hidden
285 subtrees are indicated by an arrow and a number indicating the total
286 number of leaves in that (hidden) subtree. Double clicking a hidden
287 subtree root node exposes the subtree. See also "Insert/Delete" keys
288 and the popup menu "Hide/Show Subtree" below. Using the Right Arrow
289 from the root node of a "hidden" subtree, also automatically expands
290 that subtree.</P>
291
292 <P><B><I>Phylogenetic Tree "Bootstrap" Values</I></B></P>
293
294 <P>If subtree phylogenetic (float) "bootstrap" values are available in
295 a ?TreeNode, they are displayed to the right of the tree node
296 circle. Raw bootstrap values in the ?TreeNodes may be normalized using
297 the ?Tree..<B><FONT COLOR="#ff0000">Bootstrap_Factor</FONT></B>
298 tag-value (i.e. actual displayed bootstrap value is
299 ?TreeNode..<B><FONT COLOR="#ff0000">Bootstrap</FONT></B> /
300 ?Tree..<B><FONT COLOR="#ff0000">Bootstrap_Factor</FONT></B>).
301 <B><FONT COLOR="#ff0000">Bootstrap_Factor</FONT></B> is 1.0 by default. If the
302 displayed bootstrap value is in the range of 0.0 to 1.0, the value is
303 displayed as a percentage 0% to 100%. Bootstrap values should be
304 positive (if negative, the sign is ignored). The display of the
305 bootstrap values is globally controled by the
306 ?Tree..<B><FONT COLOR="#ff0000">Hide_Bootstraps</FONT></B> tag. The
307 ?TreeNode..<B><FONT COLOR="#ff0000">Hide_Bootstraps</FONT></B> tag
308 hides the bootstraps for a complete subtree. This latter setting is
309 overridden for any given node by the
310 ?TreeNode..<B><FONT COLOR="#ff0000"> Show_Bootstrap</FONT></B> tag.</P>
311
312 <P><B><I>Keyboard Operations</I></B></P>
313
314 <P>The keyboard may also be used to navigate through the tree. The
315 following keys (and their effects) are available. If "Needs Active
316 Node" is "Yes" then the key only has an effect if a node is currently
317 selected. In most cases, the display is scrolled as necessary to bring
318 the given tree node into view.</P>
319
320 <P><I><B>Key (Needs Active Node?) Effect &nbsp;</B></I></P>
321 <P><B>Home</B> (No) Go to first leaf in the tree</P>
322 <P><B>End</B> (No) Go to last leaf in the tree</P>
323 <P><B>Enter</B> (Yes) Display the information associated with the current Node</P>
324 <P><B>Right Arrow</B> (Yes) Go to first child Node in subtree of the current Node; expand if hidden</P>
325 <P><B>Left Arrow</B> (Yes) Go to the parent Node of the current Node</P>
326 <P><B>Down Arrow</B> (Yes) Go to the next "sibling" Node/subtree of the current Node</P>
327 <P><B>Up Arrow</B> (Yes) Go to the previous "sibling" Node/subtree of the current Node</P>
328 <P><B>Space Bar</B> (Yes; Leaf Node) Go to the next leaf Node or hidden subtree from the current Node</P>
329 <P><B>Backspace</B> (Yes; Leaf Node) Go to the previous leaf Node or hidden subtree from the current Node</P>
330 <P><B>Tab</B> (No) Toggle between labels only and descriptive labels (w/taxon)</P>
331 <P><B>Escape (Esc)</B>(No) Toggle between branchline/taxon "black 'n white" and colour mode</P>
332 <P><B>Insert</B> (Yes) Update the current tree Node object (using ACEDB object updating) </P>
333 <P><B>Delete</B> (Yes) Toggle expansion/contraction of the subtree rooted by the current Node</P>
334 <P>&nbsp;</P>
335
336 <P>Back to <A HREF="#Top">Top of Page</A> | <A HREF="TOC.html">Table of Contents</A></P>
337
338 <P><HR></P>
339
340 <A NAME="Display"><H3>Display Information and Configuration</H3></A>
341
342 <P><B><I>Node Labels</I></B></P>
343
344 <P>If an explicit or inferred label is associated with the tree node,
345 it is printed after the ?TreeNode circle. Labels may either be
346 "simple" or "long, descriptive" depending upon the current setting of
347 the "?Tree..<B><FONT COLOR="#ff0000">Descriptive_Labels</FONT></B>"
348 tag or selection of the popup menu "Toggle Labels" function. Simple
349 labels are derived from the tree type specific "Contains" object name
350 (i.e. the ?Taxon object in a Taxonomy tree, ?Sequence object in a DNA
351 tree, ?Protein object in a Protein tree). Where no such tree type
352 specific object exists, but where at least one "Contains" tag2 object
353 is present (e.g. ?Gene_Family), its object name will be used as the
354 source of the label. Otherwise, if the ?Tree type is Taxonomy or Cell
355 Lineage, then the ?TreeNode name is used as the label
356 source. Otherwise, the node is displayed unlabelled.</P>
357
358 <P>Generally, in practice, all taxonomy tree nodes will be labeled,
359 while only the leaves of phylogenetic (sequence/protein) trees will be
360 so labeled, although one could also label subtrees by "Gene
361 Family". For trees NOT of the "Taxonomy" type, interior nodes of the
362 tree are generally unlabeled unless the "Label Text" field of the
363 ?TreeNode is set; however, all tree "leaves" are labeled with the name
364 of the associated object (?Sequence or ?Protein) name, or the
365 ?TreeNode name, if the former tag values are absent from the
366 ?TreeNode. In contrast, the interior nodes of "Taxonomy" trees are
367 also labeled, with the ?Taxon or ?TreeNode object name. In all
368 trees. The "Toggle Labels" popup menu item toggles labels between the
369 ?TreeNode "Label Text" field value and a more descriptive name
370 extracted from certain tag-value fields of an associated "Contains"
371 object, currently:
372 ?Taxon - "<B><FONT COLOR="#ff0000">Common_name ?Text</FONT></B>";
373 ?Sequence/?Protein - "<B><FONT COLOR="#ff0000">Title ?Text</FONT></B>";
374 ?Cell - "<B><FONT COLOR="#ff0000">Fate ?Text</FONT></B>";
375 or "<B><FONT COLOR="#ff0000">Description ?Text</FONT></B>"
376 tag-value, if it exists for any other "Contains" tag2 object in
377 the given ?TreeNode.</P>
378
379 <P><B><I>Copying Labels and Data to the Clipboard</I></B></P>
380
381 <P>The label of the currently active tree node may be copied to the
382 system "clipboard" for pasting elsewhere in ACEDB (or in another
383 application), by selecting "copy" in the dendrogram pop-up menu or by
384 the usual system-specific defined manner. <B><I>Special Note</I></B>:
385 You may also copy the contents of the display's header message box (if
386 visible) by picking the box then immediately selecting "copy". Picking
387 the message box in this manner does NOT change the currently selected
388 tree node (and the message box itself does not change in appearance -
389 the operation takes place silently, but also overwrites the current
390 contents of the ACEDB post buffer, which may have previously contained
391 the active node's label...)</P>
392
393 <P><B><I>Dendrogram Colouring</I></B></P>
394
395 <P>The displayed lines and nodes may be colour coded if suitable
396 "#Colour" tags are set in the data objects used to construct the
397 tree. Specifically, setting the Display Colour #Colour tag of the
398 ?TreeNode dictates (recursively) the colour of lines and nodes in a
399 given subtree, until overridden by a similar tag in a descendent
400 ?TreeNode (for its subtree). </P>
401
402 <P>Similarly, setting the Display
403 "<B><FONT COLOR="#ff0000">Foreground_Colour</FONT></B>" and
404 "<B><FONT COLOR="#ff0000">Background_Colour</FONT></B>" #Colour tags of
405 associated ?Taxon objects will override the subtree colour of the node
406 labels "by taxon". This latter feature is especially useful to colour
407 code a phylogenetic (?Sequence or ?Protein) tree by species. For this
408 latter feature, curators have a choice of either embedding a Taxon
409 ?Taxon value directly into the ?TreeNodes or putting a
410 "<B><FONT COLOR="#ff0000">Species ?Species</FONT></B>"
411 tag-value pair directly into the associated ?Protein or ?Sequence
412 object under "Contains" in a given ?TreeNode (this latter approach
413 probably being a more sensible way to organize things ...)</P>
414
415 <P>Bootstrap values for subtrees may be loaded in from tree files,
416 stored in the ?TreeNodes and displayed next to the nodes in the
417 display. Bootstrap values are globally displayed by default unless
418 disabled by the
419 ?Tree "<B><FONT COLOR="#ff0000">Hide_Bootstrap</FONT></B>" tag
420 (or hidden from the pop up menu toggle for bootstraps). Subtrees
421 may have all their bootstrap values hidden by a local
422 "<B><FONT COLOR="#ff0000">Hide_Bootstrap</FONT></B>" tag
423 in the ?TreeNode rooting the subtree. This global and subtree based
424 "<B><FONT COLOR="#ff0000">Hide_Bootstrap</FONT></B>" behaviour may
425 be overridden locally, for a single given ?TreeNode, by setting the
426 "<B><FONT COLOR="#ff0000">Show_Bootstrap</FONT></B>" tag.</P>
427
428 <P>Setting the "<FONT COLOR="#ff0000">Display Hide</FONT>" tag in a
429 ?TreeNode dictates that a given subtree rooted by the ?TreeNode is
430 initially displayed as hidden.</P>
431
432 <P>The ?Tree model class controls default alignment (Top, Middle or
433 Bottom) of the dendrogram tree (set to "Top" for Taxonomic trees,
434 "Middle" for other types, by default).</P>
435
436 <P>A "header" of various dendrogram information is provided. This
437 header may be hidden (by default) by setting the "Display Hide" ?Tree
438 tag or dynamically, using the "Toggle Header" popup menu item. The
439 number of leaves, the maximum branch length and the current
440 "<B><FONT COLOR="#ff0000">Normalization</FONT></B>" branch display scale (plus
441 an approximate "ruler legend" for the scale) is shown at the top of
442 the graph. A "message box" (coloured cyan) displays additional
443 information about the currently selected node, such as node name,
444 common name, descriptive text and associated Taxon (usually a species,
445 if available). </P>
446
447 <P>Presently, the source of the descriptive text depends upon the type
448 of tree being displayed. For DNA trees, the
449 "<B><FONT COLOR="#ff0000">Brief_identification</FONT></B>" tag value is
450 used. For Protein trees, the "Title" tag value is used. For Cell
451 lineages, the "<B><FONT COLOR="#ff0000">Remark</FONT></B>" tag value
452 is used. For Taxonomy trees, the code looks for a
453 "<B><FONT COLOR="#ff0000">Description ?Text</FONT></B>" tag value field. If no
454 descriptive text is found in this way, the program looks for a
455 "<B><FONT COLOR="#ff0000">Description ?Text</FONT></B>" tag value
456 field in the first of any "Contains" tag2 object.</P>
457
458 <P>The "<B><FONT COLOR="#ff0000">Normalization</FONT></B>" value
459 scales the tree's branch lengths into some reasonable graph display
460 length (Default Value == 1.0). (Re)set the
461 "<B><FONT COLOR="#ff0000">Normalization</FONT></B>" value in the ?Tree object
462 (see below) to some reasonable number to change the scale of the
463 displayed tree. The "Rescale" popup menu item does this too (but does
464 not save the value to the ?Tree object; the user needs to explicitly
465 set the object value). Taxonomic trees have a Normalization of 1.0 by
466 default and suppress the associated metric values in the
467 header. Printing ("to fit" horizontally) of dendrograms may be
468 facilitated by rescaling the tree.</P>
469
470 <P>*** Note: Following initial tree data input from a "New Hampshire"
471 file, the display scale is unlikely to be suitable for a reasonable
472 display of the tree and will likely need to be changed *** </P>
473
474 <P>Your display.wrm must have an entry for "DtDendrogram". Your
475 options.wrm and models.wrm files must reflect the presence of the
476 ?Tree, ?TreeNode, ?Taxon and ?Species model classes (see "Associated
477 Models" below). If you like, you can set the default displays in
478 options.wrm for ?Tree, ?TreeNode, ?Taxon and ?Species to
479 "DtDendrogram". The code acts accordingly, displaying the (first)
480 associated dendrogram tree by default, scrolled to the active box set
481 to the given object (except for ?Tree, which is set to the first
482 leaf).</P>
483
484 <P>Back to <A HREF="#Top">Top of Page</A> | <A HREF="TOC.html">Table of Contents</A></P>
485 <P><HR></P>
486 <H3>&nbsp;<A NAME="Buttons">Menu Buttons</A></H3>
487
488 <UL>
489 <LI><B>Quit</B>: destroys this window.</LI>
490 <LI><B>Help:</B> brings up this help file. </LI>
491 <LI><B>Display:</B>right button click brings up pop-up menu
492 for display configuration (see below)</LI>
493 <LI><B>Biblio </B>: this button is only present if the current ?Tree
494 or ?TreeNode objects displayed in the Dendrogram graph have Reference
495 ?Paper's. </LI>
496
497
498 </UL>
499
500 <P>Back to <A HREF="#Top">Top of Page</A> | <A HREF="TOC.html">Table of Contents</A></P>
501
502 <P><HR></P>
503
504 <A NAME="Menu"><H3>Pop-Up Menu items</H3></A>
505
506 <P>The dendrogram display has several context specific pop-up menus
507 to manipulate the display. Some of these menus have keyboard equivalents
508 (noted in parentheses in the popup menu).</P>
509 <P>
510 <P><B>Display Button Menu</B> A right button click on the 'Display' button in the header brings up
511 a list of globally acting commands which modify how the dendrogram is
512 displayed. All of these menu items only affect the "look" of
513 the currently active display temporarily until the 'Save Display State'
514 item is selected.
515 <UL>
516 <LI><B>Recalculate Display:</B> redraws the display with latest
517 configuration and data parameters in effect.</LI>
518
519 <LI><B>Save Display State:</B> saves the current ?Tree and ?TreeNode Display tag
520 values to the corresponding database objects; normally, any changes a user
521 makes to display settings 'on the fly' (e.g. display modes, node collapse/expand states)
522 are not permanently saved to the database until this menu item is selected. </LI>
523
524 <LI><B>Rescale Tree:</B> brings up a prompt for a (floating point)
525 number to use for scaling the branch lengths of the tree (the default
526 value for trees is 1.0 unless otherwise set in the model). </LI>
527
528 <LI><B>Toggle Labels (Tab key):</B> toggles label display between node
529 "Label" only and labels with ?Taxon name appended. </LI>
530
531 <LI><B>Toggle Colour (Esc key):</B> toggles dendrogram colour mode
532 on and off (i.e. colouring of lines and nodes based upon ?Taxon
533 colours). </LI>
534
535 <LI><B>Toggle Bootstrap Values:</B> toggles global display of
536 bootstrap values, if present. </LI>
537
538 <LI><B>Align Tree to Top/Middle/Bottom/UnRooted:</B> Sets the
539 alignment of subtrees to top, middle or bottom. Overrides (but does
540 not reset) default setting in the ?Tree object. Note: "Unrooted"
541 dendrograms are on the drawing board but not yet implemented. </LI>
542 </UL>
543 <P><HR></P>
544 <B>Main Menu:</B> default menu on the display, in all contexts in which no other menu
545 is available, is the main menu.
546 <UL>
547 <LI><B>Quit</B>: quits the window. </LI>
548
549 <LI><B>Help</B>: brings up this help. </LI>
550
551 <LI><B>Copy</B>: Copies the current highlighted node label (or message
552 box contents, if picked) to the clipboard. </LI>
553
554 <LI><B>Print</B>: Prints the display on your local printer. </LI>
555
556 <LI><B>Toggle Header: </B>toggles dendrogram information header on and
557 off. </LI>
558
559 <LI><B>Recalculate Display:</B> redraws the display with latest
560 configuration and data parameters in effect.</LI>
561
562 <LI><B>Save Display State:</B> saves the current ?Tree and ?TreeNode Display tag
563 values to the corresponding database objects; normally, any changes a user
564 makes to display settings 'on the fly' (e.g. display modes, node collapse/expand states)
565 are not permanently saved to the database until this menu item is selected. </LI>
566
567 <LI><B>Preserve Graph</B>: Prevents this window from being overwritten the
568 next time a new dendrogram is created. </LI>
569
570 <LI><B>Anchor Tree Display:</B> Sets the currently active dendrogram
571 window as the default dendrogram graph for reuse for all new
572 dendrogram object displays (e.g. of associated node data). If the
573 selected display is already set as the default, selecting it again
574 resets this mode off (i.e. new dendrograms generally create new
575 windows). If another dendrogram other than the default is active
576 (i.e. by mouse selection) when this command is selected, then that
577 window becomes the new default. The purpose of this command is to
578 ensure that new dendrogram displays triggered by sources outside
579 keysets (e.g. from ACEDB object text displays) will reuse a single
580 dendrogram display. </LI>
581
582 <LI><B>Goto Root Node:</B> Selects and scrolls to the "root" node of
583 the tree. </LI>
584
585 <LI><B>Goto First (Home key)/Last Leaf (End key): </B>Selects and
586 scrolls window to "first" or "last" leaf respectively. </LI>
587
588 <LI><B>Collapse all Labelled Subtrees:</B> Recursively marks as 'hidden'
589 all subtrees which are rooted by a labelled node. After this
590 operation, top down navigation of the tree reveals each hidden
591 node, which may be expanded individually.</LI>
592
593 <LI><B>Dump tree data as .ace: </B>if a ?TreeNode is currently
594 selected, then only the subtree rooted by active node is dumped as an
595 ".ace" file. Otherwise, the entire ?Tree and underlying ?TreeNode
596 objects are dumped as an ".ace" file. <B><I>Note</I></B>: if you wish
597 to read a "subtree only" file back in as a separate tree, you will
598 need to <B><I>manually</I></B> edit the .ace file to include a ?Tree
599 object description (with a "Root ?TreeNode" tag-value), rename all
600 ?TreeNode "Tree ?Tree" tag-values to the new tree name, and relabel
601 the "root" ?TreeNode to "Type Root". </LI>
602
603 <LI><B>Dump tree leaf data:</B>dumps a table of "short label",
604 "descriptive label {species}" entries for the leaves of a given
605 (sub)tree. If a ?TreeNode is currently selected, then only the leaves
606 of the subtree rooted by active node are dumped. Otherwise, all the
607 leaves of the entire ?Tree are dumped. </LI>
608
609 <LI><B>Dump tree sequences as Fasta: </B>if a ?TreeNode is currently
610 selected, then Fasta dump only the ?DNA and ?Protein sequences
611 dereferenced in the subtree rooted by the active node. Otherwise,
612 Fasta dump all?DNA and ?Protein sequences dereferenced in the entire
613 ?Tree. </LI>
614
615 </UL>
616 <P><HR></P>
617 <P><B>Node Box Menu:</B> The 'anterior' node display box has a context specific pop-up menu as follows:</P>
618 <UL>
619
620 <LI><B>Expand All Subtrees:</B> Recursively expands (unhides) all subtrees of
621 the current node, unconditionally clearing all 'hide' states previously set in the subtree.</LI>
622
623 <LI><B>Collapse All Subtrees:</B> Recursively collapses (hides) all subtrees of
624 the current node, unconditionally forcing 'hide' states for all subtree nodes./LI>
625
626 <LI><B>Expand/Collapse Subtree (Delete key):</B> Expands and contracts only
627 the subtree rooted by the currently selected node. Can
628 also use the "Insert/Delete" key to do this. </LI>
629
630 <LI><B>Expand/Collapse Subtree Outliers:</B> Expands and contracts all
631 subtrees 'outlying' from the currently selected node. That is,
632 only the direct treenode path from the root node to the current
633 node remains visible; all other subtree branches off this path
634 are hidden. </LI>
635
636 <LI><B>Relabel Tree Node</B>: brings up a user edit box to (re)label the tree node.</LI>
637
638 <LI><B>Show Treenode as text</B>: Displays the selected ?TreeNode
639 (<B>not</B> its 'Contains' associated data) as an ACEDB text-only
640 object display window.</LI>
641
642 <LI><B>Update Tree Node (Insert key)</B>: Update the current tree node
643 object using the ACEDB object text "update" mode. </LI>
644
645 <LI><B>Dump Subtree data as .ace: </B> the subtree rooted by active node
646 is dumped as an ".ace" file. <B><I>Note</I></B>: if you wish
647 to read a "subtree only" file back in as a separate tree, you will
648 need to <B><I>manually</I></B> edit the .ace file to include a ?Tree
649 object description (with a "Root ?TreeNode" tag-value), rename all
650 ?TreeNode "Tree ?Tree" tag-values to the new tree name, and relabel
651 the "root" ?TreeNode to "Type Root". </LI>
652
653 <LI><B>Dump Subtree leaf data:</B>dumps a table of "short label",
654 "descriptive label {species}" entries for the leaves of a given
655 (sub)tree. If a ?TreeNode is currently selected, then only the leaves
656 of the subtree rooted by active node are dumped. Otherwise, all the
657 leaves of the entire ?Tree are dumped. </LI>
658
659 <LI><B>Dump Subtree sequences as Fasta: </B>if a ?TreeNode is currently
660 selected, then Fasta dump only the ?DNA and ?Protein sequences
661 dereferenced in the subtree rooted by the active node. Otherwise,
662 Fasta dump all?DNA and ?Protein sequences dereferenced in the entire
663 ?Tree. </LI>
664
665 </UL>
666 <P><HR></P>
667 <P><B>Label Box Menu:</B> The 'posterior' label display box has a context specific pop-up menu as follows:</P>
668 <UL>
669 <LI><B>Display Associated Data(Enter key)</B>:
670 Displays all 'Contains' associated data of the currently selected ?TreeNode
671 in their default (possiblygraphical) modes such as will happen when
672 you double click a box.
673 Note: Unlike the keyboard hot key equivalent, this menu item
674 displays every node associated object as an ACEDB object tree graph
675 (i.e. even ?Sequence, ?Protein objects and ?URL display as text only
676 displays; "Pick_me_to_call" tags are <B>not</B> executed) </LI>
677
678 <LI><B>Display Associated Data as Text</B>:
679 Displays all 'Contains' associated data of the currently selected ?TreeNode
680 as an ACEDB text-only object display window, rather than just
681 displaying the associated objects in their default (possibly
682 graphical) modes such as will happen when you double click a
683 box.</LI>
684
685 <LI><B>Goto Root Node:</B> Selects and scrolls to the "root" node of
686 the tree. </LI>
687
688 <LI><B>Goto First (Home key)/Last Leaf (End key): </B>Selects and
689 scrolls window to "first" or "last" leaf respectively. </LI>
690
691 <LI><B>Relabel Tree Node</B>: brings up a user edit box to (re)label the tree node.</LI>
692
693 <LI><B>Biblio</B>: Pops a window with all the papers related to the
694 object The paper themselves which are part of the list, those written
695 by the authors of the list, those quoting the genes of the list,
696 etc. The Biblio window can then be printed. </LI>
697
698 </UL>
699
700 <P>Back to <A HREF="#Top">Top of Page</A> | <A HREF="TOC.html">Table of Contents</A></P>
701
702 <P><HR></P>
703
704 <A NAME="Models"><H3>Associated ACEDB Models</H3></A>
705
706 <P>The four following ACEDB classes should be supported in order for
707 this display to work properly. <B><I>Note:</I></B> The "Contains"
708 field in ?TreeNodes is now a "tag2" magic tag, therefore, any type of
709 ACEDB tag-object pair associated data may displayed by any means which
710 shows the given node's data (node selection+enter key or double
711 clicking the label). The dendrogram display code also knows a bit more
712 about ACEDB ?Sequence and ?Protein classes (and the tag "Title ?Text"
713 field therein).</P>
714
715 <P>Several of the tags in the following required models are "magic",
716 directly interpreted by Dendrogram display source code. These tags
717 (and other mandatory elements) are <B>bold</B> highlighted,
718 Some classes of objects are interpreted in a special way by
719 the program code: the existing ?Cell, ?Sequence and ?Protein classes,
720 plus a new ?Taxon class (with an augmented ?Species class). Users may
721 wish to use all the other noted tags, keywords and xref's, which are,
722 nevertheless, not stricted needed for the proper functioning of the
723 Dendrogram display code (and thus, may be modified or omitted). Some
724 the tag/values are only default values at graph creation and their
725 function may be overridden by specific popup menu commands
726 (e.g. "Align Tree...", "Rescale tree", "Hide Subtree", etc.)</P>
727
728 <PRE>
729
730 // the main "tree" object
731 ?Tree <B>Description</B> UNIQUE ?Text // Used as graph display title if present
732 Type UNIQUE <B>Taxonomy</B> // Controls semantics of tree display
733 <B>DNA</B>
734 <B>Protein</B>
735 <B>Cell_Lineage</B>
736 <B>Root</B> UNIQUE ?TreeNode // "Root" node of the current tree
737 <B>Tree_Node</B> ?TreeNode // Nodes in other ?Trees within which this ?Tree is embedded
738 Display <B>No_Header</B> // Suppresses display "header"
739 <B>Descriptive_Labels</B> // Show descriptive labels
740 <B>Colour</B> // Taxon_colouring if present
741 <B>Normalization</B> UNIQUE Float // Normalization factor for display (defaults to 1.0)
742 <B>Bootstrap_Factor</B> UNIQUE Float // Normalization factor for bootstrap values (defaults to 1.0)
743 <B>Hide_Bootstraps</B>
744 Alignment UNIQUE <B>Top</B> // How the dendrogram is to be drawn
745 <B>Middle</B>
746 <B>Bottom</B>
747 <B>Unrooted</B> // Unrooted "star" tree
748 <B>Reference</B> ?Paper XREF Tree
749
750 ?TreeNode <B>Label</B> UNIQUE ?Text // Tree vertex label, e.g. sequence name or taxon
751 <B>Id</B> UNIQUE Int // Node numbering...
752 <B>Description</B> ?Text
753 Type UNIQUE <B>Root</B> // Root ?TreeNode should be so designated!
754 <B>Interior</B>
755 <B>Leaf</B>
756 <B>Distance</B> UNIQUE Float // "Evolutionary distance" or branch length
757 <B>Bootstrap</B> UNIQUE Float // Node subtree "bootstrap" values
758 <B>Tree</B> UNIQUE ?Tree
759 <B>Parent</B> UNIQUE ?TreeNode XREF Child
760 <B>Child</B> ?TreeNode XREF Parent
761 Display <B>Hide</B> // Hide the subtree (children) of this node
762 <B>Colour</B> UNIQUE #Colour // Fixes the colour of the subtree;
763 // overridden by child node settings
764 <B>Hide_Bootstraps</B> // Hide all bootstraps in subtree...
765 <B>Show_Bootstrap</B> // ... except those with the "Show_Bootstrap" tag set
766 <B>Contains</B> Embedded_Tree UNIQUE ?Tree XREF Tree_Node
767 <B>Taxon</B> UNIQUE ?Taxon XREF Tree_Node
768 <B>Sequence</B> UNIQUE ?Sequence XREF Tree_Node
769 <B>Protein</B> UNIQUE ?Protein XREF Tree_Node
770 <B>Cell</B> UNIQUE ?Cell XREF Tree_Node
771 URL UNIQUE ?Url XREF Tree_Node
772 <B>Pick_me_to_call</B> Text Text
773
774 ?Taxon <B>Common_name</B> UNIQUE ?Text
775 Other_names Text
776 <B>Rank</B> UNIQUE Superkingdom
777 Kingdom
778 Phylum
779 Subphylum
780 Superclass
781 Class
782 Subclass
783 Superorder
784 Order
785 Suborder
786 Superfamily
787 Family
788 Subfamily
789 Genus
790 <B>Species</B> UNIQUE ?Species XREF Taxon
791 No_Rank
792 <B>Description</B> ?Text
793 <B>Taxonomy</B> UNIQUE ?TreeNode // Unique taxonomy tree
794 // Note: ?Taxon objects can be associated with more than one tree
795 <B>Tree_Node</B> ?TreeNode XREF Taxon
796 // Optional colour code (i.e. on Phylogenetic trees)
797 Display <B>Foreground_Colour</B> #Colour
798 <B>Background_Colour</B> #Colour
799
800 ?Species Common_name ?Text
801 <B>Taxon</B> UNIQUE ?Taxon XREF Species
802 Loci ?Locus
803 Sequences ?Sequence
804 Proteins ?Protein
805 Reference ?Paper
806
807 //</PRE>
808
809 <P><HR></P>
810
811 <P>Back to <A HREF="#Top">Top of Page</A> | <A HREF="TOC.html">Table of Contents</A></P>
812
813 <A NAME="Bugs"><H3>Known Bugs</H3></A>
814 <UL>
815 <LI>A hard ACEDB crash occurs if the 'Root ?TreeNode' object in the ?Tree object has not
816 yet been instantiated in ACEDB (i.e. the tag has a non-bold object label). This is suspected
817 to also be true of any other ?TreeNode tag value in the tree. Lesson: create all your ?TreeNode
818 objects before you use them!</LI></br>
819 </UL>
820
821 <P><HR></P>
822
823 <P>Back to <A HREF="#Top">Top of Page</A> | <A HREF="TOC.html">Table of Contents</A></P>
824
825 <P>Last edited (rbsk): June 28, 1999</P>
826 <P>HTML syntax revised: October 20, 1998 (fw)</P>
827
828 <P>The "Dendrogram" display is the creation of Richard Bruskiewich,<BR>
829 International Rice Research Institute (IRRI), [email protected],<BR>
830 (formerly at the Sanger Centre, UK).</P>
831
832 </BODY>
833
834 </HTML>