| title | Installation |
|---|---|
| description | Install rustar-aligner from crates.io, the GitHub Container Registry, or build from source. |
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.
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.
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/psy-fer/rustar-aligner:latest
docker run --rm ghcr.io/psy-fer/rustar-aligner:latest --version| 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. |
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/psy-fer/rustar-aligner:latest \
--genomeDir /genome \
--readFilesIn /reads/sample_1.fq.gz /reads/sample_2.fq.gz \
--readFilesCommand zcat \
--outSAMtype BAM SortedByCoordinate \
--outFileNamePrefix /output/sample_For development work, or when you want a build tuned for your specific machine, build from source.
- 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).
git clone https://github.com/Psy-Fer/rustar-aligner.git
cd rustar-aligner
cargo build --releaseThe binary lands at target/release/rustar-aligner. Add it to your $PATH or invoke it directly.
target/release/rustar-aligner --versioncargo test # full test suite (~396 tests)
cargo clippy --all-targets # lint (zero warnings expected)
cargo fmt --check # formatting checkFor 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 build
target/debug/rustar-aligner --runMode alignReads ...- Quick start — generate an index and run an alignment