Nanopore - Basecalling

Overview

Teaching: 15 min
Exercises: 15 min
Questions
  • How do you perform offline (i.e., non-live) basecalling for ONT data?

Objectives
  • Understand POD5/FASTQ format.

  • Use dorado on REANNZ HPC to generate basecalled data from POD5 or FAST5 output files.

FAST5 / HDF5 data

“Hierarchical Data Format (HDF) is a set of file formats (HDF4, HDF5) designed to store and organize large amounts of data. Originally developed at the National Center for Supercomputing Applications, it is supported by The HDF Group, a non-profit corporation whose mission is to ensure continued development of HDF5 technologies and the continued accessibility of data stored in HDF.”

https://www.neonscience.org/resources/learning-hub/tutorials/about-hdf5

POD5 format


Python-based tools for working with POD5:

https://github.com/nanoporetech/pod5-file-format


Automatic local conversion of FAST5 to POD5:

https://pod5.nanoporetech.com/

Basecalling workflow

In order to analyse the data from a sequencing run, the POD5/FAST5 “squiggle” data needs to be converted to base calls. The ONT software application dorado can be used to process POD5/FAST5 data and generate basecalls and quality information.

Previously this was output as FASTQ - a widely used format for storage of sequence data and associated base-level quality scores. This same information is now stored in (unaligned) BAM format (BAM is a binary version of SAM format, which was created for storing aligment information, along with sequence data and quality scores for reads, but it can also be used to stored unaligned data: basecalls and quality scores).



https://nanoporetech.com/nanopore-sequencing-data-analysis

The current version of the dorado software can be downloaded from GitHub:

https://github.com/nanoporetech/dorado

Today we will be using dorado on the REANNZ HPC system to generate FASTQ data from a set of POD5 files.

Recap: FASTQ data format

Assessing sequence quality: phred scores


Ewing B, Green P. (1998): Base-calling of automated sequencer traces using phred. II. Error probabilities. Genome Res. 8(3):186-194.


Can use ASCII to represent quality scores by adding 33 to the phred score and converting to ASCII.

http://en.wikipedia.org/wiki/Phred_quality_score

FASTQ format:

http://en.wikipedia.org/wiki/FASTQ_format

BAM instead of FASTQ

dorado outputs sequence and quality information to BAM format by default.

BAM is a binary (compressed) version of the text-based SAM format (warning, not a thrilling read):

https://samtools.github.io/hts-specs/SAMv1.pdf

ONT: “NO-MISS Bacterial isolate dataset”

For this part of the workshop we are using a subset of this data set provided by Oxford Nanopore Technologies:

https://epi2me.nanoporetech.com/nomiss_96bc_p2i_sup_2026/

The data consist of a Promethion run where barcoding was used to run 96 samples on a single flowcell. The samples represent a collection of 24 bacterial isolates, each procesed in quadruplicate (i.e., four replicates of each: 4 x 24 = 96 barcodes).

The samples comprise 15 distinct species representing the following genera:

Bacillus, Cronobacter, Citrobacter, Enterobacter, Klebsiella, Listeria, Pseudomonas, Salmonella, Shigella, Staphylococcus, and Vibrio.

The full dataset can be downloaded from https://aws.amazon.com/opendata/, or you can view/download files via web browser at 42basepairs.

The raw data are roughly 1.6TB though, so we won’t be using all of that today…

Instead, I’ve created a cut-down data set that contains just a (very small) subset of the data, and only includes reads from the first three barcoded samples (plus some random unclassified reads) - they are all Salmonella samples, and mainly comprise Salmonella enterica.

Bacterial data set on REANNZ

We’ll be working at:

~/obss_2026/nanopore/bacteria-data/

Let’s change to that directory now:

cd ~/obss_2026/nanopore/bacteria-data/

POD5 files from sequencing E. coli are available in the directory:

pod5_files
ls -1 pod5_files
PBK98658_853a956f_57f83f46_0_subset.pod5
PBK98658_853a956f_57f83f46_1_subset.pod5
PBK98658_853a956f_57f83f46_2_subset.pod5

Basecalling: dorado

On REANNZ:

module spider dorado
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  dorado: dorado/2.1.2-foss-2026-CUDA-13.2.1
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Description:
      Dorado is a high-performance, easy-to-use, open source basecaller for Oxford Nanopore reads.
     Other possible modules matches:
        Dorado, slow5-dorado
    This module can be loaded directly: module load dorado/2.1.2-foss-2026-CUDA-13.2.1
    Help:
      Description
      ===========
      Dorado is a high-performance, easy-to-use, open source basecaller for Oxford Nanopore reads.
      
      
      More information
      ================
       - Homepage: https://github.com/nanoporetech/dorado
      
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  To find other possible module matches execute:
      $ module -r spider '.*dorado.*'
module load dorado

dorado --help
Usage: dorado [options] subcommand
Positional arguments:
aligner
basecaller
correct
demux
download
duplex
polish
smallvar
summary
trim
Optional arguments:
-h --help               shows help message and exits
-l --licences           prints third party licences and exits
-v --version            prints version information and exits
-vv                     prints verbose version information and exits

Using dorado on REANNZ

Information about using dorado on REANNZ can be found at:

https://docs.nesi.org.nz/Software/Available_Applications/Dorado/

In order to use dorado to generate basecalls from POD5 or FAST5 data, we need to select a “model”.

Each model has been trained to generate specific types of basecalls (i.e., unmodified DNA, RNA, modified DNA: 5mC, 5hmC, 6mA), for specific types of data (flowcell version: 9.4.1, 10.4.1; *plex: simplex, duplex; speed: 260bps, 400bps or 70bps/130bp for RNA), at differing levels of accuracy (FAST, HAC, SUP).

We can see what models are available via:

dorado download --list
[2026-11-11 14:48:23.584] [info] Running: "download" "--list"
[2026-11-11 14:48:23.584] [info] > variant models
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.2.0_smallvar@v1.0
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v6.0.0_smallvar@v1.0
[2026-11-11 14:48:23.584] [info] > polish models
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_polish_rl
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_polish_rl_mv
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_polish_rl
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_polish_rl_mv
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.2.0_polish_rl
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.2.0_polish_rl_mv
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.2.0_polish_rl
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.2.0_polish_rl_mv
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v6.0.0_polish_rl
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v6.0.0_polish_rl_mv
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_polish_bacterial_methylation_v5.0.0
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v4.2.0_polish
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.2.0_polish
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v4.3.0_polish
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.3.0_polish
[2026-11-11 14:48:23.584] [info] > correction models
[2026-11-11 14:48:23.584] [info]  - herro-v1.1
[2026-11-11 14:48:23.584] [info] > modification models
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_fast@v4.2.0_5mCG_5hmCG@v2
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v4.2.0_5mCG_5hmCG@v2
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.2.0_5mCG_5hmCG@v2
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.2.0_5mCG_5hmCG@v3.1
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.2.0_5mC@v2
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.2.0_6mA@v2
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.2.0_6mA@v3
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.2.0_5mC_5hmC@v1
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v4.3.0_5mC_5hmC@v1
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.3.0_5mC_5hmC@v1
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v4.3.0_6mA@v1
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.3.0_6mA@v1
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v4.3.0_6mA@v2
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.3.0_6mA@v2
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v4.3.0_5mCG_5hmCG@v1
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.3.0_5mCG_5hmCG@v1
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_4mC_5mC@v1
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_4mC_5mC@v1
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_4mC_5mC@v2
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_4mC_5mC@v3
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_4mC_5mC@v2
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_4mC_5mC@v3
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_5mC_5hmC@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_5mC_5hmC@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_5mC_5hmC@v2
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_5mC_5hmC@v3
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_5mC_5hmC@v2.0.1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_5mC_5hmC@v3
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_5mCG_5hmCG@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_5mCG_5hmCG@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_5mCG_5hmCG@v2
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_5mCG_5hmCG@v3
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_5mCG_5hmCG@v2.0.1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_5mCG_5hmCG@v3
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_6mA@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_6mA@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_6mA@v2
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_6mA@v3
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_6mA@v2
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0_6mA@v3
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.2.0_4mC_5mC@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.2.0_4mC_5mC@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.2.0_5mC_5hmC@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.2.0_5mC_5hmC@v2
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.2.0_5mC_5hmC@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.2.0_5mC_5hmC@v2
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.2.0_5mCG_5hmCG@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.2.0_5mCG_5hmCG@v2
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.2.0_5mCG_5hmCG@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.2.0_5mCG_5hmCG@v2
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.2.0_6mA@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.2.0_6mA@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v6.0.0_4mC_5mC@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v6.0.0_5mC_5hmC@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v6.0.0_5mCG_5hmCG@v1
[2026-11-11 14:48:23.585] [info]  - dna_r10.4.1_e8.2_400bps_hac@v6.0.0_6mA@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_sup@v3.0.1_m6A_DRACH@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_hac@v5.0.0_m6A@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_sup@v5.0.0_m6A@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_hac@v5.0.0_m6A_DRACH@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_sup@v5.0.0_m6A_DRACH@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_hac@v5.0.0_pseU@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_sup@v5.0.0_pseU@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_hac@v5.1.0_m5C@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_sup@v5.1.0_m5C@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_hac@v5.1.0_inosine_m6A@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_sup@v5.1.0_inosine_m6A@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_hac@v5.1.0_m6A_DRACH@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_sup@v5.1.0_m6A_DRACH@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_hac@v5.1.0_pseU@v1
[2026-11-11 14:48:23.585] [info]  - rna004_130bps_sup@v5.1.0_pseU@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_sup@v5.2.0_2OmeG@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_hac@v5.2.0_m5C@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_sup@v5.2.0_m5C_2OmeC@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_hac@v5.2.0_inosine_m6A@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_sup@v5.2.0_inosine_m6A_2OmeA@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_hac@v5.2.0_m6A_DRACH@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_sup@v5.2.0_m6A_DRACH@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_hac@v5.2.0_pseU@v1
[2026-11-11 14:48:23.584] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0_4mC_5mC@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_sup@v5.2.0_pseU_2OmeU@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_sup@v5.3.0_2OmeG@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_hac@v5.3.0_m5C@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_sup@v5.3.0_m5C_2OmeC@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_hac@v5.3.0_inosine_m6A@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_sup@v5.3.0_inosine_m6A_2OmeA@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_hac@v5.3.0_m6A_DRACH@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_sup@v5.3.0_m6A_DRACH@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_hac@v5.3.0_pseU@v1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_sup@v5.3.0_pseU_2OmeU@v1
[2026-11-11 14:48:23.586] [info]  - rna004_sup@v6.0.0_2OmeG@v1
[2026-11-11 14:48:23.586] [info]  - rna004_hac@v6.0.0_m5C@v1
[2026-11-11 14:48:23.586] [info]  - rna004_sup@v6.0.0_m5C_2OmeC@v1
[2026-11-11 14:48:23.586] [info]  - rna004_hac@v6.0.0_inosine_m6A@v1
[2026-11-11 14:48:23.586] [info]  - rna004_sup@v6.0.0_inosine_m6A_2OmeA@v1
[2026-11-11 14:48:23.586] [info]  - rna004_hac@v6.0.0_m6A_DRACH@v1
[2026-11-11 14:48:23.586] [info]  - rna004_sup@v6.0.0_m6A_DRACH@v1
[2026-11-11 14:48:23.586] [info]  - rna004_hac@v6.0.0_pseU@v1
[2026-11-11 14:48:23.586] [info]  - rna004_sup@v6.0.0_pseU_2OmeU@v1
[2026-11-11 14:48:23.586] [info] > stereo models
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_5khz_stereo@v1.1
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_5khz_stereo@v1.2
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_5khz_stereo@v1.3
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_5khz_stereo@v1.4
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_5khz_stereo@v1.5
[2026-11-11 14:48:23.586] [info] > simplex models
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_400bps_fast@v4.2.0
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_400bps_hac@v4.2.0
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.2.0
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_400bps_fast@v4.3.0
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_400bps_hac@v4.3.0
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_400bps_sup@v4.3.0
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_400bps_fast@v5.0.0
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.0.0
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.0.0
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_apk_sup@v5.0.0
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_400bps_fast@v5.2.0
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_400bps_hac@v5.2.0
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_400bps_sup@v5.2.0
[2026-11-11 14:48:23.586] [info]  - dna_r10.4.1_e8.2_400bps_hac@v6.0.0
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_fast@v3.0.1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_hac@v3.0.1
[2026-11-11 14:48:23.586] [info]  - rna004_130bps_sup@v3.0.1
[2026-11-11 14:48:23.587] [info]  - rna004_130bps_fast@v5.0.0
[2026-11-11 14:48:23.587] [info]  - rna004_130bps_hac@v5.0.0
[2026-11-11 14:48:23.587] [info]  - rna004_130bps_sup@v5.0.0
[2026-11-11 14:48:23.587] [info]  - rna004_130bps_fast@v5.1.0
[2026-11-11 14:48:23.587] [info]  - rna004_130bps_hac@v5.1.0
[2026-11-11 14:48:23.587] [info]  - rna004_130bps_sup@v5.1.0
[2026-11-11 14:48:23.587] [info]  - rna004_130bps_fast@v5.2.0
[2026-11-11 14:48:23.587] [info]  - rna004_130bps_hac@v5.2.0
[2026-11-11 14:48:23.587] [info]  - rna004_130bps_sup@v5.2.0
[2026-11-11 14:48:23.587] [info]  - rna004_130bps_fast@v5.3.0
[2026-11-11 14:48:23.587] [info]  - rna004_130bps_hac@v5.3.0
[2026-11-11 14:48:23.587] [info]  - rna004_130bps_sup@v5.3.0
[2026-11-11 14:48:23.587] [info]  - rna004_fast@v6.0.0
[2026-11-11 14:48:23.587] [info]  - rna004_hac@v6.0.0
[2026-11-11 14:48:23.587] [info]  - rna004_sup@v6.0.0

We can ask dorado to download a specific model via:

mkdir dorado-models
dorado download --model dna_r10.4.1_e8.2_400bps_fast@v5.2.0 --directory dorado-models/

Check the donload:

ls dorado-models/
dna_r10.4.1_e8.2_400bps_fast@v5.2.0

dorado can use GPUs to speed up the basecalling process.

On REANNZ, we can access the GPUs by submitting a job to the cluster using a slurm script.

The slurm script we will use can be found at:

scripts/dorado_fastmodel.sl

Let’s have a look at the content:

more scripts/dorado_fastmodel.sl
#!/bin/bash -e 

#SBATCH --job-name      dorado_basecalling
#SBATCH --time          00:15:00
#SBATCH --mem           6G
#SBATCH --cpus-per-task 4
#SBATCH --output        dorado_%j.out
#SBATCH --error         dorado_%j.err
#SBATCH --account       nesi02659
#SBATCH --gpus-per-node l4:1

module load dorado

dorado basecaller  --device 'cuda:all' dorado-models/dna_r10.4.1_e8.2_400bps_fast@v5.2.0 pod5_files --kit-name SQK-RBK114-96 --output-dir bam-unaligned

Let’s have a closer look at the dorado basecaller command:

dorado basecaller  --device 'cuda:all' \
  dorado-models/dna_r10.4.1_e8.2_400bps_fast@v5.2.0 \
  pod5_files \
  --kit-name SQK-RBK114-96 \
  --output-dir bam-unaligned

Options used:

Before running the script, we need to create the directory where the output files will be written:

mkdir bam-unaligned

To submit the script, we use the sbatch command, and run it from the ~/obss_2026/nanopore/bacteria-data directory. You can check if you are in that directory with pwd. If not:

cd ~/obss_2026/nanopore/bacteria-data/

To run the script:

sbatch scripts/dorado_fastmodel.sl

Once the script has been submitted, you can check to make sure it is running via:

# This shows all your current jobs
squeue --me
JOBID         USER     ACCOUNT   NAME        CPUS MIN_MEM PARTITI START_TIME     TIME_LEFT STATE    NODELIST(REASON)    
10901129      michael. nesi02659 dorado_basec   4      1G genoa   Nov 18 14:12        8:43 RUNNING  g12             

It also writes “progress” output to a log file that contains the job ID (represented by XXXXXXX in the code below), although (unlike with the older guppy software, you don’t get any information about how far through the processing you are). You can check the file name using ls -ltr (list file details, in reverse time order).
Using the tail -f command, we can watch the “progress” (use control-c to exit):

ls -ltr
tail -f dorado_XXXXXXX.err

Example of output:

[2026-11-18 14:35:55.953] [info] > Creating basecall pipeline
[2026-11-18 14:36:15.222] [info] > Finished in (ms): 19218
[2026-11-18 14:36:15.222] [info] > Simplex reads basecalled: 32984
[2026-11-18 14:36:15.222] [info] > Simplex reads filtered: 124
[2026-11-18 14:36:15.222] [info] > Basecalled @ Samples/s: 4.017993e+07
[2026-11-18 14:36:15.222] [info] > 33541 reads demuxed @ classifications/s: 1.745291e+03
[2026-11-18 14:36:15.359] [info] > Finished

Use “Control-c” to exit (it’s okay, it won’t kill the job).

NOTE:

The job should take a few minutes to run.

Once the job has completed successfully, the bams files (one per barcode, plus “unclassified” reads) will be written to a rather convoluated directory structure under: ~/obss_2026/nanopore/bacteria-data/bam-unaligned/.

tree bam-unaligned/
bam-unaligned
└── NO_MISSV2_P2I
    └── P2I_96
        └── 20260413_1636_P2I-00014-B_PBK98658_853a956f
            └── bam_pass
                ├── barcode01
                │   └── PBK98658_pass_barcode01_853a956f_57f83f46_0.bam
                ├── barcode02
                │   └── PBK98658_pass_barcode02_853a956f_57f83f46_0.bam
                ├── barcode03
                │   └── PBK98658_pass_barcode03_853a956f_57f83f46_0.bam
                ├── barcode04
                │   └── PBK98658_pass_barcode04_853a956f_57f83f46_0.bam
                ├── barcode05
                │   └── PBK98658_pass_barcode05_853a956f_57f83f46_0.bam
                ├── barcode06
                │   └── PBK98658_pass_barcode06_853a956f_57f83f46_0.bam
.
.
.
                ├── barcode95
                │   └── PBK98658_pass_barcode95_853a956f_57f83f46_0.bam
                ├── barcode96
                │   └── PBK98658_pass_barcode96_853a956f_57f83f46_0.bam
                └── unclassified
                    └── PBK98658_pass_unclassified_853a956f_57f83f46_0.bam

101 directories, 97 files

Each .bam file contains the reads labelled with a specific DNA barcode (barcode01-barcode96) or reads whose barcodes could not be determined (unclassified).

Because I created a data subset that only contained reads from the first three barcodes (plus some unclassified reads), those are the only .bam files that contain data. We can check the size of each folder to confirm this (use du to find the size in MB of all the folders, then sort the results and look at the largest 10):

du -sm bam-unaligned/NO_MISSV2_P2I/P2I_96/20260413_1636_P2I-00014-B_PBK98658_853a956f/bam_pass/* | sort -n | tail -10
1       bam-unaligned/NO_MISSV2_P2I/P2I_96/20260413_1636_P2I-00014-B_PBK98658_853a956f/bam_pass/barcode91
1       bam-unaligned/NO_MISSV2_P2I/P2I_96/20260413_1636_P2I-00014-B_PBK98658_853a956f/bam_pass/barcode92
1       bam-unaligned/NO_MISSV2_P2I/P2I_96/20260413_1636_P2I-00014-B_PBK98658_853a956f/bam_pass/barcode93
1       bam-unaligned/NO_MISSV2_P2I/P2I_96/20260413_1636_P2I-00014-B_PBK98658_853a956f/bam_pass/barcode94
1       bam-unaligned/NO_MISSV2_P2I/P2I_96/20260413_1636_P2I-00014-B_PBK98658_853a956f/bam_pass/barcode95
1       bam-unaligned/NO_MISSV2_P2I/P2I_96/20260413_1636_P2I-00014-B_PBK98658_853a956f/bam_pass/barcode96
9       bam-unaligned/NO_MISSV2_P2I/P2I_96/20260413_1636_P2I-00014-B_PBK98658_853a956f/bam_pass/unclassified
13      bam-unaligned/NO_MISSV2_P2I/P2I_96/20260413_1636_P2I-00014-B_PBK98658_853a956f/bam_pass/barcode03
17      bam-unaligned/NO_MISSV2_P2I/P2I_96/20260413_1636_P2I-00014-B_PBK98658_853a956f/bam_pass/barcode01
17      bam-unaligned/NO_MISSV2_P2I/P2I_96/20260413_1636_P2I-00014-B_PBK98658_853a956f/bam_pass/barcode02

Key Points

  • POD5/FAST5 data can be converted to BAM or FASTQ via the dorado software.

  • dorado has different models (FAST, HAC and SUP) that provide increasing basecall accuracy (and take increasing amounts of computation).

  • Once bascalling has been done, standard tasks such as QA/QC, mapping and variant calling can be performed.