Literature DB >> 26921234

HPG pore: an efficient and scalable framework for nanopore sequencing data.

Joaquin Tarraga1, Asunción Gallego2, Vicente Arnau3, Ignacio Medina4, Joaquin Dopazo5,6,7.   

Abstract

BACKGROUND: The use of nanopore technologies is expected to spread in the future because they are portable and can sequence long fragments of DNA molecules without prior amplification. The first nanopore sequencer available, the MinION™ from Oxford Nanopore Technologies, is a USB-connected, portable device that allows real-time DNA analysis. In addition, other new instruments are expected to be released soon, which promise to outperform the current short-read technologies in terms of throughput. Despite the flood of data expected from this technology, the data analysis solutions currently available are only designed to manage small projects and are not scalable.
RESULTS: Here we present HPG Pore, a toolkit for exploring and analysing nanopore sequencing data. HPG Pore can run on both individual computers and in the Hadoop distributed computing framework, which allows easy scale-up to manage the large amounts of data expected to result from extensive use of nanopore technologies in the future.
CONCLUSIONS: HPG Pore allows for virtually unlimited sequencing data scalability, thus guaranteeing its continued management in near future scenarios. HPG Pore is available in GitHub at http://github.com/opencb/hpg-pore.

Entities:  

Mesh:

Substances:

Year:  2016        PMID: 26921234      PMCID: PMC4769497          DOI: 10.1186/s12859-016-0966-0

Source DB:  PubMed          Journal:  BMC Bioinformatics        ISSN: 1471-2105            Impact factor:   3.169


Background

In the beginning of 2014, Oxford Nanopore Technologies (ONT) released MinIONTM, the first DNA sequencing device based on biological nanopores, in a limited access program that enabled researchers to use the technology for the first time. MinIONTM is one of the few single-molecule sequencing technologies available that produces very long reads. Moreover, MinIONTM constitutes the first portable high-throughput sequencer. It is the size of a smartphone and connects through a USB port to any internet-connected computer. While the technology initially produced data with a substantial amount of noise, recent practical applications have significantly demonstrated improved data quality [1, 2]. In addition, a recent report has also revealed remarkable improvements in accuracy due to enhancement of the sequencing chemistry, to the present level of 85 % for DNA reads from both strands [3]. The low cost, portability and the production of very long reads, along with a clear improvement in the quality, makes this technology one of the most promising high-throughput sequencing technologies available [4]. Nanopore sequencing has been successfully used to sequence bacterial genomes [5, 6], viral genomes [7] and eukaryotic genomes, such as yeast [8] or drosophila [9], either alone or, in combination with short read technologies [10]. Also, Nanopore sequencing technology has demonstrated its efficacy in clinics for real-time pathogen surveillance [11], because it can rapidly identify strains [12] and detect resistance genes [13], or even detecting structural variation in cancer [14]. Initially, the use of the MinIONTM sequencer was restricted to Windows laptops using specific cloud-based software, metrichor, for data handling and variant calling. The sequencer outputs binary files in the HDF5 format (http://www.hdfgroup.org/HDF5/), which once called result in 30–50 thousand binary files. However, there was no software available for accessing the data. Very recently, alternative solutions for data management and visualization have been proposed that provide more data management and visualization options and expand its use to other computer environments by using R (http://www.R-project.org/; R Core Team, 2014) [15, 16]. However, the software available was devised for managing small individual projects with a relatively low throughput, corresponding to the present-day version of the MinIONTM instrument. New instruments, such as the PromethIONTM and the GridIONTM are expected to be released during this year. Such devices are parallelized versions of the MinIONTM instrument, with an expected throughput which will overrun those of short read technologies. ONT anticipates that the current MinIon MkI will be able to generate up to 40 gigabases per run, the MinIon MkII up to 120 gigabases per run, and the PromethIon up to 6.4 terabases per run (https://goo.gl/RRPXGc). With the aim of being scalable to cope with the foreseeable increasing amounts of data generated by this technology in the near future, here we present HPG pore, a scalable toolkit for exploring and analyzing nanopore sequencing data that can run on both single computers and the Hadoop distributed computing framework.

Implementation

The MinIONTM data format

The MinIONTM sequencer outputs binary files in the HDF5 format (http://www.hdfgroup.org/HDF5/). The calling process generates one file for each MinIONTM read, which amounts between 30 and 50 thousands of individual FAST5 files (called HDF5 files with.FAST5 extension). Such files can contain a template read, and a complement read or a two-direction (2D) read (a combination of both the template and the complementary reads produced by the base-calling algorithm), alone or in any combination. The template reads are derived from the first of the two DNA strands presented to the nanopore. In the process of sequence reading, a processive motor enzyme, ligated to the leader adapter, slows down the template strands. Hairpins permit reading of the complementary strand, which produces the complement read. The change between these two sequences is recognized by the pore because an AP (apurinic/apyrimidinic) site located in the hairpin produces a specific signal. A different enzyme (named HP motor) has the mission of slowing down the complement strand. The optimal operation of the MinIONTM is attained when all these molecules are present and the hairpin successfully ligates both DNA strands, which then traverses the pore producing the 2D reads [2]. In addition, a FAST5 file also contains meta-information for that read and the electronic signal measured over time as a DNA molecule passes through the nanopore. A FAST5 file contains a set of hierarchical groups (with the template and complementary read), datasets and attributes (as any HDF5 file) and all the required model parameters used by the HMM for base calling. The content of FAST5 files can be visualized using the HDFView application (http://www.hdfgroup.org/products/java/hdfview/).

Data management

HPG Pore can run both, on individual computers with a local or distributed POSIX file system such as Lustre, or on a cluster of computers by implementing the map-reduce paradigm in a Hadoop environment, the most popular open-source implementation of the map-reduce [17], a distributed programming model for processing large datasets containing relatively independent data items (http://hadoop.apache.org/). It divides data between processing nodes by splitting them into chunks (defined as key-value pairs) that are then processed separately. Users specify a map function that processes a key-value pair to generate a set of intermediate key-value pairs, and a reduce function that merges all intermediate values associated with the same intermediate key. In the Hadoop environment, a Hadoop MapFile is used to store the individual FAST5 files into the Hadoop Distributed File System (HDFS, see http://wiki.apache.org/hadoop/HDFS). A MapFile is a sorted Hadoop SequenceFile with an index to enable lookups by using a key. A SequenceFile is a flat file containing key-value pairs within HPG Pore. Here, the FAST5 filename is stored as the key and the FAST5 file content as the value. Further, the Hadoop map-reduce framework automatically splits the MapFile into key-value pairs and calls the user map function with these pairs. The creation of the Hadoop MapFile from the FAST5 files is accomplished by executing the import command in the HPG Pore suite: ./hpg-pore.sh import --in/local/path/to/fast5/folder --out/path/to/hdfs/file [−−compress] The most important command provided by HPG pore is the stats command to analyze and visualize the FAST5 files contents. ./hpg-pore,sh stats --in/path/to/fast5/--out/local/path/to/save/stats [−−hadoop] To run the stats command on a Hadoop cluster, the --hadoop option is used. In this case the --in argument corresponds to the Hadoop Mapfile containing the FAST5 files, otherwise, it corresponds to the local FAST5 files folder. The --out argument indicates the folder where the results are saved: a subfolder for each run. Table 1 describes the resulting files.
Table 1

Files generated (for each run) by the stats command in HPG pore, where seq can be a template, a complement or a 2D read

Output file nameFile description
summary.txtText file containing the number of reads and nucleotides, the mean, min. and max read length, nucleotide distribution, %GC, and mean quality
seq_ length_histogram.jpgImage of the read length histogram
seq_content_per_pos.jpgImage of the nucleotides (A, C, T, G, N) per position in the read
seq_ gc_histogram.jpgImage of the GC histogram
seq_yield.jpgImage of the number of nucleotides (yield) over time
seq_ quality_histogram.jpgImage of the read quality histogram
seq_quality_per_pos.jpgImage of the mean quality per position in read
seq_ reads_per_channel.jpgImage of the number of reads processed per channel
seq_ yield_per_channel.jpgImage of the number of nucleotides (yield) processed per channel
Files generated (for each run) by the stats command in HPG pore, where seq can be a template, a complement or a 2D read

Extracting plotting events as well as FastQ and FASTA files

The events command extracts raw data from the electronic signal measured for a given MinIONTM read, and the signal command plots that signal over time (Fig. 1).
Fig. 1

Electronic signal measured for each nanopore translocation event over time for a given MinIONTM template read

Electronic signal measured for each nanopore translocation event over time for a given MinIONTM template read Finally, users can also extract the sequences in FastQ and FASTA formats by executing the fastq and fasta commands respectively: ./hpg-pore.sh fastq --in/path/to/fast5/--out/local/path/to/save/fastq/sequences [−−hadoop] ./hpg-pore.sh fasta --in/path/to/fast5/--out/local/path/to/save/fasta/sequences [−−hadoop]

Availability

The HPG Pore is open source. This cross-platform software is written in Java and is available on GitHub at http://github.com/opencb/hpg-pore. A tutorial and further documentation are available at http://github.com/opencb/hpg-pore/wiki

Results and discussion

Features

HPG Pore has a number of features in common with the poRe and Poretools programs, but also implements several useful unique features related to quality control and other parameters of the sequence obtained, such as mean read quality, %GC, as well as plots per base sequence content and read quality histograms, among others. Some of the features that differentiate the programs originate in the different ways in which data files are managed. For instance, poRe produces one individual file for each sequence in the HDF5 file, which can cause problems with file systems quotas if a large number of reads are present in the HDF5 file. In contrast HPG Pore produces three files containing the three types of reads (template, complement and 2D), which is more convenient for further mapping with other software. Table 2 summarizes the HPG Pore features and compares them to those implemented in poRe and Poretools.
Table 2

Comparison of HPG Pore to the other tools available

FeatureHPG PorepoRePoretools
Extract FASTqYYY
Extract FASTAYYY
Organise fast5 into run foldersY
Create tar files of runsY
Organise the results into run foldersY
Plot yieldYYY
Plot squiggleYYY
Extract run statsYYY
Read length histogramYYY
read length (max., avg., min)YYY
Mean read qualityY
Nucleotides content: count and %YY1
%GCY
Plot Frequency- %GCY
Plot per base sequence contentY
Read quality histogramY
Reads per channel histogramYYY2
Nucleotides per channel histogramYY

1 Poretools does not display the nucleotide content percentage, only counts

2 Poretools returns the occupancy of pores, not the reads per channel

Comparison of HPG Pore to the other tools available 1 Poretools does not display the nucleotide content percentage, only counts 2 Poretools returns the occupancy of pores, not the reads per channel Like poRe and Poretools, HPG Pore produces FastQ files that can be used for downstream analysis with any conventional tool for read mapping and further variation (point mutations [12, 13] or structural variants [14]) analysis, genome assembly [13], etc. Recently appeared programs, such as NanoOK [18], provides built-in downstream analysis with an environment in which alignment can be carried out and different statistics can be obtained. However, the optimal benefit would be obtained in a near future scenario in which downstream analysis tools can natively run in the Hadoop environment. In order to avoid the transfer of HDF5 and FastQ files to a local file system, we are currently implementing read mappers, such as HPG Aligner [19], in Hadoop clusters.

Runtimes and scalability

Since different programs calculated different statistics, running times have been calculated for the generation of FastQ files from the original HDF5 files. The programs were ran in a Hadoop cluster with 8 nodes with 16 cores each (Intel Xeon CPU E5-2667 v2 @ 3.30GHz) and 64 GB of RAM and 12 TB distributed in 24 disks of 500GB.. We have included this information in the paper. Our study shows that runtimes in poRe, Poretools and HPG Pore (running locally) are approximately linearly dependent on the number of sequences in the FAST5 file, with a trend towards an increased slope for high numbers of sequences. HPG Pore runs the fastest, followed by Poretools, while poRe presents remarkably slower execution times (see Fig. 2). A specific problem with poRe is that the large amount of sequence files that it produces causes disk quota excess errors. To run the program with high number of reads this parameter must specifically be changed in the file system.
Fig. 2

Runtimes of the three programs, poRe, Poretools, and HPG Pore, as a function of the number of sequences in the FAST5 file

Runtimes of the three programs, poRe, Poretools, and HPG Pore, as a function of the number of sequences in the FAST5 file When HPG Pore runs in Hadoop mode it is faster than Poretools and poRe, despite an initial delay due to the preparation of the Hadoop nodes and, as expected, the speed is even faster when more nodes are available, thus it outperforms the other two programs when running in local mode (see Fig. 2). The latency of the Hadoop framework (see https://goo.gl/ujNR9F) causes the paradox that the stand alone version of HPG Pore results slightly slower than the Hadoop counterpart running on one node. Since reads are randomly distributed across nodes in the Hadoop environment we do not expect from parameters such as read length any specific effect of runtimes or performance. The Hadoop environment allows storage as well as speed to be scaled up. Figure 3 (upper panel) shows how runtimes decrease as the number of nodes available in the cluster increases in four different scenarios: with 32,000, 100,000, 300,000 and 1 million sequences in the FAST5 file. The speed-ups are always over the ideal expected acceleration (dotted line), and the increase in speed is clearly higher for larger data sizes (Fig. 3, lower panel).
Fig. 3

Runtimes (upper panel) and increase in speed (lower panel) as the number of nodes increase in the Hadoop system in two different scenarios: FAST5 file containing 32,000 (blue line), 100,000 (red line), 300,000 (green line) and 1 million (dark blue line) sequences. Dotted line in the lower panel represents the ideal speed-up according to the number of nodes used. Speed-ups have been calculated using 3 nodes as the starting point given that the 1 million reads could not be calculated for1 only one node

Runtimes (upper panel) and increase in speed (lower panel) as the number of nodes increase in the Hadoop system in two different scenarios: FAST5 file containing 32,000 (blue line), 100,000 (red line), 300,000 (green line) and 1 million (dark blue line) sequences. Dotted line in the lower panel represents the ideal speed-up according to the number of nodes used. Speed-ups have been calculated using 3 nodes as the starting point given that the 1 million reads could not be calculated for1 only one node

Conclusions

Nanopore MinIONTM technologies present several advantages, such as low cost, portability and the capability to produce very long reads [4] that allow anticipating an extensive use in the near future. Recently, new tools such as Poretools [16], poRe [15] and NanoOK [18] have expanded the possibilities for nanopore data management and its use in operating systems other than Microsoft. However, such programs are designed for the relatively low throughput of current nanopore devices, and even present limitations for large datasets. Moreover, the foreseeable production of enormous amounts of nanopore data by increased throughput in the future by improved versions of MinIONTM (the MkII version, up to 120 GB per run), as well as new nanopore instruments which have been announced (PromethIon, up to 6.4 TB per run), will soon require of scalable computational technologies to cope with these data. Here we present HPG Pore, the first scalable bioinformatic tool for exploring and analyzing nanopore sequencing data that can run both individual computers and in the Hadoop distributed computing framework. The Hadoop environment allows virtually unlimited scaling up in data size and provides better runtimes for datasets containing a large number of reads. HPG Pore allows efficient management of huge amounts of data and thus constitutes a practical solution for data analysis needs in the near future as well as a promising model for the development of new tools to deal with future genomic big data.

Availability and requirements

Project name: HPG Pore Project home page:http://github.com/opencb/hpg-pore Operating system(s): Linux CentOS release 6.6 Programming language: Java Other requirements: in Hadoop mode requires Hadoop installation License: Apache license Any restrictions to use by non-academics: no
  17 in total

1.  MinION nanopore sequencing identifies the position and structure of a bacterial antibiotic resistance island.

Authors:  Philip M Ashton; Satheesh Nair; Tim Dallman; Salvatore Rubino; Wolfgang Rabsch; Solomon Mwaigwisya; John Wain; Justin O'Grady
Journal:  Nat Biotechnol       Date:  2014-12-08       Impact factor: 54.908

2.  Successful test launch for nanopore sequencing.

Authors:  Nicholas J Loman; Mick Watson
Journal:  Nat Methods       Date:  2015-04       Impact factor: 28.547

3.  Genome assembly using Nanopore-guided long and error-free DNA reads.

Authors:  Mohammed-Amin Madoui; Stefan Engelen; Corinne Cruaud; Caroline Belser; Laurie Bertrand; Adriana Alberti; Arnaud Lemainque; Patrick Wincker; Jean-Marc Aury
Journal:  BMC Genomics       Date:  2015-04-20       Impact factor: 3.969

4.  poRe: an R package for the visualization and analysis of nanopore sequencing data.

Authors:  Mick Watson; Marian Thomson; Judith Risse; Richard Talbot; Javier Santoyo-Lopez; Karim Gharbi; Mark Blaxter
Journal:  Bioinformatics       Date:  2014-08-29       Impact factor: 6.937

5.  Poretools: a toolkit for analyzing nanopore sequence data.

Authors:  Nicholas J Loman; Aaron R Quinlan
Journal:  Bioinformatics       Date:  2014-08-20       Impact factor: 6.937

6.  A reference bacterial genome dataset generated on the MinION™ portable single-molecule nanopore sequencer.

Authors:  Joshua Quick; Aaron R Quinlan; Nicholas J Loman
Journal:  Gigascience       Date:  2014-10-20       Impact factor: 6.524

7.  Acceleration of short and long DNA read mapping without loss of accuracy using suffix array.

Authors:  Joaquín Tárraga; Vicente Arnau; Héctor Martínez; Raul Moreno; Diego Cazorla; José Salavert-Torres; Ignacio Blanquer-Espert; Joaquín Dopazo; Ignacio Medina
Journal:  Bioinformatics       Date:  2014-08-20       Impact factor: 6.937

8.  NanoOK: multi-reference alignment analysis of nanopore sequencing data, quality and error profiles.

Authors:  Richard M Leggett; Darren Heavens; Mario Caccamo; Matthew D Clark; Robert P Davey
Journal:  Bioinformatics       Date:  2015-09-17       Impact factor: 6.937

9.  Oxford Nanopore sequencing, hybrid error correction, and de novo assembly of a eukaryotic genome.

Authors:  Sara Goodwin; James Gurtowski; Scott Ethe-Sayers; Panchajanya Deshpande; Michael C Schatz; W Richard McCombie
Journal:  Genome Res       Date:  2015-10-07       Impact factor: 9.043

10.  Early insights into the potential of the Oxford Nanopore MinION for the detection of antimicrobial resistance genes.

Authors:  Kim Judge; Simon R Harris; Sandra Reuter; Julian Parkhill; Sharon J Peacock
Journal:  J Antimicrob Chemother       Date:  2015-07-28       Impact factor: 5.790

View more
  4 in total

Review 1.  Nanopore sequencing technology, bioinformatics and applications.

Authors:  Yunhao Wang; Yue Zhao; Audrey Bollas; Yuru Wang; Kin Fai Au
Journal:  Nat Biotechnol       Date:  2021-11-08       Impact factor: 54.908

2.  A new parallel pipeline for DNA methylation analysis of long reads datasets.

Authors:  Ricardo Olanda; Mariano Pérez; Juan M Orduña; Joaquín Tárraga; Joaquín Dopazo
Journal:  BMC Bioinformatics       Date:  2017-03-09       Impact factor: 3.169

3.  NanoR: A user-friendly R package to analyze and compare nanopore sequencing data.

Authors:  Davide Bolognini; Niccolò Bartalucci; Alessandra Mingrino; Alessandro Maria Vannucchi; Alberto Magi
Journal:  PLoS One       Date:  2019-05-09       Impact factor: 3.240

4.  Sequoia: an interactive visual analytics platform for interpretation and feature extraction from nanopore sequencing datasets.

Authors:  Ratanond Koonchanok; Swapna Vidhur Daulatabad; Quoseena Mir; Khairi Reda; Sarath Chandra Janga
Journal:  BMC Genomics       Date:  2021-07-07       Impact factor: 3.969

  4 in total

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