-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
- Make Unique intervals keep both interval names even when intervals … #1265
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1265 +/- ##
===============================================
+ Coverage 69.353% 69.357% +0.004%
- Complexity 8301 8302 +1
===============================================
Files 555 555
Lines 33116 33117 +1
Branches 5572 5572
===============================================
+ Hits 22967 22969 +2
+ Misses 7890 7886 -4
- Partials 2259 2262 +3
|
…are the same (assuming names are different) - added a test
19e57c6
to
e38e4bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
int start = intervals.first().getStart(); | ||
int end = intervals.last().getEnd(); | ||
final boolean neg = intervals.first().isNegativeStrand(); | ||
static Interval merge(final Iterable<Interval> intervals, final boolean concatenateNames) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should consider lifting it into Locatable as something like getSpanningLocatable
. We'd have to decide on a concrete representation to instantiate though, so maybe that should wait until a different pr.
* Fixing a bug in IntervalList.merge() that caused it to break when merging 0 length intervals * Improving tests for merge * The bug was introduced in #1265
* Fixing a bug in IntervalList.merge() that caused it to break when merging 0 length intervals * Improving tests for merge * The bug was introduced in #1265
* Fixing a bug in IntervalList.merge() that caused it to break when merging 0 length intervals * Improving tests for merge * The bug was introduced in #1265
* Fixing a bug in IntervalList.merge() that caused it to break when merging 0 length intervals * Improving tests for merge * The bug was introduced in #1265
* Fixing zero-length interval bug in IntervalList.merge * Fixing a bug in IntervalList.merge() that caused it to break when merging 0 length intervals * Improving tests for merge * The bug was introduced in #1265 * improving comment in IntervalList
…are the same (assuming names are different)
Description
Please explain the changes you made here.
Explain the motivation for making this change. What existing problem does the pull request solve?
Checklist