[Bio] / FigKernelScripts / root_at_midpoint.pl Repository:
ViewVC logotype

Annotation of /FigKernelScripts/root_at_midpoint.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (view) (download) (as text)

1 : overbeek 1.1 #
2 :     # Copyright (c) 2003-2006 University of Chicago and Fellowship
3 :     # for Interpretations of Genomes. All Rights Reserved.
4 :     #
5 :     # This file is part of the SEED Toolkit.
6 :     #
7 :     # The SEED Toolkit is free software. You can redistribute
8 :     # it and/or modify it under the terms of the SEED Toolkit
9 :     # Public License.
10 :     #
11 :     # You should have received a copy of the SEED Toolkit Public License
12 :     # along with this program; if not write to the University of Chicago
13 :     # at info@ci.uchicago.edu or the Fellowship for Interpretation of
14 :     # Genomes at veronika@thefig.info or download a copy from
15 :     # http://www.theseed.org/LICENSE.TXT.
16 :     #
17 :    
18 :     # usage: root_at_midpoint < tree > rooted
19 :     use tree_utilities;
20 :     use Carp;
21 :    
22 :     @tree = <STDIN>;
23 :     ($tree = &uproot(&parse_newick_tree(join("",@tree))))
24 :     || die "could not parse the tree";
25 :     $tabsP = &tree_index_tables($tree);
26 :    
27 :     $tree1 = &root_at_midpoint($tree,$tabsP);
28 :     $new_tree = &to_newick($tree1);
29 :     print "$new_tree\n";
30 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3