Choosing your environment
LENS runs through RAFT and RAFT supports three common setups:
Local for running entirely on your workstation or local cluster (i.e. no cloud usage)
Hybrid for launching locally but processing on the cloud.
Cloud for fully cloud-based runs through the RAFT launcher (EXPERIMENTAL)
If you are getting started for the first time, use a local setup first. It is the simplest way to validate your installation, explore the output structure, and become familiar with the workflow before moving to larger datasets.
Installation requirements
RAFT 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
Choose a local run when:
You want to run everything on your workstation or local cluster
Your inputs and references are stored on local filesystems
You want the simplest setup for first-time use
Before continuing, install RAFT as described in Installing RAFT.
Running on a cluster
RAFT installs a minimal default profile that runs work on the local machine.
To submit LENS steps to a job scheduler instead, add a profile to
~/.nextflow/config and name it with --profile:
profiles {
my_cluster {
process {
executor = 'slurm'
queue = 'general'
cpus = 4
memory = '16 GB'
time = '24h'
}
executor {
queueSize = 100
submitRateLimit = '10/1min'
}
singularity {
enabled = true
autoMounts = true
}
}
}
Then run with:
raft run --project-id my-project --profile my_cluster
Hybrid
Choose a hybrid run when:
You want to launch from your local environment (or a cloud VM)
Your FASTQs, metadata, or references live in Google Cloud Storage
You already have a Nextflow cloud profile configured
Hybrid runs still require RAFT installation. See Installing RAFT for installation, then continue to Running LENS using RAFT for the cloud-specific run command.
Cloud
Choose a cloud run when:
You want to run entirely through the RAFT cloud launcher
You do not want to manage a local RAFT installation
Your project is already organized for cloud execution
For fully cloud-based runs, use the RAFT Cloud Launcher.