Skip to content

Hello Nextflowcourse

  • Course summary


    Hello Nextflow is a hands-on introduction to building reproducible and scalable data analysis workflows.

    Working through practical examples and guided exercises, you will learn the fundamentals of developing pipelines with Nextflow, including how to define processes, connect them into pipelines, manage files and software dependencies, and parallelize execution effortlessly.

    You will take away the skills and confidence to start developing and running your own workflows with Nextflow.

  • Additional information


    Technical requirements

    You will need a GitHub account OR a local installation of Nextflow. Our training courses are compatible with Nextflow version 25.10.2 or later and require the use of the v2 parser. See Environment options for more details.

    Learning objectives
    • Write processes and workflows, and connect them into a multi-step pipeline
    • Use channel factories and operators to feed inputs into a workflow and process them in parallel
    • Publish workflow outputs and organize them in the results directory
    • Add command-line parameters, with their default and test values in the configuration
    • Run processes in software containers, with a Conda package as an alternative, for reproducibility and portability
    • Organize pipeline code into a project with reusable modules, like the pipeline from Nextflow Run
    • Use task directories and error messages to troubleshoot basic issues
    Audience & prerequisites
    • Audience: This course is designed for learners who are new to developing Nextflow pipelines and want to write their own.
    • Skills: Some familiarity with the command line, basic scripting concepts and common file formats is assumed.
    • Courses: Builds on Nextflow Run, which we recommend taking first.
    • Domain: The exercises are all domain-agnostic, so no prior scientific knowledge is required.
    Course videos

    Videos are available for each chapter, featuring an instructor working through the exercises. The video for each part of the course is embedded at the top of the corresponding page.

    View the playlist on YouTube

Course overview

This course is designed to be hands-on, with goal-oriented exercises structured to introduce information gradually.

This course is based on the Hello pipeline from Nextflow Run, where learners run the finished pipeline and learn how to configure and manage its executions. The pipeline reads names from a CSV file, greets each one, translates the greetings into another language, collects them into a single file, and turns the result into ASCII art.

In this course, you write that pipeline yourself. You start from a script that does a single thing, writing 'Hello World!' to a file, and add one piece at a time:

names.csv sayHello translateGreeting collectGreetings cowpy cowpy-batch-es- greetings.txt greet one name Part 1: Hello World read names.csv, in parallel Part 2: Hello Channels translate, then collect Part 3: Hello Workflow cowpy in a container Part 4: Hello Containers

Parts 1 to 4 each add a piece of the pipeline, all in a single script file. Part 5 doesn't change what the pipeline does: it organizes the code into a project, with a main.nf workflow file, a module for each process and a configuration file.

main.nf the workflow params (names and types), workflow, output modules/ one file per process sayHello.nf translateGreeting.nf collectGreetings.nf cowpy.nf nextflow.config settings and default values Docker setting params (default values) profiles (test, conda) hello-containers.nf all the code, in one file process sayHello process translateGreeting process collectGreetings process cowpy params (names and types), workflow, output params (default values) nextflow.config the Docker setting Docker setting

This course focuses on writing pipeline code. It does not repeat how to run, configure and manage pipelines, which Nextflow Run covers, so we recommend taking Nextflow Run first. Where this course relies on something from Nextflow Run, it points to the relevant part.

Lesson plan

Each part adds a piece of the pipeline, and focuses on the Nextflow concepts needed to build it.

Course chapter What you add Estimated duration
Part 1: Hello World The sayHello process, greeting a name provided on the command line: processes, workflows, publishing outputs and parameters 45 mins
Part 2: Hello Channels Reading the names from a CSV file: channels, operators and parallel execution 60 mins
Part 3: Hello Workflow The translateGreeting and collectGreetings steps: connecting processes with channels, writing a process in Python, and handling multiple inputs and outputs 75 mins
Part 4: Hello Containers The cowpy step: running a process in a container 45 mins
Part 5: Hello Modules The main.nf workflow file, modules for each process, and parameter values and profiles in the configuration: organizing code into a project 45 mins

After Part 5, the optional Challenges apply the Hello pipeline to Nextflow features that the course does not cover.

By the end of this course, you will be well-prepared for tackling the next steps in your journey to develop reproducible workflows for your scientific computing needs.

Ready to take the course?

Get started