[Bioperl-l] Bio::Matrix::PhylipDist

Jack Chen chenn at cshl.edu
Tue Apr 29 17:40:02 EDT 2003


Hi Jason and all,

Have tried to use this module but got stuck the the message:
==============================================================
------------- EXCEPTION  -------------
MSG: Need a file or file handle!
STACK Bio::Matrix::PhylipDist::new
/usr/lib/perl5/site_perl/5.6.0/Bio/Matrix/PhylipDist.pm:116

==============================================================
My code is basically copied from the synopsis:

#!/usr/bin/perl -w
use strict; 
use lib "/a/blue2/home/BioPipe/bioperl-live/";

use Bio::Tools::Phylo::Phylip::ProtDist;
use Bio::Matrix::PhylipDist;

my $dist = Bio::Matrix::PhylipDist->new( -file => "outfine",
                                         -program =>"ProtDist");

#my $dist =
Bio::Matrix::PhylipDist->new(-fh=>"temp",-program=>"ProtDist");

#get specific entries 
my $distance_value = $dist->get_entry('CBG04330','T19D12.8');
#my @columns        = $dist->get_column('ALPHA');
#my @rows           = $dist->get_row('BETA');
#my @diagonal       = $dist->get_diagonal();

#print the matrix in phylip numerical format
#print $dist->print_matrix;

print $distance_value, "\n";

Anything I am not aware of?

Thanks,

Jack

+-----O----------------------------------------+
|    o-o     Jack Chen, Stein Laboratory       |
|    o---o   Cold Spring Harbor Laboratory     |
|  o----o    1 Bungtown Road                   |
| O----O     Cold Spring Harbor, NY, 11724     |
| 0--o       Tel: 1 516 367 8394               |
|   O        Website: http://www.wormbase.org  |
|  o-o       e-mail: chenn at cshl.org            |
+-o---o----------------------------------------+ 




More information about the Bioperl-l mailing list