Exemplo n.º 1
0
 bool Interval::operator<(const Interval & b) const {
   if(getStart() == b.getStart()){
     return (getStop() < b.getStop());
   }
   return (getStart() < b.getStart());
 }
Exemplo n.º 2
0
 bool Interval::overlaps(const Interval & b, bool strand_specific){
   if(getStrand() == b.getStrand() || getStrand() == BOTH || b.getStrand() == BOTH || !strand_specific){
     return (getStart() < b.getStop() && b.getStart() < getStop());
   }
   return false;
 }