- Software
- Open access
- Published:
DNAscent v2: detecting replication forks in nanopore sequencing data with deep learning
BMC Genomics volume 22, Article number: 430 (2021)
Abstract
Background
Measuring DNA replication dynamics with high throughput and single-molecule resolution is critical for understanding both the basic biology behind how cells replicate their DNA and how DNA replication can be used as a therapeutic target for diseases like cancer. In recent years, the detection of base analogues in Oxford Nanopore Technologies (ONT) sequencing reads has become a promising new method to supersede existing single-molecule methods such as DNA fibre analysis: ONT sequencing yields long reads with high throughput, and sequenced molecules can be mapped to the genome using standard sequence alignment software.
Results
This paper introduces DNAscent v2, software that uses a residual neural network to achieve fast, accurate detection of the thymidine analogue BrdU with single-nucleotide resolution. DNAscent v2 also comes equipped with an autoencoder that interprets the pattern of BrdU incorporation on each ONT-sequenced molecule into replication fork direction to call the location of replication origins termination sites. DNAscent v2 surpasses previous versions of DNAscent in BrdU calling accuracy, origin calling accuracy, speed, and versatility across different experimental protocols. Unlike NanoMod, DNAscent v2 positively identifies BrdU without the need for sequencing unmodified DNA. Unlike RepNano, DNAscent v2 calls BrdU with single-nucleotide resolution and detects more origins than RepNano from the same sequencing data. DNAscent v2 is open-source and available at https://github.com/MBoemo/DNAscent.
Conclusions
This paper shows that DNAscent v2 is the new state-of-the-art in the high-throughput, single-molecule detection of replication fork dynamics. These improvements in DNAscent v2 mark an important step towards measuring DNA replication dynamics in large genomes with single-molecule resolution. Looking forward, the increase in accuracy in single-nucleotide resolution BrdU calls will also allow DNAscent v2 to branch out into other areas of genome stability research, particularly the detection of DNA repair.
Background
Regions of a eukaryote’s genome may tend to replicate early or late in S-phase on average, but there is significant cell-to-cell heterogeneity that stems from both the set of origins used and time at which they fire [1]. The high-throughput detection of replication fork movement with single-molecule resolution is critical for understanding how a cell replicates its DNA, which is particularly important for diseases like cancer where DNA replication is a therapeutic target [2]. Oxford Nanopore Technologies (ONT) sequencing has emerged as a cost-effective platform for the detection of DNA base modifications such as 5-methylcytosine on long single molecules [3–7]. We and others have shown that halogenated bases are also detectable in ONT sequencing data [8–11]. When these bases are pulsed into S-phase cells, they are incorporated into nascent DNA by replication forks. Sequencing with ONT and detecting the position of these bases reveals a footprint of replication fork movement on each sequenced molecule, allowing this method to answer questions that would have been traditionally addressed with DNA fibre analysis but with higher-throughput and the ability to map each sequenced read to the genome. DNAscent (v1 and earlier) uses a hidden Markov model to assign a likelihood of BrdU to each thymidine [9], RepNano uses a convolutional neural network to estimate the fraction of thymidines substituted for BrdU in rolling 96-bp windows [10], and NanoMod compares modified and unmodified DNA to detect base analogues [7, 8].
This paper introduces DNAscent v2 which uses a new residual neural network architecture to assign a probability of BrdU to each thymidine. Overhauling the BrdU detection algorithm from a hidden Markov model to a residual neural network results in high-accuracy BrdU calls (95.7% balanced accuracy; 99.3% specificity; see Section S1 and Tables S1-S2 in Additional file 1) that enables the detection of replication dynamics with up to single-nucleotide resolution. DNAscent v2 supports BrdU detection on GPUs, providing the speed increase necessary to create genome-wide maps of replication dynamics in large genomes, as well as an autoencoder that automatically detects replication forks, origins, and termination sites at any point in S-phase and across different experimental protocols. This work demonstrates that DNAscent v2 is the new state-of-the-art to support DNA replication and genome stability research.
Implementation
The DNAscent v2 software consists of a simple two-step analysis pipeline requiring only three easy-to-make inputs: the FAST5 files containing raw signal data (produced by ONT’s MinKNOW software during sequencing), a reference genome, and the alignment (in BAM format) of ONT reads to the genome (Fig. 1a). The subprogram detect in DNAscent v2 uses these inputs to call the probability of BrdU at each thymidine position for each sequenced molecule. These probabilities are written to a single output file in a table format that was designed to be easy to parse. The output file from DNAscent detect is the only input for a new subprogram called forkSense that interprets the pattern of BrdU incorporation on each read to determine the probabilities that a leftward- and rightward-moving fork passed through each position during the BrdU pulse.
The subprogram detect in DNAscent v2 detects BrdU with single-nucleotide resolution using a residual neural network consisting of depthwise and pointwise convolutions (Fig. 1b; see Section S2, Figure S1, and Table S3 in Additional file 1 for details). The model was trained using nanopore-sequenced genomic DNA from a S. cerevisiae thymidine auxotroph [9]. In particular, the training material consisted of unsubstituted DNA as well DNA with 80% BrdU-for-thymidine substitution (Figure S2 in Additional file 1). A shortcoming of earlier DNAscent versions was that origin calling was designed to work in synchronised early S-phase cells. To that end, DNAscent v2 includes a new subprogram called forkSense that was designed to work in both synchronous and asynchronous cells at any point in S-phase. forkSense uses an autoencoder neural network to assign the probabilities that a leftward- and rightward-moving fork passed through each position on a read during the BrdU pulse (Fig. 1c; see Section S3, Figures S3-S4, and Table S4 in Additional file 1 for details). forkSense matches up converging and diverging forks in order to call confidence intervals of replication origins and termination sites on each nanopore-sequenced molecule. Hence, DNAscent detect and forkSense together are able to identify the BrdU “footprint” of replication forks on each nanopore-sequenced molecule (Fig. 2a).
In addition to improving performance and adding functionality, DNAscent v2 development placed a particular focus on ease-of-use and accessibility for laboratories that may not have access to computational scientists or bioinformaticians. Origin calling with RepNano has fourteen adjustable parameters and earlier versions of DNAscent have three, but forkSense in DNAscent v2 does not require any tuning. DNAscent v2 also comes packaged with a utility that converts the outputs of detect and forkSense into bedgraphs such that BrdU and fork probabilities can easily be viewed side-by-side for each read (as in Fig. 3a-b) in the Integrative Genomics Viewer (IGV) [12] or the UCSC Genome Browser (http://genome.ucsc.edu) [13], and origin, termination, and fork calls are likewise written to bed files. To support the genome-wide measurement of replication dynamics in organisms with larger genomes, DNAscent v2 can optionally run BrdU detection on a GPU and benchmarks approximately 4.5 × faster than DNAscent v1 and approximately 3.5 × faster than RepNano (see Section S4 and Tables S5-S7 in Additional file 1).
Results
To evaluate the performance of DNAscent detect, receiver operator characteristic (ROC) curves were plotted using nanopore sequenced unsubstituted DNA to measure false positives and DNA with four different BrdU-for-thymidine substitution rates (Fig. 2b). DNAscent v2 outperformed the previous versions of DNAscent by a wide margin in all four samples. Bedgraphs of the probability of BrdU at each thymidine position for a subset of unsubstituted reads and 49% BrdU-for-thymidine substituted reads from the ROC curve analysis are shown in Fig. 2c, highlighting the difference between substituted and unsustituted reads. In concordance with the ROC curves, unsubstituted reads are largely devoid of false positives. To show that DNAscent v2 distinguishes BrdU from thymidine with single-nucleotide resolution, BrdU detection was run on substrates with two BrdU bases at known positions [9] where DNAscent v2 was able to clearly identify the positions of both BrdU bases (Fig. 2d). This accurate single-nucleotide resolution is particularly important for genome stability applications such as identifying the precise location of replication fork stalls; we previously detected fork pausing/stalling at replication fork barriers in S. cerevisiae rDNA with 2-kilobase (kb) resolution using DNAscent v0.1 [9], but DNAscent v2 can detect sites of fork pausing/stalling with single-nucleotide resolution (Fig. 2e). With DNAscent v2, the BrdU calls are clean enough that the single-nucleotide resolution BrdU calls can be visualised directly as bedgraphs in IGV [12] without the need for any smoothing or further processing from the software.
DNAscent forkSense was tested on two different BrdU-pulse experimental protocols: S. cerevisiae cells that were synchronised in G1 and released into S-phase in the presence of BrdU with no thymidine chase [9] and asynchronous thymidine-auxotrophic S. cerevisiae cells where BrdU was pulsed for 4 minutes followed by a thymidine chase [10]. Example single molecules mapping to a region that includes several efficient origins on S. cerevisiae chromosome I are shown for both experiments (Fig. 3a-b). forkSense calls origins as the regions between diverging leftward- and rightward-moving forks and calls termination sites as the regions between converging forks. A pileup of replication origins and termination sites called on S. cerevisiae chromosome II is shown for cells synchronised in G1 (Fig. 3c; Figure S5c in Additional file 1) and asynchronous cells (Fig. 3d; Figure S5d in Additional file 1). While the location of called replication origins shows good agreement with confirmed and likely origins from OriDB [14] in both cases (Fig. 3e-f) this work corroborates the findings of [9, 10] that high-throughput, single-molecule analysis reveals replication origins that are far (>5 kb) away from previously annotated origins. DNAscent v2 is able to capitalise on its improved BrdU detection to detect several fold more origins than both previous versions of DNAscent and RepNano (Fig. 3e-f).
Discussion
While several tools have been developed in recent years that can detect BrdU in Oxford Nanopore reads, DNAscent v2 has a number of key advantages. Unlike NanoMod [7], DNAscent v2 is able to positively identify BrdU without the need for sequencing both BrdU-substituted and unsubstituted DNA that covers the same region of the genome. Unlike RepNano [10], DNAscent v2 can call BrdU with single-nucleotide resolution which is critical for accurately detecting sites of fork stalling and the genomic features (e.g., DNA sequence motifs or replication-transcription collisions) that may have caused aberrant fork movement. Importantly, DNAscent v2 far surpasses its previous major releases (v1 and earlier) [9] in accuracy of BrdU calling (Fig. 2b), resolution of detecting sites of fork pausing/stalling (Fig. 2e), accuracy of origin calling (Fig. 3e), and its ability to now detect replication forks at any point in S-phase (Fig. 3b,f). The improvement to single-nucleotide resolution BrdU calling in detect, together with the forkSense algorithm, has allowed DNAscent v2 to make significantly more origin calls than previous versions when run on the same data set, and as shown by Fig. 3e, most of these additional calls were near confirmed and likely origin sites. This suggests a decrease in false negative origin calls, enabling DNAscent v2 to create a more accurate picture of how replication took place on each individual molecule. When analysing all nanopore-sequenced molecules together, these improvements mean that less data is required to create whole-genome maps of replication origin and termination site locations, which is particularly important for studying replication in larger genomes.
Transitioning the DNAscent detect BrdU calling algorithm from the hidden Markov forward algorithm to a new residual neural network architecture has increased the accuracy of single-nucleotide resolution BrdU calling, making this new version of DNAscent applicable to more areas of genome stability research. The accuracy shown in Fig. 2 indicates that DNAscent v2 should be able to detect sites of DNA repair, where accurate BrdU calls within very short (1-10 inserted nucleotides for base excision repair and about 30 nucleotides for nucleotide excision repair) would be critical. The residual neural network in DNAscent v2 also creates a more natural platform for future work on the detection of multiple base analogues and/or base modifications in the same molecule. DNA fibre analysis relies on sequential pulses of different base analogues to determine fork direction while DNAscent currently determines fork direction from the changing frequency of BrdU-for-thymidine substitution across a molecule. While DNAscent’s current single-analogue approach is advantageous in its simplicity, the detection of multiple analogues would be necessary to answer certain questions typically addressed with fibre analysis, such as the stability of stalled replication forks [15].
Conclusions
This paper has introduced DNAscent v2, which utilises residual neural networks to significantly improve the single-nucleotide accuracy of BrdU calling compared with the hidden Markov approach utilised in earlier versions. DNAscent v2 also includes the new forkSense subprogram which uses an autoencoder to infer the movement of replication forks from patterns of BrdU incorporation. forkSense can call the location of replication forks, origins, and termination sites in single-molecules across a range of experimental protocols with a sensitivity that exceeds both earlier versions and other competing tools. These new methodologies, together with improvements in speed and ease-of-use, make this technology an important new piece of the toolkit in DNA replication and genome stability research.
Availability and requirements
Project name: DNAscentProject home page:https://github.com/MBoemo/DNAscentOperating system(s): LinuxProgramming language: C, C++, PythonOther requirements: GCC 6.1 or higher, CUDA 10.0 and cuDNN 7.5 (for GPU use only)License: GNU GPL-3.0Any restrictions to use by non-academics: None
Availability of data and materials
DNAscent v2 is open-source under GPL-3.0 and is available at https://github.com/MBoemo/DNAscent. ONT sequencing data for BrdU detection training, primer extension, and synchronised cell cycle experiments were released with [9] in NCBI GEO under accession number GSE121941. ONT sequencing data for the asynchronous cell cycle experiment was released with [10] in ENA under accession number PRJEB36782 (experiment ERX4016778).
Abbreviations
- ONT:
-
Oxford nanopore technologies
- ROC:
-
Receiver operator characteristic
- BN:
-
Batch normalisation
- CONV:
-
Convolution
- TM:
-
Transition matrix
- CNN:
-
Convolutional neural network
- IGV:
-
Integrative Genomics Viewer
References
Bechhoefer J, Rhind N. Replication timing and its emergence from stochastic processes. Trends Genet. 2012; 28(8):374–81.
Ubhi T, Brown GW. Exploiting DNA replication stress for cancer treatment. Cancer Res. 2019; 79(8):1730–9.
Rand AC, Jain M, Eizenga JM, Musselman-Brown A, Olsen HE, Akeson M, Paten B. Mapping DNA methylation with high-throughput nanopore sequencing. Nat Methods. 2017; 14(4):411–3.
Simpson JT, Workman RE, Zuzarte PC, David M, Dursi LJ, Timp W. Detecting DNA cytosine methylation using nanopore sequencing. Nat Methods. 2017; 14(4):407–10.
Stoiber M, Quick J, Egan R, Eun Lee J, Celniker S, Neely RK, Loman N, Pennacchio LA, Brown J. De novo identification of DNA modifications enabled by genome-guided nanopore signal processing. bioRxiv. 2017. https://www.biorxiv.org/content/10.1101/094672v2.
Ni P, Huang N, Zhang Z, Wang D-P, Liang F, Miao Y, Xiao C-L, Luo F, Wang J. DeepSignal: detecting DNA methylation state from Nanopore sequencing reads using deep-learning. Bioinformatics. 2019; 35(22):4586–95.
Liu Q, Georgieva DC, Egli D, Wang K. NanoMod: a computational tool to detect DNA modifications using nanopore long-read sequencing data. BMC Genomics. 2019; 20(1):31–42.
Georgieva D, Liu Q, Wang K, Egli D. Detection of base analogs incorporated during DNA replication by nanopore sequencing. Nucleic Acids Res. 2020; 48(15):e88. https://academic.oup.com/nar/article/48/15/e88/5876287.
Müller CA, Boemo MA, Spingardi P, Kessler BM, Kriaucionis S, Simpson JT, Nieduszynski CA. Capturing the dynamics of genome replication on individual ultra-long nanopore sequence reads. Nat Methods. 2019; 16(5):429–36.
Hennion M, Arbona J-M, Lacroix L, Cruaud C, Theulot B, Tallec BL, Proux F, Wu X, Novikova E, Engelen S, Lemainque A, Audit B, Hyrien O. FORK-seq: replication landscape of the Saccharomyces cerevisiae genome by nanopore sequencing. Genome Biol. 2020; 21(1):1–25.
Ding H, Bailey IV AD, Jain M, Olsen H, Paten B. Gaussian mixture model-based unsupervised nucleotide modification number detection using nanopore-sequencing readouts. Bioinformatics. 2020; 36(19):4928–34.
Robinson JT, Thorvaldsdóttir H, Winckler W, Guttman M, Lander ES, Getz G, Mesirov JP. Integrative genomics viewer. Nat Biotechnol. 2011; 29(1):24–6.
Kent WJ, Sugnet CW, Furey TS, Roskin KM, Pringle TH, Zahler AM, Haussler D. The human genome browser at UCSC. Genome Res. 2002; 12(6):996–1006.
Siow CC, Nieduszynska SR, Müller CA, Nieduszynski CA. OriDB, the DNA replication origin database updated and extended. Nucleic Acids Res. 2012; 40(D1):682–6.
Schlacher K, Christ N, Siaud N, Egashira A, Wu H, Jasin M. Double-strand break repair-independent role for BRCA2 in blocking stalled replication fork degradation by MRE11. Cell. 2011; 145(4):529–42.
Kriman S, Beliaev S, Ginsburg B, Huang J, Kuchaiev O, Lavrukhin V, Leary R, Li J, Zhang Y. Quartznet: Deep automatic speech recognition with 1D time-channel separable convolutions. In: ICASSP 2020 - 2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP): 2020. p. 6124–8.
Acknowledgements
The author would like to thank Dr. Carolin Müller, Dr. Rosemary Wilson, and Dr. James Carrington (Sir William Dunn School of Pathology, University of Oxford), Dr. Conrad Nieduszynski (Earlham Institute), Dr. Mathew Jones (Diamantina Institute, University of Queensland), Dr. Jared Simpson (Ontario Institute for Cancer Research and University of Toronto), as well as Dr. Catherine Merrick and Dr. Francis Totanes (Department of Pathology, University of Cambridge) for helpful conversations and critical reads of this manuscript.
Funding
Research by MAB is supported by Royal Society grant RGS\R1\201251, Isaac Newton Trust grant 19.39b, and startup funds from the University of Cambridge Department of Pathology. This work was performed using resources provided by the Cambridge Service for Data Driven Discovery (CSD3) operated by the University of Cambridge Research Computing Service (www.csd3.cam.ac.uk), provided by Dell EMC and Intel using Tier-2 funding from the Engineering and Physical Sciences Research Council (capital grant EP/P020259/1), and DiRAC funding from the Science and Technology Facilities Council (www.dirac.ac.uk).
Author information
Authors and Affiliations
Contributions
MAB designed the study, wrote the software, analysed the data, and wrote the paper. The author read and approved the final manuscript.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
N/A
Consent for publication
N/A
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Additional file 1
Supplementary information. The supplementary information provides technical details about how the neural networks in DNAscent v2 were designed and trained. Details are also provided for the runtime comparisons mentioned in the text.
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 licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence 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 licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
Boemo, M.A. DNAscent v2: detecting replication forks in nanopore sequencing data with deep learning. BMC Genomics 22, 430 (2021). https://doi.org/10.1186/s12864-021-07736-6
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s12864-021-07736-6