~ubuntu-branches/ubuntu/saucy/bioperl/saucy-proposed

« back to all changes in this revision

Viewing changes to Bio/TreeIO/newick.pm

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2009-03-10 07:19:11 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090310071911-fukqzw54pyb1f0bd
Tags: 1.6.0-2
* Removed patch system (not used):
  - removed instuctions in debian/rules;
  - removed quilt from Build-Depends in debian/control.
* Re-enabled tests:
  - uncommented test command in debian/rules;
  - uncommented previously missing build-dependencies in debian/control.
  - Re-enabled tests and uncommented build-dependencies accordingly.
* Removed libmodule-build-perl and libtest-harness-perl from
  Build-Depends-Indep (provided by perl-modules).
* Better cleaning of empty directories using find -type d -empty -delete
  instead of rmdir in debian/rules (LP: #324001).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: newick.pm,v 1.36.4.2 2006/10/02 23:10:37 sendu Exp $
 
1
# $Id: newick.pm 11480 2007-06-14 14:16:21Z sendu $
2
2
#
3
3
# BioPerl module for Bio::TreeIO::newick
4
4
#
19
19
 
20
20
  # do not use this module directly
21
21
  use Bio::TreeIO;
22
 
  my $treeio = new Bio::TreeIO(-format => 'newick', 
 
22
  my $treeio = Bio::TreeIO->new(-format => 'newick', 
23
23
                               -file => 't/data/LOAD_Ccd1.dnd');
24
24
  my $tree = $treeio->next_tree;
25
25
 
144
144
       if( $ch eq ';' ) {
145
145
           my $tree = $self->_eventHandler->end_document($chars);
146
146
           $tree->score($score) if defined $score;
 
147
           if( $self->internal_node_id eq 'bootstrap' ) {
 
148
               $tree->move_id_to_bootstrap;
 
149
           }
147
150
           return $tree;
148
151
       } elsif( $ch eq '(' ) {
149
152
           $chars = '';
245
248
   }
246
249
   my $nl = $self->newline_each_node;
247
250
   foreach my $tree( @trees ) {
 
251
       
 
252
       if( ! defined $tree || ref($tree) =~ /ARRAY/i ||
 
253
           ! $tree->isa('Bio::Tree::TreeI') ) {
 
254
           $self->throw("Calling write_tree with non Bio::Tree::TreeI object\n");
 
255
       }
248
256
       my @data = _write_tree_Helper($tree->get_root_node,
249
257
                                     $bootstrap_style,
250
258
                                     $orderby,