Skip to main content

Thank you for visiting You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

Comparative analyses of error handling strategies for next-generation sequencing in precision medicine

This article has been updated


Next-generation sequencing (NGS) offers the opportunity to sequence millions and billions of DNA sequences in a short period, leading to novel applications in personalized medicine, such as cancer diagnostics or antiviral therapy. Nevertheless, sequencing technologies have different error rates, which occur during the sequencing process. If the NGS data is used for diagnostics, these sequences with errors are typically neglected or a worst-case scenario is assumed. In the current study, we focused on the impact of ambiguous bases on therapy recommendations for Human Immunodeficiency Virus 1 (HIV-1) patients. Concretely, we analyzed the treatment recommendation with entry blockers based on prediction models for co-receptor tropism. We compared three different error handling strategies that have been used in the literature, namely (i) neglection, (ii) worst-case assumption, and (iii) deconvolution with a majority vote. We could show that for two or more ambiguous positions per sequence a reliable prediction is generally no longer possible. Moreover, also the position of ambiguity plays a crucial role. Thus, we analyzed the error probability distributions of existing sequencing technologies, e.g., Illumina MiSeq or PacBio, with respect to the aforementioned error handling strategies and it turned out that neglection outperforms the other strategies in the case where no systematic errors are present. In other cases, the deconvolution strategy with the majority vote should be preferred.


Next-generation sequencing (NGS) offers the opportunity to sequence large amounts of DNA sequences in a short time with low costs1,2. Unfortunately, the different technologies exhibit different error rates between 0.01% and 15%3. While there are different error rates of the different sequencing technologies, the error rates are also affected by sequence composition, motifs, and other sequence-dependent effects, such as secondary structure formation4,5. Due to the reduced costs and huge amounts of sequence data that can be generated, NGS has entered clinical applications for personalized therapy. These applications include cancer diagnosis and therapy, e.g., there are several FDA-approved drugs for lung cancer, melanoma, leukemia, colon- and ovarian cancer, which are based on the results of NGS analyses6. While these approaches have entered clinical practice, there is however an important source of errors, including insertions, deletions, and substitutions within the sequencing process. Substitutions are the most important and most common error type, where one nucleotide is exchanged by another one or where the existing nucleotide could not be determined (i.e., ambiguity, typically shown as an N)7. These errors are of particular importance if the sequence is used, for instance, in diagnostics tests. There are several ways to handle these sequencing errors, however, neglection and worst-case scenario assumptions are the most frequently used ones. The worst-case scenario assumes that always the worst option, in terms of therapy, e.g., highly resistant mutation, is present. Neglection removes all those sequences in the NGS data which contain ambiguities, however, this could lead to a bias, if the error is not random but caused by the sequence itself, e.g., specific motifs. In contrast, the worst-case scenario assumption can lead to extremely conservative decisions, which could exclude patients from treatment who might benefit. Another error handling strategy is deconvolution with the majority vote, i.e., that the ambiguities are resolved, all combinations are predicted, and the majority prediction is considered. However, this strategy is computationally expensive in case of many ambiguous positions. For instance, one ambiguous position leads to four different sequences. However, sequences with \(k\) ambiguous position lead to \({n}^{k}\) different sequences, with \(n=4\), the four possible nucleotides A, C, G, and T. In the current study, we analyzed the effect of sequencing errors on diagnostic tests as well as the different error handling strategies. We focused on ambiguities since deletions also result in an ambiguous position in the DNA sequence and can, therefore, be handled like an ambiguity. Whereas the exact position of substitutions and inserts might not be easy to detect and have a high impact on protein-level. To this end, we investigated the impact of sequencing errors on the prediction of Human Immunodeficiency Virus 1 (HIV-1) tropism, which is important for HIV therapy with entry inhibitors, such as Maraviroc8. The entry of HIV-1 in the host cell is mediated by the binding of the gp120 surface protein, in particular, the V3-Loop, of HIV-1 to the CD4 receptor and a co-receptor (CCR5 or CXCR4)9. Several prediction tools are available, e.g., geno2pheno[coreceptor]10, T-CUP11, or PhenoSeq12. In order to avoid biases with respect to specific unknown sequences that have been used for training of existing tools, we used our tool T-CUP as baseline prediction, since it shows the best performance in comparison to other tools, and delivers a pseudo-probability11, where the training data is publicly available13 and which has been demonstrated to be reliable also for NGS data14. In contrast to existing tools such as geno2pheno[coreceptor]10 or PhenoSeq12, T-CUP offers high-throughput analyses in an automated manner, and is thus, also applicable to the huge amounts of sequences used in the current study.


In Figure 1 the results for the randomly introduced ambiguities (one up to four) are shown for the X4 and R5, respectively. The sequences are ordered according to their pseudo-probability \(p.X4\) for the original sequence, i.e., without ambiguities. The red line marks the cutoff for \(p.X4\), i.e., those sequences that have a \(p.X4\,\ge \) cutoff are considered as X4 and those with \(p.X4\, < \) cutoff are considered as R5.

Figure 1

Boxplots for random ambiguities; sequences are ordered by decreasing original \(p.X4\). The red line marks the cutoff for X4 prediction.

With increasing \(k\), i.e., an increasing number of ambiguities per sequence, the variances in \(p.X4\) increase significantly. However, those sequences that have a high \(p.X4\), i.e., they have a high probability of being X4-tropic, are still predicted to be X4 even for \(k > 1\).

In Figures 2 and 3 the results of the position-specific iterative replacements are shown (X4 pink, R5 green), i.e., the difference between mean and original \(p.X4\) and the variance, respectively. Noteworthy, positions 33, 72, and 75 (i.e., positions 11, 24, and 25 in the V3 loop) stand out, which are known to be associated with tropism15,16.

Figure 2

Difference for all positions. X4 and R5 are shown in pink and green, respectively.

Figure 3

Variance for all positions. X4 and R5 are shown in pink and green, respectively.

While Figures 2 and 3 show the impact of single mutations on \(p.X4\), we also analyzed the co-occurrence of mutations by analysing the resulting Pareto front of two mutations (see Fig. 4). For the X4 dataset, position 11 in the V3 loop plays an important role for co-receptor tropism, more or less independently from the second mutation, however, in particular with position 24 or 31. For the R5 dataset, mutations in position 6 have a strong impact on \(p.X4\), as well as mutations in combination with position 11, especially position 11 in combination with position 31. We also analyzed the error handling strategies (neglection, worst-case, and deconvolution) in a real-world setting, where we simulated next-generation sequencing data with error rates from different sequencing technologies. The results on the imbalanced data with different X4 proportions are shown in Fig. 5. It turned out that the neglection strategy works best in all analyzed technologies and X4 proportions, followed by deconvolution with the majority vote, both outperforming the worst-case scenario. Moreover, we analyzed position-specific error rates determined by Raymond et al. (2017)17 for Illumina MiSeq and 454 GS-Junior. In Fig. 6 the results for position-specific error rates are shown. The overall error rate is very low, however, the results are similar, but not as pronounced.

Figure 4

Pareto front for two iterative mutations. (A) X4; (B) R5.

Figure 5

NGS-simulated data. Results for worst-case, deconvolution with majority vote, and neglection are shown in green, red, and yellow, respectively. The blue line marks the original X4 fraction.

Figure 6

Position based NGS-simulated data. Results for worst-case, deconvolution with majority vote, and neglection are shown in yellow, green, and red, respectively. The blue line marks the original X4 fraction.


The occurrence of ambiguities can have a high impact on the results of prediction models and thus therapy recommendations. In our analyses, we used the prediction of HIV-1 tropism as an example for next-generation sequencing in precision medicine, where the tropism is determined based on V3 sequences. It turned out that ambiguities at some positions, especially positions 11, 24, and 25 (in accordance with the literature18,19) as single substitutions or in combination, can have a large effect on subsequent predictions. We compared the three different error handling strategies, namely neglection, worst-case, and deconvolution with the majority vote. It turned out that neglection outperformed the other approaches in our simulations based on random equally distributed errors in all sequencing technologies as well as in position-specific error distributions. Nevertheless, the effect was much smaller in the latter. Due to the fact that we had to limit our analyses to V3-sequences, we can only refer our results to those sequences. Further analyses have to be made to generalize our findings on error handling strategies to other targets, e.g., reverse transcriptase, protease, and integrase.

It is noteworthy that the neglection strategy is very restrictive and could lead to a loss of large amounts of data in case of systematic errors, e.g., sequence motifs or other sequence-dependent effects, such as secondary structure formation4,5, thus potentially introducing biases in the prediction and thus therapy recommendation. Therefore, it is reasonable to use the deconvolution strategy in cases where a huge fraction of reads in the data contains ambiguities. The worst-case strategy, however, performs worse compared to both other strategies and there is no scenario where this strategy seems to be reasonable. A recent study suggests that lowering the threshold of resistance testing might come with a reduction of specificity in HIV-1 resistance testing, but increases the identification of people at risk of virological failure, i.e., sensitivity20. So far there are cases where patients experienced therapy failure during a co-receptor antagonist, while the X4 ratio was beneath the threshold of phenotypic testing11. Depending on the applied error-strategy the threshold for a decision might be exceeded, e.g., by using the worst-case-scenario for low X4-ratio, which could then, in turn, lead to the wrong treatment decision.



We collected sequence data from the genomic region of the V3 of subtype B HIV-1 viruses from the Los Alamos HIV Database ( in March 2017. We used the R package seqinr21 to clean the raw data concerning ambiguities, leading to a dataset of 3,580 R5- and 214 X4-strains (see Table 1). The sequences were translated into protein sequences using seqinr and subsequently predicted with T-CUP11. Only those sequences that were correctly predicted (R5: \(3,395\), i.e., specificity \(=\,94.83 \% \) and X4: 207, i.e., sensitivity \(=\,96.73 \% \)) by T-CUP were used in further analyses (see Fig. 7). Moreover, unique sequences were kept, leading to a final dataset of 1,597 R- and 111 X4-viruses.

Table 1 Number of sequences after different preprocessing steps.
Figure 7

Workflow. We generated ambiguous DNA sequences in four different ways, created all possible sequences, and translated them into protein sequences. The protein sequences were used to predict the X4 pseudo-probability with the R package T-CUP. In the balanced design (1) with one up to four random ambiguities and (2) position-specific in an iterative manner with one up to two ambiguities, and in an imbalanced design with different X4 fractions with different error rates of the NGS-sequencers (3) and (4) with position-specific error rates for V3 sequences for different NGS-sequencers.

For our evaluations, we simulated a balanced design with an equal number of R5 and X4 to avoid a class bias. To this end, we randomly selected 111 sequences from the R5 dataset. Table 2 shows the number of analyzed sequences for the balanced designed datasets. Depending on the number of substitutions, up to more than 3 million sequences are generated for further analyses. After translation into protein sequences, this corresponds to more than 2.5 million different protein sequences in total that have been predicted with T-CUP only for the balanced design. Nevertheless, we also created datasets with different X4 proportions (see Table 3). We used the whole amount of unique R5-sequences and randomly selected X4-sequences with replacement to reach the given percentage.

Table 2 Number of sequences after deconvolution with varying number of ambiguities with random (1–4) or position-specific substitutions (1–2).
Table 3 X4 portions for simulated data.

Analyses of error handling strategies

To analyze the behavior of the three error handling strategies, namely (i) neglection, (ii) worst-case, and (iii) deconvolution with the majority vote, we used two different approaches for introducing ambiguity in the balanced design. First, we used a general statistical approach based on the whole sequence, and second, we used a position-specific approach (see Fig. 7). In the statistical approach, we randomly introduced (50 repetitions) one up to four ambiguities per sequence. For the position-based approach, we introduced ambiguities for every single position iteratively to analyze position-specific effects. For both approaches, we analyzed the impact of these ambiguities on tropism prediction, e.g., by estimating the variance (var) for \(p.X4\) for each position and the difference (diff) of the mean and original prediction (i.e., without ambiguities).

$${\rm{var}}=\frac{1}{n}\mathop{\sum }\limits_{i=1}^{n}{x}_{i}-\bar{x}$$

Furthermore, we calculated the Pareto maxima of variance and difference for each position with the R package rPref22. For the imbalanced data, i.e., the datasets with different X4-proportions (ranging from \(0.1 \% \) to \(20 \% \)), we analyzed different rates of substitutions.

To analyze the error handling strategies in a real-world setting, we simulated next-generation sequencing data with real error rates from different technologies, including Illumina, PacBio, and Ion Torrent (see Table 4) using selection and replacement from our dataset. Moreover, we analyzed position-specific error rates determined by Raymond et al.17 for V3 sequences for Illumina MiSeq and 454 GS-Junior. In total, we generated and analyzed over 80 million protein sequences in our analyses.

Table 4 Error rates.

Change history

  • 15 June 2020

    Due to a typesetting error, in the original version of this Article the character ‘—’ was replaced by the character ‘ï¿½ĂŤ’. This has now been fixed in the Article.


  1. 1.

    Quail, M. A. et al. A tale of three next generation sequencing platforms: comparison of ion torrent, pacific biosciences and illumina miseq sequencers. BMC genomics 13, 341 (2012).

    CAS  Article  Google Scholar 

  2. 2.

    Mardis, E. R. Dna sequencing technologies: 2006-2016. Nature Protocols 12, 213 EP–, (2017).

    ADS  CAS  Article  Google Scholar 

  3. 3.

    Goodwin, S., McPherson, J. D. & McCombie, W. R. Coming of age: ten years of next-generation sequencing technologies. Nature Reviews Genetics 17, 333 (2016).

    CAS  Article  Google Scholar 

  4. 4.

    Schirmer, M., D’Amore, R., Ijaz, U. Z., Hall, N. & Quince, C. Illumina error profiles: resolving fine-scale variation in metagenomic sequencing data. BMC bioinformatics 17, 125 (2016).

    Article  Google Scholar 

  5. 5.

    Minoche, A. E., Dohm, J. C. & Himmelbauer, H. Evaluation of genomic high-throughput sequencing data generated on illumina hiseq and genome analyzer systems. Genome biology 12, R112 (2011).

    CAS  Article  Google Scholar 

  6. 6.

    Gagan, J. & Van Allen, E. M. Next-generation sequencing to guide cancer therapy. Genome medicine 7, 80 (2015).

    Article  Google Scholar 

  7. 7.

    Metzker, M. L. Sequencing technologies—the next generation. Nature reviews genetics 11, 31 (2010).

    CAS  Article  Google Scholar 

  8. 8.

    Dorr, P. et al. Maraviroc (uk-427,857), a potent, orally bioavailable, and selective small-molecule inhibitor of chemokine receptor ccr5 with broad-spectrum anti-human immunodeficiency virus type 1 activity. Antimicrobial agents and chemotherapy 49, 4721–4732 (2005).

    CAS  Article  Google Scholar 

  9. 9.

    Lee, M. K., Heaton, J. & Cho, M. W. Identification of determinants of interaction between cxcr4 and gp120 of a dual-tropic hiv-1dh12isolate. Virology 257, 290–296 (1999).

    CAS  Article  Google Scholar 

  10. 10.

    Lengauer, T., Sander, O., Sierra, S., Thielen, A. & Kaiser, R. Bioinformatics prediction of hiv coreceptor usage. Nature biotechnology 25, 1407 (2007).

    CAS  Article  Google Scholar 

  11. 11.

    Heider, D., Dybowski, J. N., Wilms, C. & Hoffmann, D. A simple structure-based model for the prediction of hiv-1 co-receptor tropism. BioData mining 7, 14 (2014).

    Article  Google Scholar 

  12. 12.

    Cashin, K. et al. Reliable genotypic tropism tests for the major hiv-1 subtypes. Scientific reports  5 (2015).

  13. 13.

    Dybowski, J. N., Heider, D. & Hoffmann, D. Prediction of co-receptor usage of hiv-1 from genotype. PLOS Computational Biology 6, 1–10, (2010).

    CAS  Article  Google Scholar 

  14. 14.

    Dybowski, N., Heider, D. & Hoffmann, D. Structure of hiv-1 quasi-species as early indicator for switches of co-receptor tropism. AIDS Research and Therapy 7, 41, (2010).

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  15. 15.

    Fouchier, R. A. et al. Phenotype-associated sequence variation in the third variable domain of the human immunodeficiency virus type 1 gp120 molecule. Journal of Virology, 66, 3183–3187 (1992).

  16. 16.

    Cardozo, T. et al. Structural basis for coreceptor selectivity by the hiv type 1 v3 loop. AIDS Research and Human Retroviruses 23, 415–426, (2007).

    CAS  Article  PubMed  Google Scholar 

  17. 17.

    Raymond, S. et al. Performance comparison of next-generation sequencing platforms for determining hiv-1 coreceptor use. Scientific reports  7, 42215 (2017).

  18. 18.

    Fouchier, R. et al. Phenotype-associated sequence variation in the third variable domain of the human immunodeficiency virus type 1 gp120 molecule. Journal of virology 66, 3183–3187 (1992).

    CAS  Article  Google Scholar 

  19. 19.

    Shioda, T., Levy, J. A. & Cheng-Mayer, C. Small amino acid changes in the v3 hypervariable region of gp120 can affect the t-cell-line and macrophage tropism of human immunodeficiency virus type 1. Proceedings of the National Academy of Sciences 89, 9434–9438 (1992).

    ADS  CAS  Article  Google Scholar 

  20. 20.

    Inzaule, S. C. et al. Clinically relevant thresholds for ultrasensitive hiv drug resistance testing: a multi-country nested case-control study. The Lancet HIV 5, e638–e646 (2018).

    Article  Google Scholar 

  21. 21.

    Charif, D. & Lobry, J. SeqinR 1.0-2: a contributed package to the R project for statistical computing devoted to biological sequences retrieval and analysis. In Bastolla, U., Porto, M., Roman, H. & Vendruscolo, M. (eds.) Structural approaches to sequence evolution: Molecules, networks, populations, Biological and Medical Physics, Biomedical Engineering, 207–232 (Springer Verlag, New York, 2007). ISBN : 978-3-540-35305-8.

  22. 22.

    Roocks, P. rPref: Database Preferences and Skyline Computation (2016). R package version 1.2.

  23. 23.

    Weirather, J. L. et al. Comprehensive comparison of pacific biosciences and oxford nanopore technologies and their applications to transcriptome analysis. F1000Research  6 (2017).

Download references


This work has been financially supported by the LOEWE program of the State of Hesse (Germany) in the MOSLA research cluster.

Author information




H.F.L. and D.H. conceived the idea and designed the study. H.F.L. carried out the simulations and data analyses and drafted the manuscript. D.H. supervised the project, discussed the results, and revised the manuscript. All authors reviewed the manuscript.

Corresponding author

Correspondence to Dominik Heider.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

F. Löchel, H., Heider, D. Comparative analyses of error handling strategies for next-generation sequencing in precision medicine. Sci Rep 10, 5750 (2020).

Download citation


By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.


Quick links

Nature Briefing

Sign up for the Nature Briefing newsletter — what matters in science, free to your inbox daily.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing