[Bioperl-l] reading and writing tree
Mark A. Jensen
maj at fortinbras.us
Mon Mar 30 12:40:12 EDT 2009
Sure, you can do :
my $output = new Bio::TreeIO(-fh => \*STDOUT, -format => "newick");
On wiki, have a look at
http://www.bioperl.org/wiki/HOWTO:Trees#Reading_and_Writing_Trees
cheers,
Mark
----- Original Message -----
From: "Peter Menzel" <pmenzel at googlemail.com>
To: "Mark A. Jensen" <maj at fortinbras.us>
Sent: Monday, March 30, 2009 12:36 PM
Subject: Re: [Bioperl-l] reading and writing tree
> On Mon, Mar 30, 2009 at 6:16 PM, Mark A. Jensen <maj at fortinbras.us> wrote:
>> my $output = new Bio::TreeIO(-file => ">${filename}.new", -format =>
>> "newick");
>>
>> (just like writing to files using open() )
>
> awesome, this works fine. Should be added to the wiki.. Is there a way
> to write to STDOUT also?
>
> best, Peter
>
>
More information about the Bioperl-l
mailing list