Skip to content

Commit

Permalink
intended usecase/problem for point to len1 segment conversion added i…
Browse files Browse the repository at this point in the history
…n doc
  • Loading branch information
smitkadvani committed Feb 9, 2024
1 parent bf4d6c0 commit 3893ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide-definitions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Interval:
- An *interval* is a tuple of integers (start, end) with start <= end.
- Coordinates are assumed to be 0-based and intervals half-open (1-based ends) i.e. [start, end).
- An interval has a *length* equal to (end - start).
- A special case where start and end are the same, i.e. [X, X), is interpreted as a *point* (aka an *empty interval*, i.e. an edge between 1-bp bins). A point has zero length.
- A special case where start and end are the same, i.e. [X, X), is interpreted as a *point* (aka an *empty interval*, i.e. an edge between 1-bp bins). A point has zero length. For consistency of the operations such as subtract, overlap, etc. point intervals are treated as len1 segments.
- Negative coordinates are permissible for both ends of an interval.

Properties of a pair of intervals:
Expand Down

0 comments on commit 3893ae5

Please sign in to comment.