Compares the distance between this interval and the specified interval.
Compares the distance between this interval and the specified interval.
Another interval to compare against.
Greater than/equal to/less than comparison.
Return true if the range of positions covered by this interval intersects the range of positions the specified interval covers.
Return true if the range of positions covered by this interval intersects the range of positions the specified interval covers.
In many cases, this function is identical to the overlaps function. However, some coordinate spaces may allow two intervals to cover the same start/end interval, while not truly overlapping. E.g., in a genomic coordinate space, two objects may cover the same range on a chromosome, but may have opposite strandedness.
Essentially, this is a relaxed variant of overlaps where we have projected a complex coordinate space down to a set of 1D ranges. Two intervals cover each other if they are on the same 1D range out of the sets, and if their start/end coordinates overlap.
Another interval to compare against.
True if two intervals cover intersecting indices in a coordinate space.
overlaps
Provides an absolute distance, if defined, between this interval and the specified interval.
Provides an absolute distance, if defined, between this interval and the specified interval.
Another interval to compare against.
Absolute distance between this interval and the specified interval, or None if not defined
The end of this interval.
Determines whether Interval intersects with another Interval T.
Determines whether Interval intersects with another Interval T.
Another interval to compare against.
True if this interval overlaps with the specified interval.
covers
The start of this interval.
A width is the key property of an interval, which can represent a genomic region, a transcript, a gene, etc.
A width is the key property of an interval, which can represent a genomic region, a transcript, a gene, etc.
The width of this interval.
An interval is a 2-dimensional 0-based coordinate consisting of a closed start value and open end value. Each 2-dimensional coordinate has a defined width. This can be used to express a region of a genome, a transcript, a gene, etc.
Recursive type extending Interval. Used for return type of functions overlap() and compareTo()