Modern simulation utilities for genetic analysis

Sarah S. Ji, Christopher A. German, Kenneth Lange, Janet S. Sinsheimer, Hua Zhou, Jin Zhou, Eric M. SobelBMC Bioinformatics 2021

Introduction

Genome-Wide Association Studies (GWAS) rely heavily on simulation to validate new analytical tools and estimate statistical power. However, a "modernization gap" persists in genetic simulation. Most existing tools are limited to Gaussian (normal) distributions, failing to capture the complexity of real-world traits such as binary disease status or ordinal disease stages. Furthermore, the "two-language problem"—where researchers prototype in high-level languages like Python or R but must rewrite in C++ for performance—stifles innovation.

To address these challenges, researchers have introduced TraitSimulation.jl, an open-source Julia package designed to bridge the gap between complex genetic theory and high-performance computing.

Methods and Implementation

TraitSimulation.jl is built within the Julia programming language, offering the ease of use of high-level languages with the execution speed of C++. The package is a core component of the OpenMendel ecosystem, providing a seamless workflow from genotype processing to power analysis.

Example Software Pipeline in OpenMendel

Key technical features include:

  • Generalized Linear Models (GLMs) and Mixed Models (GLMMs): The tool supports a wide array of statistical frameworks, allowing for the simulation of non-normal data and complex genetic relationships.
  • Bit-level Compression: Integrated with SnpArrays.jl, genotype data is stored using only 1 or 2 bits per element, enabling biobank-scale computations on standard desktop hardware.
  • Multiple Dispatch: This Julia-native feature automatically selects the most efficient algorithm based on input data types, such as unrelated individuals versus complex pedigrees.

The software supports several simulation models tailored to specific genetic architectures and trait types, as summarized below:

Summary of simulation models and typical applications supported by TraitSimulation.jl

Datasets and Performance

The utility of TraitSimulation.jl was demonstrated using real genotype data from the UK Biobank, involving over 185,000 individuals. The authors generated synthetic phenotypes, including ordinal disease stages and multivariate continuous traits, to benchmark the software.

The tool demonstrated exceptional scalability, handling an ordinal disease model for 185,565 subjects. A single simulation replicate with 20 causal SNPs was completed in approximately 14 seconds. Runtimes scaled linearly with the number of SNPs and replications, facilitating predictable computational planning for large-scale projects.

Key Insights

  • Beyond the Gaussian Straitjacket: By enabling the simulation of ordinal and non-normal traits, the tool provides more accurate power calculations for realistic disease scenarios.
  • Efficiency and Accessibility: Memory-efficient SNP compression reduces RAM requirements by orders of magnitude, democratizing big-data genetics for researchers without access to massive server clusters.
  • Unified Workflow: Staying within the Julia environment eliminates the need for constant data reformatting and code rewriting, accelerating the research cycle.

Limitations and Future Directions

While TraitSimulation.jl significantly accelerates trait generation, the subsequent statistical analysis remains a primary computational bottleneck. Future work involves community-driven extensions to include niche biological models. Additionally, while the tool handles genetic relationships effectively, simulating realistic Linkage Disequilibrium (LD) patterns requires careful integration with other modules like MendelGeneDropping.jl within the OpenMendel suite.

Summary updated

BibTeX
@article{ji2021modern,
  author = {Sarah S. Ji and Christopher A. German and Kenneth Lange and Janet S. Sinsheimer and Hua Zhou and Jin Zhou and Eric M. Sobel},
  title = {{Modern simulation utilities for genetic analysis}},
  journal = {BMC Bioinformatics},
  year = {2021},
  doi = {10.1186/s12859-021-04086-8},
}
Figure