[Bioperl-l] Bio::Range

Ewan Birney birney@ebi.ac.uk
Tue, 17 Apr 2001 22:21:26 +0100 (BST)


On Tue, 17 Apr 2001, Jason Stajich wrote:

> On Tue, 17 Apr 2001, Ewan Birney wrote:
> 
> > On Tue, 17 Apr 2001, Jason Stajich wrote:
> >
> > > Is there any reason why a Bio::Range object's start/end MUST be integers?
> > > What is wrong with a double here?
> >
> > Why do you want to use a double (hmmm.. I'm guessing genetic map right)
> >
> exactly.
> 
> wanted a general purpose range object to test for 'contains' and
> 'overlaps'.  Perhaps bioperl Range object is not the best one for this job
> though.  Just that I made my Marker objects Bio::SeqFeatureI's...
> 

I'd argue the "overhead" for a little cut-and-paste will not harm us and
keep things well defined. I dont even want to *think* about
interpretations of double-ranges in the context of splits and fuzzy
locations, and having if( $a->start == $b->start )  not working ...


So --- if it is just for Maps, why not cut-and-paste? What does
inherieting off SeqFeatureI by you but convention (which is a win of
course...)