[Bioperl-l] a possible issue in synopsis of BioPerl-1.6.1 > Bio::Restriction::Analysis

Dave Messina David.Messina at sbc.su.se
Thu Jun 17 22:57:29 UTC 2010


Hi Alex,

Thanks for the report. Looks like that synopsis code no longer exists in the latest version of BioPerl.

See

http://github.com/bioperl/bioperl-live/blob/master/Bio/Restriction/EnzymeCollection.pm


Dave




On Jun 11, 2010, at 01:45 , А wrote:

> Hi,
> 
> An attempt to run synopsis code as is results in the following runtime error:
> 
> Can't locate object method "unique_cutters" via package "Bio::Restriction::EnzymeCollection" at testrflp.pl line 21, <DATA> line 532.
> 
> Replacing this:
>  my $enzymes = $ra->unique_cutters;
>  print "Unique cutters: ", join (', ', 
>      map {$_->name} $enzymes->unique_cutters), "\n";
> 
> 
> with the following code:
>  my $enzymes=$ra->unique_cutters;
>  print "Unique cutters: ", join (', ', 
>      map {$_->name} $enzymes->each_enzyme()), "\n";   #<<<<<<<<<<<< this line changed
> 
> results in an error message-free execution and the output appears reasonable
> 
> Cheers,
> Alex
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l





More information about the Bioperl-l mailing list