<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gene frequency simulation &#8211; Science</title>
	<atom:link href="https://scienmag.com/tag/gene-frequency-simulation/feed/" rel="self" type="application/rss+xml" />
	<link>https://scienmag.com</link>
	<description></description>
	<lastBuildDate>Sun, 04 Oct 2026 14:08:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>

<image>
	<url>https://scienmag.com/wp-content/uploads/2024/07/cropped-scienmag_ico-32x32.jpg</url>
	<title>gene frequency simulation &#8211; Science</title>
	<link>https://scienmag.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">73899611</site>	<item>
		<title>New Algorithm Simulates Gene Frequency Histories Exactly, Even as Populations Change Size</title>
		<link>https://scienmag.com/new-algorithm-simulates-gene-frequency-histories-exactly-even-as-populations-change-size/</link>
		
		<dc:creator><![CDATA[Juliet Wilcox]]></dc:creator>
		<pubDate>Sun, 04 Oct 2026 14:08:57 +0000</pubDate>
				<category><![CDATA[Biology]]></category>
		<category><![CDATA[allele frequency]]></category>
		<category><![CDATA[BMC Bioinformatics]]></category>
		<category><![CDATA[computational biology]]></category>
		<category><![CDATA[demographic changes in populations]]></category>
		<category><![CDATA[demographic history in genetic simulations]]></category>
		<category><![CDATA[demography]]></category>
		<category><![CDATA[diffusion bridge]]></category>
		<category><![CDATA[evolutionary biology simulation tools]]></category>
		<category><![CDATA[exact gene frequency simulation algorithms]]></category>
		<category><![CDATA[exact simulation]]></category>
		<category><![CDATA[gene frequency simulation]]></category>
		<category><![CDATA[genetic drift]]></category>
		<category><![CDATA[genetic drift and natural selection]]></category>
		<category><![CDATA[genetic variation over generations]]></category>
		<category><![CDATA[mutation]]></category>
		<category><![CDATA[population genetics]]></category>
		<category><![CDATA[population size fluctuations]]></category>
		<category><![CDATA[selection]]></category>
		<category><![CDATA[software for genetic modeling]]></category>
		<category><![CDATA[stochastic modelling]]></category>
		<category><![CDATA[stochastic processes in genetics]]></category>
		<category><![CDATA[Wright–Fisher diffusion]]></category>
		<category><![CDATA[Wright–Fisher diffusion model]]></category>
		<guid isPermaLink="false">https://scienmag.com/?p=235274</guid>

					<description><![CDATA[Researchers have unveiled EWF 2.0, an exact simulation algorithm that generates statistically perfect allele frequency trajectories under the Wright–Fisher diffusion even when population size changes over time, with no added computational cost.]]></description>
										<content:encoded><![CDATA[<p>Population geneticists have long relied on a deceptively simple mathematical object to describe how the frequency of a gene variant waxes and wanes over generations: the Wright–Fisher diffusion. This stochastic process captures the random drift of allele frequencies under the combined influence of mutation, natural selection and the randomness of reproduction in finite populations. Yet a stubborn technical gap has persisted at the heart of the simulation methods built on this model. Most real populations do not maintain a constant size through time; they expand after bottlenecks, crash during famines, and migrate across landscapes. When demography varies, the mathematics of the diffusion changes character, and the exact simulation algorithms that researchers have painstakingly developed over the past decade simply stop working. A new piece of software, described in BMC Bioinformatics, closes that gap.</p>
<p>The tool, called EWF 2.0, was developed by Jaromir Sant of the University of Turin and the Collegio Carlo Alberto, together with Paul A. Jenkins, Jere Koskela and Dario Spanò of the University of Warwick and Newcastle University. It extends an earlier line of work known as the EWF algorithms, which allow researchers to draw exact samples from the Wright–Fisher diffusion — that is, to generate simulated allele frequency trajectories whose statistical properties match the theoretical model perfectly, without the approximation errors that plague standard numerical schemes. The crucial innovation in version 2.0 is that the population size is no longer required to be constant. Instead, the demographic history can change over time, which mathematically turns the drift coefficient of the diffusion into a time-inhomogeneous one: a process whose random dynamics depend explicitly on when you look at it.</p>
<p>To appreciate why this matters, it helps to understand what exact simulation means in this context. The Wright–Fisher diffusion is a stochastic differential equation, and the most common way to simulate such equations is to discretise time into small steps and approximate the motion between them. These Euler-type schemes are easy to implement but introduce bias: the simulated trajectories are not true draws from the model, and the bias can be difficult to quantify, particularly for quantities that depend on the fine structure of the path rather than just its endpoints. Exact algorithms sidestep this problem entirely. Using clever probabilistic constructions — often based on rejection sampling ideas in which a candidate path is proposed and then accepted or rejected according to criteria that guarantee the output has exactly the right distribution — they produce trajectories that are statistically indistinguishable from the real thing, whatever the intended application.</p>
<p>The difficulty with time-varying demography is that these rejection-based constructions were designed for diffusions with fixed coefficients. When the population size changes, the drift term of the allele frequency dynamics acquires a time-dependent factor, and the bounds and transformations that make the earlier algorithms valid no longer hold. Previous versions of EWF could handle time-varying mutation and selection in certain settings, but the demographic component had to remain static. Since virtually every dataset from natural populations — humans, livestock, pathogens, crop species — carries the imprint of a fluctuating census history, this limitation was a serious obstacle for anyone hoping to use exact simulation in realistic inference pipelines.</p>
<p>EWF 2.0 removes that obstacle. According to the authors, the algorithm accommodates a specified demographic history alongside mutation parameters, a selection function and a set of sampling times, and from those inputs it generates exact draws from the law of the corresponding Wright–Fisher diffusion. Perhaps more strikingly, it can also simulate diffusion bridges: trajectories that are conditioned to start at one allele frequency and end at another. Bridge simulation is a notoriously hard problem, because the conditioning fundamentally alters the dynamics of the process, and the authors note that existing methods cannot handle time-varying mutation and selection rates in this setting. Bridges are precisely what many statistical applications need, since inferring past evolutionary forces often amounts to asking which hidden paths most plausibly connect observed genetic data points collected at different times.</p>
<p>The applications of such a tool extend across modern population genetics. Ancient DNA studies, for example, now routinely provide snapshots of allele frequencies at multiple time points separated by hundreds or thousands of generations. Reconstructing the trajectories between those snapshots — and quantifying the uncertainty around them — requires simulating bridges under a model that includes the demographic history inferred from archaeological and genomic evidence. Similarly, forward-time simulations used to benchmark inference methods, to test the power of genome-wide association designs, or to explore how selection responds to environmental change all benefit from trajectories that are exact rather than approximate. Any bias in the simulator propagates into the conclusions drawn from it, so the guarantee of exactness is not a mathematical luxury but a practical safeguard.</p>
<p>The authors validated their implementation using distributional tests, including Kolmogorov–Smirnov tests and quantile-quantile plots, which compare the empirical distribution of simulated quantities against theoretical expectations. Agreement in these tests provides strong evidence that the algorithm samples from the intended law, since even subtle biases in a simulation scheme tend to show up as systematic deviations in such comparisons. Equally important from a practical standpoint is the performance result: despite its greater generality, EWF 2.0 retains the same runtime as previous versions of the algorithm. Adding the flexibility of time-varying demography therefore comes at no computational penalty, which the authors highlight as ensuring efficiency and scalability for large-scale simulation studies.</p>
<p>The software is written up as an open-access methods paper and the code is freely available on GitHub, lowering the barrier for other groups to adopt it. In a field where simulation underpins everything from method validation to likelihood-free inference, a tool that combines exactness, demographic realism and competitive speed is likely to find rapid uptake. The work was supported by funding from the Italian Ministry of University and Research through a PRIN 2022 grant financed by the European Union&#8217;s Next Generation EU programme, reflecting the increasingly international and computationally oriented character of statistical genetics research.</p>
<p>Looking at the broader picture, the advance illustrates a familiar pattern in computational science: the gap between the models researchers want to use and the models their tools can actually handle. The Wright–Fisher diffusion with time-varying demography has been part of the theoretical literature for decades, and approximate simulators have long been able to produce plausible-looking trajectories under it. What was missing was the guarantee — the assurance that a simulated history is a genuine draw from the specified model rather than an artefact of numerical approximation. By extending exact simulation into the time-inhomogeneous regime, EWF 2.0 brings a foundational class of population genetic models fully within reach of rigorous simulation-based inference, and it does so without asking practitioners to sacrifice speed. For studies probing how genes rose and fell across the shifting demographic tides of the past, that combination may prove hard to resist.</p>
<p><strong>Subject of Research:</strong> Exact simulation of allele frequency trajectories under the Wright–Fisher diffusion with time-varying demography</p>
<p><strong>Article Title:</strong> EWF 2.0: exact sampling of allele trajectories using the Wright–Fisher diffusion with time-varying demography</p>
<p><strong>Article References:</strong> Sant, J., Jenkins, P. A., Koskela, J., &amp; Spanò, D. (2026). EWF 2.0: exact sampling of allele trajectories using the Wright–Fisher diffusion with time-varying demography. <em>BMC Bioinformatics</em>. <a href="https://doi.org/10.1186/s12859-026-06576-z" rel="noopener noreferrer">https://doi.org/10.1186/s12859-026-06576-z</a></p>
<p><strong>Image Credits:</strong> AI Generated</p>
<p><strong>DOI:</strong> <a href="https://doi.org/10.1186/s12859-026-06576-z" rel="noopener noreferrer">10.1186/s12859-026-06576-z</a></p>
<p><strong>Keywords:</strong> Wright–Fisher diffusion, exact simulation, population genetics, allele frequency, demography, genetic drift, selection, mutation, diffusion bridge, computational biology, stochastic modelling, BMC Bioinformatics</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">235274</post-id>	</item>
	</channel>
</rss>
