Literature DB >> 21088025

SAMStat: monitoring biases in next generation sequencing data.

Timo Lassmann1, Yoshihide Hayashizaki, Carsten O Daub.   

Abstract

MOTIVATION: The sequence alignment/map format (SAM) is a commonly used format to store the alignments between millions of short reads and a reference genome. Often certain positions within the reads are inherently more likely to contain errors due to the protocols used to prepare the samples. Such biases can have adverse effects on both mapping rate and accuracy. To understand the relationship between potential protocol biases and poor mapping we wrote SAMstat, a simple C program plotting nucleotide overrepresentation and other statistics in mapped and unmapped reads in a concise html page. Collecting such statistics also makes it easy to highlight problems in the data processing and enables non-experts to track data quality over time.
RESULTS: We demonstrate that studying sequence features in mapped data can be used to identify biases particular to one sequencing protocol. Once identified, such biases can be considered in the downstream analysis or even be removed by read trimming or filtering techniques. AVAILABILITY: SAMStat is open source and freely available as a C program running on all Unix-compatible platforms. The source code is available from http://samstat.sourceforge.net. CONTACT: timolassmann@gmail.com.

Entities:  

Mesh:

Year:  2010        PMID: 21088025      PMCID: PMC3008642          DOI: 10.1093/bioinformatics/btq614

Source DB:  PubMed          Journal:  Bioinformatics        ISSN: 1367-4803            Impact factor:   6.937


1 INTRODUCTION

Next generation sequencing is being applied to understand individual variation, the RNA output of a cell and epigenetic regulation. Not surprisingly, the mapping of short reads to the genome has received a lot of attention with over 30 programs published to date [see Trapnell and Salzberg (2009) for a review of the most commonly used approaches]. Nevertheless, commonly a noticeable fraction of reads remains unmatched to the reference genome in each experiment. One possibility is that these reads simply represent the fraction of reads containing more sequencing errors in the form of mismatches, insertions or deletions than the programs can handle. Alternatively, it is conceivable that these reads contain contaminants and therefore do not map to the expected reference sequence. Finally, the unmapped reads may represent novel splice junctions or genomic regions absent from the reference assembly. Understanding the reason behind obtaining unmapped reads is clearly of interest. Mapping programs like MAQ (Li ) and BWA (Li and Durbin, 2009) report mapping qualities allowing for further investigation. We wrote SAMstat to contrast properties of unmapped, poorly mapped and accurately mapped reads to understand whether particular properties of the reads influence the mapping accuracy. As the name suggests, our program is designed to work mainly with SAM/BAM files (Li ) but also not only can be used to visualize nucleotide composition and other basic statistics of fasta and fastq (Cock ) files.

2 METHODS

SAMStat automatically recognizes the input files as either fasta, fastq, SAM or BAM and reports several basic properties of the sequences as listed in Table 1. Multiple input files can be given for batch processing. For each dataset, the output consists of a single html5 page containing several plots allowing non-specialists to visually inspect the results. Naturally, the html5 pages can be viewed both on- and off-line and easily be stored for future reference. All properties are plotted separately for different mapping quality intervals if those are present in the input file. For example, mismatch profiles are given for high-and low-quality alignments allowing users to verify whether poorly mapped reads contain a specific collection of mismatches. The latter may represent untrimmed linkers in a subset of reads. Dinucleotide overrepresentation is calculated as described by Frith ). Overrepresented 10mers are calculated by comparing the frequency of 10mer within a mapping quality interval compared with the overall frequency of the 10mer.
Table 1.

Overview of SAMstat output

Reported statistics
Mapping ratea
Read length distribution
Nucleotide composition
Mean base quality at each read position
Overrepresented 10mers
Overrepresented dinucleotides along read
Mismatch, insertion and deletion profilea

aOnly reported for SAM files.

Overview of SAMstat output aOnly reported for SAM files.

3 RESULTS AND DISCUSSION

To demonstrate how SAMStat can be used to visualize mapping properties of a next generation datasets, we used data from a recently published transcriptome study (Plessy ); (DDBJ short read archive: DRA000169). We mapped all 24 million 5′ reads to the human genome (GRCh37/hg19 assembly) using BWA (Li and Durbin, 2009) with default parameters. SAMStat parsed the alignment information in ∼3 min which is comparable to the 2 min it takes to copy the SAM file from one directory to another. The majority of reads can be mapped with very high confidence (Fig. 1a). When inspecting the mismatch error profiles, we noticed that there are many mismatches involving a guanine residue at the very start of many reads (yellow bars in Fig. 1b–e). These 5′ added guanine residues are known to originate from the reverse transcriptase step in preparing the cDNAs (Carninci ). When comparing the mismatch profiles for high (Fig. 1b) to low-quality alignments (Fig. 1e), it is clear that a proportion of reads contain multiple 5′ added G's which in turn pose a problem to the mapping. For example, at the lowest mapping quality (Fig. 1e), there are frequent mismatches involving G's at positions one, two and to a lesser extent until position five while in high-quality alignments the mismatches are confined to the first position of the reads (Fig. 1b).
Fig. 1.

A selection of SAMStat's html output. (a) Mapping statistics. More than half of the reads are mapped with a high mapping accuracy (red) while 9.9% of the reads remain unmapped (black). (b) Barcharts showing the distribution of mismatches and insertions along the read for alignments with the highest mapping accuracy [shown in red in (a)]. The colors indicate the mismatched nucleotides found in the read or the nucleotides inserted into the read. (c,d and e) Frequency of mismatches at the start of reads with mapping accuracies 1e−3 ≤ P < 1e−2, 1e−2 ≤ P < 0.5 and 0.5 ≤ P < 1, respectively (shown in orange, yellow and blue in panel a). The fraction of mismatches involving G's at position 2–5 increases. (f) Percentage of ‘GG’ dinucleotides at positions 1–5 in reads split up by mapping quality intervals. The background color highlights large percentages. The first and last row for nucleotides ‘GT’ and ‘GC’ are shown for comparison.

A selection of SAMStat's html output. (a) Mapping statistics. More than half of the reads are mapped with a high mapping accuracy (red) while 9.9% of the reads remain unmapped (black). (b) Barcharts showing the distribution of mismatches and insertions along the read for alignments with the highest mapping accuracy [shown in red in (a)]. The colors indicate the mismatched nucleotides found in the read or the nucleotides inserted into the read. (c,d and e) Frequency of mismatches at the start of reads with mapping accuracies 1e−3 ≤ P < 1e−2, 1e−2 ≤ P < 0.5 and 0.5 ≤ P < 1, respectively (shown in orange, yellow and blue in panel a). The fraction of mismatches involving G's at position 2–5 increases. (f) Percentage of ‘GG’ dinucleotides at positions 1–5 in reads split up by mapping quality intervals. The background color highlights large percentages. The first and last row for nucleotides ‘GT’ and ‘GC’ are shown for comparison. Alongside the mismatch profiles SAMstat gives a table listing the percentages of each dinucleotide at each position of the reads split up by mapping quality intervals (Fig. 1f). For the present dataset, 60.4% of unmapped reads start with ‘GG’ and 10.1 percent contain a ‘GG’ at position 4. Evidently, 5′ G residues are added during library preparation and the start positions of mappings should be adjusted accordingly. SAMStat is ideally suited to deal with the ever increasing amounts of data from second-and third-generation sequencing projects. Specific applications include the verification and quality control of processing pipelines, the tracking of data quality over time and the visualization of data properties derived from new protocols and approaches which in turn often leads to novel insights.
  8 in total

1.  A code for transcription initiation in mammalian genomes.

Authors:  Martin C Frith; Eivind Valen; Anders Krogh; Yoshihide Hayashizaki; Piero Carninci; Albin Sandelin
Journal:  Genome Res       Date:  2007-11-21       Impact factor: 9.043

2.  Mapping short DNA sequencing reads and calling variants using mapping quality scores.

Authors:  Heng Li; Jue Ruan; Richard Durbin
Journal:  Genome Res       Date:  2008-08-19       Impact factor: 9.043

3.  Genome-wide analysis of mammalian promoter architecture and evolution.

Authors:  Piero Carninci; Albin Sandelin; Boris Lenhard; Shintaro Katayama; Kazuro Shimokawa; Jasmina Ponjavic; Colin A M Semple; Martin S Taylor; Pär G Engström; Martin C Frith; Alistair R R Forrest; Wynand B Alkema; Sin Lam Tan; Charles Plessy; Rimantas Kodzius; Timothy Ravasi; Takeya Kasukawa; Shiro Fukuda; Mutsumi Kanamori-Katayama; Yayoi Kitazume; Hideya Kawaji; Chikatoshi Kai; Mari Nakamura; Hideaki Konno; Kenji Nakano; Salim Mottagui-Tabar; Peter Arner; Alessandra Chesi; Stefano Gustincich; Francesca Persichetti; Harukazu Suzuki; Sean M Grimmond; Christine A Wells; Valerio Orlando; Claes Wahlestedt; Edison T Liu; Matthias Harbers; Jun Kawai; Vladimir B Bajic; David A Hume; Yoshihide Hayashizaki
Journal:  Nat Genet       Date:  2006-04-28       Impact factor: 38.330

4.  The Sequence Alignment/Map format and SAMtools.

Authors:  Heng Li; Bob Handsaker; Alec Wysoker; Tim Fennell; Jue Ruan; Nils Homer; Gabor Marth; Goncalo Abecasis; Richard Durbin
Journal:  Bioinformatics       Date:  2009-06-08       Impact factor: 6.937

Review 5.  The Sanger FASTQ file format for sequences with quality scores, and the Solexa/Illumina FASTQ variants.

Authors:  Peter J A Cock; Christopher J Fields; Naohisa Goto; Michael L Heuer; Peter M Rice
Journal:  Nucleic Acids Res       Date:  2009-12-16       Impact factor: 16.971

6.  Linking promoters to functional transcripts in small samples with nanoCAGE and CAGEscan.

Authors:  Charles Plessy; Nicolas Bertin; Hazuki Takahashi; Roberto Simone; Md Salimullah; Timo Lassmann; Morana Vitezic; Jessica Severin; Signe Olivarius; Dejan Lazarevic; Nadine Hornig; Valerio Orlando; Ian Bell; Hui Gao; Jacqueline Dumais; Philipp Kapranov; Huaien Wang; Carrie A Davis; Thomas R Gingeras; Jun Kawai; Carsten O Daub; Yoshihide Hayashizaki; Stefano Gustincich; Piero Carninci
Journal:  Nat Methods       Date:  2010-06-13       Impact factor: 28.547

7.  How to map billions of short reads onto genomes.

Authors:  Cole Trapnell; Steven L Salzberg
Journal:  Nat Biotechnol       Date:  2009-05       Impact factor: 54.908

8.  Fast and accurate short read alignment with Burrows-Wheeler transform.

Authors:  Heng Li; Richard Durbin
Journal:  Bioinformatics       Date:  2009-05-18       Impact factor: 6.937

  8 in total
  78 in total

1.  Cos-Seq for high-throughput identification of drug target and resistance mechanisms in the protozoan parasite Leishmania.

Authors:  Élodie Gazanion; Christopher Fernández-Prada; Barbara Papadopoulou; Philippe Leprohon; Marc Ouellette
Journal:  Proc Natl Acad Sci U S A       Date:  2016-05-09       Impact factor: 11.205

Review 2.  From next-generation resequencing reads to a high-quality variant data set.

Authors:  S P Pfeifer
Journal:  Heredity (Edinb)       Date:  2016-10-19       Impact factor: 3.821

3.  Identification and Characterization of Mycobacterial Species Using Whole-Genome Sequences.

Authors:  Marco A Riojas; Andrew M Frank; Samuel R Greenfield; Stephen P King; Conor J Meehan; Michael Strong; Alice R Wattam; Manzour Hernando Hazbón
Journal:  Methods Mol Biol       Date:  2021

4.  The PATRIC Bioinformatics Resource Center: expanding data and analysis capabilities.

Authors:  James J Davis; Alice R Wattam; Ramy K Aziz; Thomas Brettin; Ralph Butler; Rory M Butler; Philippe Chlenski; Neal Conrad; Allan Dickerman; Emily M Dietrich; Joseph L Gabbard; Svetlana Gerdes; Andrew Guard; Ronald W Kenyon; Dustin Machi; Chunhong Mao; Dan Murphy-Olson; Marcus Nguyen; Eric K Nordberg; Gary J Olsen; Robert D Olson; Jamie C Overbeek; Ross Overbeek; Bruce Parrello; Gordon D Pusch; Maulik Shukla; Chris Thomas; Margo VanOeffelen; Veronika Vonstein; Andrew S Warren; Fangfang Xia; Dawen Xie; Hyunseung Yoo; Rick Stevens
Journal:  Nucleic Acids Res       Date:  2020-01-08       Impact factor: 16.971

5.  Targeted next-generation sequencing panel (GlioSeq) provides comprehensive genetic profiling of central nervous system tumors.

Authors:  Marina N Nikiforova; Abigail I Wald; Melissa A Melan; Somak Roy; Shan Zhong; Ronald L Hamilton; Frank S Lieberman; Jan Drappatz; Nduka M Amankulor; Ian F Pollack; Yuri E Nikiforov; Craig Horbinski
Journal:  Neuro Oncol       Date:  2015-12-17       Impact factor: 12.300

6.  454 antibody sequencing - error characterization and correction.

Authors:  Ponraj Prabakaran; Emily Streaker; Weizao Chen; Dimiter S Dimitrov
Journal:  BMC Res Notes       Date:  2011-10-12

7.  Multi-perspective quality control of Illumina exome sequencing data using QC3.

Authors:  Yan Guo; Shilin Zhao; Quanhu Sheng; Fei Ye; Jiang Li; Brian Lehmann; Jennifer Pietenpol; David C Samuels; Yu Shyr
Journal:  Genomics       Date:  2014-04-03       Impact factor: 5.736

Review 8.  Identifying and mitigating bias in next-generation sequencing methods for chromatin biology.

Authors:  Clifford A Meyer; X Shirley Liu
Journal:  Nat Rev Genet       Date:  2014-09-16       Impact factor: 53.242

9.  Mapping replication timing domains genome wide in single mammalian cells with single-cell DNA replication sequencing.

Authors:  Hisashi Miura; Saori Takahashi; Takahiro Shibata; Koji Nagao; Chikashi Obuse; Katsuzumi Okumura; Masato Ogata; Ichiro Hiratani; Shin-Ichiro Takebayashi
Journal:  Nat Protoc       Date:  2020-11-23       Impact factor: 13.491

10.  Next generation sequencing of CLU, PICALM and CR1: pitfalls and potential solutions.

Authors:  Jenny Lord; James Turton; Christopher Medway; Hui Shi; Kristelle Brown; James Lowe; David Mann; Stuart Pickering-Brown; Noor Kalsheker; Peter Passmore; Kevin Morgan
Journal:  Int J Mol Epidemiol Genet       Date:  2012-11-15
View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.