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

Annotation of /FigKernelScripts/tips_of.pl

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : overbeek 1.1 #!/Volumes/FIGdisk/FIGdisk.Nov20/env/mac/bin/perl
2 :    
3 :     BEGIN {
4 :     @INC = qw(
5 :     /Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/5.8.4/darwin-2level
6 :     /Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/5.8.4
7 :     /Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/site_perl/5.8.4/darwin-2level
8 :     /Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/site_perl/5.8.4
9 :     /Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/site_perl
10 :     );
11 :     }
12 :     use Data::Dumper;
13 :     use Carp;
14 :     # Following block is expanded by switch_to_release to add use lib directives
15 :     # to point at the correct locations in the release directory.
16 :     #BEGIN switch_to_release generated code
17 :     use lib '/Users/fig/Ross/SSU/Niels.Dec17.2004';
18 :     use lib '/Volumes/FIGdisk/FIGdisk.Nov20/dist/releases/ross/mac/lib';
19 :     use lib '/Volumes/FIGdisk/FIGdisk.Nov20/dist/releases/ross/mac/lib/FigKernelPackages';
20 :     #END switch_to_release generated code
21 :    
22 :     use lib "/Volumes/FIGdisk/FIGdisk.Nov20/config";
23 :     use lib '/Users/fig/Ross/SSU/Niels.Dec17.2004';
24 :    
25 :     use FIG_Config;
26 :    
27 :     #### END tool_hdr ####
28 :    
29 :     use tree_utilities;
30 :    
31 :     $usage = "usage: tips_of Tree";
32 :    
33 :     ($newick = shift @ARGV)
34 :     || die $usage;
35 :    
36 :     if ($tree = &tree_utilities::parse_newick_tree(join("",`cat $newick`)))
37 :     {
38 :     $tips = &tips_of_tree($tree);
39 :     foreach $tip (sort @$tips)
40 :     {
41 :     print "$tip\n";
42 :     }
43 :     }

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3