[Bioperl-l] operator overloading: Seq->subseq & Seq->trim

Ewan Birney birney@ebi.ac.uk
Wed, 31 Oct 2001 15:48:02 +0000 (GMT)


On Wed, 31 Oct 2001, Jason Eric Stajich wrote:

> 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 think they expect the "cDNA". The wantarray would be cute. I dislike
wantarray's

> 
> 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.
> 

Throw exceptions on fuzzies. That's my vote.