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

View of /FigKernelScripts/tips_of.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (download) (as text) (annotate)
Mon Dec 5 18:56:38 2005 UTC (14 years, 6 months ago) by olson
Branch: MAIN
CVS Tags: caBIG-05Apr06-00, caBIG-13Feb06-00
Changes since 1.1: +17 -0 lines
Add license words.

#!/Volumes/FIGdisk/FIGdisk.Nov20/env/mac/bin/perl
#
# Copyright (c) 2003-2006 University of Chicago and Fellowship
# for Interpretations of Genomes. All Rights Reserved.
#
# This file is part of the SEED Toolkit.
# 
# The SEED Toolkit is free software. You can redistribute
# it and/or modify it under the terms of the SEED Toolkit
# Public License. 
#
# You should have received a copy of the SEED Toolkit Public License
# along with this program; if not write to the University of Chicago
# at info@ci.uchicago.edu or the Fellowship for Interpretation of
# Genomes at veronika@thefig.info or download a copy from
# http://www.theseed.org/LICENSE.TXT.
#


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