TL;DR
DeepSimulator is the first deep learning-based simulator that mimics the entire Nanopore sequencing pipeline, from raw electrical signals to basecalled reads. By using a context-dependent pore model, it generates high-fidelity simulated data that closely matches the statistical properties of real-world sequencing runs, providing a vital tool for benchmarking new bioinformatics algorithms.
What Problem Does This Paper Address?
Oxford Nanopore Technologies (ONT) sequencing is unique: it measures changes in electrical current as a DNA or RNA molecule passes through a microscopic pore. While this allows for ultra-long reads and portable sequencing, the raw data is inherently noisy and complex.
To develop better tools for genome assembly or variant calling, researchers need simulated data where the "ground truth" is known. However, existing simulators (like ReadSim or NanoSim) are purely statistical—they simply "guess" where errors might occur based on simple distributions. They fail to capture the underlying physics of the sequencing process: the generation of raw electrical signals. Without realistic signals, researchers cannot effectively benchmark the very first step of the pipeline: the basecaller.
Methods
DeepSimulator moves away from simple statistics and adopts a modular, process-based approach that mimics the actual sequencing workflow:
- Sequence Generation: It takes a reference genome and generates fragments. To stay realistic, it uses learned distributions (Exponential, Beta, or Gamma mixtures) to match the read lengths seen in real experiments.
- Signal Generation (The Core): This is the most novel component. Instead of a standard "pore model" that maps a 5-mer (a 5-base sequence) to a fixed current value, DeepSimulator uses a context-dependent deep learning model.
- It employs Bi-LSTM (Bidirectional Long Short-Term Memory) networks to capture how surrounding bases influence the current signal of the base currently in the pore.
- To train this, the authors developed BDCTW (BiLSTM-extended Deep Canonical Time Warping) to align nucleotide sequences with raw signals, which are typically 8–10 times longer than the sequence itself.
- Signal Simulation: The predicted signal is "stretched" based on a learned repeat-time distribution (how long a base stays in the pore) and injected with Gaussian noise.
- Basecalling: The simulated signal is passed through an actual basecaller (like ONT’s official Albacore) to produce the final reads.
Datasets
The authors trained and evaluated DeepSimulator using a variety of species to ensure generality:
- Training: Pandoraea pnomenusa (strain 6399).
- Evaluation: Lambda phage, E. coli K-12, and Human (Chromosome 21).
- Benchmarks: Mitochondrial genomes were used for specific SNP (Single Nucleotide Polymorphism) detection tests.
- Sources: Data was obtained from in-house sequencing (R9.4 flow cells) and the Nanopore WGS Consortium.
Key Insights and Ideas
- Context is King: The paper demonstrates that the electrical signal for a specific 5-mer isn't constant; it's influenced by the bases that came before and after it. The deep learning model captures these subtle "contextual" shifts that official, context-independent models miss.
- Implicit Error Modeling: Most simulators manually inject a 10% error rate. DeepSimulator doesn't "tell" the system to make a mistake. Instead, it generates a realistic, noisy signal. The basecaller then makes mistakes naturally, just as it would with real data. This makes the resulting error profiles (mismatches, insertions, and deletions) much more authentic.
- Modular Flexibility: Because the simulator is modular, users can swap out the basecaller or adjust noise parameters to simulate different "generations" of Nanopore technology or different levels of read accuracy (ranging from 83% to 97%).
Key Results
- Signal Fidelity: DeepSimulator’s signals are significantly more similar to real raw signals than those produced by the official ONT pore model. As shown in the deviation analysis, DeepSimulator (blue dots) consistently stays closer to the "ground truth" diagonal than context-independent models.
- Read Accuracy: The simulated reads match the properties of real data across four different species. By default, it produces reads with ~88.5% accuracy, nearly identical to the real-world benchmark of 88.49%.
- Downstream Utility: The authors proved the simulator's worth in two case studies:
- Assembly: Simulated reads were successfully used to assemble the E. coli genome into a single contig using tools like Canu.
- SNP Detection: They found that 6x coverage of DeepSimulator-generated reads is sufficient to accurately detect SNPs in small genomes, providing a roadmap for experimental design.
Limitations and Future Work
While powerful, DeepSimulator has a few areas for growth:
- Computational Cost: Training the deep learning model is intensive, taking about 6 hours on high-end Pascal Titan X GPUs.
- Repeat Time Modeling: Currently, the "dwell time" (how long a base stays in the pore) is modeled using a statistical mixture distribution. The authors suggest that future versions could use deep learning to model this more dynamically.
- Expansion to RNA: The current version focuses on DNA sequencing; adapting the model for direct RNA sequencing is a logical next step.
DeepSimulator is available as open-source software on GitHub.
Summary updated