This Nextflow pipeline is designed to process Oxford Nanopore raw signal data (POD5 files) through basecalling and optional demultiplexing steps. It supports both simplex and duplex basecalling modes using Dorado.
The pipeline consists of a single workflow that processes Nanopore POD5 files through several phases:
- A batching phase where POD5 files are grouped into batches to allow parallelized basecalling
- A basecalling phase using Dorado in either simplex or duplex mode
- An optional demultiplexing phase for barcoded samples
- A final conversion phase to generate FASTQ files from BAM output
The workflow produces the following key outputs:
raw/
: Directory containing the final FASTQ filessummary/
: Directory containing basecalling summary statistics
- Install Nextflow (23.04.0+)
- Install Docker
- Set up AWS BATCH
- Clone this repository
Basic usage:
Create a new directory, name it after the delivery, copy in basecall.config as nextflow.config, and set the parameters. Params:
- duplex
- Duplex basecalling or no? You can't combine duplex and demux
- demux
- Demultiplex basecalling output?
- batch_size
- Sizing for batching pod5 files for parallelized base-calling
- nanopore_run N
- Name of run/delivery
- kit
- Name of ONT kit, needed for demux'ing
- pod_5_dir
- path to dir containing pod5 files
- base_dir
- path to where output will be saved to
Once that is done, you can switch into the directory and run
nextflow run .. -resume