Installation
Three ways to get rustar-aligner. Pick whichever fits your workflow:
cargo installfrom crates.io — easiest if you already have Rust.- Docker image from the GitHub Container Registry — good for pipelines and reproducible runs, no Rust toolchain needed.
- Build from source — for development or when you need a custom build.
1. Install from crates.io
Section titled “1. Install from crates.io”rustar-aligner is published to crates.io. With Rust installed (via rustup), one command builds and installs the binary:
cargo install rustar-alignerThe binary lands in ~/.cargo/bin/rustar-aligner (which rustup already adds to your $PATH).
rustar-aligner --versionTo upgrade later, repeat the same command — cargo install overwrites in place. To pick a specific version, pass --version 0.1.0.
2. Docker image from GHCR
Section titled “2. Docker image from GHCR”Pre-built multi-arch images are published to the GitHub Container Registry for every release. Linux x86_64 and aarch64 are both supported.
docker pull ghcr.io/scverse/rustar-aligner:latestdocker run --rm ghcr.io/scverse/rustar-aligner:latest --versionAvailable tags
Section titled “Available tags”| Tag | Meaning |
|---|---|
latest | Latest stable release (multi-arch). |
0.1.0, 0.1, 0 | A specific release, with major / minor aliases. |
dev | Latest commit on main (may be unstable). |
latest-avx2 / latest-avx512 / latest-sve | SIMD-optimised single-arch builds for hosts that support the relevant instruction set. Use these for top performance on modern x86_64 (AVX2/AVX512) or ARM (SVE) hardware. |
Aligning with the Docker image
Section titled “Aligning with the Docker image”Mount your genome index and read files into the container, and pass paths inside the container to the CLI:
docker run --rm \ -v /local/genome_index:/genome \ -v /local/reads:/reads \ -v /local/output:/output \ ghcr.io/scverse/rustar-aligner:latest \ --genomeDir /genome \ --readFilesIn /reads/sample_1.fq.gz /reads/sample_2.fq.gz \ --readFilesCommand zcat \ --outSAMtype BAM SortedByCoordinate \ --outFileNamePrefix /output/sample_3. Build from source
Section titled “3. Build from source”For development work, or when you want a build tuned for your specific machine, build from source.
Requirements
Section titled “Requirements”- Rust 2024 edition (rustc 1.85 or newer). Install via rustup if you don’t have it already.
- Linux, macOS, or Windows. CI tests Linux (x86_64, x86-64-v3, aarch64), macOS (aarch64), and Windows (x86_64).
- Disk space for the genome index — same requirements as STAR (e.g. ~30 GB for human GRCh38).
Clone and build
Section titled “Clone and build”git clone https://github.com/scverse/rustar-aligner.gitcd rustar-alignercargo build --releaseThe binary lands at target/release/rustar-aligner. Add it to your $PATH or invoke it directly.
target/release/rustar-aligner --versionVerify the build
Section titled “Verify the build”cargo test # full test suite (~396 tests)cargo clippy # lint (zero warnings expected)cargo fmt --check # formatting checkDebug builds
Section titled “Debug builds”For development you can use cargo build (no --release). The debug binary is significantly slower but builds faster — useful for iterating on rustar-aligner itself, not for aligning real datasets.
cargo buildtarget/debug/rustar-aligner --runMode alignReads ...What’s next
Section titled “What’s next”- Quick start — generate an index and run an alignment