█

AI/TLDR

Buy me a coffee
Buy me a coffee

Nextflow

Scalable, reproducible, portable data-driven pipelines

Scientific Workflow OrchestrationOpen source
Language
Groovy
IN SHORT

What is Nextflow?

Nextflow is a workflow system for creating scalable, portable, and reproducible pipelines. It sits in the Scientific Workflow Orchestration category of the Science & Biomedical AI tools and is open-source, written in Groovy. To get started: check Java.

Overview

Nextflow is a workflow system for creating scalable, portable, and reproducible pipelines. It is based on a dataflow programming model, where you describe your work as a set of processes connected by channels of data, and Nextflow handles running those processes in parallel and in the right order.

It is built around a domain-specific language (DSL) for data-driven computational pipelines. You can combine existing scripts and tools written in different languages inside a pipeline without rewriting them, so it is widely used for genomics and bioinformatics work where many separate tools are chained together.

The same pipeline runs unchanged across many environments. Nextflow separates the pipeline logic from the execution layer, so it can run on a local machine, HPC batch schedulers, cloud batch services, and Kubernetes, using containers or package managers to supply software dependencies.

What it does

  • Dataflow programming model where parallelism is defined implicitly through process declarations connected by channels
  • Runs the same pipeline on a local machine, HPC schedulers, cloud batch services, and Kubernetes
  • Supports HPC batch schedulers including SLURM, LSF, PBS, HTCondor, and GridEngine
  • Runs on cloud platforms including AWS Batch, Azure Batch, and Google Cloud Batch
  • Manages software dependencies through containers and package managers including Docker, Podman, Singularity, Conda, and Spack
  • Continuous checkpoints track intermediate results so a pipeline can resume from the last successful step

Getting started

Install Nextflow with the install script, confirm it works, then run a demo pipeline from the terminal.

Check Java

Nextflow requires Java 17 or later. Check the installed version before installing.

bashbash
java -version

Install Nextflow

Download Nextflow with the install script, which creates the nextflow executable in the current directory, then make it executable.

bashbash
curl -s https://get.nextflow.io | bash
chmod +x nextflow

Verify the installation

Confirm Nextflow is installed correctly. You can move the executable to a directory in your PATH to run it from anywhere.

bashbash
nextflow info

Run a demo pipeline

Run the built-in hello pipeline to check that Nextflow can execute a workflow end to end.

bashbash
nextflow run hello

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Build genomics and bioinformatics pipelines that chain together many separate command-line tools
  • Run the same analysis pipeline on a laptop, an HPC cluster, or a cloud batch service without rewriting it
  • Package each step in a container with Docker or Singularity so runs are reproducible across machines
  • Resume a long-running pipeline from the last successful step after a failure using continuous checkpoints

How Nextflow compares

Nextflow alongside other open-source scientific workflow orchestration tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
PaperOrchestra★ 6.5kGoogle Cloud AI Research's multi-agent pipeline that turns an idea summary and an experimental log into a submission-ready LaTeX paper, with literature review, plots and refinement agents.
Nextflow★ 3.5kScalable, reproducible, portable data-driven pipelines
FAROS★ 3.1kA blueprint-driven AutoResearch runtime that carries a study from research interest to reviewed paper, passing a typed PlanPackage between ideation, planning, code, experiments and the ReviewX claim-evidence audit.
Snakemake★ 2.9kWorkflow management system for creating reproducible and scalable data-analysis pipelines with a Python-based rule syntax.
ToolUniverse★ 1.8kAn open-source ecosystem from Harvard's Zitnik Lab that gives any LLM or agent 1000+ scientific tools, databases and ML models through one protocol, via an MCP server, a Python SDK and the tu CLI.
NanoResearch★ 1.3kAn autonomous research pipeline that turns a topic into generated experiment code, runs it on local GPUs or SLURM, and writes a LaTeX paper from the measured results.
Cromwell★ 1.1kScientific workflow engine from the Broad Institute for running WDL and CWL pipelines from a laptop to cloud scale.
nf-core★ 334Community-curated collection of standardized, peer-reviewed bioinformatics pipelines built with Nextflow, plus tooling to build and lint them.