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

Annotation of /FigKernelScripts/tips_of.pl

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : overbeek 1.1 #!/Volumes/FIGdisk/FIGdisk.Nov20/env/mac/bin/perl
2 : olson 1.2 #
3 :     # Copyright (c) 2003-2006 University of Chicago and Fellowship
4 :     # for Interpretations of Genomes. All Rights Reserved.
5 :     #
6 :     # This file is part of the SEED Toolkit.
7 :     #
8 :     # The SEED Toolkit is free software. You can redistribute
9 :     # it and/or modify it under the terms of the SEED Toolkit
10 :     # Public License.
11 :     #
12 :     # You should have received a copy of the SEED Toolkit Public License
13 :     # along with this program; if not write to the University of Chicago
14 :     # at info@ci.uchicago.edu or the Fellowship for Interpretation of
15 :     # Genomes at veronika@thefig.info or download a copy from
16 :     # http://www.theseed.org/LICENSE.TXT.
17 :     #
18 :    
19 : overbeek 1.1
20 :     BEGIN {
21 :     @INC = qw(
22 :     /Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/5.8.4/darwin-2level
23 :     /Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/5.8.4
24 :     /Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/site_perl/5.8.4/darwin-2level
25 :     /Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/site_perl/5.8.4
26 :     /Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/site_perl
27 :     );
28 :     }
29 :     use Data::Dumper;
30 :     use Carp;
31 :     # Following block is expanded by switch_to_release to add use lib directives
32 :     # to point at the correct locations in the release directory.
33 :     #BEGIN switch_to_release generated code
34 :     use lib '/Users/fig/Ross/SSU/Niels.Dec17.2004';
35 :     use lib '/Volumes/FIGdisk/FIGdisk.Nov20/dist/releases/ross/mac/lib';
36 :     use lib '/Volumes/FIGdisk/FIGdisk.Nov20/dist/releases/ross/mac/lib/FigKernelPackages';
37 :     #END switch_to_release generated code
38 :    
39 :     use lib "/Volumes/FIGdisk/FIGdisk.Nov20/config";
40 :     use lib '/Users/fig/Ross/SSU/Niels.Dec17.2004';
41 :    
42 :     use FIG_Config;
43 :    
44 :     #### END tool_hdr ####
45 :    
46 :     use tree_utilities;
47 :    
48 :     $usage = "usage: tips_of Tree";
49 :    
50 :     ($newick = shift @ARGV)
51 :     || die $usage;
52 :    
53 :     if ($tree = &tree_utilities::parse_newick_tree(join("",`cat $newick`)))
54 :     {
55 :     $tips = &tips_of_tree($tree);
56 :     foreach $tip (sort @$tips)
57 :     {
58 :     print "$tip\n";
59 :     }
60 :     }

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3