in reply to how to output the final Tree into a file?
Based on http://www.bioperl.org/wiki/HOWTO:Trees#Reading_and_Writing_Trees, it seems you need something like:
open my $fh, '>', 'filename' or die $!; while ( my $tree = $treeout->next_tree ) { for my $node ( $tree->get_nodes ) { printf $fh "id: %s bootstrap: %s\n", $node->id || '', $node->b +ootstrap || '', "\n"; } } close $fh or die $!;
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to output the final Tree into a file?
by dimitris852 (Acolyte) on Mar 16, 2016 at 01:32 UTC |