[Bioperl-l] Bio::Seq issue

Paolo Pavan paolo.pavan at gmail.com
Thu Jun 7 10:37:36 UTC 2012


No, I didn't already send the patch because the mailer daemon blocked it.

It should be like this, also according to the programming style of the
PrimarySeq.pm file:

802,803c802,806
< sub is_circular { shift->primary_seq->is_circular }
<
---
> sub is_circular {
>     my $self = shift;
>         return $self->primary_seq->{'is_circular'} = shift if @_;
>         return $self->primary_seq->{'is_circular'};
> }


2012/6/7 Leon Timmermans <l.m.timmermans at students.uu.nl>

> On Thu, May 31, 2012 at 5:34 PM, Paolo Pavan <paolo.pavan at gmail.com>
> wrote:
> > Do someone agree that they should have the same behaviour?
> > It the case, attached patch file applied to Bio/Seq.pm file should do the
> > job.
>
> I agree, but your patch is flawed. Peeking and poking into the
> internals of another object is a bad idea from a maintenance point of
> view, it should probably look like
>
>  sub is_circular { shift->primary_seq->is_circular(@_) }
>
> Leon
>



More information about the Bioperl-l mailing list