[Bioperl-l] operator overloading: Seq->subseq & Seq->trim
Jason Eric Stajich
jason@cgt.mc.duke.edu
Wed, 31 Oct 2001 10:42:43 -0500 (EST)
Stop asking hard question ;)
Either an array of pieces or all the pieces concatenated together. I
guess the array approach - breaks the current 0.7 API to not return a
single string - could see if user is requesting in array context
(wantarray) or can return the strings joined together... What do other
people think would be logical?
I guess would trust the start/end values from FuzzyLocations? Or better
yet, just throw an error if one tries to get subseq for a fuzzy loc.
-jason
On Wed, 31 Oct 2001, Ewan Birney wrote:
> On Wed, 31 Oct 2001, Jason Eric Stajich wrote:
>
> > I'm pulling subseqs out of larger sequences a lot - I am using Locations
> > for this - I would like to be able to specify $seq->subseq($location) to
> > pull a subseq and if the strand is -1 one would get the revcom.
> >
> > Does this sound okay?
>
> I've noticed that this would be very useful.
>
> What are you going to do with SplitLocations?
>
>
> >
> > --
> > Jason Stajich
> > Duke University
> > jason@cgt.mc.duke.edu
> >
> > _______________________________________________
> > Bioperl-l mailing list
> > Bioperl-l@bioperl.org
> > http://bioperl.org/mailman/listinfo/bioperl-l
> >
>
> -----------------------------------------------------------------
> Ewan Birney. Mobile: +44 (0)7970 151230, Work: +44 1223 494420
> <birney@ebi.ac.uk>.
> -----------------------------------------------------------------
>
--
Jason Stajich
Duke University
jason@cgt.mc.duke.edu