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

broadinstitute / catch / 401
94%
master: 94%

Build:
Build:
LAST BUILD BRANCH: v1.5.1
DEFAULT BRANCH: master
Ran 15 Sep 2022 05:40PM CUT
Jobs 2
Files 67
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
401

push

travis-ci-com

haydenm
Fix bug in set_cover_filter with no candidate probes

There can be some cases where set_cover_filter is run with no input
candidate probes. For instance, if sequences are clustered and a
cluster/grouping has just 1 sequence that is both short (roughly the
length of a probe) and contains a string of Ns, then no candidate probes
will be constructed for it. This may happen sporadically because there
is randomness in the clustering algorithm.

In that case of a grouping with no input probes, set_cover_filter had
crashed. The call to
`probe.construct_kmer_probe_map_to_find_probe_covers()` on line 398 of
set_cover_filter.py returns an empty kmer_probe_map. Then, the call to
`probe.SharedKmerProbeMap.construct()` leads to a ValueError (line 708
of probe.py).

This commit fixes that case by checking for 0 candidate probes and
ensuring that the filter runs successfully, yielding 0 probes.

1822 of 2072 branches covered (87.93%)

19 of 19 new or added lines in 3 files covered. (100.0%)

5723 of 6070 relevant lines covered (94.28%)

1.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 401.1 15 Sep 2022 05:40PM CUT 0
94.28
Travis Job 401.1
2 401.2 15 Sep 2022 05:43PM CUT 0
94.28
Travis Job 401.2
Source Files on build 401
  • Tree
  • List 67
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/LineBranch HitsBranch Misses
60.0
catch/utils/log.py16 5 3 2 2.0 0 0
61.82
catch/utils/pool_probes_io.py149 65 44 21 2.0 24 21
68.27
catch/utils/ncbi_neighbors.py466 192 142 50 2.0 43 36
72.47
catch/utils/seq_io.py245 114 89 25 2.0 40 24
73.02
catch/utils/version.py131 51 41 10 2.0 5 7
78.19
catch/coverage_analysis.py568 196 156 40 2.0 77 25
80.43
catch/probe.py1352 387 315 72 2.0 133 37
87.5
catch/filter/base_filter.py175 41 37 4 2.0 26 5
88.2
catch/pool/param_search.py749 215 193 22 2.0 91 16
89.57
catch/utils/tests/test_ncbi_neighbors.py254 87 80 7 2.0 23 5
Showing 1 to 10 of 67 entries
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • Next
  • ►
    94.28
    catch/
  • Back to Repo
  • Build #401
  • f96817bf on github
  • Prev Build on fix-edge-case-bugs (#400)
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