Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
4a10b63
Migrate BAM I/O from rust-htslib to noodles (#115)
ewels Jun 16, 2026
4d4db24
fix(bam): harden noodles compatibility shim from PR #115 review
ewels Jun 16, 2026
94193d2
perf(bam): stream indexed reads instead of buffering whole references
ewels Jun 16, 2026
0b00cf1
perf(bam): stream CRAM reads via self-referential cursors
ewels Jun 17, 2026
14a3f05
test(bam): pin the unmapped sweep to records with no reference
NicoDeVeaux Oct 23, 2026
036b417
fix(bam): unmapped sweep returns only records with no reference
NicoDeVeaux Oct 23, 2026
91b4479
test(bam): per-reference CRAM fetch must return only that reference's…
NicoDeVeaux Oct 23, 2026
82fdd56
fix(bam): per-reference CRAM fetch keeps only that reference's records
NicoDeVeaux Oct 23, 2026
2f813ef
fix(bam): handle CRAM sweeps with no unplaced reads
NicoDeVeaux Nov 1, 2026
fdcc756
chore(lint): iterate corresponding count arrays
NicoDeVeaux Nov 1, 2026
41c84c7
fix(bam): read each CRAM reference container once
NicoDeVeaux Nov 1, 2026
234b5f8
chore(bam): merge updated unmapped sweep base
NicoDeVeaux Nov 1, 2026
74a31ff
chore(bam): propagate exhausted chunks with question mark
NicoDeVeaux Nov 1, 2026
f45947d
fix(deps): update crossbeam-epoch security patch
NicoDeVeaux Nov 1, 2026
be39763
chore(bam): merge current CI fixes from unmapped sweep base
NicoDeVeaux Nov 1, 2026
81fc8d4
Merge pull request #177 from seqeralabs/ndv/fix-pr118-unmapped-sweep
ewels Nov 27, 2026
c694934
Merge pull request #178 from seqeralabs/ndv/fix-pr118-cram-multiref-f…
ewels Nov 27, 2026
eec96c3
Merge origin/main into noodles-migration-redo
ewels Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@
# https://github.com/rustsec/rustsec/tree/main/cargo-audit

[advisories]
# custom_derive v0.1.7 — unmaintained crate pulled in transitively by
# rust-htslib v1.0.0. There is no newer rust-htslib release that drops it,
# and this is an "unmaintained" notice, not a vulnerability.
# Re-evaluate when rust-htslib releases a version without custom_derive.
ignore = ["RUSTSEC-2025-0058"]
ignore = []
14 changes: 6 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ permissions:

env:
CARGO_TERM_COLOR: always
CXX: g++

jobs:
test:
Expand Down Expand Up @@ -40,12 +41,11 @@ jobs:
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y cmake zlib1g-dev libbz2-dev liblzma-dev \
libcurl4-openssl-dev libssl-dev libfontconfig1-dev pkg-config clang
sudo apt-get install -y g++ libfontconfig1-dev pkg-config

- name: Install macOS build deps
if: runner.os == 'macOS'
run: brew install bzip2 xz
run: brew install fontconfig

- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3

Expand Down Expand Up @@ -97,8 +97,7 @@ jobs:
- name: Install Linux build deps
run: |
sudo apt-get update
sudo apt-get install -y cmake zlib1g-dev libbz2-dev liblzma-dev \
libcurl4-openssl-dev libssl-dev libfontconfig1-dev pkg-config clang
sudo apt-get install -y g++ libfontconfig1-dev pkg-config

- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3

Expand All @@ -115,13 +114,12 @@ jobs:
- name: Install Rust MSRV toolchain
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
with:
toolchain: "1.88"
toolchain: "1.89"

- name: Install Linux build deps
run: |
sudo apt-get update
sudo apt-get install -y cmake zlib1g-dev libbz2-dev liblzma-dev \
libcurl4-openssl-dev libssl-dev libfontconfig1-dev pkg-config clang
sudo apt-get install -y g++ libfontconfig1-dev pkg-config

- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:

env:
CARGO_TERM_COLOR: always
CXX: g++
IMAGE_NAME: ${{ github.repository }}

jobs:
Expand Down Expand Up @@ -134,13 +135,12 @@ jobs:
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y cmake zlib1g-dev libbz2-dev liblzma-dev \
libcurl4-openssl-dev libssl-dev libfontconfig1-dev pkg-config clang
sudo apt-get install -y g++ libfontconfig1-dev pkg-config

# macOS build dependencies
- name: Install macOS build deps
if: runner.os == 'macOS'
run: brew install bzip2 xz
run: brew install fontconfig

- name: Build
run: >
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ To prepare a release:
| Crate | Purpose |
| ---------------------- | ------------------------------------- |
| `clap` v4 | CLI argument parsing (derive) |
| `rust-htslib` | BAM file I/O (statically linked) |
| `noodles` | BAM/SAM/CRAM file I/O (pure Rust) |
| `plotters` | Chart generation (PNG + SVG) |
| `serde` | YAML config deserialization |
| `anyhow` | Error handling |
Expand Down Expand Up @@ -283,7 +283,7 @@ forwarded to `count_reads()` as the `skip_dup_check: bool` parameter).
- Test data is generated by `tests/create_test_data.R` — do not modify `tests/expected/` by hand.
- Float output formatting must match R's behavior (15 significant digits, "NA" for NaN, trailing-zero trimming).
- The pipeline processes BAM files which can be very large — performance matters.
- System dependencies needed for building: cmake, zlib, bz2, lzma, curl, ssl, clang (for `rust-htslib`).
- System dependencies needed for building: a C++ compiler (for the preseq RNG FFI shim), libfontconfig (for plot rendering). noodles handles BAM/SAM/CRAM I/O in pure Rust with no htslib/cmake dependency.
- Benchmark results are produced by the [RustQC-benchmarks](https://github.com/seqeralabs/RustQC-benchmarks)
Nextflow pipeline. When benchmarks are re-run, verify that all results referenced in the docs
and the top-level `README.md` are updated to reflect the new numbers.
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# RustQC Changelog

## [Unreleased]

### Other changes

- Migrate BAM/SAM/CRAM I/O from rust-htslib to pure-Rust [noodles](https://crates.io/crates/noodles) (#113)
- Simplify build requirements: no cmake or htslib system libraries needed
- Bump MSRV to Rust 1.89 (required by noodles 0.111)

## [Version 0.2.1](https://github.com/seqeralabs/RustQC/releases/tag/v0.2.1) - 2026-04-09

### Bug fixes
Expand Down
12 changes: 3 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,18 @@ Thanks for your interest in contributing to RustQC! This document covers how to

### Prerequisites

You need a working Rust toolchain (stable) and the following system libraries for building `rust-htslib`:

- cmake, clang
- zlib, libbz2, liblzma
- libcurl, libssl
- libfontconfig (for plot rendering)
You need a working Rust toolchain (stable), a C++ compiler (for the preseq RNG FFI shim), and libfontconfig (for plot rendering). BAM/SAM/CRAM I/O is handled by the pure-Rust [noodles](https://crates.io/crates/noodles) crate — no htslib or cmake required.

On Ubuntu/Debian:

```bash
sudo apt-get install cmake clang zlib1g-dev libbz2-dev liblzma-dev \
libcurl4-openssl-dev libssl-dev libfontconfig1-dev
sudo apt-get install g++ libfontconfig1-dev
```

On macOS (with Homebrew):

```bash
brew install cmake xz
brew install fontconfig
```

### Building
Expand Down
Loading
Loading