Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Sequencing DNA with nanopores: Troubles and biases

  • Clara Delahaye ,

    Contributed equally to this work with: Clara Delahaye, Jacques Nicolas

    Roles Conceptualization, Formal analysis, Investigation, Methodology, Software, Validation, Visualization, Writing – original draft, Writing – review & editing

    Affiliation Inria, CNRS, IRISA, Univ Rennes, Rennes, France

  • Jacques Nicolas

    Contributed equally to this work with: Clara Delahaye, Jacques Nicolas

    Roles Conceptualization, Investigation, Methodology, Project administration, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing

    jacques.nicolas@inria.fr

    Affiliation Inria, CNRS, IRISA, Univ Rennes, Rennes, France

Abstract

Oxford Nanopore Technologies’ (ONT) long read sequencers offer access to longer DNA fragments than previous sequencer generations, at the cost of a higher error rate. While many papers have studied read correction methods, few have addressed the detailed characterization of observed errors, a task complicated by frequent changes in chemistry and software in ONT technology. The MinION sequencer is now more stable and this paper proposes an up-to-date view of its error landscape, using the most mature flowcell and basecaller. We studied Nanopore sequencing error biases on both bacterial and human DNA reads. We found that, although Nanopore sequencing is expected not to suffer from GC bias, it is a crucial parameter with respect to errors. In particular, low-GC reads have fewer errors than high-GC reads (about 6% and 8% respectively). The error profile for homopolymeric regions or regions with short repeats, the source of about half of all sequencing errors, also depends on the GC rate and mainly shows deletions, although there are some reads with long insertions. Another interesting finding is that the quality measure, although over-estimated, offers valuable information to predict the error rate as well as the abundance of reads. We supplemented this study with an analysis of a rapeseed RNA read set and shown a higher level of errors with a higher level of deletion in these data. Finally, we have implemented an open source pipeline for long-term monitoring of the error profile, which enables users to easily compute various analysis presented in this work, including for future developments of the sequencing device. Overall, we hope this work will provide a basis for the design of better error-correction methods.

Introduction

Nanopore sequencing is based on measuring changes in the electrical signal generated from DNA or RNA molecules passing through nano-scaled pores. This third-generation technology is developed and marketed by Oxford Nanopore Technologies (ONT), that uses a small portable sequencing device called MinION [1]. It offers many interesting features, including long read sequencing (the mean read length often exceeds 10 kb, and maximal read length now reaches up to 880 kb [2]), a real-time analysis and a low initial investment.

However, although this technology has improved over recent years, it still exhibits a relatively high error rate on raw sequences compared to standard Next-Generation Sequencing (NGS) devices such as Illumina. In the Phase 1 early access program from Nanopore, a study from the MinION Analysis and Reference Consortium [3] showed that the 2D pass reads had a total error of 10.5%, including about 3% for mismatch and insertion and slightly more for deletion. The software in charge of the translation from signal to nucleic sequences, the basecaller, has proven to be crucial over the years for the accuracy of the resulting raw read sequences [4]. With the current technology and the most mature basecaller, and with great variations depending on organisms and read quality, the current mean global error rate on raw reads seems to be around 6% for quality scores at least equal to 10 (the basecaller filters reads whose quality scores are below a certain threshold).

Many papers have studied ways to reduce the error rate of long read sequencing (either ONT or non-CCS (Circular Consensus Sequencing) Pacbio) by computing consensus sequences over subsets of reads. In fact, there is even a tool to evaluate error correction methods [5]. The standard approach is hybrid correction, making use of both long read and short read data to reduce errors [69]. It is very demanding since it requires two sources of sequence data. It is also possible to rely solely on the information contained in the long reads (self-correction) as long as there is sufficient sequencing depth (30–50X in practice). These tools are generally associated with assemblers (e.g. Sparc for Canu [10]) and based on a mapping phase to detect overlapping reads.

For tasks involving a fine investigation of natural variations occurring among copies (e.g. genotyping or haplotyping), it is however important to limit the construction of consensus sequences and thus obtain better knowledge of the types of error occurring due to technological limits. For instance, Nanopore sequencers tend to struggle to sequence low complexity regions accurately (minor variation in the electrical signal of the pore when the base does not change). Since the DNA translocation speed is not constant, this results in difficulties determining the exact length of homopolymers. In contrast to error-correction methods, relatively few papers have proposed to delimit the landscape of errors made by the MinION and other sequencers of the Nanopore series. This knowledge is important but not publicly available, as Nanopore does not publish its benchmarks and software content. The task is made difficult by the rapid changeover of equipment, chemistry and programs [11]. Legget et al. have proposed an open-source software, NanoOK, to compare sets of references versus reads and produce an alignment-based analysis of errors and quality [12]. They look for indel and substitution errors, and analyze k-mers that are either error-free or over-/under-represented before error positions. One of the best recent study on errors [4], by R. Wick et al., considers various measures on sequences issued from different basecallers. Since the Nanopore technology becomes more mature and stable, it seems useful to get a more accurate picture of the differences between known reference genomes and sequences extracted from MinION data, using the state-of-the-art basecaller. In this paper, we have worked on data produced by the primary nanopore used, R9.4.1. The new nanopore chemistry R10.3 is designed to improve homopolymer recognition, and thus the consensus accuracy. However, according to Nanopore, this chemistry still has some limitations compared to R9.4.1: it requires higher input (25–75fmol for R10.3, 5–50fmol for R9.4.1) and has lower output while the raw accuracy is similar to R9.4.1. Moreover, the R10.3 is only compatible with one sequencing kit, and does not handle methylation detection. We started this work with the basecaller Guppy version 3.3.3, the most widely used so far. Recent developments since then mostly concern extensions for improved detection of barcodes, faster runtime, and different environments (e.g. different GPU cards or PromethION instead of MinION). We also considered version 4.2.2, the most recent version at the time of writing, which improves accuracy by 1% compared to version 3.3.3. We will present the results for this latest release while pointing out the differences with the other one whenever necessary (failing which, the reader can safely assume that the behaviors are the same).

We worked on a benchmark of 12 bacterial and two human datasets, sequenced with Nanopore MinION, in order to provide an overview of MinION sequencing errors on both prokaryotes and eukaryotes. We also evaluated several sequencing biases, in particular concerning the GC content of sequences, and repeated regions (homopolymers, heteropolymers, and trinucleotides).

We focused our analysis on DNA sequencing, however we also studied RNA sequencing data from rapeseed to provide an overview of the associated error rates.

Materials and methods

DNA and RNA read datasets

We used sets of DNA reads from various bacterial species and two human samples, which had all been sequenced with Nanopore MinION without any prior PCR amplification. This prevents errors due solely to the amplification phase from being considered. Part of the bacterial datasets came from our own sequencing experiments, with the others originating from Wick et al. 2019 [4], and human sequencing data come from Shafin et al. 2019 [13]. Details about all datasets are presented in Table 1. The associated reference bacterial genomes have various lengths and GC contents. In the remainder of this paper, bacterial species with less (resp. more) than 50% of GC content will be referred as “low (resp. high) GC” species.

  1. Experimental dataset. We used sequencing data of Streptococcus thermophilus strains CNRZ1066 and LMD-9 (see Data Availability section). We used reference genomes that were available on NCBI: NC_006449.1 for Streptococcus thermophilus CNRZ1066, NC_008532.1 for Streptococcus thermophilus LMD-9.
  2. Wick et al. dataset. These bacterial data gather sequencing of seven species: Acinetobacter pitii, Haemophilus haemolyticus, Klebsiella pneumoniae (four strains: INF032, INF042, KSB2 1B and NUH29), Staphylococcus aureus, Stenotrophomonas maltophilia, Serratia marcescens and Shigella sonnei. All of these datasets were extracted and sequenced as described in [14]. For each species, a reference genome generated from Illumina reads was also provided (see Data Availability section for fast5 files and reference genomes).
  3. Shafin et al. dataset. We used two human sequencing data: HG002 and HG00733 (see Data Availability section). Details about DNA extraction and sequencing are provided in [13]. We used the assembly GRCh38.p13 (GenBank assembly accession: GCA_000001405.28) as reference genome.

In addition to DNA sequencing analysis, we conducted a quick analysis of sequencing errors for RNA data. We used sequencing data of direct RNA sequencing Brassica napus Darmor-bzh [15]. We asked the authors for fast5 files, which we then basecalled with Guppy 4.2.2. As reference, we used the corrected version of these reads, also kindly provided by the authors. The mean read length is 691 bp and GC content is 43.82%. We focused our analysis on DNA sequencing data, thus in the remaining of this paper, we will state explicitly when we refer to RNA sequencing data, failing which the reader can safely consider that we refer to DNA sequencing datasets.

Basecalling and alignment

Each dataset was basecalled using Guppy on the fast5 files containing raw signals emitted by nanopores. We used Guppy versions 3.3.3 (released on December 10th 2019) and 4.2.2 (released on September 28th 2020), the latter having a 1% improved modal accuracy compared to the former. Guppy currently provides two main modes: a HAC (High ACcuracy) mode and a FAST mode, which is a simplified version in which the computation time and accuracy are reduced. Note that at present, there does not exist any public repository of these critical software packages and their specifications: all this material can only be accessed through the Nanopore community website, which requires an account (https://community.nanoporetech.com/attachments/3640/download). Although most of the results presented relate to the HAC mode, we used both HAC and FAST, as well as a specific basecalling mode designed to retrieve methylation information (6mA dam and 5mC dcm methylation for bacterial data, 5mC CpG methylation for human data). We used the following configuration files (provided with Guppy basecaller) for the different basecalling modes: dna_r9.4.1_450bps_hac.cfg for HAC mode, dna_r9.4.1_450bps_fast.cfg for FAST mode, and dna_r9.4.1_450bps_modbases_dam-dcm-cpg_hac.cfg for methylation aware mode.

ONT recommends to keep only reads with a quality score above 7. We chose to be more stringent (see section Correlation between error rate and amount of reads in Results) and to set this threshold to 10 (--qscore_filtering --min_qscore 10 Guppy option).

All basecalling operations were launched in GPU mode, using a Nvidia Tesla v100 GPU.

Mapping reads to both strands of the reference.

After basecalling, reads were aligned against their reference genome, using Minimap2 [16], with default parameters for ONT sequencing, and options --secondary = no --sam-hit-only to discard unmapped reads and secondary alignments (only the best alignment is kept in case of multiple alignment positions in the reference). Moreover, reads ends are often “soft clipped” by the aligner, meaning that these read portions do not map the reference. We discarded reads for which the total length of soft clips represented more than half of the original read. For each bacterial dataset, we found mostly less than ten occurrences of such highly soft clipped reads. It represents less than 0.01% of reads (except for S. marcescens dataset for which it represented 5%; around 0.5% for human datasets). These highly soft clipped regions did not show notably low quality scores, but failed to be fully aligned. Moreover, we found that, although most of these large soft clipped regions that overlap do not align, some do. This suggests that these soft clipped regions might actually represent true variations from the reference genome.

The reference genome is represented by its forward strand sequence G. A given read R must be aligned either to G, or to its reverse-complement rev(G) if it is on the reverse strand. In the second case, most aligners use instead the reverse-complement rev(R) of the read in order to reduce the computational cost of indexing rev(G). However this raises two problems. First, given that the aligner uses heuristics, the alignments of R to rev(G) and rev(R) to G may differ. Second, it is important to keep the information of the sequenced read in order to correctly label the errors.

Considering a short example, with a read R = GCCAAGACCT aligned on the corresponding part of the genome G = ACGTCATTGC:

The left alignment represents what most alignment tools currently do: the read is reverse-complemented and aligned on the forward strand of the reference genome. On the right alignment is what we have chosen to do: the read is unchanged and the genome is reverse complemented. Here for simplicity we suppose the aligner performs an exact alignment and does not use heuristics. In both cases, the error rates are the same, i.e. 30% (they may actually differ due to aligner heuristics). However, the errors themselves are different: in the left case errors are C/G, A/T and T/G, while in the right case errors are A/C, T/A and G/C (X/Y denotes a substitution of a base X in the genome by a base Y in a read). Thus, the impact of the chosen alignment method for error profiling is crucial.

Therefore, for each set of reads, we run the aligner twice: against the reference genome, and against its reverse complement. In both cases, we forced the aligner to not reverse complement reads (--for-only option for minimap2). For each read, we kept the best alignment according to the forward or the reverse strand.

Computation of quality score for sequenced reads

  • Phred quality score. The standard quality score used by most sequencers is the Phred quality score Q, which is defined as Q = −10 × log10(P), where is the sequencing error probability. For example, a Phred score of 10 is associated with a 10% error rate and a score of 20 with 1% error rate.
  • Nanopore quality score. After Nanopore sequencing and basecalling, reads are gathered in fastq files that include a quality score for each base of each read. As for Illumina data, Nanopore quality scores are encoded with ASCII characters from 33 to 126 (the higher the value, the better the quality expected), representing Phred scores 0 to 93. In practice, the Nanopore score may differ from the Phred score (see Results), which to our knowledge is not reported anywhere.

Computation of error rates

Error rates were computed as ratios of differences (insertions, deletions, mismatches) between each pair of aligned bases, over the total alignment length. The global error rate for a given alignment was computed as the sum of all insertions, deletions and mismatches, over the total alignment length.

Sequencing low complexity regions

We evaluated the sequencing accuracy of low complexity regions by measuring identity for different sequence lengths: this is the ratio of perfectly sequenced regions over the total number of sequenced regions.

  • Homopolymers. A k-size homopolymer is a consecutive repetition of k times the same base, with k ≥ 2. We consider that a homopolymer is correctly sequenced in a given read if and only if it matches an identical homopolymer (same base, same length) in the reference genome.
  • Heteropolymers. We call heteropolymer of length 2k a consecutive repetition of k times the same couple of bases XY with XY and k ≥ 2. We consider that a heteropolymer is correctly sequenced in a given read if and only if it matches an identical heteropolymer (same couple, same length) in the reference genome.
  • 3-mers repeats. 3-mers repeats, also called trinucleotide repeats, are made of triplets of three consecutive bases. 3-mers repeats of length 3k are consecutive repetitions of k times the same base triplet (XYZ) such that k ≥ 2 and X = YYZ (homopolymers are excluded to remove their influence). We consider a 3-mer repeat to be correctly sequenced in a given read if and only if it matches an identical repeat (same triplet XYZ, same length) in the reference genome.

Perfect k-mers

The NanoOK analysis tool [12] provides multiple statistics and figures to give insights into the sequencing quality of a given run. Among them, we retained the analysis of perfect k-mers, which are words of size k that are sequenced in the run without any errors. This gives an interesting indication of the maximum resolution that can be expected from the technology without a read correction mechanism. In order to characterize the asymmetry of the longest perfect k-mers distribution, we used the skewness coefficients of Pearson (SCP) with respect to mode or median, which measure the difference in number of standard deviations between the mean and the mode or median. We use formulas SCPmode = (meanmode)/stand.deviation and SCPmedian = 3(meanmedian)/stand.deviation.

Sequence-specific errors

A certain type of sequencing errors, called sequence-specific errors (SSEs), are induced by particular sequences in the immediate environment of the error position. SSEs have been shown to exist in NGS data, with various patterns such as homopolymers [17] or inverted repeats [18].

We thus looked for harmful k-mers, words of size k that are frequently associated with a given type of error. We fixed k to 5, since for chemistry R9.4, this is the number of bases in the pore contributing to the signal. For each position of error and each possible word of size 5, we counted its number of occurrences in reads just before or after this position. We retain the 10 most frequent occurrences for each bacterial species (i.e. 120 words in total).

We used Weblogo [19] to represent the set of harmful k-mers. Logos show the letters that contribute most to the error at each position. Because they cannot account for global properties such as base composition, as it has been observed in the case of GC rate (see Results), we completed this analysis by representing the set of harmful k-mers as a formal language. More specifically, we used finite automata, a graphical representation of regular expressions. A finite automaton is a graph where edges denote the reading of letters along the words, and the nodes (or states) correspond to the set of words read by following the paths from the initial node to this node. The words recognized by a finite automaton are those in distinguished nodes, called final states. We constructed automata for harmful k-mers right before and right after sequencing errors for indels and mismatches.

Electrical signal from Fast5 files

We analysed the raw electrical signal from Fast5 files of our datasets, and sought for correlations between this signal and the observed errors, in particular exploiting the translocation speed.

We used the tool Tombo from ONT (https://github.com/nanoporetech/tombo), more precisely the “resquiggle” algorithm. In a nutshell, it uses the Fast5 files with added basecalled reads (from fastq files) as well as the associated reference genome, to map the signal to the reference genome.

Thus we get, for each reference base, an estimation of the signal, i.e. the number and the value (normalized by Tombo) of all sampled electrical current. Knowing the rate at which the electrical is sampled, 4.000 samples per second according to ONT, we computed the translocation rate, i.e. the speed at which bases go through the pore during the sequencing. Given a stretch of N bases sequenced, a number of electrical signal E sampled at rate R, the translocation speed of bases S can be computed as: . For current chemistry, bases are supposed to translocate at an approximately constant rate of 450 bases per second.

Results and discussion

Guppy HAC basecalling mode reduces error rates by about 2% compared to FAST mode

We first evaluated the HAC and FAST Guppy basecalling modes, focusing on bacterial datasets. We provide results for both versions, 4.2.2 and 3.3.3, to show the software’s evolution. FAST mode has not improved between the two versions and the difference in error rates between this mode and HAC mode has grown high enough for us to advise against continuing to use FAST mode, especially since the efficiency of HAC has improved and it is now only 2 (instead of 6) times slower than FAST in our measures.

For each studied species and both basecalling modes, we computed global error rates (sum of insertions, deletions and substitution errors) on reference-read alignments (Table 2). We also provide the median and mean error rate and runtime over all bacterial species. For HAC mode, the global error rate reaches about 5.7%, with some variations depending on the species (less than 2% magnitude). We got a similar profile for FAST mode, except that the error rate is about 2% higher. Error rates for human datasets are 6.6% with HAC and 8.5% with FAST.

thumbnail
Table 2. Global error rate and runtime for bacterial species, in FAST and HAC basecalling modes, comparing versions 3.3.3 and 4.2.2 of Guppy.

https://doi.org/10.1371/journal.pone.0257521.t002

In order to check for possible local effects, we also computed error rates (mismatches, insertions and deletions separately) on a sliding window along sequenced genomes (of size 1% the genome length). Fig 1 shows deletion errors, the most frequent ones, in the bacterial datasets using HAC. For each bacterial dataset, reads were aligned to the corresponding reference genome, then for each percent position in the reference genome we computed the mean error rate. The bacterial datasets are here represented as linearized genomes, with the start of the genome set to replication origin, located with Ori-Finder [20] from fasta files of reference genomes. FAST basecalling mode showed similar results, but with slightly higher error rates (data not shown).

thumbnail
Fig 1. Mean deletion error rates on bacterial genomes basecalled with HAC mode.

Species are sorted on their GC content, from blue (low) to red (high).

https://doi.org/10.1371/journal.pone.0257521.g001

It appears that neither of the basecalling modes is biased according to genomic location, for each of the three types of error. Error profiles stay similar: most of the sequencing errors are deletions, followed by mismatches then insertions, which is consistent with a recent study [21]. For each type, the error rate is quite constant along genomes (with some possible local peaks): within 1.6–2.7% for deletions, 1.2–2.2% for mismatches and 1.1–2.4% for insertions. The error variation is not high (standard deviation around 0.1% for deletions). Even for peaks, the difference hardly exceeds 1%. Nevertheless, we have studied the sequences for peaks above 3 standard deviation around the median. These sequences present no particular pattern, neither from the point of view of complexity, GC content, or type of annotation (coding mostly for proteins).

An analysis of raw electrical signal associated to deletion of at least 5 bases showed that the translocation rate was at least twice as fast on deleted parts (median ≃ 1,220 bases per second) than right before (median ≃ 460 bases per second) or right after (median ≃ 520 bases per second) these errors. We thus computed the error rate of reads depending on translocation speed (section “Raw signal analysis” in supplementary data, S10 Fig). While the current expected speed (around 450 bases per second) is associated to low error rates (median below 5%), a higher translocation speed lead to a dramatic increase of error rate (above 20% for speeds over 650 bases per second). As mentioned above, it is to be linked with deletion errors. More surprisingly, a slow base translocation is also associated to higher error rate (5 to 10% for speeds below 150 bases per second), this time being mainly associated to insertion errors.

For RNA datasets, the global error rate is higher and reaches around 9.65%. The distribution of error types also differs: there are more deletion errors (51%), less mismatches (27%), and a similar insertion rate (22%) for RNA sequencing data. The mean error rates for FAST are around 0.7% higher than the mean error rates for HAC. Thus HAC mode is particularly useful. In the previous version of Guppy v3.3.3, these differences were not as strong: FAST error rates were about 0.4% higher.

It is worth noting that quality of sequenced raw reads drops at both ends (S1 Fig), around 100 bases, including adapters and part of the DNA/RNA sequence. These lower quality scores are related to the initiation and termination fragments of the nanopore measurements, for which the signal is probably less stable. These error-prone read sections are generally clipped by the aligner (on average, the first and last 130 bases). For RNA datasets, the quality drop at read ends concerns globally the first 10 bases and last 20 bases, which are also clipped by the aligner.

Overall, the global error rate difference is not the sole argument for the genuine improvement represented by HAC mode. For more specific types of errors the improvement may be huge, exceeding 80% for instance for correctly sequenced homopolymers of size 6, which represent more than half of the homopolymers of this size for HAC mode (S2 Fig). All results in the following were obtained using the HAC basecalling mode.

Bias in substitution errors

For genotyping of individuals, the study of Single Nucleotide Polymorphism is of great importance and Nanopore sequencing is a promising technology for applications such as forensic profiling [22], although it is still imperfect, presenting a higher degree of mismatches than NGS. More detailed knowledge of this type of sequencing errors is essential to help reduce the signal-to-noise ratio between true variations and Nanopore sequencing errors.

Transitions are more frequent than transversions.

For each dataset studied, we enumerated the twelve possible pairs of substitutions XY, XY, where X is the nucleotide in the reference genome and Y the corresponding nucleotide in the read (Fig 2A). We found that, for bacteria as well as for the human dataset, substitutions between A and G occurred about three to five times more often than the transversion error. We also noted that substitution between C and T bases were also a bit more frequent than transversions. We performed two t-tests (one comparing A-G/G-A substitutions, the other comparing C-T/T-C substitutions against transversions) and found that transitions were significantly more frequent than transversions (p-value = 1.08e-78 and 1.48e-31 respectively).

thumbnail
Fig 2. Substitution error profile for bacterial and human datasets.

Results for bacterial datasets are presented with boxplots, those for human are displayed with crosses. A: Results obtained in HAC basecaller mode (unaware of methylation). B: Results obtained in methylation basecaller mode. We focused here on substitution to A and C in reads, the only methylations supported by Guppy (only the C-methylation for human data). For each substitution type, its abundance is given relatively to all substitutions, separating methylated and non-methylated positions.

https://doi.org/10.1371/journal.pone.0257521.g002

This bias is likely due to the internal chemical similarities within the groups of purines (A and G), and pyrimidines (C and T), which are much higher than inter-group similarities. As a consequence, the electrical signals are harder to discriminate between two purines (two-ringed structures) or two pyrimidines (one ring). A similar phenomenon was described for human data [23] and for E. coli data [21], where authors found that transitions (and not only substitutions between A and G) were about three times more frequent than transversions. We found very close results if we did not apply the specific handling of reverse complement mapping reads (see “Mapping reads to both strands of the reference” subsection of Materials and Methods). Thus we suspect the discrepancy compared to our findings might be due to some incorrect handling of reverse-mapping reads.

The substitution error profile changes for methylated bases, depending on the GC rate.

We repeated a similar analysis, this time taking methylation prediction information into account. Our aim was to determine whether the methylation of certain bases has an impact on the substitution error bias. We separated the bacterial results from the human ones, as different methylation types are involved (6mA dam and 5mC dcm methylation for bacteria data, 5mC CpG methylation for human). After basecalling each dataset in a dedicated methylation mode, reads were aligned against the associated reference genome, and substitution counts were finally established with respect to the predicted methylation status of the base in the read.

We compared the substitution error distribution in two cases (Fig 2B):

(1) considering that a cytosine or adenine appears in a normal state in the read, and (2) considering that the substituted base appears methylated in the read.

The substitution error profile is quite similar between bacteria and humans for non-methylated bases. The global trend of over-represented transition substitutions is found again for non-methylated bases, but not for methylated ones. Moreover, for methylated bases, the error profile is quite different depending on whether one considers low- or high-GC bacteria. Low-GC bacteria have barely any substitution to methylated adenine, whereas high-GC bacteria display a profile that is closer to that for non-methylated bases.

For methylated cytosine, the difference is more pronounced with respect to unmodified ones. It also appears that despite quite even number of predicted methylated bases between 6mA and 5mC (same order of magnitude, around 106 for bacteria), the ratio of predicted 6mA involved in a substitution is about tenfold lower than the ratio for 5mC.

The treatment of methylations seems to have been one area where recent basecallers have improved [4]. These results seem to show that there is still room for improvement with respect to the prediction of methylated C.

Low-GC species and reads are globally better sequenced

NGS-sequenced data are known to exhibit GC-bias, mostly due to PCR amplification [24, 25], causing either GC-rich or AT-rich DNA sequences to have a lower depth of sequencing. Several articles [2628] have concluded that Nanopore sequencers do not suffer from such bias, as its library preparation does not require a PCR amplification step.

In fact, GC content bias is almost always considered in terms of read coverage, but there are other features worth considering. Here we analyze how the GC rate affects sequencing from several perspectives, be it in terms of depth of coverage, quality and/or error rate.

We first checked that Nanopore sequencing was indeed free from a bias in depth of coverage. For each bacterial dataset separately, we computed the relative coverage for various %GC values of the genome. The relative coverage [29] is normally defined as the coverage of a given reference base in a genome divided by the mean coverage of all reference bases. Here, we consider instead 100-bases windows. Results are summarized in Fig 3.

thumbnail
Fig 3. Relative coverage for each bacterial species, according to local GC content.

The black dotted line represents a GC-unbiased depth of coverage. Only points associated with at least 1000 windows in the genome were plotted.

https://doi.org/10.1371/journal.pone.0257521.g003

Globally, depth of coverage is not highly impacted by the GC content of the sequence. This general result must, however, be considered with some caution because we observed for two species a quasi-linear sensitivity of the sequencing depth to the GC rate. This occurs for species S. thermophilus and H. haemolyticus, in opposite directions.

We then computed error rates (mismatches, insertions, deletions and total) as well as GC content for each read, regardless of the species (Fig 4). For bacteria (Fig 4A), the curves are almost flat apart from a slight increase in the mismatch rate with respect to the GC content. However, if one distinguishes the species with a low GC content (below 50%) from those with high GC content (above 50%), then a more pronounced discrepancy appears (dotted lines, about 1.5% error shift), suggesting a more global effect of the GC rate on the error level. For human reads (Fig 4B), the error increase relative to the GC rate increase is much more pronounced. Results for Guppy v3.3.3 were similar, although the global error rate was about 1% higher.

thumbnail
Fig 4. Global error rates of reads according to their GC content.

GC contents were grouped by integer value. Only values supported by at least n reads were plotted. For each species the mean error rate is computed, and the median on all this values is displayed. A: Results for bacterial data, n = 100. Low-GC species have lower global error rates than high-GC ones. B: Results for human data, n = 1,000. Error rates show a correlation with the GC content of reads.

https://doi.org/10.1371/journal.pone.0257521.g004

Interestingly, the same trend can be observed through quality (a measure that we will consider in depth in the next section). For this purpose, we computed the quality of sliding windows of size 100 nucleotides, as a function of their GC content on bacterial reads (S3 Fig). A curious drop in quality appears around the central 50% GC value, which may be the trace of a hidden adjustment threshold for quality calculation since it was absent from version 3.3.3. On either side of this threshold, quality and GC rates are inversely correlated.

This indicates that GC content directly affects how well the read is sequenced. Note that the sensitivity of sequencers to GC content has also been observed for NGS devices [30]. For instance the Miseq system has a substitution error rate that increases by as much as 2% for sequences with high GC content (> 60%). For the MinION device, we observed a relationship for all types of errors.

Nanopore quality scores do not follow Phred scores, yet can be used to estimate error rates

The knowledge of the error rate in the reads is fundamental for all the processing and analysis that will be performed later on these data. It is easy to estimate by mapping them on a reference genome. However, the reference genome can be of poor quality, represent a different strain, or even be absent. Thus, being able to evaluate the error rate of reads without reference is an objective of primary importance. The quality index associated with sequences is generally conceived as a simple criterion for filtering the reads, but one can also question in a much finer way whether it is adapted to the estimation of the error rate.

We exploited the quality scores provided in fastq files. For each sequenced read of studied species, we computed its error rate on 100-bases sliding windows, depending on its associated mean quality score (see Fig 5). First, we observed that for our data, for the most frequent quality score values (i.e. between 7 and 30), quality scores do not match expected Phred scores: they are clearly overevaluated. Moreover, the curve is more linear than what is expected with Phred score distribution.

thumbnail
Fig 5. Mean error rate depending on quality score for sliding window along reads.

Sliding windows are of size 100. Quality scores are rounded to the first decimal value. The dotted black line represents the expected Phred score relationship between quality score and error rate, other lines represent results obtained for our studied species. Results were computed on all bacterial aligned reads, and on 100,000 aligned reads for each human dataset. Only values supported by at last n reads are shown (n = 10 for bacterial data, n = 10, 000 for human data).

https://doi.org/10.1371/journal.pone.0257521.g005

We computed a similar graph, at read scale (S4 Fig) and found same results, with the difference that the range of quality score values is smaller. This was already noted in [31], although quality scores are now much closer to Phred scores than they were then.

The good news is that Nanopore quality scores are correlated with error rates, and this consistently for all studied species. This dependency is quasi-linear with a slight quadratic trend. Overall, the error rate E depends on the quality score Q following approximately equation E = 0.042Q2 − 2.68Q + 43.92 (R2 = 0.99) in the acceptable range Q ∈ [7, 30].

Correlation between error rate and amount of reads

Another useful prediction is the proportion of reads that can be expected at a given level of error or quality. Nanopore recommends a minimum threshold of 7 for data quality. We computed the distribution of reads according to their error rate, for thresholds ranging from 7 to 12, for bacterial datasets (S5 Fig). We decided to set the threshold for data quality to 10, as this yields more than 98% of reads below the 10% error rate (in contrast, the minimum threshold retains nearly a quarter of reads with an error rate greater than 10%). We estimated on bacterial datasets that this more realistic threshold corresponds to a more predictable error rate and reduces it globally by about 0.5 to 2.5% compared to the minimum threshold (see Fig 5).

The counterpart is that this leads to a reduction in the number of reads (ranging from 5% to 33% for the most extreme dataset K. pneumoniae KSB2 1B). In fact, between values 7 and 10, the error rate and the amount of reads at this rate are clearly correlated (S6 Fig). It follows a regression line of approximate equation y = 13x − 0.4 (R2 = 0.91), y being the ratio of reads and x the ratio of error rate between thresholds 7 and 10.

More generally, the distribution of reads according to the error rate (or, equivalently, the quality) is the purpose of Fig 6. Again, we can notice around 1.5–2% error difference between modes for high- and low-GC bacterial species. Moreover, the results for high-GC species show a more variable but more symmetrical distribution than for low-GC species. The results for Guppy 3.3.3 were similar, with a slight error increase.

thumbnail
Fig 6. Distribution of read windows according to their error rate.

For each bacterial species, we computed the mean number of errors (rounded to the decimal) of read parts that align to windows of size 50 in the reference genome. We expressed the number of errors as the median number of errors for each window and then plotted the global window distribution for both low- and high-GC content species.

https://doi.org/10.1371/journal.pone.0257521.g006

Sequencing errors in homopolymers

Nanopore sequencers are known to struggle to accurately sequence low-complexity regions, such as homopolymers. We studied the sequencing errors associated with the homopolymeric regions of the reference genomes, and tried to delineate the contexts in which they are most frequent.

Homopolymer distribution in genomes.

The distribution of homopolymer lengths for bacterial and human reference genomes (according to fasta file, representing the forward strand only) is shown in Fig 7 for the four nucleic acids. This gives insights on abundance of each homopolymer categories, before we investigate on their error-prone behavior in the following subsections.

thumbnail
Fig 7. Homopolymer length distribution in bacterial (dark, bottom) and human reference (light, above) genomes.

The scale is semi-logarithmic. Occurrences are summed within each category.

https://doi.org/10.1371/journal.pone.0257521.g007

In all cases, the global homopolymer distribution tends to decrease exponentially. For very short homopolymers there are no strong differences between nucleic acids, whereas for homopolymers exceeding three bases, G- or C-based homopolymers rapidly become scarce. This difference is about a ten-fold decrease, and can even reach two orders of magnitude for very long human homopolymers (ten bases and more).

Nearly half of sequencing errors are due to homopolymers.

We evaluated the amount of sequencing errors due to homopolymers. To this end we browsed all alignments of reads on bacterial and human reference genomes and marked those in homopolymeric genomic regions (Table 3 for bacteria and Table 4 for human).

thumbnail
Table 3. Bacteria: Total and homopolymer-induced sequencing errors.

https://doi.org/10.1371/journal.pone.0257521.t003

thumbnail
Table 4. Human: Total and homopolymer-induced sequencing errors.

https://doi.org/10.1371/journal.pone.0257521.t004

The results are similar for bacterial and human species: about 25–30% of insertion errors and more than half of mismatches and deletion errors are linked to homopolymers. Altogether, about 47% of errors are due to homopolymers. Version 4.2.2 of Guppy lowered the number of insertion errors in homopolymers, at the cost of more deletions.

Homopolymer sequencing accuracy depends on length and GC content.

The Fig 8 shows the rate of correctly sequenced homopolymers as a function of their expected length in the genomes. Homopolymer sequencing remains rather good (> 70% errorless) until a length of 5 (4 for human and high GC bacteria). Above this length, the rate of well-sequenced homopolymers drops drastically (e.g., only one fourth of homopolymers of length 8 is correctly sequenced). As expected, results are better for low-GC species. In particular, for lengths over 4, the worst results are obtained for the highest GC content. Guppy has evolved well in this respect since version 3.3.3, which had more problems finding homopolymers longer than 4 (for example, only about 30% of homopolymers of length 7 were correctly sequenced for low-GC bacteria, against more than half for the current version 4.2.2).

thumbnail
Fig 8. Ratio of well-sequenced homopolymers as a function of their reference length.

Results are pooled into three categories: low GC (blue) and high GC (red) bacterial species, and human data (yellow).

https://doi.org/10.1371/journal.pone.0257521.g008

We also computed a detailed version of this figure, for each base (S7 Fig). For short homopolymers of length 2, the base of the homopolymer does not strongly influence the ratio of correctly sequenced homopolymers. However, for longer homopolymers, C and G homopolymers are significantly worse sequenced than A and T ones. This trend intensifies with the increase of homopolymer length. Results are consistent whether one considers low-, high-GC species and human.

It is known that the main source of errors on homopolymers with Nanopore technology is the estimation of their length. We therefore wondered if we could more accurately characterize this deviation from reality. Differences between sequenced and expected homopolymer lengths are shown in Fig 9. As previously seen, homopolymer lengths below 5 (or equal to 5 for low-GC species) are quite well estimated most of the time (narrow box). For longer homopolymers, length tends to be slightly underestimated. Another lesson is provided by the great variability observed for some sequences: in particular, there can be largely overestimated lengths, even for small reference sizes (one or two order of magnitude for homopolymers of size 2–5).

thumbnail
Fig 9. Errors in sequenced homopolymer lengths.

The dotted line represents the expected length. The scale is semi-logarithmic.

https://doi.org/10.1371/journal.pone.0257521.g009

Compared to Guppy version 3.3.3, recognition of long homopolymers has improved and the overestimation of some homopolymers of length 2 slightly increased.

When considering the electrical current associated to homopolymer sequencing, one can observe two phenomena (section “Raw signal analysis” in supplementary data, S11 Fig). First (A and B figures), our results show that the electrical signal is highly impacted by the surrounding bases, as stated by Nanopore. In the context of homopolymers, this results into (1) an usually well segmented signal, both in terms of duration and value, for homopolymers of length ≤ 5 bases long, thus being mostly well sequenced, unlike (2) longer homopolymers for which the current is far less influenced by surrounding bases, which results in a harder to segment signal, making it harder to correctly assess the homopolymer length. Moreover (A and C figures), it seems that the level of the electrical current is a quite good indicator of the sequenced base. It appears that signal values can be roughly ordered along the sequence in the following way: signal(T) ≥ signal(C) ≥ signal(A) ≥ signal(G). Clearly, it will be harder to distinguish for instance a transition A-G than a transition A-T. In practice, this also also impacts the way homopolymers are sequenced: an homopolymer of A, surrounded by T bases, will be better sequenced than an homopolymer of A surrounded by G bases, as the difference in signal level is more pronounced in the first case.

We end this section with details about error ratios in homopolymers for all types of errors (mismatches, insertions and deletions), shown in Fig 10.

thumbnail
Fig 10. Error rate ratios by type in homopolymers of various lengths.

For each length, the error ratios for each type (mismatches, insertions and deletions) are shown, for both bacterial (outside pie) and human (inside pie) datasets.

https://doi.org/10.1371/journal.pone.0257521.g010

As expected, most mismatches are found in short homopolymers. The deletion error rate rises and becomes predominant with the length of the homopolymers, a finding in perfect agreement with the sequencer’s tendency to underestimate their size. Overall, profiles for human and bacterial data are similar. A notable exception is the rate of insertions in long homopolymers, which is significantly higher for human data. It reflects the existence of sequences whose size is largely overestimated. Compared to Guppy version 3.3.3, we noticed fewer insertions for small homopolymers (length ≤ 4), and more deletions for longer ones.

STRs do not escape the increased sequencing error rate

We also investigated a more general pattern of low complexity regions, Short Tandem Repeats (STR or microsatellites), which are stretches of short motifs (a few base pairs) that are relatively frequent in eukaryotes (e.g. about 3% for humans) but also present in prokaryotes. They are known to be challenging for aligners that have to choose between multiple very close solutions to match them and can produce many artefactual hits. This has an impact in particular on correction algorithms, which are generally hampered by the presence of these regions [32]. STR are generally polymorphic and cannot be simply filtered from sequences because of their importance in terms of genetic markers (forensic applications) and perhaps even their functional role in regulation [33]. Despite this interest, little is known about the correction of their sequencing.

We started by a study of STR we called heteropolymers, made of dinucleotide motifs (see the distribution of their lengths in reference genomes in S8 Fig). Most heteropolymers are of length 4–6 (2 or 3 copies), and very few of them exceed 10 bases long. CG dinucleotides are an order of magnitude less frequent than the others.

As for homopolymers, differences between sequenced and expected heteropolymer lengths were computed (S9 Fig). Interestingly, we observed the same trend: a correct estimation for short heteropolymers (length 4–6), the size of longer ones being underestimated, and largely overestimated lengths for some short heteropolymer sequences.

Finally, we assessed sequencing error rates and the abundance of each type of heteropolymer, grouping species by their GC rate (see Fig 11). Error rates were similar for Guppy 3.3.3, although about 0.5% higher. Dinucleotide errors are uniformly distributed but can vary depending on the species considered and its GC content. Overall, the error rate is the lowest for low-GC species, and human data has similar profile to high-GC bacterial species, except for CG heteropolymers for which the error rate is much higher. It seemed that this higher error rate could not be related to CpG regions. Indeed, when we looked at predicted CpG regions (based on UCSC database, see Data Availability section), we found that the error rates of reads parts that aligned to these regions were very close to the global error rates of all human reads (i.e. around 6–8%), and not as high as the 11% observed for CG heteropolymers.

thumbnail
Fig 11. Heteropolymer genomic mean abundance and sequencing error rates.

Species were grouped into three categories: low-, high-GC content, and human. Abundance (left axis) is represented with barplots, and error rate (right axis) with lines.

https://doi.org/10.1371/journal.pone.0257521.g011

We also studied sequencing accuracy for another type of STR, trinucleotide repetitions (2, 3, and 4+ occurrences). Trinucleotide repeat expansion is a kind of mutation known to be involved in several more or less severe disorders (e.g. myotonic dystrophy or Huntington’s disease [34]). For the analysis, nucleotides were merged in two groups of complementary base pairs: S (Strong) and W (Weak). We then defined four 3-mers groups, excluding already studied homopolymeric patterns: (1) S-only trinucleotides (i.e.SSS patterns), (2) mostly-S trinucleotides (i.e.SSW, SWS and WSS patterns), (3) mostly-W trinucleotides (i.e.WWS, WSW and SWW patterns), and (4) W-only trinucleotides (i.e.WWW patterns). For instance, the fourth group gathers the following set of trinucleotides: {AAT, ATA, TAA, ATT, TAT, TTA}. The results are presented in Fig 12.

thumbnail
Fig 12. Sequenced genomic trinucleotide repeats’ occurrences and accuracy.

Trinucleotides with at least 4 repetitions are gathered within “4+” label. Global results are presented with boxplots for bacterial species (left boxplot for low-GC bacteria, and right one for high-GC) and crosses for human data (representing the mean of both datasets). For each bacterial species, only results for at least 100 occurrences are kept. Each color represents a trinucleotide category: blue for S-only, green for mostly-S, orange for mostly-W, and red for W-only trinucleotides. Results were computed on all reads for bacterial data, and on a subset of 100,000 reads for human data.

https://doi.org/10.1371/journal.pone.0257521.g012

The distribution of occurrences (Fig 12A) is quite similar between the different repetition lengths, and trinucleotide repeats are rapidly becoming scarce as their length increases. For each category (low-GC bacteria, high-GC bacteria and human), frequencies are quite even, except for S-only trinucleotides, less abundant in low-GC bacteria and human datasets, and W-only, less abundant in high-GC bacteria. Low- (resp. high-) GC species have less occurrences of S-only and mainly-S (resp. W-only and mainly-W) trinucleotides, a trend that intensifies with repeat length.

Sequencing accuracy results are shown in Fig 12B. Unexpectedly, accuracy for bacterial datasets seems normal, quite constant for the different repeat lengths and close to the global error rates (error rate around 4–6%). For human datasets, trinucleotide repeats are worse sequenced than for bacteria, especially “S-only” and “mainly-S” ones.

Overall, for all species, trinucleotides containing more W bases are better sequenced, denoting again a GC bias in sequencing errors. However, one should keep in mind that larger datasets with high proportion of trinucleotides would be necessary to build a more precise profile: the number of occurrences of trinucleotides of size 4 and more is quite low here.

Perfect k-mers

Perfectly sequenced k-mers are an interesting concept introduced in NanoOK [12]. It gives an insight into the actual size of the reads that can be trusted to resolve ambiguities during assembly. For each bacterial dataset, we looked for the longest perfect k-mer in each read, and computed two figures: the ratio of reads in which a perfect k-mer of size at least k is present (Fig 13A), and the size distribution of the largest window without sequencing errors in a read (Fig 13B).

thumbnail
Fig 13. Analysis of perfect k-mers for bacterial data.

Species are gathered based on their GC content.

https://doi.org/10.1371/journal.pone.0257521.g013

Both curves show a clear shape. Fig 13A is a sigmoid that is similar for low and high-GC bacteria, with a clear drop between values 150 and 300 for k. Fig 13B corresponds globally to a lognormal distribution of mode 200 with a slightly positive skew. This is compatible with a strong random component in the distribution of errors. Note that the expected distribution of errors under the assumption of randomness is more similar to a step function than to a sigmoid one, highlighting a residual probability of long perfectly sequenced k-mers that is greater than expected. The asymmetry of the distribution depends on the GC content. For low-GC bacteria, which are the best sequenced, the mode is 212, the mean 242, the median 487 and the standard deviation 242, corresponding to Pearson skewness SCPmode = 0.12 and SCPmedian = −3. For high-GC bacteria, the mode is 198, the mean 224, the median 353 and the standard deviation 224, corresponding to Pearson skewness SCPmode = 0.12 and SCPmedian = −1.7. In practice, the longest perfect k-mer for low-GC bacteria reads may be very long: for about one fifth of the reads it reaches 350 bases. Most mapping algorithms are based on the search of seeds in sequences, that is, substrings that mapped a reference without any error. It is thus important to estimate the reasonable size for such seeds. The distribution of the Fig 13B helps to bound this size. Indeed, at a confidence level of 95% (resp. 99%), a seed of size at least k = 108 (resp. 76) exists in each read for low-GC species, and of size k = 130 (resp. 102) for high-GC species.

Sequence-specific errors

Finally, we looked for harmful k-mers, words of size k = 5 that are frequently associated with a given type of error. We have produced logo and automata for each type of errors, considering the 5-mers before or after the error position. Fig 14 provides one of the most relevant results, concerning 5-mers after deletion errors (the main source of errors) in non-homopolymeric regions.

thumbnail
Fig 14. Logo and finite automaton representing 5-mers before deletion errors in non-homopolymeric region, in bacterial species.

A: logo representation of 5-mers.B: automaton representation of 5-mers. Each node represents a position, and edges the letters in the k-mer. The initial node (on the very left side of the automaton, in grey) is the k-mer start. The final nodes (on the very right side of the automaton, in grey and double circled) are k-mer ends. For each edge, the weight (i.e. number of k-mers supporting the edge) is detailed as the sum for low- and high-GC species. Node size is proportional to the total weight of input edges, displayed inside nodes. Only nodes having a total weight of at least 4 are displayed.

https://doi.org/10.1371/journal.pone.0257521.g014

According to the logo representation, the most common pattern found right after deletions in non homopolymeric regions are k-mers starting with C or G, followed by two A and/or G. The automaton enables to precise these patterns: two of them is mainly found for high-GC bacteria (CGG and CAG), one is specific to low-GC bacteria (CAA), and one occurs for both categories (GAA). Note also that patterns like “GGG”, fully compatible with the logo, do not appear in harmful kmers and are not present in the automaton.

SeqFaiLR: A pipeline for analysis of sequencing accuracy evolution

In this work, we have covered a wide range of error profile features for the ONT MinION sequencer. Due to regular improvements, this snapshot is bound to evolve with future versions in chemistry and basecallers. Thus, we created a pipeline called SeqFaiLR (Sequencing Failures of Long Read data) in order to enable the monitoring of these future developments. This pipeline computes the main analysis and figures of this article, for a given set of fastq files and references to be aligned with. As the required input is a set of fastq files, this pipeline could be used for various basecallers and any sequencing technology, although some analysis (such as repeated regions’ sequencing accuracy) may not be relevant for non long read sequencing data. SeqFaiLR is available on github https://github.com/cdelahaye/SeqFaiLR.

Conclusion

Due to the amount of data generated, fast5 files describing the original signal are rarely available for nanopore sequencing. For this reason, we focused mainly in this study on fastq files from two basecallers for which a majority of data are currently available, completing some of the findings with an analysis of the electrical signal. It concerns Guppy version 3.3.3 and 4.2.2, the most recent one, together with the best chemistry at the time of this study, R9.4.1. Since the chemistry changes much slower than the software part, we can only advise to keep the raw signal data because even years later, the evolution of the basecallers allows to significantly improve the accuracy of the read sequences. A comparison between the HAC and FAST basecalling modes of Guppy showed that the former produces more accurate reads, and we also clearly recommend using the HAC version if possible. The gain is modest at a global level, but accuracy increases significantly for homopolymer sequencing. Recently, ONT announced a soon to come release of a new basecaller called “Bonito”, which will enable users to train the basecaller on their own datasets, thereby increasing the sequencing accuracy even further. At the time of writing, Bonito is only released as a beta version. This research has revealed several important features of MinION sequencer’s sequencing errors. It is all the more necessary since the technology provider, Oxford Technology Nanopore, communicates little about the precise characteristics of its devices and softwares and does not offer the software it distributes in open source. It includes results concerning RNA direct sequencing.

We have first established that the quality score is strongly correlated to the error rate within reads. This can be very useful for tasks such as read filtering or de novo assembly, where a confidence score could be associated with overlap detection on this basis. The quality score is also linked to the amount of reads in a quasi-linear way for practical quality scores (e.g. in a 10–20 range) and a trade-off may be found depending on the initial number of reads and the desired coverage.

The second important point is that, even with PCR-free experiments, ONT sequencing is very sensitive to the GC content of reads. High-GC content reads have lower accuracy. This effect is accompanied by another bias that tends to make substitution errors towards A and T nucleotides, thus decreasing the GC content of reads. For methylated bases, the error profile is also different depending on whether one considers low- or high-GC bacteria.

A third finding is that sequencing short repeated regions such as homopolymers as well as more complex STR is still challenging. About half of sequencing errors are due to homopolymers. Generally speaking, homopolymers and STR length tend to be underestimated, resulting in many deletion errors.

Another result is that analysis of perfect k-mers indicates that most reads contain perfect k-mers of size at least 100 bases, which could be helpful to assess which size of k-mers can be used for assembly. A last point concerns the behavior of the sequencer with respect to particular subsequences called SSE (sequence specific errors). Harmful k-mers after deletions in non-homopolymeric regions tend to be highly related to the GC-content of the species, and to be mainly made of C and G bases.

We hope the results presented in this study will provide guidance for better tuning of new basecallers or read simulators and future improvements in correction tools. As a by-product of this study we released a package integrating computations performed for this paper, which extends the scope of NanoOK [12] by providing a more complete picture of sequencing errors. This analysis can therefore be reused on new data and can be adapted to the evolution of the technology. It will provide a better understanding of the behaviour of future nanopore sequencers, basecallers and chemicals that will emerge.

Supporting information

S1 Fig. Quality scores along sequenced reads, for each dataset.

Top panel shows mean quality scores for relative position in read (gathered by %). Bottom panels zoom on both ends of reads, for the n first and last bases.

https://doi.org/10.1371/journal.pone.0257521.s001

(TIF)

S2 Fig. Ratio of well-sequenced homopolymers depending on their reference length and on basecaller mode, for bacterial data.

Results are split according to basecalling mode (HAC or FAST) and bacterial GC content (low or high).

https://doi.org/10.1371/journal.pone.0257521.s002

(TIF)

S3 Fig. Quality score as a function of GC content on a sliding 100-base window along reads.

Note the drop of about 1.5 in quality around the central GC value. The outlier species is K. pneumoniae INF032.

https://doi.org/10.1371/journal.pone.0257521.s003

(TIF)

S4 Fig. Mean error rate of reads depending on their quality score, for bacterial and human data.

Quality scores are rounded to the first decimal value. The dotted black line represents the expected Phred score relationship between quality score and error rate, other lines represent results obtained for our studied species. Results were computed all bacterial aligned reads, and on 100,000 aligned reads for each human dataset. Only values supported for at last n reads are shown (n = 10 for bacterial data, n = 10, 000 for human data).

https://doi.org/10.1371/journal.pone.0257521.s004

(TIF)

S5 Fig. Distribution of number of reads according to their error rate, for a range of quality values.

Results are computed on bacterial datasets.

https://doi.org/10.1371/journal.pone.0257521.s005

(TIF)

S6 Fig. Error rate and read number losses between basecaller quality thresholds 7 and 10.

Read number loss is computed as the difference in number of reads between thresholds 7 and 10, divided by the number of reads for threshold 7. Error rate loss is computed as a simple difference in error rates between the two thresholds. Results are for bacterial datasets (colored dots). The black solid line shows linear regression.

https://doi.org/10.1371/journal.pone.0257521.s006

(TIF)

S7 Fig. Ratio of well-sequenced homopolymers as a function of their reference length, detailed for each of the four bases, for high-GC bacteria.

The base of the homopolymer does not strongly influence its sequencing accuracy, for length 2. However, for higher length, A- and T- based homopolymers are better sequenced than C- and G- ones. This trend is similar for low-GC bacteria and for human datasets.

https://doi.org/10.1371/journal.pone.0257521.s007

(TIF)

S8 Fig. Distribution of heteropolymer lengths in all reference genomes (forward strand only).

Symmetric dinucleotides (e.g. AC and CA) have been pooled. The scale is semi-logarithmic.

https://doi.org/10.1371/journal.pone.0257521.s008

(TIF)

S9 Fig. Errors in sequenced heteropolymer lengths.

Species grouped in 3 categories: low, high GC content, and human. Scale is semi-logarithmic. Dotted line represents expected length.

https://doi.org/10.1371/journal.pone.0257521.s009

(TIF)

S10 Fig. Error rates depending on translocation speed.

Computed on sliding windows of length 25 bases.

https://doi.org/10.1371/journal.pone.0257521.s010

(TIF)

S11 Fig.

A- Tombo visualisation of 4-bases A homopolymer (centered). The homopolymer is rather short, and the associated signal is quite well segmented, which enables to easily delineate each base of the homopolymer. B- Tombo visualisation of 6-bases A homopolymer (centered). The homopolymer is longer than in A-, and the associated signal is harder to segment, which complicates the separation between each base. C- Tombo visualisation of 4-bases A homopolymer. The homopolymer is surrounded by G bases, for which the signal value is closer than for A- where the homopolymer was surrounded by T bases. This imply less variation in signal values, thus resulting in a more blurred signal.

https://doi.org/10.1371/journal.pone.0257521.s011

(TIF)

Acknowledgments

All data were processed on the GenOuest bioinformatics platform (Biogenouest): https://www.genouest.org/. We thank E. Roux for having produced experimental data on S. thermophilus. We also thank J.M. Aury for providing us RNA dataset.

References

  1. 1. Jain M, Olsen HE, Paten B, Akeson M. The Oxford Nanopore MinION: delivery of nanopore sequencing to the genomics community. Genome biology. 2016;17(1):239. pmid:27887629
  2. 2. Jain M, Koren S, Miga KH, Quick J, Rand AC, Sasani TA, et al. Nanopore sequencing and assembly of a human genome with ultra-long reads. Nature Biotechnology. 2018;36(4):338–345. pmid:29431738
  3. 3. Ip CL, Loose M, Tyson JR, de Cesare M, Brown BL, Jain M, et al. MinION Analysis and Reference Consortium: Phase 1 data release and analysis. F1000Research. 2015;4. pmid:26834992
  4. 4. Wick RR, Judd LM, Holt KE. Performance of neural network basecalling tools for Oxford Nanopore sequencing. Genome Biology. 2019;20(1):129. pmid:31234903
  5. 5. Marchet C, Morisse P, Lecompte L, Lefebvre A, Lecroq T, Peterlongo P, et al. ELECTOR: evaluator for long reads correction methods. NAR Genomics and Bioinformatics. 2019;2(1). pmid:33575566
  6. 6. Firtina C, Bar-Joseph Z, Alkan C, Cicek AE. Hercules: a profile HMM-based hybrid error correction algorithm for long reads. Nucleic Acids Research. 2018;46(21):e125–e125. pmid:30124947
  7. 7. Das AK, Goswami S, Lee K, Park SJ. A hybrid and scalable error correction algorithm for indel and substitution errors of long reads. BMC genomics. 2019;20(11):1–15. pmid:31856721
  8. 8. Morisse P, Lecroq T, Lefebvre A. Hybrid correction of highly noisy long reads using a variable-order de Bruijn graph. Bioinformatics. 2018;34(24):4213–4222. pmid:29955770
  9. 9. Fu S, Wang A, Au KF. A comparative evaluation of hybrid error correction methods for error-prone long reads. Genome biology. 2019;20(1):26. pmid:30717772
  10. 10. Ye C, Ma ZS. Sparc: a sparsity-based consensus algorithm for long erroneous sequencing reads. PeerJ. 2016;4:e2016. pmid:27330851
  11. 11. Rang FJ, Kloosterman WP, de Ridder J. From squiggle to basepair: computational approaches for improving nanopore sequencing read accuracy. Genome biology. 2018;19(1):90. pmid:30005597
  12. 12. Leggett RM, Heavens D, Caccamo M, Clark MD, Davey RP. NanoOK: multi-reference alignment analysis of nanopore sequencing data, quality and error profiles. Bioinformatics. 2015;32(1):142–144. pmid:26382197
  13. 13. Shafin K, Pesout T, Lorig-Roach R, Haukness M, Olsen HE, Bosworth C, et al. Efficient de novo assembly of eleven human genomes using PromethION sequencing and a novel nanopore toolkit. bioRxiv. 2019.
  14. 14. Wick RR, Judd LM, Gorrie CL, Holt KE. Completing bacterial genome assemblies with multiplex MinION sequencing. Microb Genom. 2017;3(10):e000132. pmid:29177090
  15. 15. Rousseau-Gueutin M, Belser C, Da Silva C, Richard G, Istace B, Cruaud C, et al. Long-read assembly of the Brassica napus reference genome Darmor-bzh. GigaScience. 2020;9(12). pmid:33319912
  16. 16. Li H. Minimap2: pairwise alignment for nucleotide sequences. Bioinformatics (Oxford, England). 2018;34(18):3094–3100. pmid:29750242
  17. 17. Margulies M, Egholm M, Altman WE, Attiya S, Bader JS, Bemben LA, et al. Genome sequencing in microfabricated high-density picolitre reactors. Nature. 2005;437(7057):376–380. pmid:16056220
  18. 18. Nakamura K, Oshima T, Morimoto T, Ikeda S, Yoshikawa H, Shiwa Y, et al. Sequence-specific error profile of Illumina sequencers. Nucleic Acids Research. 2011;39(13):e90–e90. pmid:21576222
  19. 19. Crooks G, Hon G, Chandonia JM, Brenner S. WebLogo: a Sequence Logo Generator. Genome research. 2004;14:1188–90. pmid:15173120
  20. 20. Gao F, Zhang CT. Ori-Finder: A web-based system for finding oriC s in unannotated bacterial genomes. BMC Bioinformatics. 2008;9(1). pmid:18237442
  21. 21. Dohm JC, Peters P, Stralis-Pavese N, Himmelbauer H. Benchmarking of long-read correction methods. NAR Genomics and Bioinformatics. 2020;2(2). pmid:33575591
  22. 22. Cornelis S, Gansemans Y, Vander Plaetsen AS, Weymaere J, Willems S, Deforce D, et al. Forensic tri-allelic SNP genotyping using nanopore sequencing. Forensic Science International: Genetics. 2019;38:204–210. pmid:30448528
  23. 23. Sarkozy P, Jobbágy Á, Antal P. Calling Homopolymer Stretches from Raw Nanopore Reads by Analyzing k-mer Dwell Times. In: EMBEC & NBC 2017. Springer Singapore; 2018. p. 241–244. Available from: https://doi.org/10.1007/978-981-10-5122-7_61.
  24. 24. Benjamini Y, Speed TP. Summarizing and correcting the GC content bias in high-throughput sequencing. Nucleic Acids Res. 2012;40(10):e72. pmid:22323520
  25. 25. Chen YC, Liu T, Yu CH, Chiang TY, Hwang CC. Effects of GC bias in next-generation-sequencing data on de novo genome assembly. PLoS ONE. 2013;8(4):e62856. pmid:23638157
  26. 26. Goldstein S, Beka L, Graf J, Klassen JL. Evaluation of strategies for the assembly of diverse bacterial genomes using MinION long-read sequencing. BMC Genomics. 2019;20(1):23. pmid:30626323
  27. 27. Sevim V, Lee J, Egan R, Clum A, Hundley H, Lee J, et al. Shotgun metagenome data of a defined mock community using Oxford Nanopore, PacBio and Illumina technologies. Sci Data. 2019;6(1):285. pmid:31772173
  28. 28. Browne PD, Nielsen TK, Kot W, Aggerholm A, Gilbert MTP, Puetz L, et al. GC bias affects genomic and metagenomic reconstructions, underrepresenting GC-poor organisms. Gigascience. 2020;9(2). pmid:32052832
  29. 29. Ross MG, Russ C, Costello M, Hollinger A, Lennon NJ, Hegarty R, et al. Characterizing and measuring bias in sequence data. Genome Biol. 2013;14(5):R51. pmid:23718773
  30. 30. Shin S, Park J. Characterization of sequence-specific errors in various next-generation sequencing systems. Mol BioSyst. 2016;12:914–922. pmid:26790373
  31. 31. Laver T, Harrison J, O’Neill PA, Moore K, Farbos A, Paszkiewicz K, et al. Assessing the performance of the Oxford Nanopore Technologies MinION. Biomol Detect Quantif. 2015;3:1–8. pmid:26753127
  32. 32. Mitchell K, Brito JJ, Mandric I, Wu Q, Knyazev S, Chang S, et al. Benchmarking of computational error-correction methods for next-generation sequencing data. Genome biology. 2020;21(1):1–13. pmid:32183840
  33. 33. Wyner N, Barash M, McNevin D. Forensic Autosomal Short Tandem Repeats and Their Potential Association With Phenotype. Frontiers in Genetics. 2020;11:884. pmid:32849844
  34. 34. Freudenreich CH, Stavenhagen JB, Zakian VA. Stability of a CTG/CAG trinucleotide repeat in yeast is dependent on its orientation in the genome. Mol Cell Biol. 1997;17(4):2090–2098. pmid:9121457