GenomicCoordinates

Documentation for GenomicCoordinates.

GenomicCoordinates.compare_for_inclusion_1in2Method
compare_for_inclusion_1in2(i1::Interval, i2::Interval)

Compare two intervals for inclusion. Returns -2 if i1 is before i2, 2 if i1 is after i2, -1 if i1 partially overlaps i2 at the beginning, 1 if i1 partially overlaps i2 at the end, and 0 if i1 is inside i2.

source
GenomicCoordinates.compare_for_inclusion_2in1Method
compare_for_inclusion_2in1(i1::Interval, i2::Interval)

Compare two intervals for inclusion. Returns -2 if i1 is before i2, 2 if i1 is after i2, -1 if i2 partially overlaps i1 at the beginning, 1 if i2 partially overlaps i1 at the end, and 0 if i2 is inside i1.

source
GenomicCoordinates.find_intersectionsMethod
find_intersections(x, y)

Find intersections between two arrays of intervals.

Returns an array of arrays, where the i-th element contains the indices of intervals in y that intersect with the i-th interval in x.

The intervals in x and y do not need to be sorted. However the function will sort them internally, so for repeated calls it is more efficient to sort them before calling this function.

source