Personal tool to split up large intervals in an interval list. - #1100
Personal tool to split up large intervals in an interval list.#1100tfenne wants to merge 1 commit into
Conversation
|
| @clp(group=ClpGroups.Personal, description= | ||
| """ | ||
| |Splits intervals within an interval list. Consumes an input interval list and attempts to break it | ||
| |into _at least_ `--num-intervals` intervals. The resulting interval list will likely end up with additional |
There was a problem hiding this comment.
| |into _at least_ `--num-intervals` intervals. The resulting interval list will likely end up with additional | |
| |into _at least_ `--num-intervals` intervals of approximately equal size. The resulting interval list will likely end up with additional |
| |intervals. | ||
| | | ||
| |Calculates a max interval size by summing the length of all input intervals and dividing by the desired | ||
| |number of output intervals. Then each input interval is is broken up into approximately equals size, |
There was a problem hiding this comment.
| |number of output intervals. Then each input interval is is broken up into approximately equals size, | |
| |number of output intervals. Then each input interval is is broken up into approximately equal size, |
| |Calculates a max interval size by summing the length of all input intervals and dividing by the desired | ||
| |number of output intervals. Then each input interval is is broken up into approximately equals size, | ||
| |non-overlapping, sub-intervals of no more than the max size. | ||
| """) |
There was a problem hiding this comment.
I found the usage very confusing, sorry. Perhaps something like, takes in a interval list, and tries splitting intervals such that the output interval list has at least --num-intervals intervals. If the interval list already has at least this number, nothing is done (is this true?)
| |into _at least_ `--num-intervals` intervals. The resulting interval list will likely end up with additional | ||
| |intervals. | ||
| | | ||
| |Calculates a max interval size by summing the length of all input intervals and dividing by the desired |
There was a problem hiding this comment.
| |Calculates a max interval size by summing the length of all input intervals and dividing by the desired | |
| |Calculates a max interval size by taking the size of the covered territory and dividing by the desired |
yfarjoun
left a comment
There was a problem hiding this comment.
The code does what I expect, the documentation I leave to the english speakers...
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1100 +/- ##
=======================================
Coverage 95.86% 95.86%
=======================================
Files 131 131
Lines 7884 7884
Branches 547 547
=======================================
Hits 7558 7558
Misses 326 326
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Personal tool used once to break up an interval list for a project, that's here for posterity.