Returns the distance between this reference region and another region in the reference space.
Returns the distance between this reference region and another region in the reference space.
Region to compare against.
Returns an option containing the distance between two points. If the point is not in our reference space, we return an empty option (None).
Distance here is defined as the minimum distance between any point within this region, and any point within the other region we are measuring against. If the two sets overlap, the distance will be 0. If the sets abut, the distance will be 1. Else, the distance will be greater.
The 0-based residue-coordinate for the first residue after the start which is not in the region -- i.e.
The 0-based residue-coordinate for the first residue after the start which is not in the region -- i.e. [start, end) define a 0-based half-open interval.
Creates a region corresponding to the convex hull of two regions.
Creates a region corresponding to the convex hull of two regions. Has no preconditions about the adjacency or overlap of two regions. However, regions must be in the same reference space.
Other region to compute hull of with this region.
The convex hull of both unions.
Thrown if regions are in different reference spaces.
merge
Calculates the intersection of two reference regions.
Calculates the intersection of two reference regions.
Region to intersect with.
A smaller reference region.
Returns whether two regions are adjacent.
Returns whether two regions are adjacent. Adjacent regions do not overlap, but have no separation between start/end.
Region to compare against.
True if regions are adjacent.
Merges two reference regions that are contiguous.
Merges two reference regions that are contiguous.
Other region to merge with this region.
The merger of both unions.
Thrown if regions are not overlapping or adjacent.
hull
The 0-based residue-coordinate for the start of the region
The 0-based residue-coordinate for the start of the region
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.