code: def intersects(self, e):
      
      if self.chrom != e.chrom:
        return False
  
      if e.start >= self.start and e.start < self.end:
        return True
      if e.end > self.start and e.end <= self.end:
        return True
      if e.start < self.start and e.end > self.end:
        return True
      return False
docs: Check whether e intersects self.
  
      :return: true if this elements intersects the element e