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

broadinstitute / catch
95%
master: 94%

Build:
Build:
LAST BUILD BRANCH: v1.5.1
DEFAULT BRANCH: master
Repo Added 23 Jan 2018 01:57PM UTC
Files 67
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

LAST BUILD ON BRANCH speed-sc-setup
branch: speed-sc-setup
CHANGE BRANCH
x
Reset
  • speed-sc-setup
  • auto-choose-clustering-method
  • cleanup
  • cluster-genomes
  • code-of-conduct
  • count-probe-covg
  • custom-covg-fn
  • download-seqs
  • expose-kmer-probe-map-k
  • fail-count-assertion-message
  • filter-polya
  • fix-edge-case-bugs
  • fix-macos
  • hm-better-hash
  • hm-citation-file
  • hm-fix-initial-guess
  • hm-fix-long-fragment-length
  • hm-fix-no-candidate-probes
  • hm-update-python-versions
  • lsh
  • master
  • readme-virtualenv
  • reduce-open-file-descriptors
  • reduce-valueerrors
  • require-output
  • simplify-large-input
  • simplify-version
  • skip-small-seqs
  • update-dependency-versions
  • v1.0.0
  • v1.1.0
  • v1.2.0
  • v1.3.0
  • v1.3.1
  • v1.4.0
  • v1.4.1
  • v1.5.0
  • v1.5.1

pending completion
272

Pull #21

travis-ci-com

web-flow
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.
Pull Request #21: Speed up construction of universe from IntervalSets

1385 of 1567 branches covered (88.39%)

20 of 20 new or added lines in 2 files covered. (100.0%)

4718 of 4966 relevant lines covered (95.01%)

2.85 hits per line

Relevant lines Covered
Build:
Build:
4966 RELEVANT LINES 4718 COVERED LINES
2.85 HITS PER LINE
Source Files on speed-sc-setup
  • List 0
  • Changed 46
  • Source Changed 46
  • Coverage Changed 46
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
272 speed-sc-setup 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 run... Pull #21 07 Jan 2019 05:25PM UTC web-flow travis-ci-com pending completion  
271 speed-sc-setup 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 run... Pull #21 07 Jan 2019 04:50PM UTC web-flow travis-ci-com pending completion  
270 speed-sc-setup 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 run... push 07 Jan 2019 04:47PM UTC haydenm travis-ci-com pending completion  
See All Builds (210)
  • Repo 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

© 2025 Coveralls, Inc