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

broadinstitute / viral-core / 9552466477
70%

Build:
DEFAULT BRANCH: master
Ran 17 Jun 2024 06:10PM UTC
Jobs 1
Files 23
Run time 1min
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

10 Jun 2024 04:59PM UTC coverage: 65.842% (-0.06%) from 65.898%
9552466477

push

github

web-flow
index bam before calling samtools idxstats; warn user if input lacks reads (#102)

* index bam before calling samtools idxstats; warn user if input lacks reads

in `read_utils.py::minimap2_idxstats()`, warn the user if the input bam file lacks reads, and index the post-alignment post-filtering bam before calling `samtools idxstats` so `minimap2_idxstats()` succeeds if the input bam lacks reads. The minimap2 wrapper, `tools/minimap2.py::Minimap2::align_bam()`, tolerates empty input and indexes bam/cram output, but the post-filtering final bam in minimap2_idxstats was not being indexed, which led to a problematic exit-on-failure condition in a WDL command invoking the function. Also fix import of the InvalidBamHeaderError class used in several tool modules (add it to errors.py, and import the error subclasses where needed).
This also runs minimap2 alignment when a read group lacks reads, since the newer version of minimap2 seems to better tolerate empty RGs. This allows samtools idxstats to yield zeros across the board for all input sequences when no reads are present, rather than only emitting the catchall "*" (which can cause issues downstream where metrics are expected)

* add pandas to deps

* attempt to fix coverage reporting due to breaking changes in coveralls reporter

see:
https://github.com/coverallsapp/coverage-reporter/issues/124
https://github.com/coverallsapp/github-action/issues/205
additional refs:
https://github.com/coverallsapp/github-action?tab=readme-ov-file
https://github.com/coverallsapp/coverage-reporter#supported-coverage-report-formats

10 of 15 new or added lines in 4 files covered. (66.67%)

2 existing lines in 1 file now uncovered.

3059 of 4646 relevant lines covered (65.84%)

0.66 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
75.66
-0.18% tools/minimap2.py
4
70.63
-0.37% read_utils.py

Uncovered Existing Lines

Lines Coverage ∆ File
2
70.63
-0.37% read_utils.py
Jobs
ID Job ID Ran Files Coverage
1 9552466477.1 17 Jun 2024 06:10PM UTC 23
65.84
GitHub Action Run
Source Files on build 9552466477
  • Tree
  • List 23
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #9552466477
  • d176365f on github
  • Prev Build on master (#9421853202)
  • Next Build on master (#9650151278)
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