edu.rit.compbio.phyl
Class Upgma

java.lang.Object
  extended by edu.rit.compbio.phyl.Upgma

public class Upgma
extends Object

Class Upgma provides the Unweighted Pair Group Method with Arithmetic mean (UPGMA) algorithm for phylogenetic tree construction. For further information, see:


Method Summary
static DnaSequenceTree buildTree(DnaSequenceList seqList, Distance dcalc)
          Build a phylogenetic tree of the given DNA sequences.
static void main(String[] args)
          Main program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
                 throws Exception
Main program. Reads a DnaSequenceList from a file in interleaved PHYLIP format, constructs a phylogenetic tree using the UPGMA algorithm with Jukes-Cantor distances, prints the tree (including branch lengths) in Newick Standard format, and prints the squared error in the branch lengths as computed by the squaredError() method of class LeastSquaresBranchLengths.

Usage: java edu.rit.compbio.phyl.Upgma file
file = DNA sequence list file name

Throws:
Exception

buildTree

public static DnaSequenceTree buildTree(DnaSequenceList seqList,
                                        Distance dcalc)
Build a phylogenetic tree of the given DNA sequences. The return value is a phylogenetic tree, including branch lengths, of the DNA sequences in seqlist, as constructed by the UPGMA algorithm. The DNA sequences in the tree are references to (not copies of) the DNA sequences in seqlist. The distances between the DNA sequences are calculated using the dcalc object.

Parameters:
seqList - List of DNA sequences.
dcalc - Object to calculate distances between DNA sequences.
Returns:
Phylogenetic tree.


Copyright © 2005-2012 by Alan Kaminsky. All rights reserved. Send comments to ark­@­cs.rit.edu.