bioRxiv Science⌕ Search

bioRxiv · 10.1101/2024.04.27.591463

Towards Simulation Optimization: An Examination of the Impact of Scaling on Coalescent and Forward Simulations

Abstract

Scaling is a common practice in population genetic simulations to increase computational efficiency. However, there exists a dearth of standardized guidelines for best practices. Few studies have examined the effects of scaling on diversity and whether the results are directly comparable to unscaled and empirical data. We examine the effects of scaling in two model populations, modern humans and Drosophila melanogaster. The reason is twofold: 1) due to the substantial difference in population sizes and generation times, human populations require moderate-to-no scaling, while more dramatic scaling is required for Drosophila; and 2) model populations have empirical data for comparison. We determine whether coalescence, runtime, memory, estimates of diversity, the site frequency spectra, and deleterious variation are affected by scaling. We also explore the effect of varying the simulated segment length and burn-in times. We find that the typical 10N generation burn-in is often not sufficient for full coalescence to occur in human or Drosophila simulations. As expected, memory and runtime increase as the scaling coefficient decreases and the length of the simulated segment increases. We show that simulating larger segments in humans is preferable, as it produces a smaller variance in diversity estimates. Conversely, in Drosophila it is preferable to simulate smaller segments and concatenate them into full genome for achieving comparable levels of diversity to empirical data. We find that aggressive scaling leads to stronger negative selection and ultimately amplifies the strength of background selection on flanking variation. Author SummaryScaling is a common approach to make population genetic simulations more computationally tractable. However, the implications of scaling and best practices for scaling are still unknown. This study highlights the importance of carefully considering scaling practices for forward-in-time population genetics simulations. We provide insights about the trade-offs between computational efficiency and accuracy of scaled simulations relative to empirical data, in human and Drosophila. We achieved this by varying the species demographic model; the method of coalescence; the simulated genomic element length; and the scaling factor. For each combination of parameters genetic diversity was quantified and computational was efficiency tracked. Our findings suggest that when simulating populations, such as humans, where moderate scaling is required, one should simulate larger genomic segments for more accurate measures of diversity. Scaling seems to cause an inflation of diversity in human simulations relative to empirical data. On the other hand, in populations where more aggressive scaling is required, such as Drosophila, simulating smaller segments is advantageous. The scaling factor increases substantially in Drosophila studies, and the simulated data experiences a drastic drop in diversity, relative to empirical data, and an increased effect of purifying selection.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Ferrari, T., Feng, S., Zhang, X., Mooney, J. A.. 2024-04-29. Towards Simulation Optimization: An Examination of the Impact of Scaling on Coalescent and Forward Simulations. https://doi.org/10.1101/2024.04.27.591463

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Measuring the strength of selection and pollen limitation on flower colour along an urban rural cline in Hesperis matronalis

Closely located urban and rural environments can differ in temperature, water availability, species diversity, and more. As a result, organisms in urban environments may experience different selection than those in rural environments. We investigated whether differences in selection might explain a previously identified urban-rural cline in the flower colour of Hesperis matronalis (dame's rocket). To explore whether plants in urban and rural environments are impacted by possible differences in pollinator availability or behavior, we performed a pollen supplementation experiment. We did not detect an effect of pollen supplementation on seed production in either setting (urban or rural), indicating that there is limited opportunity for any differences in pollinator availability or visitation to explain the cline in flower colour. We also measured the strength of selection acting on flower colour to investigate if it differed between urban and rural populations. In all but one population, we failed to detect significant linear or non-linear selection on flower colour, suggesting that selection on flower colour does not differ between urban and rural populations. Our results suggest that the urban-rural flower colour cline is likely not caused by differences in selection or pollen-limitation and may be due to stochastic forces.

evolutionary biology↗

An elongated lifespan is associated with higher oxidative protection of flight tissue in Heliconiini butterflies

Evolutionary theories of ageing often invoke trade-offs in resource allocation between somatic maintenance and other important physiological functions. One proposed mechanistic mediator of these trade-offs is oxidative stress, which arises from an imbalance between an organism's production of reactive oxygen species and its ability to detoxify them. Accordingly, many long-lived species across the animal kingdom show evidence for resistance to oxidative stress. However, it can be difficult to associate lifespan differences with oxidative phenotypes when comparing species across wide taxonomic distances, which may also show large differences in physiology. Butterflies in the long-lived Heliconius genus show a 3-fold lifespan extension and slowed ageing in comparison with their close relatives in the Heliconiini tribe, to whom they are phylogenetically, ecologically, and physiologically similar. However, proximate explanations for this extended longevity are currently lacking. Here, we leverage the neat comparative framework between Heliconius hecale and Dryas iulia, a shorter-lived Heliconiini outgroup, to test whether the observed lifespan differences between the two species are associated with differences in oxidative physiology. Our findings suggest superior oxidative protection of thoracic tissue in the longer-lived H. hecale compared to D. iulia, as evidenced by increased superoxide dismutase activity, increased total antioxidant capacity, and a corresponding reduction in lipid peroxidation in this tissue. Considering the metabolic demands of insect flight, we suggest that this oxidative phenotype may contribute to the extended longevity of Heliconius by enhancing protection of thoracic tissues against oxidative damage, representing a plausible proximate pro-longevity mechanism in this genus.

evolutionary biology↗

Both genetic and social inheritance influence female aggressive and submissive behavior in a wild primate

Agonistic interactions are important determinants of resource access in wild animals, but their genetic basis remains poorly understood. Here we use a quantitative genetics approach to estimate the heritability of aggressive and submissive behavior of wild female baboons, considering relative rates of both individual and dyadic aggression and submission. To control for the social inheritance that creates kin-based dominance hierarchies, we implemented a multi-matrix model that included a social status similarity matrix alongside the additive genetic matrix. Despite a substantial contribution of social inheritance, especially for submissive behavior, we found heritable components for both aggressive and submissive behavior (h2=0.21 and h2=0.09-0.11, respectively). In dyadic models, aggressive behavior was primarily influenced by the aggressor's genotype (a direct genetic effect), while submissive behavior was primarily affected by the social partner's genotype (an indirect genetic effect). Finally, we found evidence for a negative genetic (but not phenotypic) correlation between aggressive and submissive behavior within dyads, and a negative genetic correlation between submissive behavior and eliciting submissive behavior. Together, our results highlight how direct genetic, indirect genetic, and social inheritance effects combine to influence primate social behavior.

evolutionary biology↗