in reply to how to output the final Tree into a file?
You can open a file for writing and pass the file handle into Bio::TreeIO->new.
... my $outfile = '/path/to/file/to/create'; open my $fh, '>', $outfile or die "Cannot create $outfile, $!\n"; my $treeout = Bio::TreeIO->new(-format => 'newick', -fh => $fh); ...
Alternately, you can simply pass a filename to Bio::TreeIO->new.
... my $outfile = '/path/to/file/to/create'; my $treeout = Bio::TreeIO->new(-format => 'newick', -file => ">$outfil +e"); ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to output the final Tree into a file?
by 1nickt (Canon) on Mar 16, 2016 at 00:40 UTC | |
|
Re^2: how to output the final Tree into a file?
by dimitris852 (Acolyte) on Mar 15, 2016 at 23:46 UTC | |
by Anonymous Monk on Mar 15, 2016 at 23:58 UTC | |
by dimitris852 (Acolyte) on Mar 16, 2016 at 00:33 UTC | |
by 1nickt (Canon) on Mar 16, 2016 at 00:41 UTC | |
by Anonymous Monk on Mar 16, 2016 at 00:54 UTC | |
by dimitris852 (Acolyte) on Mar 16, 2016 at 01:19 UTC | |
|