Background Statistical geneticists employ simulation to estimate the power of proposed studies, test new analysis tools, and evaluate properties of causal models. Although there are existing trait simulators, there is ample room for modernization. For example, most phenotype simulators are limited to Gaussian traits or traits transformable to normality, while ignoring qualitative traits and realistic, non-normal trait distributions. Also, modern computer languages, such as Julia, that accommodate parallelization and cloud-based computing are now mainstream but rarely used in older applications. To meet the challenges of contemporary big studies, it is important for geneticists to adopt new computational tools. Results We present TraitSimulation , an open-source Julia package that makes it trivial to quickly simulate phenotypes under a variety of genetic architectures. This package is integrated into our OpenMendel suite for easy downstream analyses. Julia was purpose-built for scientific programming and provides tremendous speed and memory efficiency, easy access to multi-CPU and GPU hardware, and to distributed and cloud-based parallelization. TraitSimulation is designed to encourage flexible trait simulation, including via the standard devices of applied statistics, generalized linear models (GLMs) and generalized linear mixed models (GLMMs). TraitSimulation also accommodates many study designs: unrelateds, sibships, pedigrees, or a mixture of all three. (Of course, for data with pedigrees or cryptic relationships, the simulation process must include the genetic dependencies among the individuals.) We consider an assortment of trait models and study designs to illustrate integrated simulation and analysis pipelines. Step-by-step instructions for these analyses are available in our electronic Jupyter notebooks on Github. These interactive notebooks are ideal for reproducible research. Conclusion The TraitSimulation package has three main advantages. (1) It leverages the computational efficiency and ease of use of Julia to provide extremely fast, straightforward simulation of even the most complex genetic models, including GLMs and GLMMs. (2) It can be operated entirely within, but is not limited to, the integrated analysis pipeline of OpenMendel. And finally (3), by allowing a wider range of more realistic phenotype models, TraitSimulation brings power calculations and diagnostic tools closer to what investigators might see in real-world analyses.
[1]
Hua Zhou,et al.
Ordered multinomial regression for genetic association analysis of ordinal phenotypes at Biobank scale
,
2019,
Genetic epidemiology.
[2]
Joong-Ho Won,et al.
High-Performance Statistical Computing in the Computing Environments of the 2020s.
,
2020,
Statistical science : a review journal of the Institute of Mathematical Statistics.
[3]
Kevin L. Keys,et al.
OpenMendel: a cooperative programming project for statistical genetics
,
2019,
Human Genetics.
[4]
Ewan Birney,et al.
PhenotypeSimulator: A comprehensive framework for simulating multi-trait, multi-locus genotype to phenotype relationships
,
2018,
Bioinform..
[5]
P. Elliott,et al.
UK Biobank: An Open Access Resource for Identifying the Causes of a Wide Range of Complex Diseases of Middle and Old Age
,
2015,
PLoS medicine.
[6]
P. O’Reilly,et al.
MultiPhen: Joint Model of Multiple Phenotypes Can Increase Discovery in GWAS
,
2012,
PloS one.
[7]
D. Schaid.
Mathematical and Statistical Methods for Genetic Analysis
,
1999
.
[8]
Alan Edelman,et al.
Julia: A Fresh Approach to Numerical Computing
,
2014,
SIAM Rev..
[9]
Zhe Zhang,et al.
GPOPSIM: a simulation tool for whole-genome genetic data
,
2015,
BMC Genetics.