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

Sean Davis sdavis2 at mail.nih.gov
Wed Oct 11 09:43:35 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?
>
> Thanks a lot!

The module name is Bio::Tools::Run::AnalysisFactory::Pise. Note that it
is not "factor" but "factory". That should probably fix your problem.

Sean



More information about the Bioperl-l mailing list