2023-basecalling-benchmarks icon indicating copy to clipboard operation
2023-basecalling-benchmarks copied to clipboard

README

Rasmus Kirkegaard 22 December, 2023

R10.4.1 Zymo HMW basecalling

With the release of R10.4.1 I wanted to check the quality of the raw reads and the consensus accuracy to ensure that we had the right approach for continuing our nanopore only assemblies from metagenomic samples (Mantas et al. 2022). So we sequenced the Zymo HMW mock DNA to evaluate the quality of the raw reads but more importantly the assembled genomes. With the introduction of dorado as a basecaller that should replace guppy it was also interesting to see how well that performed.

Aim

  1. Check if nanopore R10.4.1 is also capable of generating nanopore only assemblies.
  2. Evaluate the impact of the different basecalling models on raw read accuracy
  3. Evaluate the impact of the different basecalling models on consensus accuracy
  4. Evaluate if the introduction of 5khz sampling would allow for a move from SUP basecalling to HAC basecalling to speed up basecalling
  5. Check out duplex basecalling

Conclusion

  1. Yes!!! The obtained indel and mismatch rates are very low already around 25X coverage. At ~0.1 /100 Kbp a 5 Mbp genome will have 5 “errors” (Could still be the references at this point but likely does not matter) so it is unlikely to affect gene calling and most downstream analysis.
  2. There is a huge difference between fast, hac and sup for raw read accuracy. However, the time needed for compute is also much much higher for the super accuracy model.
  3. There seems to be a clear improvement in consensus accuracy by using super accuracy reads. Even providing higher coverage for fast or hac accuracy reads do not seem to fix this indicating that some of the errors fixed by sup(er accuracy) are indeed systematic errors in fast and hac. So super accuracy mode is the way to go if the aim is to generate reference quality genomes despite the additional need for GPU compute.
  4. HAC data shows a serious improvement on raw read accuracy compared to 4khz sampling. However, it is still inferior to the 4khz SUP data on this metric. For assemblies the consensus is on par with 4 khz sup for some organisms but generally slightly worse. For mismatches there is a similar pattern with some organisms being equally good and others where HAC is simply worse.
  5. Duplex reads really represent a step change in single read accuracy

I think it is work taking a moment to think about how amazing it is that we now have several independent methods (sequencing tech+assembler) that can reproduce a bacterial genome of e.g. P aeruginosa (6832199 bp) with error rates of less than 0.01 per 100 kbp <2 total errors.

Ending 2023 with nanopore data improving from their single strand data (simplex) barely hitting their Q20 goal to going well beyond it and when reading both stands (duplex) even racing beyond Q30 is quite amazing. Lots of innovation on run conditions and basecalling models. The promise of Q30 single strand reads in 2024 does not seem too far fetched.

Data availability

4 khz data

The data has been added to the NCBI-SRA PRJNA934154. I have managed to upload the fastq and the fast5 files. The fastq and fast5 files should be available through the “cloud delivery service”.

Fastq data (fast,hac & Sup): SRR23563655

Fast5 data: SRR23437037

5 khz data

Fastq data: - fast: SRR24893246 - hac: SRR24893245 - sup: SRR24893244

Pod5 data: The data has been added to the ENA PRJEB64570. (NCBI did not accept pod5 and told me they do not want to do that)

5 khz high duplex data

The data has been added to the ENA PRJEB65462

Fastq data: - sup: ERR11901474 - sup duplex: ERR11901475

Pod5 data: - ERR11924124

NP reads mapped to the refs overall (percent identity)

Longest perfect read

NP reads mapped to the refs overall (phred scale)

Phred scores for perfect matching reads are calculated as recommended by Armin Topfer which takes length into account.

Fast mode

Indel rate vs coverage

Mismatch rate vs coverage

HAC mode

Indel rate vs coverage

Mismatch rate vs coverage

SUP mode

Indel rate vs coverage

Mismatch rate vs coverage

Duplex mode

Indel rate vs coverage

Mismatch rate vs coverage

4khz SUP vs 5 khz HAC & SUP

With the launch of 5 khz sampling rate around London Calling 2023 ONT was hoping that the GPU power needed for basecalling could be decreased dramatically as this should allow for the use of the faster HAC model to replace the compute intensive SUP model at 4khz. To test this we here compare the consensus assemblies with the 4 khz SUP model and the new 5khz HAC and SUP models.

Indels

The indel rate seems to be higher with 5khz HAC than both SUP regardless of sample rate. Interestingly the 5khz sample rate with SUP performs much better than 4 khz SUP for some organisms but not S enterica.

Mismatches

While HAC is on par with SUP for some organisms it is never the best option for mismatches.

Super accuracy comparison model 4.2 vs 4.3

The 4.3 model includes some modifications found in bacteria and it seems to pay off. The model gives a clear improvement for the consensus accuracy across many of the genomes. Indel rates without any polishing ranging from below 0.01 to 1 per 100 kbp translates to 1-100 errors for a 10 Mbp genome. Similar levels were achieved regarding mismatches. The Bacillus showed notably poorer consensus accuracy than the others which I assume could be due to some real differences or errors in the Pacbio HiFi based references.When we are getting in the 0.01-0.1 errors per 100 kbp I assume that it gets difficult to tell whether they are actual errors without hand curating reference genomes with multiple independent technologies as per Ryan Wicks “Perfect bacterial genome tutorial”.

Indels

Mismatches

Materials and methods

Here is a brief description of the tools used. For the exact commands check out the Snakefile in this repository (Snakemake v. 7.18.2).

DNA sequencing

DNA sample was the Zymo Mock HMW standard. The DNA was prepared for sequencing using the nanopore ligation sequencing kit (SQK-LSK114) and sequenced on a R10.4.1 nanopore promethion flowcell (FLO-PRO114M) with the “400 bp/s” mode (4khz sampling). The DNA was prepared for sequencing using the nanopore ligation sequencing kit (SQK-LSK114) and sequenced on a R10.4.1 nanopore MinION flowcell (FLO-MIN114) with the “400 bp/s” mode (5khz sampling). The DNA was prepared for sequencing using the nanopore ligation sequencing kit (SQK-LSK114) and sequenced on a R10.4.1 nanopore PromethION flowcell (FLO-PRO114HD) with the “400 bp/s” mode (5khz sampling).

Basecalling

4 khz PromethION data

The reads were basecalled using dorado (v. 0.1.1) with fast, hac and sup accuracy mode using the 4.0.0 and 4.1.0 models.

5 khz MinION data

The reads were basecalled using dorado (v. 0.3.0) with fast, hac and sup accuracy mode using the 4.2.0 models.

5 khz High Duplex PromethION data

The reads were basecalled using dorado (v. 0.3.4) with fast, hac and sup accuracy mode using the 4.2.0 models. The reads were basecalled using dorado (v. 0.5.0) with fast, hac and sup accuracy mode using the 4.3.0 models.

Read QC

Reads were mapped to the updated zymo reference genomes (hopefully goes public soon) using minimap2 (v. 2.24), and QC information was obtained using NanoPlot (v. 1.41.0).

Assembly

The reads were subsampled using seqtk (v. 1.3) and assembled using flye (v. 2.9.1). The metagenome assemblies were then polished using medaka (v. 1.11.3).

Genome quality assessment

The assembled contigs were compared to the reference contigs using QUAST (v. 5.2.0) and fastANI (v. 1.33).