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

View of /FigKernelScripts/tips_of.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (as text) (annotate)
Thu Dec 30 02:30:16 2004 UTC (15 years, 5 months ago) by overbeek
Branch: MAIN
CVS Tags: merge-trunktag-bobdev_news-2, Root-bobdev_news, merge-bobdev_news-1, caBIG-dataload-0, merge-trunktag-bobdev_news-1, merge-bodev_news-3, efrank-preMakefileToStandardMk, caBIG-00-00-00, merge-bobdev_news-2, merge-trunktag-bodev_news-3
Branch point for: Branch-bobdev_news
add tree manipulation utilities

#!/Volumes/FIGdisk/FIGdisk.Nov20/env/mac/bin/perl

BEGIN {
    @INC = qw(
	/Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/5.8.4/darwin-2level
	/Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/5.8.4
	/Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/site_perl/5.8.4/darwin-2level
	/Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/site_perl/5.8.4
	/Volumes/FIGdisk/FIGdisk.Nov20/env/mac/lib/perl5/site_perl
);
}
use Data::Dumper;
use Carp;
# Following block is expanded by switch_to_release to add use lib directives
# to point at the correct locations in the release directory.
#BEGIN switch_to_release generated code
use lib '/Users/fig/Ross/SSU/Niels.Dec17.2004';
use lib '/Volumes/FIGdisk/FIGdisk.Nov20/dist/releases/ross/mac/lib';
use lib '/Volumes/FIGdisk/FIGdisk.Nov20/dist/releases/ross/mac/lib/FigKernelPackages';
#END switch_to_release generated code

use lib "/Volumes/FIGdisk/FIGdisk.Nov20/config";
use lib '/Users/fig/Ross/SSU/Niels.Dec17.2004';

use FIG_Config;

#### END tool_hdr ####

use tree_utilities;

$usage = "usage: tips_of Tree";

($newick = shift @ARGV)
    || die $usage;
 
if ($tree = &tree_utilities::parse_newick_tree(join("",`cat $newick`)))
{
    $tips = &tips_of_tree($tree);
    foreach $tip (sort @$tips)
    {
	print "$tip\n";
    }
}

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3