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

View of /FigKernelScripts/label_all_nodes.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (download) (as text) (annotate)
Wed Jul 17 14:18:25 2013 UTC (6 years, 4 months ago) by overbeek
Branch: MAIN
CVS Tags: rast_rel_2014_0729, rast_rel_2014_0912, HEAD
Changes since 1.1: +2 -3 lines
unlabel/label

#
# 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.
#

# usage: label_all_nodes < tree > relabeled.tree

use tree_utilities;
use Data::Dumper;

($tree = &parse_newick_tree(join("",<STDIN>)))
    || die "could not parse the tree";
&tree_utilities::unlabel_internal_nodes($tree);
&tree_utilities::label_all_nodes($tree);
print &to_newick($tree);

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3