Repository navigation
supports excluding reads by a tag's value, with tests - #272
Conversation
|
hi, the implementation looks fine, though I'd rather move the spec.find(':') to before the alignment processing so it's only done once. |
|
hi... thanks for getting back! |
nim-unicodedb 0.14.1 now requires nim >= 1.6.20, and it is pulled in transitively via docopt -> regex, so the 1.6.18 matrix legs fail at dependency resolution with "Unsatisfied dependency: nim (>= 1.6.20)". 1.6.20 is the final 1.6.x release, so this keeps the same oldest-supported-Nim intent.
d4binding/src/api.rs:252 declares `memcpy` as `fn(*mut c_char, *const c_char, usize)` instead of `fn(*mut c_void, *const c_void, usize) -> *mut c_void`. Recent rustc denies that by default via the `invalid_runtime_symbol_definitions` lint, so the ubuntu runners (which ship a newer preinstalled toolchain than the macOS ones) fail with exit code 101 before mosdepth is built rather than patching upstream, i think we can ignore this lint...
There was a problem hiding this comment.
🟡 Changes recommended
MD-tag filters can silently retain CRAM reads excluded from equivalent BAM files, while invalid tag names can cause incorrect filtering or out-of-range access.
2 open issues
What changed in this PR
Adds tag-value read exclusion to mosdepth’s coverage calculation, supporting selective duplicate filtering alongside existing flag-based filters.
Changes:
- Adds comma-separated
--exclude-tag TAG:VALUEfilters and requests auxiliary-tag decoding for CRAM. - Adds functional tests for duplicate filtering, absent tags, multiple exclusions, and malformed input.
- Updates the CI Nim version and adds a Rust lint workaround for D4 builds.
| File | Description |
|---|---|
mosdepth.nim |
Adds option parsing, read filtering, help text, and CRAM auxiliary-tag decoding. |
functional-tests.sh |
Adds tag-exclusion scenarios and expected coverage checks. |
.github/workflows/build.yml |
Updates Nim 1.6.18 to 1.6.20 and suppresses a Rust lint during D4 compilation. |
Review effort: Max
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>


No description provided.