• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

broadinstitute / catch / 270
95%
master: 94%

Build:
Build:
LAST BUILD BRANCH: v1.5.1
DEFAULT BRANCH: master
Ran 07 Jan 2019 04:47PM UTC
Jobs 3
Files 61
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
270

push

travis-ci-com

haydenm
Speed up construction of universe from IntervalSets

set_cover.approx_multiuniverse() constructs the universes by taking
the union over all input sets. When use_intervalsets is True,
this was previously slow. (use_intervalsets is True for most runs because
set_cover_filter sets it to True.) It worked by creating an empty
IntervalSet, and then repeatedly taking the union of the universe's
IntervalSet with another input set (also represented as an IntervalSet).
In the worst-case, taking the union takes O(n) time where n is the
current size of the universe. As a result, constructing the universe
took, in the worst-case, O(n^2) time. For particularly long genomes,
where n is large, this could take hours in practice.

This fix instead initializes each universe by simply constructing
a list of the input intervals for it, and then initializing an IntervalSet
from the list. Initializing the IntervalSet already merges overlapping
intervals (effectively taking the union of all of them) in O(N log N)
time, where N is the number of input intervals. Since the input sets
are constructed from the universe, N is O(n), where n is defined above.
So, now, constructing the universe takes, in the worst-case, O(n log n)
time. In practice, this seems to provide a noticeable speed up as well.

1385 of 1567 branches covered (88.39%)

17 of 17 new or added lines in 1 file covered. (100.0%)

4718 of 4966 relevant lines covered (95.01%)

2.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 270.1 07 Jan 2019 04:50PM UTC 0
95.01
Travis Job 270.1
2 270.2 07 Jan 2019 04:48PM UTC 0
95.01
Travis Job 270.2
3 270.3 07 Jan 2019 04:47PM UTC 0
95.01
Travis Job 270.3
Source Files on build 270
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #270
  • 8c988931 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc