Changeset 6141 for trunk/PERL_SCRIPTS/BIOPERL/beautifyNewick.pl
- Timestamp:
- 14/08/09 16:29:27 (3 years ago)
- Files:
-
- 1 modified
-
trunk/PERL_SCRIPTS/BIOPERL/beautifyNewick.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PERL_SCRIPTS/BIOPERL/beautifyNewick.pl
r6065 r6141 48 48 $depth++; 49 49 50 my @child s= ();50 my @children = (); 51 51 foreach my $child ($node->each_Descendent()) { 52 push @child s, node2string($child).':'.$child->branch_length;52 push @children, node2string($child).':'.$child->branch_length; 53 53 } 54 54 … … 56 56 my $len = length($str); 57 57 58 $str .= make_indent($inTreeComments-$len)."[child s=".scalar(@childs);58 $str .= make_indent($inTreeComments-$len)."[children=".scalar(@children); 59 59 if ($indent_incr==0) { $str .= ', level='.$depth; } 60 60 $str .= "]"; … … 62 62 $str .= "\n"; 63 63 64 $str .= join(",\n", @child s)."\n";64 $str .= join(",\n", @children)."\n"; 65 65 66 66 $depth--;
