Jump to content
Molecupedia is a parody encyclopedia written by Molecular Reality Corporation. It is not Wikipedia and is not affiliated with the Wikimedia Foundation. About

Basecalling

Page protected
From Molecupedia, the encyclopedia of very small things
This is the current revision of this page. The present address (URL) is a permanent link to this version.
Conversion of a nanopore's current signal into a sequence of bases

Basecalling is the conversion of the raw signal of a nanopore sequencer into letters. The signal is the ionic current through one pore, sampled several thousand times a second, and it changes as a strand of DNA or RNA is pulled through the narrowest part of the pore. The software that reads it began with hidden Markov models, moved to recurrent neural networks in 2016, and in 2026 gave its most accurate model a transformer.[1]

A noisy current trace divided into stretches, each passing through a neural network box that outputs bars of probability, followed by a line of letters
Basecalling, schematically. The network turns each stretch of the signal into probabilities and a decoder picks the most probable sequence. A drawing; the trace is invented.

The problem

The current at any moment does not belong to one base. In the early MinION pores the signal was influenced mainly by five or six nucleotides in the pore at once, and in the R9 pores mainly by three central ones with a weaker influence from the rest.[2] A level therefore belongs to a short word, a k-mer, and there are 4,096 six-letter words. In the public table of expected levels for the R9.4 chemistry they run from 58.5 to 119.7 pA, and the current observed for one k-mer has a standard deviation of about 2 pA. The median level is 91.1 pA, and 342 of the 4,096 levels lie within 2 pA of it.[3] A single level cannot name its k-mer; the sequence is recovered from the way successive levels overlap. For the R10.4.1 chemistry at 400 bases a second the repository lists 262,144 expected levels, one for each of the nine-letter words.[3]

The strand does not move at a constant speed, since a motor protein steps it through the pore. In 2018 the maker reported an average of 450 bases a second with the current sampled at 4 kHz, about nine samples for each base, but the number varies from one base to the next.[2] And the signal does not change within a homopolymer, a run of one letter, so its length has to be read from the time it takes. Because the speed is not constant, many deletion errors in MinION reads fall in homopolymers, and one study found 2.6 times as many deletions in sequences that overlap them.[2]

Events and hidden Markov models

The first basecallers did not read the raw signal. Until MinKNOW version 1.9 the control software cut the signal into events by calculating a t statistic over two pairs of adjacent sliding windows, and described each event by its mean, standard deviation and duration; the sequence of events is the squiggle. The maker supplied pore models, tables of the mean and spread expected for each k-mer, and the basecaller found the most probable path through states that stood for k-mers. In the hidden Markov model of the open-source Nanocall, each step from one event to the next could be a step of one position, a skip of more, or a stay in the same k-mer, and the best path was found by Viterbi decoding. Skips of more than one position were not allowed, to save time, and homopolymers longer than the k-mer could not be detected.[2]

In the early days basecalling was a cloud service run for MinION users by Metrichor Ltd., which was discontinued in March 2017; from August 2016 it was also available inside MinKNOW on the local computer.[2]

Neural networks

DeepNano, published in 2017, was the first basecaller to use recurrent neural networks. It had no k-mer length built in and could use information from further along the strand, and the maker's own network, Nanonet, used bidirectional long short-term memory units in the same way.[4][2]

Accuracy of single (1D) reads reported in a review of 2018[2]
Pore Basecaller Kind Accuracy
R7.3 Nanocall Hidden Markov model 68%
R7.3 Metrichor Hidden Markov model 70 to 71%
R7.3 DeepNano Recurrent network Up to 77%
R9, E. coli DeepNano Recurrent network About 81%
R9, E. coli Nanonet Recurrent network About 83%

Scrappie, a research basecaller from the maker, was the first to take the raw signal, and in Chiron a convolutional network that finds local shapes feeds a recurrent network, whose output is scored by a connectionist temporal classification decoder and turned into bases by a beam search, with no segmentation between them.[2][5] Connectionist temporal classification, introduced in 2006 for labelling sequences such as speech, lets a network learn from a sequence of labels without knowing where in the signal each one falls.[6] The maker's training software for its basecallers says that nanopore signals "exhibit long-range dependencies, much like spoken or written language", and its flip-flop models are trained by a technique "inspired by Connectionist Temporal Classification".[7]

Training and data

A network learns from signals whose bases are known, and the software that prepares them does it by "remapping signal to reference sequence".[7] BasecRAWller, trained on E. coli, did much better on new E. coli data than on human data, and when it was trained on human data its accuracy on the two was more alike.[2] A benchmark of 2019 found that training on the organism being sequenced raised consensus accuracy mostly by removing errors at methylated motifs.[8]

Dorado

The maker's present basecaller, Dorado, is "a high-performance, easy-to-use, open source analysis engine for Oxford Nanopore reads". It runs on NVIDIA graphics processors and on Apple silicon, is built on libtorch, and reads the maker's POD5 format.[9] The research basecaller Bonito carries the advice to use Dorado for anything but model training or method development.[10]

The model of highest accuracy now has a transformer. In the maker's words, "Switching our SUP model from LSTM to the transformer architecture has improved a wide range of accuracy metrics". A stack of convolutional layers turns the signal into local features, encoder blocks with self-attention follow, and a head that combines connectionist temporal classification with a conditional random field feeds a beam search that picks the most probable k-mer sequence, which is converted to nucleotides. The recurrent networks stay: they "remain highly competitive at smaller compute budgets", and "high accuracy (HAC) basecalling can keep pace with a fully loaded PromethION 24 across a sequencing run". That instrument produces up to 360 million samples a second, from 24 flow cells of up to 3,000 channels each, and its compute unit has four NVIDIA GPUs.[1]

At Molecular Reality

The README of the MR1 Nanopore Reader says that its data-ingestion software is to decode, structure and log the real-time electrical data "for machine learning basecalling or browser visualization".[11] The design samples one channel at 100 kilosamples a second, which is 3,600 times fewer samples than the 360 million a second of a PromethION 24. The company's guide is plain about the state of the field: "sequencing full DNA remains the frontier for everyone in this field", and "No solid state pore has done it commercially yet." It adds that the company has "trained machine learning models on public DNA barcode datasets", a task of classifying whole events, which is a different job from reading bases; see Machine learning on nanopore signals and Machine learning at Molecular Reality.[12]

See also

References

  1. ^ a b "Transforming basecalling in genomic sequencing". Oxford Nanopore Technologies. March 18, 2026.
  2. ^ a b c d e f g h i Rang, F. J.; Kloosterman, W. P.; de Ridder, J. (2018). "From squiggle to basepair: computational approaches for improving nanopore sequencing read accuracy". Genome Biology 19: 90. doi:10.1186/s13059-018-1462-9.
  3. ^ a b "kmer_models: expected current levels for k-mers (legacy R9.4, 450 bases per second, 6-mer table; R10.4.1, 400 bases per second, 9-mer table)". GitHub. Oxford Nanopore Technologies. Retrieved October 25, 2026.
  4. ^ Boža, V.; Brejová, B.; Vinař, T. (2017). "DeepNano: deep recurrent neural networks for base calling in MinION nanopore reads". PLOS ONE 12 (6): e0178751. doi:10.1371/journal.pone.0178751.
  5. ^ Teng, H.; et al. (2018). "Chiron: translating nanopore raw signal directly into nucleotide sequence using deep learning". GigaScience 7 (5): giy037. doi:10.1093/gigascience/giy037.
  6. ^ Graves, A.; Fernández, S.; Gomez, F.; Schmidhuber, J. (2006). "Connectionist temporal classification: labelling unsegmented sequence data with recurrent neural networks". pp. 369-376. doi:10.1145/1143844.1143891.
  7. ^ a b "Taiyaki: research software for training models for basecalling Oxford Nanopore reads". GitHub. Oxford Nanopore Technologies. Retrieved October 25, 2026.
  8. ^ Wick, R. R.; Judd, L. M.; Holt, K. E. (2019). "Performance of neural network basecalling tools for Oxford Nanopore sequencing". Genome Biology 20: 129. doi:10.1186/s13059-019-1727-y.
  9. ^ "Dorado". GitHub. Oxford Nanopore Technologies. Retrieved October 25, 2026.
  10. ^ "Bonito: a PyTorch basecaller for Oxford Nanopore reads". GitHub. Oxford Nanopore Technologies. Retrieved October 25, 2026.
  11. ^ "MR1 Nanopore Reader". GitHub. Molecular Reality Corporation. October 2026.
  12. ^ "Keltar's Field Guide to Molecular Reality". Molecular Reality Corporation. August 2026.
Last edited 3 hours ago by Aperture tube