Installation
Conda
Twitcher is available from Bioconda:
conda install -c conda-forge -c bioconda twitcherBioconda packages are updated by hand after each release, so they may lag a little behind the latest version.
Prebuilt binary (Linux, x86-64)
The quickest way to get Twitcher is to download the binary attached to the latest release:
curl -LO https://version.helsinki.fi/kraujasp/twitcher/-/releases/permalink/latest/downloads/binaries/twitcher-linux-x86_64
curl -LO https://version.helsinki.fi/kraujasp/twitcher/-/releases/permalink/latest/downloads/binaries/twitcher-linux-x86_64.sha256
sha256sum --check twitcher-linux-x86_64.sha256
chmod +x twitcher-linux-x86_64Rename it to twitcher and put it somewhere on your PATH once the checksum checks out. The checksum file names the binary as it is built, so verify before renaming.
The URL above always points at the most recent release. To pin a version, use its tag instead:
curl -LO https://version.helsinki.fi/kraujasp/twitcher/-/releases/vX.Y.Z/downloads/binaries/twitcher-linux-x86_64The binary is built for portability: it targets x86-64-v2 (SSE4.2, any x86-64 CPU from roughly 2009 on) and glibc 2.17 or newer, so it runs on practically every Linux distribution still in use. This leaves some speed on the table; for the best performance, build from source optimised for your own CPU:
RUSTFLAGS="-C target-cpu=native" cargo install --locked twitcherContainer
The Twitcher Workbench image includes the twitcher binary:
singularity pull twb.sif docker://aryashta/twb:latest
singularity exec -B $PWD:$PWD twb.sif twitcher --versionThe image pins its own Twitcher version, which may lag behind the latest release.
Install from Source
Requirements (source builds)
- Rust 1.95.0 or later (get it from rustup.rs)
- clang C compiler (for htslib bindings)
- Ubuntu/Debian:
apt-get install libclang-dev - macOS: Xcode Command Line Tools (comes with Xcode or via
xcode-select --install) - Alpine:
apk add clang-dev
- Ubuntu/Debian:
The simplest way to install Twitcher from source is via cargo:
cargo install --locked twitcherThis downloads and compiles the latest version, making the twitcher binary available in your PATH.
Building Locally
To build and run from the source repository:
git clone https://version.helsinki.fi/kraujasp/twitcher.git
cd twitcher
cargo build --release -p twitcherThe compiled binary will be at target/release/twitcher.
Verify Installation
Check that installation succeeded:
twitcher --versionGet help for any command:
twitcher help
twitcher help vcf
