Literature DB >> 26353839

RNF: a general framework to evaluate NGS read mappers.

Karel Břinda1, Valentina Boeva2, Gregory Kucherov1.   

Abstract

MOTIVATION: Read simulators combined with alignment evaluation tools provide the most straightforward way to evaluate and compare mappers. Simulation of reads is accompanied by information about their positions in the source genome. This information is then used to evaluate alignments produced by the mapper. Finally, reports containing statistics of successful read alignments are created.In default of standards for encoding read origins, every evaluation tool has to be made explicitly compatible with the simulator used to generate reads.
RESULTS: To solve this obstacle, we have created a generic format Read Naming Format (Rnf) for assigning read names with encoded information about original positions. Futhermore, we have developed an associated software package RnfTools containing two principal components. MIShmash applies one of popular read simulating tools (among DwgSim, Art, Mason, CuReSim, etc.) and transforms the generated reads into Rnf format. LAVEnder evaluates then a given read mapper using simulated reads in Rnf format. A special attention is payed to mapping qualities that serve for parametrization of Roc curves, and to evaluation of the effect of read sample contamination.
AVAILABILITY AND IMPLEMENTATION: RnfTools: http://karel-brinda.github.io/rnftools Spec. of Rnf: http://karel-brinda.github.io/rnf-spec CONTACT: karel.brinda@univ-mlv.fr.
© The Author 2015. Published by Oxford University Press.

Entities:  

Mesh:

Year:  2015        PMID: 26353839      PMCID: PMC4681991          DOI: 10.1093/bioinformatics/btv524

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


1 Introduction

The number of Next-Generation Sequencing (Ngs) read mappers has been rapidly growing during the last years. Then, there is an increasing demand of methods for evaluation and comparison of mappers to select the most appropriate one for a specific task. The basic approach to compare mappers is based on simulating Ngs reads, aligning them to the reference genome and assessing read mapping accuracy using a tool evaluating if each individual read has been aligned correctly. There exist many read simulators [Art (Huang ), CuReSim (Caboche ), DnEmulator (Frith ), DwgSim (http://github.com/nh13/dwgsim), FastqSim (Shcherbina, 2014), FlowSim (Balzer ), GemSim (McElroy ), Mason (Holtgrewe, 2010), PbSim (Ono ), Pirs (Xu et al., 2012), SINC (Pattnaik ), WgSim (http://github.com/lh3/wgsim), Xs (Pratas )] as well as many evaluation tools [CuReSimEval, DwgSim_Eval, RABeMa (Holtgrewe ), Seg-Suite (http://cbrc3.cbrc.jp/∼martin/seg-suite/), WgSim_Eval, etc.]. However, each read simulator encodes information about the origin of reads in its own manner. This makes combining tools complicated and makes writing ad-hoc conversion scripts inevitable. Here we propose a standard for naming simulated Ngs reads, called Read Naming Format (Rnf), that makes evaluation tools for read mappers independent of the tool used for read simulation. Furthermore, we introduce RnfTools, an easily configurable software, to obtain simulated reads in Rnf format using a wide class of existing read simulators, and also to evaluate Ngs mappers.

1.1 Simulation of reads

A typical read simulator introduces mutations into a given reference genome (provided usually as a Fasta file) and generates reads as genomic substrings with randomly added sequencing errors. Different statistical models can be employed to simulate sequencing errors and artefacts observed in experimental reads. The models usually take into account CG-content, distributions of coverage, of sequencing errors in reads and of genomic mutations. Simulators can often learn their parameters from an experimental alignment file. At the end, information about origin of every read is encoded in some way and the reads are saved into a Fastq file.

1.2 Evaluation of mappers

When simulated reads are mapped back to the reference sequence and possibly processed by an independent post-processing tool (remapping around indels, etc.), an evaluation tool inputs the final alignments of all reads, extracts information about their origin and assesses if every single read has been aligned to a correct location (and possibly with correct edit operations). The whole procedure is finalized by creating a summarizing report. Various evaluation strategies can be employed (see, e.g. introduction of Caboche ). Final statistics usually strongly depend on the definition of a correctly mapped read, mapper’s approach to deal with multi-mapped reads and with mapping qualities.

1.3 Existing read naming approaches

Depending on the read simulator, information about the read’s origin is either encoded in its name, or stored in a separate file, possibly augmented with information about the expected read alignment. While WgSim encodes the first nucleotide of each end of the read in the read name, DwgSim and CuReSim encode the leftmost nucleotide of each end. Unfortunately, these read naming schemes were specifically designed for particular sequencing technologies and single evaluation strategies, therefore they are not suitable as generic formats. Art produces Sam and Aln alignment files, Mason creates Sam files and Pirs makes text files in its own format.

2 Methods

We have created Rnf, a standard for naming simulated reads. It is designed to be robust, easy to adopt by existing tools, extendable, and to provide human-readable read names. It respects a wide range of existing sequencing technologies as well as their possible future evolution (e.g. technologies producing several ‘subreads’). We then developed a utility for generating Rnf-compliant reads using existing simulators, and an associated mapper evaluation tool.

2.1 Read naming format (RNF)

2.1.1 Read tuples

Read tuple is a tuple of sequences (possibly overlapping) obtained from a sequencing machine from a single fragment of DNA. Elements of these tuples are called reads. For example, every ‘paired-end read’ is a read tuple and both of its ‘ends’ are individual reads in our notation. To every read tuple, two strings are assigned: a short read name (SRN) and a long read name (LRN). SRN contains a hexadecimal unique ID of the tuple prefixed by ’#’. LRN consists of four parts delimited by double-underscore: (i) a prefix (possibly containing expressive information for a user or a particular string for sorting or randomization of order of read tuples), (ii) a unique ID, (iii) information about origins of all segments (see below) that constitute reads of the tuple, (iv) a suffix containing arbitrary comments or extensions (for holding additional information). Preferred final read names are LRNs. If an LRN exceeds 255 (maximum allowed read length in Sam), SRNs are used instead and a SRN–LRN correspondence file must be created.

2.1.2 Segments

Segments are substrings of a read which are spatially distinct in the reference and correspond to individual lines in a Sam file. Since spliced RNA-seq reads (Fig. 1, r004) are usually reported in single lines in SAM, we recommend to keep them in single Rnf segments without splitting even though they might be considered spatially distinct. Thus, each read has an associated chain of segments and we associate a read tuple with segments of all its reads.
Fig. 1.

Examples of simulated reads (in our definition read tuples) and their corresponding Rnf names, which can be used as read names in the final Fastq file: a single-end read (r001); a paired-end read (r002); a mate-pair read (r003); a spliced RNA-seq read (r004); a chimeric read (r005); and a random contaminating read with unspecified coordinates (r006)

Examples of simulated reads (in our definition read tuples) and their corresponding Rnf names, which can be used as read names in the final Fastq file: a single-end read (r001); a paired-end read (r002); a mate-pair read (r003); a spliced RNA-seq read (r004); a chimeric read (r005); and a random contaminating read with unspecified coordinates (r006) Within our definition, a ‘single-end read’ (Fig. 1, r001) consists of a single read with a single segment unless it comes from a region with genomic rearrangement. A ‘paired-end read’ or a ‘mate-pair read’ (Fig. 1, r002 and r003) consists of two reads, each with one segment (under the same condition). A ‘strobe read’ consists of several reads. Chimeric reads (i.e. reads corresponding to a genomic fusion, a long deletion, or a translocation; Fig. 1, r005) have at least two segments. For each segment, the following information is encoded: leftmost and rightmost 1-based coordinates in its reference, ID of its reference genome, ID of the chromosome and the direction (‘F’ or ‘R’). The format is:Segments in LRN are recommended to be sorted with the following keys: source, chromosome, L_coor, R_coor, direction. When some information is not available (e.g. the rightmost coordinate), zero is used (‘N’ in case of direction; Fig. 1, r006). (genome_id,chromosome_id,direction, L_coor,R_coor).

2.1.3 Extensions

The basic standard can be extended for specific purposes by extensions. They are part of the suffix and encode supplementary information (e.g. information about CIGAR strings, sequencing errors, or mutations).

2.2 RNFtools

We also developed RnfTools, a software package associated with Rnf. It has two principal components: MIShmash for read simulation and LAVEnder for evaluation of NGS read mappers. RnfTools has been created using SnakeMake (Köster and Rahmann, 2012), a Python-based Make-like build system. All employed external programs are installed automatically when needed. The package also contains a lightweight console tool rnftools which can, in addition, be used for conversion of existing data and transformation of RNF coordinates using a LiftOver chain file. MIShmash is a pipeline for simulating reads using existing simulators and combining obtained sets of reads together (e.g. to simulate contamination or metagenomic samples). Its output files respect Rnf format, therefore, any Rnf-compatible evaluation tool can be used for evaluation. LAVEnder is a program for evaluating mappers. For a given set of Bam files, it creates an interactive Html report with several graphs. In practice, mapping qualities assigned by different mappers to a given read are not equal (although mappers tend to unify this). Moreover, even for a single mapper, mapping qualities are very data-specific. Therefore, results of mappers after the same thresholding on mapping quality are not comparable. To cope with this, we designed LAVEnder to use mapping qualities as parameterization of curves in ‘sensitivity-precision’ graphs (like it has been done in Li (2013)). Examples of output of LAVEnder can be found in Figure 2.
Fig. 2.

Example of two graphs produced by LAVEnder as a part of comparison of mapper capabilities of contamination detection. 200.000 single-end reads were simulated from human and mouse genomes (100.000 from HG38, 100.000 from MM10) by DwgSim using MIShmash and mapped to HG38. All LAVEnder graphs have false discovery rate on x-axis and use mapping quality as the varying parameter for plotted curves. This experiment reveals that YARA copes with contamination better than Bowtie2, BWA-MEM and BWA-SW

Example of two graphs produced by LAVEnder as a part of comparison of mapper capabilities of contamination detection. 200.000 single-end reads were simulated from human and mouse genomes (100.000 from HG38, 100.000 from MM10) by DwgSim using MIShmash and mapped to HG38. All LAVEnder graphs have false discovery rate on x-axis and use mapping quality as the varying parameter for plotted curves. This experiment reveals that YARA copes with contamination better than Bowtie2, BWA-MEM and BWA-SW

3 Conclusion

We designed Rnf format and propose it as a general standard for naming simulated Ngs reads. We developed RnfTools consisting of MIShmash, a pipeline for read simulation, and LAVEnder, an evaluation tool for mappers, both following the Rnf convention (thus inter-compatible). Currently, MIShmash has a built-in interface with the following existing read simulators: Art, CuReSim, DwgSim, Mason and WgSim. We expect that authors of existing read simulators will adopt Rnf naming convention as it is technically simple and would allow them to extend the usability of their software. We also expect authors of evaluation tools to use Rnf to make their tools independent of the used read simulator.
  14 in total

1.  ART: a next-generation sequencing read simulator.

Authors:  Weichun Huang; Leping Li; Jason R Myers; Gabor T Marth
Journal:  Bioinformatics       Date:  2011-12-23       Impact factor: 6.937

2.  GemSIM: general, error-model based simulator of next-generation sequencing data.

Authors:  Kerensa E McElroy; Fabio Luciani; Torsten Thomas
Journal:  BMC Genomics       Date:  2012-02-15       Impact factor: 3.969

3.  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

4.  PBSIM: PacBio reads simulator--toward accurate genome assembly.

Authors:  Yukiteru Ono; Kiyoshi Asai; Michiaki Hamada
Journal:  Bioinformatics       Date:  2012-11-04       Impact factor: 6.937

5.  Characteristics of 454 pyrosequencing data--enabling realistic simulation with flowsim.

Authors:  Susanne Balzer; Ketil Malde; Anders Lanzén; Animesh Sharma; Inge Jonassen
Journal:  Bioinformatics       Date:  2010-09-15       Impact factor: 6.937

6.  A novel and well-defined benchmarking method for second generation read mapping.

Authors:  Manuel Holtgrewe; Anne-Katrin Emde; David Weese; Knut Reinert
Journal:  BMC Bioinformatics       Date:  2011-05-26       Impact factor: 3.169

7.  SInC: an accurate and fast error-model based simulator for SNPs, Indels and CNVs coupled with a read generator for short-read sequence data.

Authors:  Swetansu Pattnaik; Saurabh Gupta; Arjun A Rao; Binay Panda
Journal:  BMC Bioinformatics       Date:  2014-02-05       Impact factor: 3.169

8.  XS: a FASTQ read simulator.

Authors:  Diogo Pratas; Armando J Pinho; João M O S Rodrigues
Journal:  BMC Res Notes       Date:  2014-01-16

9.  Systematic evaluation of spliced alignment programs for RNA-seq data.

Authors:  Pär G Engström; Tamara Steijger; Botond Sipos; Gregory R Grant; André Kahles; Gunnar Rätsch; Nick Goldman; Tim J Hubbard; Jennifer Harrow; Roderic Guigó; Paul Bertone
Journal:  Nat Methods       Date:  2013-11-03       Impact factor: 28.547

10.  Comparison of mapping algorithms used in high-throughput sequencing: application to Ion Torrent data.

Authors:  Ségolène Caboche; Christophe Audebert; Yves Lemoine; David Hot
Journal:  BMC Genomics       Date:  2014-04-05       Impact factor: 3.969

View more
  3 in total

1.  Simulating Next-Generation Sequencing Datasets from Empirical Mutation and Sequencing Models.

Authors:  Zachary D Stephens; Matthew E Hudson; Liudmila S Mainzer; Morgan Taschuk; Matthew R Weber; Ravishankar K Iyer
Journal:  PLoS One       Date:  2016-11-28       Impact factor: 3.240

2.  The influence of human genetic variation on Epstein-Barr virus sequence diversity.

Authors:  Sina Rüeger; Christian Hammer; Alexis Loetscher; Paul J McLaren; Dylan Lawless; Olivier Naret; Nina Khanna; Enos Bernasconi; Matthias Cavassini; Huldrych F Günthard; Christian R Kahlert; Andri Rauch; Daniel P Depledge; Sofia Morfopoulou; Judith Breuer; Evgeny Zdobnov; Jacques Fellay
Journal:  Sci Rep       Date:  2021-02-25       Impact factor: 4.379

3.  SimBA: A methodology and tools for evaluating the performance of RNA-Seq bioinformatic pipelines.

Authors:  Jérôme Audoux; Mikaël Salson; Christophe F Grosset; Sacha Beaumeunier; Jean-Marc Holder; Thérèse Commes; Nicolas Philippe
Journal:  BMC Bioinformatics       Date:  2017-09-29       Impact factor: 3.169

  3 in total

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