Installing RAFT

Overview

Install RAFT before choosing where you want to run it. RAFT itself installs as a Python package, but some execution modes also require external tools or cloud credentials.

Note

RAFT downloads roughly 208 GB of shared references the first time you run a workflow, and each run writes a work directory of about 10–30x the size of its input FASTQ files. Budget 300 GB of free disk for the demo and 500 GB for a real cohort. See Storage requirements for the breakdown, and Shared installations for populating the reference set once for a whole group.

Local prerequisites

For local and hybrid usage, install:

  • Python 3.9+

  • Git

  • Java 17+

  • Nextflow

  • wget

  • Singularity or Apptainer

RAFT can install everything on that list except Python itself. Install RAFT first, then let it handle the rest.

Installing RAFT

RAFT is a command-line application, so it is best installed into an environment of its own. pipx creates and manages that environment for you and puts the raft command on your $PATH. It is packaged as pipx by most distributions:

$ sudo apt install -y pipx
$ pipx ensurepath
$ pipx install reproducible-analyses-framework-and-tools

pipx ensurepath adds ~/.local/bin to your $PATH. Start a new shell, or run exec $SHELL, before the command becomes available. Confirm the install with:

$ raft --help

This leaves the system Python untouched, and does not affect raft install-dependencies, which installs Java, Nextflow, and Apptainer at the system level. If pipx is unavailable, see Alternative installation methods.

Installing system dependencies

RAFT offers to install missing dependencies the first time you run a command that needs them. To do that up front instead, when preparing a machine or after a failed install, run:

$ raft install-dependencies

Each dependency reports its own progress line and finishes as [OK] or [FAILED]. Package manager output is held back unless something fails, in which case RAFT prints the failing command and its error. Use --verbose to stream everything as it happens, and --yes to skip the confirmation prompt in scripted setups.

Note

Installing system packages normally uses sudo and may prompt for your password; when RAFT is already running as root, as in a container, it installs directly. If anything remains missing afterwards, RAFT prints OS-specific instructions for the tools it could not install and exits non-zero.

See System dependencies reference for installing a container runtime by hand and for what --bypass-dependencies skips.

Checking that installed dependencies work as expected

raft install-dependencies answers whether a tool is installed. raft test-dependencies answers whether it works, by running each one the way RAFT runs it:

$ raft test-dependencies
Checking that RAFT's dependencies work...
  tar and gzip archive round trip                 [OK]
  bzip2 archive extraction with tar               [OK]
  gzip and gunzip round trip                      [OK]
  git commit and clone                            [OK]
  Java runtime version                            [OK]
  Nextflow starts                                 [OK]
  wget file download                              [OK]
  Nextflow pipeline execution                     [OK]
  container image pull and execution              [OK]

Dependency checks: 9 passed, 0 failed, 0 skipped

Pass --verbose to see every command and its full output, and --offline to skip the checks that need network access.

Setting up RAFT

To set up RAFT, run:

$ raft setup

You will be prompted to provide paths for each required subdirectory, with sensible defaults.

A default installation, in which all subdirectories are created in the current working directory, can be created by running:

$ raft setup --default