SANTA-SIM: simulating viral sequence evolution dynamics under selection and recombination

Abbas Jariani, Christopher Warth, Koen Deforche, Pieter Libin, Alexei J. Drummond, Andrew Rambaut, F. A. Matsen, Kristof Theys

TL;DR

SANTA-SIM is a new open-source, modular software package designed to simulate the forward-in-time evolution of viral populations. It allows researchers to model complex biological processes—including natural selection, recombination, and insertion-deletion mutations—while maintaining the ability to track the full genealogy of the evolving population.

What Problem Does This Paper Address?

In evolutionary biology, simulations are the "wind tunnels" used to test hypotheses and validate inference methods. Traditionally, researchers have relied on coalescent models (backwards-in-time), which are computationally efficient but struggle to incorporate complex natural selection or changing environmental pressures.

Forward-in-time simulations are more realistic because they model the entire population through every generation, but they are notoriously resource-intensive. Furthermore, existing forward simulators often lack specific features critical for studying rapidly evolving pathogens like HIV-1, such as the ability to simulate insertion-deletion mutations (indels) alongside recombination and complex, dynamic fitness landscapes. SANTA-SIM was built to bridge this gap, providing a flexible, high-performance tool tailored for viral dynamics.

Methods

SANTA-SIM is implemented in Java and follows a highly modular, interface-driven architecture. This allows users to "plug in" different biological models for various stages of the simulation cycle:

  1. Fitness Calculation: Determining how "fit" an individual is based on its genome.
  2. Selection: Choosing which individuals survive to reproduce (supporting constant or dynamic population sizes, like logistic growth).
  3. Replication: Modeling how offspring are created, including "template-switching" to simulate recombination.
  4. Mutation: Applying point mutations and indels.

To handle the massive memory requirements of forward simulation, the authors implemented a "gene-pool" approach: instead of storing the full genome for every individual, the software only stores unique sequences in a central pool, with individuals carrying an index to their specific sequence.

Datasets

As a simulation tool, the paper does not use external training datasets. Instead, it demonstrates the software's capabilities through three distinct evolutionary scenarios:

  • Directional Selection: Modeling HIV-1's response to antiviral treatment using a 609-nucleotide sequence.
  • Selective Sweeps: Comparing "hard" vs. "soft" sweeps in a population of 10,000.
  • Host-Pathogen Co-evolution: Using complex fitness functions to model immune escape.
  • Performance Benchmarking: Testing the software on populations up to 50,000 individuals and sequence lengths up to 1,533 nucleotides.

Key Insights and Ideas

  • Modularity as a Feature: By treating biological processes (like mutation or selection) as discrete components, SANTA-SIM allows researchers to build highly specific "epochs." For example, a simulation can transition from a period of neutral evolution to a period of intense drug pressure.
  • Dynamic Fitness Landscapes: Unlike many simulators that use static fitness values, SANTA-SIM can model exposure-dependent fitness. This mimics an immune system "learning" to recognize a pathogen; the longer a specific viral allele persists in a population, the higher the "penalty" it receives, forcing the virus to evolve new variants.
  • Handling Indels Safely: Insertion-deletion mutations often break the "reading frame" of a gene, which is usually fatal in nature. SANTA-SIM handles this by allowing users to restrict indels to whole-codon lengths, maintaining biological realism while allowing for the length variation seen in real-world viral evolution.

Key Results

  • Efficiency: The software is remarkably lightweight. Benchmarking showed that a simulation of 50,000 individuals with ~1,500 nucleotide sequences running for 10,000 generations took less than 5 minutes on a standard consumer desktop and used less than 60MB of RAM.
  • Genealogical Tracking: Despite being a forward-time simulator, SANTA-SIM can record the entire ancestry of a population, allowing users to export phylogenetic trees that reflect the underlying selection and recombination events.
  • Soft vs. Hard Sweeps: The authors successfully demonstrated how the initial frequency of a beneficial mutation drastically changes the resulting genetic diversity and tree topology—a key area of study in modern population genetics.

Limitations and Future Work

  • Haploid Focus: SANTA-SIM is currently optimized for haploid organisms (like viruses and bacteria). Extending it to diploid organisms would require significant changes to the replication and recombination modules.
  • Simplified Indels: While the whole-codon indel approach is useful, it doesn't capture the full complexity of frame-shift mutations and their potential (though rare) evolutionary benefits.
  • Technical Barrier: While designed to be intuitive via XML configuration files, implementing entirely new biological components still requires basic Java programming knowledge.

The authors suggest that future versions could include more specialized components for different types of organisms and even more complex population structure models.

Summary updated

BibTeX
@inproceedings{jariani2019santa,
  author = {Abbas Jariani and Christopher Warth and Koen Deforche and Pieter Libin and Alexei J. Drummond and Andrew Rambaut and F. A. Matsen and Kristof Theys},
  title = {{SANTA-SIM: simulating viral sequence evolution dynamics under selection and recombination}},
  booktitle = {Virus},
  year = {2019},
  doi = {10.1093/ve/vez003},
}
Figure