in reply to Re^8: how to output the final Tree into a file?
in thread how to output the final Tree into a file?
I think you need to create the $treeout object with -file first so that it uses it as the stream for the write_tree method
pojmy $outfile = 'C:\Users\AnyUser\Desktop\outree.tre'; my $treeout = Bio::TreeIO->new( -format => 'newick', -file => ">$outfile" ); while( my $aln = $alnio->next_aln ) { my $mat = $stats->distance(-method => 'Kimura', -align => $aln); my $tree = $dfactory->make_tree($mat); $treeout->write_tree($tree); } exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: how to output the final Tree into a file?
by dimitris852 (Acolyte) on Mar 16, 2016 at 08:40 UTC |