The name of the sequence (chromosome) in the reference genome
The 0-based residue-coordinate for the start of the region
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.
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.
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 number of bases to move the start position forward by.
The number of bases to move the end position back by.
Returns a new reference region where the start and/or end have been moved.
The number of bases to extend the region by from both the start and the end.
Returns a new reference region where the start and end have been moved.
The name of the sequence (chromosome) in the reference genome
The 0-based residue-coordinate for the start of the region
The 0-based residue-coordinate for the start of the region
Represents a contiguous region of the reference genome.
The name of the sequence (chromosome) in the reference genome
The 0-based residue-coordinate for the start of the region
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.