def overlaps(self, contig, start, end, strand=None):
        """
        Does this locus overlap with a given range of positions?

        Since locus position ranges are inclusive, we should make sure
        that e.g. chr1:10-10 overlaps with chr1:10-10
        """
        return (
            self.can_overlap(contig, strand) and
            self.distance_to_interval(start, end) == 0)
def overlaps ( self , contig , start , end , strand = None ) : return ( self . can_overlap ( contig , strand ) and self . distance_to_interval ( start , end ) == 0 )
Does this locus overlap with a given range of positions?

        Since locus position ranges are inclusive, we should make sure
        that e.g. chr1:10-10 overlaps with chr1:10-10