[Bioperl-l] Protdist output to generic matrix

Jason Stajich jason.stajich at duke.edu
Wed Apr 27 11:23:14 EDT 2005


Bio::Matrix::IO is what you want.
specifically
my $out = Bio::Matrix::IO->new(-format => 'phylip', -file => 
">filename.phy");
$out->write_matrix($matrix);

--
Jason Stajich
jason.stajich at duke.edu
http://www.duke.edu/~jes12/

On Apr 27, 2005, at 11:11 AM, Goel, Manisha wrote:

> Hi All,
>
> I am a new to Bioperl and was trying to parse my ProtDist (phylip)
> output file to display it as a matrix.
> I think my file is being read in by 
> Bio::Tools::Phylo::Phylip::ProtDist,
> but how do I write it back as a simple matrix ..
> I am kind of mixed up about "write_matrix" or "print_matrix" ..
>
> Thanks for any help.
> -Manisha
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at portal.open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioperl-l
>



More information about the Bioperl-l mailing list