I use the code Set :: IntervalTree to compare two sets of intervals. However, I need an additional method that AFAIK is not currently implemented in this module.
I would like to have a method that splits or masks one interval into two or more. For instance:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <= [Original Interval A] rrrrrrrrr <= [Interval B to mask against A] xxxxxxxxxxx xxxxxxxxxxxxxxxx <= [Resulting Intervals A1 and A2]
Any ideas if this is possible using the existing Perl module?
EDIT:
For more information, each interval can be from 1 to 1 billion (1E9) in size, and from 1 to 1 million (1E6) is set in each interval.
source share