[Bioperl-l] No "new" method in Bio::Tool::Run::AnalysisFactor::Pise?

Sendu Bala bix at sendu.me.uk
Tue Oct 10 20:43:06 UTC 2006


zhihua li wrote:
> Hi netters.
> 
> I've installed Bioperl 1.5.1, both core and run modules.  But when I 
> tried to use the Pise module, an error occured saying that there's no 
> "new" method in this package.
> 
> My script is:
> 
> use strict;
> use warnings;
> use Bio::Tools::Run::AnalysisFactory::Pise;
> my $factory = Bio::Tools::Run::AnalysisFactor::Pise->new();
> my $program=$factory->program('mfold');
> $program->seq('my_input_file');
> my $job = $program->run();
> print STDERR $job->contect('mfold.out');
> 
> The error message I got is:
> 
> Can't locate object method "new" via package 
> "Bio::Tools::Run::AnalysisFactor::Pise" (perhaps you forgot to load 
> "Bio::Tools::Run::AnalysisFactor::Pise"?)
> 
> I checked the module file at ..../Bio/Tools/Run/AnalysisFactor/Pise.pm 
> and it DOES contain a sub new.
> 
> So what's going on? Anyone could give me a hint?

You have a typo.

Bio::Tools::Run::AnalysisFactory::Pise, not
Bio::Tools::Run::AnalysisFactor::Pise



More information about the Bioperl-l mailing list