b532aa3aa4c771e69d461c0ff471ef2595314443
[jalview.git] / help / html / calculations / tree.html
1 <html>
2 <!--
3  * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
4  * Copyright (C) $$Year-Rel$$ The Jalview Authors
5  * 
6  * This file is part of Jalview.
7  * 
8  * Jalview is free software: you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License 
10  * as published by the Free Software Foundation, either version 3
11  * of the License, or (at your option) any later version.
12  *  
13  * Jalview is distributed in the hope that it will be useful, but 
14  * WITHOUT ANY WARRANTY; without even the implied warranty 
15  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
16  * PURPOSE.  See the GNU General Public License for more details.
17  * 
18  * You should have received a copy of the GNU General Public License
19  * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
20  * The Jalview Authors are detailed in the 'AUTHORS' file.
21  -->
22 <head><title>Tree Calculation</title></head>
23 <body>
24 <p><strong>Calculation of trees from alignments</strong></p>
25 <p>Trees are calculated on either the complete alignment, or just the
26 currently selected group of sequences, using the functions in the
27 <strong>Calculate&#8594;Calculate tree</strong> submenu. 
28 Once calculated, trees are displayed in a new <a 
29 href="../calculations/treeviewer.html">tree viewing window</a>. There are
30 four different calculations, using one of two distance measures and
31 constructing the tree from one of two algorithms :
32 </p>
33 <p><strong>Distance Measures</strong></p>
34 <p>Trees are calculated on the basis of a measure of similarity
35 between each pair of sequences in the alignment :
36         <ul>
37                 <li><strong>PID</strong><br>The percentage identity between
38                         the two sequences at each aligned position.
39                         <ul>
40                                 <li>PID = Number of equivalent aligned non-gap symbols * 100 /
41                                         Smallest number of non-gap positions in either of both sequences<br>
42                                 <em>This is essentially the 'number of identical bases (or
43                                                 residues) per 100 base pairs (or residues)'.</em>
44                                 </li>
45                         </ul>
46                 <li><strong>BLOSUM62, PAM250, DNA</strong><br>These options
47                         use one of the available substitution matrices to compute a sum of
48                         scores for the residue pairs at each aligned position. For details
49                         about each model, see the <a href="scorematrices.html">list of
50                                 built-in score matrices.</a></li>
51     <li><strong>Sequence Feature Similarity</strong><br>Trees
52       are constructed from a distance matrix formed from the normalised
53       hamming distance between the sequence features observed in each column of
54       the alignment.<br> <br>Distances are computed based on
55       the currently displayed feature types. Sequences with similar
56       distributions of features of the same type will be grouped
57       together in trees computed with this metric.</li>
58   </ul>
59         </p>
60         <p><strong>Tree Construction Methods</strong></p>
61 <p>Jalview currently supports two kinds of agglomerative clustering
62 methods. These are not intended to substitute for rigorous
63 phylogenetic tree construction, and may fail on very large alignments.
64 <ul>
65 <li><strong>UPGMA tree</strong><br>
66   UPGMA stands for Unweighted Pair-Group Method using Arithmetic
67   averages. Clusters are iteratively formed and extended by finding a
68   non-member sequence with the lowest average dissimilarity over the
69   cluster members.
70 <p></p>
71 </li>
72 <li><strong>Neighbour Joining tree</strong><br>
73   First described in 1987 by Saitou and Nei, this method applies a
74   greedy algorithm to find the tree with the shortest branch
75   lengths.<br>
76   This method, as implemented in Jalview, is considerably more
77   expensive than UPGMA.
78 </li>
79 </ul>
80 </p>
81 <p>A newly calculated tree will be displayed in a new <a
82 href="../calculations/treeviewer.html">tree viewing window</a>. In
83 addition, a new entry with the same tree viewer window name will be added in the Sort
84 menu so that the alignment can be reordered to reflect the ordering of
85 the leafs of the tree. If the tree was calculated on a selected region
86 of the alignment, then the title of the tree view will reflect this.</p>
87
88 <p><strong>External Sources for Phylogenetic Trees</strong></p>
89   <p>A number of programs exist for the reliable construction of
90   phylogenetic trees, which can cope with large numbers of sequences,
91   use better distance methods and can perform bootstrapping. Jalview
92   can read <a
93   href="http://evolution.genetics.washington.edu/phylip/newick_doc.html">Newick</a>
94   format tree files using the 'Load Associated Tree' entry of the
95   alignment's File menu. Sequences in the alignment will be
96   automatically associated to nodes in the tree, by matching Sequence
97   IDs to the tree's leaf names.
98   </p>
99
100
101 </body>
102 </html>