Installing RAFT

RAFT is the Nextflow-based workflow manager that runs LENS. This page covers the setup LENS needs. For RAFT’s own documentation, see Installing RAFT at useraft.io.

Installation is only required for local and hybrid runs. If you plan to run LENS entirely in the cloud through the RAFT launcher, you do not need to install RAFT on your machine first.

Local prerequisites

For local and hybrid usage, install:

  • Python 3.9+

  • Git

  • Java 17+

  • Nextflow 26.04.6

  • wget

  • Singularity or Apptainer

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

Note

RAFT requires Nextflow 26.04.6 exactly and exports it as NXF_VER, so a different Nextflow already on your PATH will not be used.

LENS 1.9.3 requires RAFT v1.5.1 or newer. Check what you have with:

$ raft --version

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.

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

Note

A LENS project needs room for the shared reference set as well as per-project working space, so point raft setup at a filesystem with at least 1 TB free. See Quick start for the current disk, memory, and time figures.