Skip to main content
PLOS Computational Biology logoLink to PLOS Computational Biology
. 2022 Aug 19;18(8):e1010422. doi: 10.1371/journal.pcbi.1010422

Recombination-aware phylogeographic inference using the structured coalescent with ancestral recombination

Fangfang Guo 1, Ignazio Carbone 1,2, David A Rasmussen 1,3,*
Editor: Stephan Schiffels4
PMCID: PMC9447913  PMID: 35984849

Abstract

Movement of individuals between populations or demes is often restricted, especially between geographically isolated populations. The structured coalescent provides an elegant theoretical framework for describing how movement between populations shapes the genealogical history of sampled individuals and thereby structures genetic variation within and between populations. However, in the presence of recombination an individual may inherit different regions of their genome from different parents, resulting in a mosaic of genealogical histories across the genome, which can be represented by an Ancestral Recombination Graph (ARG). In this case, different genomic regions may have different ancestral histories and so different histories of movement between populations. Recombination therefore poses an additional challenge to phylogeographic methods that aim to reconstruct the movement of individuals from genealogies, although also a potential benefit in that different loci may contain additional information about movement. Here, we introduce the Structured Coalescent with Ancestral Recombination (SCAR) model, which builds on recent approximations to the structured coalescent by incorporating recombination into the ancestry of sampled individuals. The SCAR model allows us to infer how the migration history of sampled individuals varies across the genome from ARGs, and improves estimation of key population genetic parameters such as population sizes, recombination rates and migration rates. Using the SCAR model, we explore the potential and limitations of phylogeographic inference using full ARGs. We then apply the SCAR to lineages of the recombining fungus Aspergillus flavus sampled across the United States to explore patterns of recombination and migration across the genome.

Author summary

Phylogeographic methods are widely used to reconstruct the historical movement of individuals between different populations. When applied to infectious pathogens, these methods are often used to reconstruct the origin or source of novel pathogen lineages. Most existing phylogeographic methods reconstruct movement based on a single phylogenetic tree, which is assumed to reflect the genetic ancestry of all sampled individuals. However in populations undergoing recombination, genetic material can be exchanged between lineages such that individuals may inherit different regions of their genome from different ancestors. In this case, phylogenetic relationships among individuals can only be captured by a reticulated network rather than any single tree. Ancestral Recombination Graphs (ARGs) provide one way of capturing these reticulate relationships and we develop new models that allow for demographic inference of historical population sizes, recombination rates and migration rates between subpopulations from ARGs. By accounting for recombination, our models not only allow for accurate demographic inference, but can take full advantage of the additional information contained in ARGs about how ancestry varies across genomes to more precisely reconstruct the movement of genetic material between populations.

Introduction

In the absence of any recombination, populations evolve clonally and the ancestral relationships among all individuals can be captured by a single genealogy or phylogenetic tree [1, 2]. However, in the presence of recombination, individuals can inherit different parts of their genome from different ancestors, leading to a mosaic of phylogenetic relationships across the genome that cannot be captured by any single tree. Since many population genetic and phylogeographic methods infer demographic parameters (e.g. population sizes, migration rates) from a phylogeny assumed to reflect the clonal ancestry of sampled individuals, recombination poses a major challenge to demographic inference.

Rates of recombination vary dramatically from asexual populations that experience no recombination to sexually outcrossing populations where recombination occurs between parental genomes every generation [35]. How demographic inference methods deal with recombination largely depends on the assumed rate of recombination. If recombination rates are very low, individuals will inherit large regions of their genome (i.e. non-recombinant blocks) from the same set of ancestors. Moreover, recombination will only impact the ancestry of lineages directly involved in a recombination event while preserving the ancestral relationships among non-recombinant lineages [2]. In this case, phylogenies can be reconstructed from non-recombinant regions of the genome or recombining lineages can be identified and removed. At the other extreme, very high rates of recombination will break apart linkage between loci, such that different loci can be treated independently [6]. In this case population genomic methods that treat each locus as (pseudo-)independent can be used to draw demographic inferences [7].

However, in between these two extremes lie many organisms that undergo intermediate amounts of recombination, including many important microbial pathogens [8]. For example, this includes many fungi with mixed mating systems that are predominately clonal but occasionally reproduce sexually and thus recombine [9]. Such intermediate rates of recombination pose a particular challenge to demographic inference as it may be difficult to identify and accurately reconstruct phylogenetic relationships from any non-recombinant genomic region. At the same time, recombination is not frequent enough to breakdown correlations among linked loci, violating assumptions of independence between loci and simply concatenating alignments may lead to phylogenetic reconstructions inconsistent with the true ancestry of the sample [10].

Ideally, the differing but correlated patterns of ancestry across the genome would be captured using ancestral recombination graphs (ARGs) [11]. An ARG describes the complete genealogical history of sampled individuals, including local trees representing the genealogy of sampled individuals over a particular non-recombinant region of the genome and the recombination events connecting lineages across local trees. Although reconstructing full ARGs is notoriously difficult, recent advances now allow ARGs to be accurately reconstructed for a modest number of samples (i.e. <100). Notably, ARGweaver [12] allows for full Bayesian inference of ARGs under the sequential Markov coalescent (SMC) model, an approximation to the full coalescent with recombination [13]. More recent methods allow for ARGs to be approximated for much larger datasets as a series of correlated local or marginal trees [7, 14]. These methods however generally do not reconstruct the recombination events required to explain the topological differences between local trees.

In addition to recombination, population structure can also strongly shape the genealogical history of a population. The structured coalescent extends basic coalescent models by allowing lineages to migrate between different subpopulations or demes [15]. While the structured coalescent is most often used to model geographic structure, the theory holds for many different forms of population structure (e.g. assortative mating within a population) [16]. Under the structured coalescent, migration rates can be estimated from a genealogy of individuals sampled from different populations [17], and structured coalescent models form the basis of several phylogeographic inference frameworks [1820]. However, population structure also poses a major challenge to demographic inference under coalescent models because lineages in the genealogy are no longer exchangeable in the sense that the probability of two lineages coalescing will depend on their ancestral location or state. Statistical inference under the structured coalescent therefore requires the ancestral state of lineages to be imputed, and early methods implemented algorithms to sample ancestral states using Markov chain Monte Carlo (MCMC) or other sampling-based methods [17]. Because jointly estimating the ancestral locations of all lineages along with the demographic parameters of interest poses yet another computational challenge, more recent methods make various approximations to the full structured coalescent to track the movement of lineages probabilistically, such that the unknown ancestral locations can be marginalized or integrated over [2123].

Given that the statistical and computational performance of ARG reconstruction methods continue to improve at a rapid pace [24, 25], we explore phylogeographic inference where the ARG is assumed to be known or at least reconstructed accurately. We first develop a new model we call the Structured Coalescent with Ancestral Recombination (SCAR) to estimate demographic parameters in the presence of both migration and recombination from a reconstructed ARG. In essence, the SCAR model extends Hudson’s Coalescent with Recombination model [6] to include migration by using approximations to the structured coalescent that marginalize over unknown ancestral states [2123]. Next, we test the limits of reconstructing ARGs from genomic sequence data using ARGweaver and then explore how accurately demographic parameters can be inferred from reconstructed ARGs using the SCAR model. Using simulated sequence data, we show that parameters such as recombination rates, migration rates and population sizes can be accurately estimated from ARGs under the SCAR model as long as the underlying ARG can be accurately reconstructed. We then apply this approach to the plant fungal pathogen Aspergillus flavus to estimate recombination and migration rates between natural populations in several US states.

Models and methods

The SCAR model

Description of the SCAR model

Here we incorporate recombination and population structure simultaneously into the coalescent process. We consider a population divided into q different demes or (sub)populations. Each population k is composed of Nk haploid individuals which reproduce each generation to generate a random number of offspring (i.e. a Wright-Fisher population). Two lineages can exchange genetic material through recombination, in which case their children may inherit genetic material from both parents. Lastly, we allow individuals to transition or migrate between populations.

Three different types of events can therefore occur in the ancestry of sampled lineages under this model: coalescent events, recombination events and migration events (see Fig 1). We begin by considering the rate at which each one of these events will occur among lineages in the genealogy.

Fig 1. An ancestral recombination graph.

Fig 1

In this example, an ARG was simulated for five individuals sampled in two subpopulations (0 and 1) using msprime [26]. Two recombination events happen, dividing the genome into three segments each with their own local tree. The first and second local tree have the same topology, because after the recombination event (indicated by nodes 10 and 11) the two parent lineages coalesce with one another (indicated by the grey arrow) at a hidden coalescent event (indicated by node 12), which would not normally be observed in the local trees. The second and the third local tree are topologically discordant due to a recombination event (indicated by nodes 7 and 8).

Coalescent events: As under the standard coalescent for a Wright-Fisher population [27, 28], the probability of two lineages finding their most recent common ancestor in a given generation is inversely proportional to the population size. Pairs of lineages in population k will therefore coalesce at rate λk=1Nk per generation. For now, we will assume lineages in different populations cannot coalesce, although this assumption can be relaxed (see for example Volz [21]). The total coalescent rate among all pairs of lineages in population k is (ak2)λk, where ak is the number of lineages in k. For now we will also assume the ancestral location of lineages is known.

Recombination events: As in earlier models for the coalescent with recombination, each lineage in the tree undergoes a recombination event at rate r per site along a genome of length L [6, 26, 29]. However, because two parents contribute genetic material to a child lineage at a recombination event, not all of the genetic material each parent lineage carries will be ancestral to the sample [6]. We therefore need to track which sites in a lineage’s genome are ancestral or non-ancestral to the sample to determine whether or not a recombination event will impact the genealogy of the sample.

Following Kuhner et al. [29], we use the term eligible links to refer to sites that are eligible to undergo recombination because they separate two or more sites destined to contribute genetic material to the sample. While recombination events in regions of non-ancestral material will generally have no effect on the genealogy of sampled individuals, ancestral material may be separated by regions of trapped non-ancestral material [30] (S1 Fig), and recombination events occurring within trapped non-ancestral material may also impact the genealogy of the sample by splitting ancestral material to the left and right of the breakpoint onto different parental genomes. If we define lmin as the leftmost position and rmax as the rightmost position in the genome with genetic material ancestral to the sample, the number of eligible links Bi carried by each lineage i is therefore determined by the number of sites within the half-closed interval [lmin, rmax) [26]. The total rate at which lineage i recombines is therefore rBi. We can then compute the total recombination rate among lineages in population k as ri=1akBi.

Migration events: Lineages migrate between populations k and l at rate γkl in forwards time. The total rate at which all lineages in population k migrate to another population is therefore aklkqγkl.

As in other coalescent models, the time to the next event of each type is exponentially distributed according to the rate of each event type. Furthermore, we assume the coalescent, recombination and migration processes are independent conditional upon the number of lineages ak in each population state. That is, while events may change the number of lineages in each state, the different events do not influence the probability of the other events occurring over time intervals in which ak is constant. The three processes are therefore independent, competing processes where the time to the next event is exponentially distributed according to the total rate Ω at which events of any type occur:

Ω=k=1q((ak2)λk+ri=1akBi+aklkqγkl). (1)

The likelihood of an ARG under the structured coalescent with known ancestral states

We now consider how to compute the likelihood of a fully known ancestral recombination graph G, where all events in the graph are observed including the source and destination of each migration event such that the ancestral location of all lineages is known at any point in time. Going backwards in time, at a coalescent event two lineages in state k merge into a single parent and the total number of lineages ak in the ARG in state k decreases by one. At a recombination event, a lineage divides into two parent lineages and ak increases by one. We seek to compute the likelihood L(G|θ) of G under the SCAR model given a set of demographic parameters θ = {λ, r, γ}, allowing for likelihood-based inference of these parameters from an ARG.

For an ARG with ec coalescent events, er recombination events, and em migration events, there will be a total of e = er + ec + em events in the graph. The ARG can be divided into e tree intervals, within which the total number of lineages in the ARG (and in each population) remains the same. We will let aks be the number of lineages present in the tree during the s-th tree interval. We denote the waiting time between each event as Δts = tsts−1.

In order to track which lineages are involved in particular events, let h(s) be a function that returns the lineage(s) involved in a particular event s. We then use the notation wh(s) and vh(s) to refer to the state of the lineages involved in event s, which is either a migration event from subpopulation wh(s) to vh(s), a coalescent event in population vh(s) or a recombination event involving lineage h(s). Assuming exponentially distributed waiting times between events, the coalescent likelihood has the general form:

L(G|θ)=s=1e[exp(-k=1q[(aks2)λk+akslkqγkl+ri=1aksBi]Δts)·(δemsγwh(s)vh(s)+δecsλvh(s)+δersrBh(s))] (2)

The exponential term gives the probability that in the sth time interval with duration Δts no coalescent, recombination or migration event occurs in any population. The remaining term is the point probability density of the event that terminates the interval. We use the indicator variables δecs, δers and δems to indicate whether the event terminating interval s is a coalescent, migration or recombination event, respectively; where δes is 1 when the corresponding event type terminates the interval and 0 otherwise.

The likelihood of an ARG with unknown ancestral states

Because we typically do not observe the ancestral location or state of lineages, they must either be jointly inferred along with the other model parameters or integrated (marginalized) out when computing the likelihood of the ARG. Here, we use the approximation first proposed by Volz [21] to track the ancestral state of lineages probabilistically, and then marginalize over ancestral states using these lineage state probabilities.

With unknown ancestral states, the rate at which a pair of lineages i and j coalesce now depends on the probability that both lineages are in the same population at time t in the past:

λij(t)=kqpik(t)pjk(t)Nk, (3)

where pik and pjk are the probabilities that lineage i and lineage j are in state k, respectively. How these lineage state probabilities are computed is explained further below in Tracking lineage state probabilities.

The total rate at which all lineages a coalesce can then be computed by summing over all pairs of lineages:

λ(t)=iajiakqpik(t)pjk(t)Nk. (4)

However, repeatedly summing over all possible pairs of lineages can become computationally burdensome, especially as the number of lineages grows large. To avoid this, we can approximate the number of lineages in each state using the lineage state probabilities:

a^k(t)=i=1apik(t). (5)

We then approximate the total rate at which pairs of lineages coalesce in state k as:

Λk(t)=max[0,a^k(t)(a^k(t)-1)2]1Nk. (6)

We then compute the total recombination rate in state k as:

Rk(t)=ri=1aBipik(t). (7)

The total likelihood of the ARG when integrating over ancestral states then becomes:

L(G|θ)=s=1e[exp(-k=1q[Λk(ts)+Rk(ts)]Δts)·(δecsλvh(s)+δersrBh(s))] (8)

Note that while the migration rates do not directly enter into likelihood function they influence the lineage state probabilities pik that in turn determine Λk and Rk.

The rates Λk(ts) and Rk(ts) are assumed to be piecewise constant between events in (8). If the waiting times Δts between events are long such that these rates change significantly over a time interval, we can increase the numerical accuracy of the likelihood calculation by dividing each time interval s into xs shorter sub-intervals:

L(G|θ)=s=1e[z=1xs[exp(-k=1q[Λk(ts,z)+Rk(ts,z)]Δts,z)]·(δecsλvh(s)+δersrBh(s))], (9)

where Δts, z is the length of sub-interval z between times ts, z and ts, z−1.

Tracking lineage state probabilities

Going backwards in time, a lineage currently residing in population k will migrate to population l at rate γlk. Assuming the probability of a lineage residing in a population is independent of the location of all other lineages, the migration process along each lineage can be modeled as a continuous time Markov process on a discrete state space [21]. We can then use a system of differential equations to track how the probability of a lineage residing in each state changes backwards through time:

ddtpik=lq(pilγkl-pikγlk). (10)

Given a vector of initial lineage state probabilities pi(0) at time zero, we can analytically solve (10) above for pi(t) at some time t further in the past:

pi(t)=expQtpi(0), (11)

where the matrix Q is that transition rate matrix derived from γ:

Q=[-kγk,1γ1,2γ1,qγ2,1-kγk,2γ2,qγq,1γq,2-kγk,q].

As originally shown in [23], these equations are approximate because they assume all lineages evolve independently such that the probability of one lineage residing in a population is completely independent. In contrast, under the exact structured coalescent model, lineages states may be correlated because the observation that two lineages have or have not coalesced can be informative about their location. For example, two or more lineages are unlikely to reside in the same population over long periods of time and not coalesce if Nk is small in population k, such that the observation that the lineages have not coalesced increases the probability of these lineages being in different populations. The bias introduced by ignoring the non-independence of lineages is most extreme when: 1) migration rates are low relative to coalescent rates and 2) either coalescent or sampling fractions are highly asymmetric between populations [23]. In these cases, a more accurate approximation to the structured coalescent exists but computing lineages state requires solving a high-dimensional system of differential equations. We therefore continue to assume independence among lineages but note that this more complex approximation can be substituted when necessary.

Statistical inference under the SCAR model

We use a Bayesian MCMC approach to infer the posterior distribution of demographic parameters. In particular, we use a Metropolis-Hastings algorithm to sample from the joint posterior distribution of parameters given a fixed ARG G:

p(θ|G)L(G|θ)p(θ), (12)

where the likelihood L(G|θ) is computed as in (8) and p(θ) is the prior distribution on the demographic parameters. In simulation experiments, we chose a uniform distribution for p(θ) such that our estimates are minimally influenced by the prior but use informative priors when performing inference from real data.

ARG reconstruction using ARGweaver

We use ARGweaver [12] to reconstruct ARGs from sampled genomic sequence data. ARGweaver uses the SMC approximation of McVean and Cardin [13] to compute the likelihood of an ARG evolving under the coalescent with recombination. In the model assumed by ARGweaver, exactly one recombination event is assumed to occur at each recombination breakpoint. A recombination event may not necessarily alter the topology of two neighboring trees in the ARG because a recombination event may only alter the time at which two lineages coalesce, but recombination events that affect neither the topology nor coalescent times are ignored. Coalescent events are further constrained to occur at discrete time points. The coalescent likelihood of the ARG is then combined with the likelihood of the sequence data evolving along each local tree in the ARG to compute the joint likelihood of the sequence data and ARG. ARGweaver then employs a Bayesian MCMC approach to sample ARGs from the corresponding posterior distribution. To obtain a single, representative ARG, we choose the ARG from the posterior sample with either the maximum joint likelihood, maximum (sequence) likelihood, or from the final MCMC iteration.

To facilitate computing the likelihood of ARGs under the SCAR model, we convert the ARG obtained from ARGweaver to the tskit tree sequence format [26]. The tskit tree sequence format provides a concise encoding of an ARG as a series of correlated local trees corresponding to the genealogy of the sample over different genomic regions [26, 31]. The tree sequence format also facilitates computing the likelihood of the ARG under the SCAR model. We can simply perform a post-order traversal through the ARG by iterating over each node, computing the likelihood of the event at the node, updating the edges (i.e. lineages) present in the ARG after the event, and computing the likelihood of no event occurring between nodes as in Eq (8). Code for converting ARGs into tskit tree sequence format and computing the likelihood of the ARG is available at https://github.com/sunnyfangfangguo/SCAR_project_repo.

Simulation study

We simulated ARGs along with genomic sequence data to test the accuracy of ARG reconstruction using ARGweaver and the statistical performance of inference under the SCAR model before applying the method to real data. Simulated ARGs (tree sequences) were generated by msprime [26]. To test the accuracy of ARGweaver in reconstructing ARGs, sequence alignments for each local tree in an ARG were generated with a HKY substitution model [32] with the transition/transversion ratio κ = 2.75 using Pyvolve [33]. Our simulations are similar to those of [12], which assumed a fixed effective population size Ne = 100, genome length L = 10,000, and recombination rate per site per generation r = 2.5e − 06, and varied the mutation-to-recombination rate ratio μ/r from 1 to 2048. 100 simulations were conducted for each μ/r ratio.

In order to quantify ARG reconstruction accuracy, normalized Robinson-Foulds (RF) distances [34, 35] between corresponding simulated local trees and inferred local trees for each genome region were calculated as a metric of local tree accuracy, which varies between 0 and 1. Kendall-Colijn (KC) distances, which in addition to tree topology also consider differences in branch lengths, were also computed between simulated and inferred local trees [36]. RF distances and KC distances along the whole chromosome were then calculated as an average distance over all genome regions. We also compared the true number of recombination events in the simulations to the number of recombination events inferred by ARGweaver. From S2 Fig, we can clearly see that the ARG with the maximum iteration included the number of recombination events closest to the true number, while ARGs with the maximum likelihood consistently overestimated and ARGs with the maximum joint likelihood consistently underestimated the number of recombination events across all the ratios. Thus, we selected the ARG with the maximum iteration to show the accuracy of ARGweaver.

In order to test demographic inference under the SCAR model, three simulation experiments were run: we (1) estimate the effective population size, recombination rate and migration rate directly from the true simulated ARG; (2) jointly estimate the recombination rate and migration rate from the true ARG; and (3) estimate the effective population size, recombination rate, and migration rate from ARGs inferred by ARGweaver. When estimating migration rates between populations, we treat the ancestral location of each lineage as unknown and track the state of each lineage probabilistically. Again, 100 simulations were run for each simulation experiment. In the first two experiments, for each simulation, the true value of the estimated parameter(s) were drawn from an evenly spaced grid of values, while other parameters were kept constant. When only estimating the effective population size or recombination rate, we simulate ARGs without population structure.

Results

Testing the accuracy of ARG inference using ARGweaver

Accuracy of local trees in ARGweaver inferred ARGs

Because our inference methods ultimately rely on the ability to accurately reconstruct ARGs, we first test the ability of ARGweaver to reconstruct ARGs from genomic data simulated under different mutation-to-recombination rate ratios μ/r in order to vary the number of phylogenetically informative sites (SNPs) between each recombination breakpoint. To evaluate the accuracy of ARGweaver, we use normalized Robinson-Foulds (RF) distances to quantify the topological differences between the simulated and reconstructed local trees in the ARG. From Fig 2 we can see that, with increasing μ/r ratios, the median RF distances decrease from 0.819 to 0.037, showing a clear increase in ARGweaver’s performance to accurately reconstruct the topology of local trees in the ARG. Likewise, Kendall-Colijn (KC) distances, which take into account branch lengths in addition to tree topology, show a similar trend of improved performance with increasing μ/r ratios (S3 Fig). This trend is likely due to the fact that sequence diversity, and thus the number of phylogenetically informative sites between each recombination breakpoint, increases with the μ/r ratio (S4 Fig).

Fig 2. Normalized RF distances between the true (simulated) local trees and the local tree inferred by ARGweaver in the reconstructed ARG under different ratios of mutation rate / recombination rate.

Fig 2

For each simulation, Ne is 100, sample size is 50, genome length is 1e04, and recombination rate r is 2.5e-06. Under each ratio, 100 simulations were run.

Accuracy in the number of inferred recombination events

We compared the number of recombination events inferred by ARGweaver against the true number known from simulations under 12 different μ/r ratios to further test the accuracy of ARGweaver. The number of recombination events inferred by ARGweaver was significantly and positively correlated with the true number of recombination events when the μ/r ratio ≥ 4, while at lower ratios the correlation is poor indicating it may not be possible to estimate the true number of recombination events unless the mutation rate is at least several times higher than the recombination rate (Fig 3). As the μ/r ratio increases, the correlation generally becomes stronger.

Fig 3. Simulated number of recombination events versus number inferred by ARGweaver under different ratios of mutation rate / recombination rate.

Fig 3

Each diagonal line is x = y. ρ and p are the correlation coefficient between the simulated and estimated number of events and corresponding p-value, respectively. We selected the ARG sampled by ARGweaver during the final MCMC iteration to count the number of recombination events.

Testing the SCAR model on simulated ARGs

Statistical performance of estimating Ne, recombination rate r, and migration rate M

Next, we tested how well we are able to estimate effective population sizes Ne, recombination rates r, and migration rates M from simulated ARGs known without error under the SCAR model. Fig 4 shows that the SCAR model can accurately estimate all three of these parameters across a wide range of true values. Table 1 summarizes the performance of our estimates across simulations in terms of the relative bias, coverage of the 95% credible intervals, and calibration between true and estimated parameters. We find that migration rate estimates are very accurate when the true migration rates are smaller than 1 per unit time. However, in some simulations the migration rates are overestimated, especially when the true rate was larger than 1, indicating an inability to precisely estimate high rates likely due to the fact that the likelihood function becomes very flat across a wide range of higher rates. After testing the SCAR model on simulations with different sample sizes (S5 Fig), we found that the additional information provided by increased sampling could provide more accurate and precise migration rate estimates.

Fig 4. Inference of effective population size Ne (A), migration rate M (B), and recombination rate r (C) from 100 known ARGs.

Fig 4

Migrations rates are assumed to be equal (symmetric) between two populations. Dots and blue bars represent the median posterior estimates and the 95% credible intervals for each simulation.

Table 1. The relative bias, coverage, and calibration of estimating Ne, r, M by the SCAR model.
Parameter Relative error Coverage Calibration
N e +1.23% 92 in 100 times 0.98
r +1.87% 97 in 100 times 0.98
M +22.36% 95 in 100 times 0.85

Except for the parameter being systematically varied, all parameters were fixed at constant values: effective population sizes Ne = 1.0, sample sizes k = 100, genome length L = 10000, recombination rate r = 0.0, migration rate M = 0. For models with migration, migration rates are assumed to be symmetric between two subpopulations

We further tested the performance of the SCAR model when jointly estimating the recombination rate r and migration rate M together. As shown in Fig 5, the SCAR model can accurately infer the marginal posterior distribution of each parameter even when the two parameters are jointly estimated together.

Fig 5. Joint estimation of recombination and migration rates together.

Fig 5

Dots and blue bars represent the median posterior estimates and the 95% credible intervals of the marginal posterior distribution of each parameter from each simulation.

Statistical performance of estimating recombination rates from ARGs inferred by ARGweaver

In order to see how ARG reconstruction errors influence our estimates, we estimated recombination rates using the SCAR model from ARGs reconstructed by ARGweaver rather than the true simulated ARGs. We also compared to the recombination rates estimated by ARGweaver, which simply counts recombination events in the reconstructed ARG and divides by the total branch-length of the ARG to estimate the recombination rate [37]. From Fig 6 we can see that the accuracy of recombination rates estimated by both SCAR and ARGweaver improves with increasing μ/r ratios. However, when the μ/r ratio exceeds 1024, recombination rates become slightly over-estimated. We suspect that the increased accuracy of recombination rate estimates at higher μ/r ratios is due to increasing phylogenetic information about the local trees and thus power to distinguish true recombination events from uncertainty in the topology of local trees. However, at very large ratios individual sites may become phylogenetically uninformative due to recurrent or convergent mutations (i.e. saturation effects) and we therefore may become overconfident that discordance between local trees is due to recombination rather than phylogenetic errors.

Fig 6. Recombination rates estimated using ARGweaver and SCAR from ARGs inferred by ARGweaver under different μ/r ratios.

Fig 6

The dashed red line is the simulated recombination rate in all simulations. Under each μ/r ratio, 100 simulations were run.

Finally, we tested the performance of jointly estimating effective population sizes, recombination and migration rates when the ARG was simulated under a structured two-deme model but reconstructed assuming a single panmictic population model in ARGweaver. Despite this model misspecification, parameter estimation is accurate and generally improves with increasing μ/r ratios. However, Ne was slightly underestimated and migration rates overestimated even at very high μ/r ratios (S6 Fig). These small biases likely result from ARGweaver systematically under-estimating branch lengths and coalescent times under a misspecified coalescent model ignoring population structure. However, these results more generally suggest that the coalescent prior assumed when reconstructing the ARG has very minimal impact on downstream demographic inference from the ARG.

Recombination and migration in Aspergillus flavus

It is estimated that over 25% of food crops are contaminated with mycotoxins worldwide [38]. Aspergillus flavus, a pathogen of plants and animals, is a major aflatoxin producer that has a broad economic impact [39]. A. flavus can infect and contaminate preharvest and postharvest seed crops with the carcinogenic secondary metabolite aflatoxin [40]. This fungus is predominantly haploid and homokaryotic [41]. A. flavus was thought to be cosmopolitan and clonal, until evidence for genetic recombination due to a cryptic sexual state were reported [42] and later the sexual stage was described [43]. In natural populations, A. flavus undergoes both sexual and asexual reproduction [44, 45]. Previous studies also found extensive recombination in the ancestral history of the aflatoxin cluster [46, 47], which is a 70-Kb-gene-cluster near chromosome 3’s right telomeric region [40, 48]. Based on multilocus DNA sequence markers in the aflatoxin cluster (aflM/aflN and aflW/aflX) and three other nuclear loci (mfs, amdS, trpC), this fungus can be delimited into two evolutionary distinct lineages: IB and IC, where IB includes mainly nonaflatoxigenic isolates while IC includes both toxigenic and atoxigenic strains [46, 49]. There is evidence that A. flavus has the potential for long-distance dispersal via conidia [5052], but movement between geographic locations is poorly characterized.

Given that both recombination and migration shape the evolutionary history of A. flavus, here we aim to use ARGweaver and our SCAR model to explore the two evolutionary forces together by reconstructing ARGs, and then estimating the recombination and migration rates.

The genome size of A. flavus is about 37 Mb on eight chromosomes [53], but we focused our analysis on the migration and recombination history of chromosome 3, which is about 5 Mb. A total of 51 lineage IB strains and 48 lineage IC strains were collected across the United States, including Arkansas, Indiana, North Carolina, and Texas in 2013 (Table 2) [54]. Sample metadata is provided in supporting information S1 Table. Single-nucleotide polymorphism (SNP) genotyping was performed across chromosome 3 with A. oryzae RIB40 as the reference genome [55]. Because there was limited migration between lineages IB and IC [54], we analyzed the two lineages separately. No SNPs in the aflatoxin gene cluster were included for IB because few isolates harbored this gene cluster.

Table 2. Sampling locations and numbers for lineages IB and IC.

State Samples location Lineage IB Lineage IC
Arkansas Newport Research Station; 35.57°N, 91.26°W 11 17
Indiana Southeast-Purdue Agricultural Center; 39.03°N, 85.53°W 3 13
North Carolina Upper Coastal Plain Research Station; 35.89°N, 77.68°W 11 13
Texas Texas A & M University Farm; 30.55°N, 96.43°W 26 5

We used ARGweaver to infer ARGs from SNPs spanning most of chromosome 3. Because ARGweaver requires an estimate of the recombination rate to infer ARGs, we used LDhat version 2.2 [56] to estimate Watterson’s theta and the population recombination rate. SNP data were filtered using a series of different missing data thresholds before running LDhat, and we estimated the median recombination rate across filtered data sets. The A. flavus mutation rate was previously estimated as 4.2e-11 per site per mitosis [57], which can be converted to 2.82e-09 per base per generation. Given this mutation rate, the effective population size Ne was calculated from Watterson’s theta (88.23 and 559.04 for lineages IB and IC, respectively). ARGweaver also needs a maximum time threshold for coalescent events, which was set as the expected time to the most recent common ancestor based on the sample size and estimated population sizes. With these parameters, we ran ARGweaver for 20,000 iterations with 1000 iterations as burn-in. To keep ARGweaver’s run time manageable, we compressed blocks of 5 variable sites by conditioning the breakpoints between each block in a flexible manner so that no more than one variant site in the same block was chosen [37]. All the runtime parameters can be found in the supporting information S2 Table. From the SMC files produced in the iterations, we choose the ARG with the maximum joint-likelihood as our best estimate of recombination patterns across chromosome 3.

We used a tanglegram to show the topological changes between neighboring local trees in the inferred ARG. In a tanglegram, each local tree is drawn, and then auxiliary lines are drawn to connect matching taxa in neighboring trees. If there is no recombination, the lines connecting matching taxa should be horizontal whereas crossing lines can be used as a visual heuristic to assess the extent of recombination. We use the python package baltic [58] to display the tanglegrams (S7 Fig).

The ARGs reconstructed in ARGweaver were then used to estimate recombination and migration rates using our SCAR model. For these analyses we used exponential priors (for IB rExp(1.37e − 09), mijExp(0.1); for IC rExp(2.17e − 10), mijExp(0.1)). MCMC chains were run for 40,000 iterations. Besides estimating these parameters from the reconstructed ARGs, we also compared the posterior distributions of estimated migration rates from the consensus tree of all the local trees in the ARG along the whole chromosome using the SCAR model. Additionally, we compared how the RF distances between pairs of local trees for different regions of the genome changed based on their genomic distance, which was the absolute value of coordinates (middle of genome segment location) of the difference between two trees.

The reconstructed ARGs for chromosome 3 of lineages IB and IC

The μ/r ratios were calculated using Watterson’s θ and the population recombination rate obtained by LDhat. For lineage IC, the μ/r ratio of the entire chromosome 3 was 13, whereas for lineage IB μ/r was 2.05. Even though the μ/r ratio of lineage IB was slightly lower than the lower limit at which we found ARGweaver could accurately reconstruct ARGs in simulations, we continued with the analysis in order to explore the limits of ARG-based phylogeographic inference.

We reconstructed ARGs for chromosome 3 of the A. flavus genome from 51 lineage IB isolates and 48 lineage IC isolates. Overall, the ARGs contained 190 recombination events for lineage IB and 774 recombination events for lineage IC. To visualize how the topology of local trees varied across the genome, we plotted tanglegrams for the first 10 local trees in each ARG for lineage IB (S7A Fig) and lineage IC (S7B Fig), as well as the 12 local trees in the aflatoxin gene cluster for lineage IC (S7C Fig). Although there was always one recombination event between each local tree in the ARG reconstructed by ARGweaver, not all recombination events result in topological discordance between neighboring trees. In the ARG of lineage IB, 92.1% of recombination events caused topological discordance between local trees whereas the other 7.9% only changed coalescent times. In the ARG of lineage IC, 98.3% of recombination events resulted in topological discordance while only 1.7% caused changes in coalescent times. The average RF distance between neighboring local trees for lineages IB and IC was 9.23 and 10.57, respectively; and the average normalized RF distance between local trees for IB and IC was 0.094 and 0.115, respectively; whereas the average effect of a single random SPR move on the IB and IC local trees resulted in an RF distance of 17.93 and 18.19, respectively (S8 Fig). Thus, while there can be considerable phylogenetic discordance between local trees, recombination events tend to be more topologically conservative and occur between more closely related lineages than would be expected by chance from truly random SPR moves. Moreover, some phylogenetic discordance may be due to errors in reconstructing local trees, especially because the distance between pairs of breakpoints along the chromosome were often relatively small (S9A Fig), such that many non-recombining segments likely did not have enough segregating sites to reconstruct local tree accurately. Overall though, we found that the normalized RF distance between pairs of local trees increased logarithmically with their distance from each other in the genome (S9B Fig), consistent with discordance being driven by recombination rather than phylogenetic error over larger genomic distances.

Recombination breakpoints were distributed unevenly across the genome, with the putative centromeric region containing far fewer recombination events for both lineages (Fig 7A). Fig 7B shows the distribution of recombination times for both lineages. While recombination events occurred mostly in the recent past for lineage IB, many recombination events occurred in the much deeper past for lineage IC.

Fig 7. Inferred recombination events in A. flavus chromosome 3 (A) and the frequency of recombination time (generations in the past)(B), respectively, of lineages IB and IC.

Fig 7

Recombination rates of lineages IB and IC

Using the SCAR model, we estimated the recombination rate for lineages IB and IC (first column of Fig 8). The recombination rate of lineage IB was estimated to be 2.28E-09 per site per generation, with a μ/r ratio of 1.24. Here we assume the recombination rate is constant across both lineages and all of chromosome 3. The recombination rate of lineage IC was estimated to be 1.06E-09 per site per generation, with a μ/r ratio of 2.66. Although fewer recombination events were identified for lineage IB than lineage IC, lineage IB was estimated to have a higher recombination rate. This counter-intuitive result can be explained by the fact that lineage IB also has a smaller effective population size and thus coalescent times occur in the more recent past, resulting in less time for recombination events to occur in IB than in IC, consistent with the temporal distribution of recombination events observed in Fig 7B.

Fig 8. The prior and posterior distributions of demographic parameters estimated from either the full ARG or a single consensus tree for lineages IB and IC.

Fig 8

For lineage IB, the mean value of exponential prior of recombination rate is 1.37e-09, and the mean value of exponential prior of migration rates is 0.1; For lineage IC, the mean value of exponential prior of recombination rate is 2.17e-10, and the mean value of exponential prior of migration rates is 0.1. Note that we cannot estimate r from the consensus tree so only the posterior distribution estimated from the ARG is shown.

Migration rates of lineages IB and IC between subpopulations

Using the SCAR model, we estimated the migration rates of lineages IB and IC between subpopulations along with their recombination rate from their ARGs (Fig 8). Migration rates between subpopulations were found to vary between 0.05 and 0.2 migrations per generation, suggestive of extensive movement between populations. Migration rates between subpopulations were similar within each lineage (Fig 9). However, for lineage IB, the migration rate between subpopulations in North Carolina and Texas was slightly higher, and the Arkansas subpopulation had the highest migration rates to other subpopulations overall; for lineage IC, the migration rate between subpopulations in Indiana and North Carolina was slightly higher, as well as the migration rate between subpopulations in Texas and North Carolina. Generally, the migration rates of lineage IC were lower than for lineage IB.

Fig 9. The migration rates (per generation) estimated for lineages IB (A) and IC (B) between subpopulations in four states.

Fig 9

The base layer shapefile was downloaded from the website of United States Census Bureau https://www2.census.gov/geo/tiger/TIGER2019/STATE/.

We also compared migration rates estimated from full ARGs against migration rates estimated from a single phylogeny, in this case the consensus tree of each ARG. The posterior distribution of migration rates inferred from both the full ARG and the consensus tree are compared in Fig 8 and provided in supporting information S3 Table. Overall, the posterior distributions of migration rates estimated from the consensus tree diverged little from the prior distribution, indicating that the consensus trees contained little information about migration patterns. By contrast, the posterior distributions estimated from the full ARG were typically peaked with a much greater probability density concentrated around the posterior median relative to the prior distribution. These results suggest that we can obtain much more information from the full ARG than from any individual consensus tree (or gene tree), owing to the greater number of ancestral lineages and their associated migration histories in the ARG.

Discussion

Because population structure and recombination jointly shape the genealogical history of many organisms, we developed SCAR to extend the structured coalescent to include ancestral recombination. When used for demographic inference, we showed that SCAR can successfully estimate effective population sizes, migration rates and recombination rates from reconstructed ARGs. We then showed that SCAR can recover these parameters accurately both from the true (simulated) ARGs and from ARGs reconstructed from genomic sequence data using ARGweaver, although performance declines as the recombination rate approaches the mutation rate. We also applied the SCAR model to A. flavus genomic data using ARGs inferred by ARGweaver, demonstrating how these methods can be applied to real world pathogens with complex histories of both migration and recombination.

While new methods for ARG reconstruction are being developed at a rapid pace, we chose ARGweaver as a gold-standard for inference as it reconstructs ARGs by sampling them from their full posterior distribution up to the approximation introduced by the Sequential Markov Coalescent [12, 13], which is known to be a very good approximation to the full coalescent with recombination [59]. Indeed, a recent simulation study found that ARGweaver was substantially more accurate in estimating coalescent times than other ARG reconstruction methods [60]. Other, more approximate methods may therefore be faster or allow larger samples sizes but are unlikely to outperform ARGweaver in terms of accuracy. We therefore used ARGweaver to explore the limits of reconstructing ARGs and estimating recombination rates from simulated data. Regardless of method, the number of phylogenetically informative sites (i.e., SNPs) between recombination breakpoints is likely the ultimate factor limiting accurate reconstruction of local tree topologies within an ARG and thereby our ability to distinguish true recombination events from topological discordance introduced by phylogenetic uncertainty. We therefore explored the limits of accurate ARG reconstruction by varying the ratio of the mutation rate to the recombination rate μ/r. We found that at high μ/r ratios, ARGweaver does in fact reconstruct ARGs very accurately. However, our ability to reconstruct local trees within the ARG rapidly degrades at lower μ/r ratios and as expected, our ability to accurately estimate recombination rates likewise decreases with our ability to accurately reconstruct ARGs. Our simulations suggest that a μ/r ratio of about 4 poses a practical lower limit on our ability to reconstruct ARGs. While many rapidly evolving viruses and predominately clonal bacteria exceed this threshold [61, 62], this definitely poses a challenge to accurate ARG reconstruction for many highly recombining bacteria and eukaryotic organisms. For example, μ/r ratios for fungi have been reported as low as 0.1 in Zymoseptoria triciti [63] and as high as 45.9 for Glomus etunicatum [64]. However, because recombination requires direct physical interactions (e.g. sexual reproduction), recombination rates can vary substantially even between populations of the same species based on the frequency at which individuals encounter one another [4, 5]. This suggests that ARG reconstruction methods will likely need to be applied on a one-by-one basis to particular data sets rather than being applied or dismissed for broad classes of organisms.

The SCAR model tracks the movement of lineages in an ARG between subpopulations by approximating ancestral state probabilities. Rather than jointly estimating the ancestral states with the other demographic parameters, we probabilistically track the movement of lineages and integrate over their unknown states using the approach first developed by Volz [21]. Using this method, we can accurately and quickly estimate migration rates from simulated ARGs. However, we found that SCAR overestimates migration events to some extent, especially when the true migration rates approach one per generation. This bias might be caused by assuming lineage state probabilities evolve independently across lineages and are independent of the coalescent process [21]. However, Müller et al. [23] showed that the lineage independence assumption performs worst when migrations rates are very low relative to coalescent rates (the opposite of our situation) and when coalescent rates are highly asymmetric between populations (a situation we do not consider). We therefore think it more likely that, for larger migration rates, there simply is not enough information to determine the true rate, as the likelihood surface remains essentially flat across a wide range of higher values (S10 Fig). Based on the results of estimating migration rates using different sample sizes, we show that the larger the sample size, the more accurate estimation becomes, verifying our speculation that biases in estimating higher migration rates were attributable to a lack of information.

Several earlier approaches likewise aimed to extend the structured coalescent to include recombination, including LAMARC 2.0 [65], CSD π^Θ [66], ARGweaver-D [67], and SCoRe [68]. LAMARC 2.0 can simultaneously estimate migration rates, population growth rates, and recombination rates [65]. SCAR and LAMARC 2.0 model the recombination process in the same way [29], but like other early implementations of the structured coalescent [17], it uses MCMC to sample migration histories, limiting its applicability to larger data sets or data sets with more than a few sampled populations [69]. ARGweaver-D [67] extends ARGweaver to allow for demographic inference in structured populations under a user defined model. However, in ARGweaver-D migration events need to be fully specified in terms of their time, source, and recipient population; whereas SCAR allows for migration histories to be inferred from ARGs with no prior knowledge about individual migration events. Finally, SCoRe [68] can infer migration rates and reassortment patterns for segmented viruses from a phylogenetic network jointly estimated in BEAST2 [70]. Conceptually, SCoRe is very similar to SCAR in that both methods track the movement of lineages probabilistically based on similar approximations to the structured coalescent, although SCoRe uses more refined approximations to track lineage movement than what are currently implemented in SCAR. The main difference between SCAR and SCoRe is that the SCoRe model specifically focuses on reassortment, where different segments of a viral genome are inherited from different parents, leading to a block-like haplotype structure where all sites in the same segment necessarily share the same phylogenetic history. In contrast, SCAR allows for a more general model of recombination where recombination breakpoints and thus changes in local tree topologies can occur anywhere across the genome, leading to much more complex ARGs. The SCAR model therefore accommodates varying mechanisms of recombination, such as crossovers and gene conversion, and is thus applicable to a broader range of viral, bacterial, and fungal genomes.

For organisms like A. flavus that recombine frequently relative to their mutation rate, there may be further challenges to inferring ARGs given a low μ/r ratio. Furthermore, the aflatoxin gene cluster is reported to be a recombination hot spot [46], so the μ/r ratios likely vary across the genome [71], but we assume a constant mutation rate and recombination rate when reconstructing ARGs. While there are likely regions where recombination rates are lower and we can accurately reconstruct phylogenetic relationships, this will not be the case across the entire genome. Despite the inherent variability in ARG reconstruction accuracy across the genome, our estimates using ARGweaver/SCAR are consistent with those reported in the A. flavus literature. We found that the ratio of the mutation rate to recombination rate of lineages IB and IC was 1.24 and 2.66, respectively. In Drott et al. [72], the ratio of mutation rate to recombination rate in three populations calculated by ClonalframeML vary from 2.26 to 5.41. Even though our calculations were based on a single chromosome, they were similar in magnitude to genome-wide estimates for lineage IC. Moreover, we found that the putative centromeric region of the chromosome contains far fewer recombination events for both lineages IB and IC, which accords with the knowledge that regions surrounding centromeres are a cold spot of recombination [4, 73].

While incorporating recombination into phylogeography has typically been viewed as burdensome, considering recombination and the full ancestry of sampled genomes through an ARG allows us to track the ancestral movement of many different genes or genomic regions. Considering the full ARG rather than just a single phylogeny therefore provides more information about demographic parameters and allows us to see how migration histories vary across the genome. While it has long been appreciated that considering multiple ancestral histories across the genome can improve demographic inference [8, 74, 75], here we demonstrate that reconstructing ARGs for A. flavus provides much more information about migration between populations than does a single (consensus) tree. Indeed, posterior distributions for the A. flavus migration rates inferred from ARGs are concentrated around their posterior median while the same migration rates inferred from a single tree diverge little from the prior, demonstrating that it may be possible to estimate migration rates from ARGs even when a single tree contains no information about these parameters.

Using the SCAR model, we can now conduct phylogeographic inference using all the information contained within an ARG. In the future, we plan to combine the SCAR model with more computationally efficient methods for reconstructing ARGs like Espalier [76]. Rather than assuming a single panmictic population model when reconstructing the ARG, this would allow for the ARG and demographic parameters to be jointly inferred under a more flexible class of structured coalescent models. Because there can be considerable uncertainty surrounding ARG reconstructions, especially for populations with high recombination rates relative to mutation rates, we also plan to extend SCAR to marginalize demographic inferences over a set of sampled ARGs. Together, these advances will allow us to explore how recombination and migration jointly shape the phylogeographic history of a broad range of pathogens and other recombining organisms.

Supporting information

S1 Fig. One possible ARG of two samples resulting from the coalescent with recombination.

Time starts at present (bottom) and increases going backward in time (top). The genome of each lineage is represented by a rectangle with blue filled regions containing material ancestral to the sample and unfilled regions non-ancestral material. (A) The first event going backward in time is a recombination event. (B) The second event is another recombination event. (C) The third event is a coalescent event creating a new sequence, where the ancestral material is partitioned into two segments with non-ancestral material in between. This non-ancestral material is trapped between the two segments of ancestral material. (D and E) Coalescent events merge the ancestral material back onto a single genomic background. This figure was inspired by the original figure of Wiuf and Hein [30].

(TIF)

S2 Fig. The inferred number of recombination events in ARGs sampled by ARGweaver with the maximum joint likelihood, maximum likelihood, and maximum iteration as compared to the true simulated numbers under different μ/r ratios.

In the legend, Max_iter, Max_Likeli, Max_Joint represents maximum iteration, maximum likelihood, and maximum joint likelihood, respectively.

(TIF)

S3 Fig. Scaled Kendall-Colijn (KC) distances between the true (simulated) local trees and the local tree inferred by ARGweaver in the reconstructed ARG under different ratios of mutation rate / recombination rate.

The lambda value in the KC metric was set at either 0.0, 0.5, and 1.0, where higher lambda values preferentially weight branch length differences over topological differences. For each simulation, Ne is 100, sample size is 50, genome length is 1e04, and recombination rate r is 2.5e-06. Under each ratio, 100 simulations were run.

(TIF)

S4 Fig. Average pairwise genetic diversity pi in sequences simulated under different μ/r ratios.

(TIF)

S5 Fig. Estimating migration rates M with different sample sizes.

Estimating migration rates M between two subpopulations with (A) 20 samples, (B) 50 samples, and (C) 100 samples. Each black line is x = y. Dots and blue bars represent the median posterior estimates and the 95% confidence intervals for each simulation.

(TIF)

S6 Fig. Effective population size, recombination rates and migration rates estimated using SCAR from ARGs inferred by ARGweaver under different μ/r ratios.

The dashed red lines are the simulated effective population size, recombination rate and migration rate in all simulations, respectively. For each simulation, genome length is 1e04, recombination rate r is 2.5e-06, and each population has two subpopulations, for each subpopulation Ne is 50, sample size is 25, migration rate is 0.015. Because ARGweaver assumes a single panmictic population, we scaled the effective population sizes Ne input into ARGweaver to be equivalent in terms of coalescent rates to that of a structured population with two demes using equation 4.22 in Rice [77]. Under each ratio, 100 simulations were run.

(TIF)

S7 Fig. ARG of the 51 lineage IB isolates (A), 48 lineage IC isolates (B) and the aflatoxin gene cluster of lineage IC (C) reconstructed by ARGweaver.

The reconstructed ARG is visualized using a tanglegram to show how the topology of local trees varies across chromosome 3. Each local tree corresponds to one genome region separated from neighboring regions by an inferred recombination breakpoint. Note only the first 10 of 193 local trees in the ARG of lineage IB, and only the first 10 of 775 local trees in the ARG of lineage IC are shown. In the ARG of the aflatoxin gene cluster, there are 12 local trees.

(TIF)

S8 Fig. RF distance between neighboring local trees, and average RF distance calculated from 20 one-random-SPR trees of lineages IB and IC, respectively.

(TIF)

S9 Fig. The relationship of genome location distance and RF distance of pairs of local trees, and the histogram of non-recombination segment length (neighboring breakpoints distance).

When calculating the genome location distance, we set the middle location of each genome region as coordinates, and then the distance is the absolute value of coordinates difference between two trees.

(TIF)

S10 Fig. The migration rates (per generation) likelihood profile of lineages IB and IC between subpopulations in four states using the SCAR model.

(TIF)

S1 Table. A. flavus isolates metadata.

A. flavus isolates sampling locations, lineages, and other information for lineages IB and IC.

(XLSX)

S2 Table. All runtime parameters of ARGweaver.

The results of Watterson’s theta and population recombination rate calculated by LDhat at different missing threshold levels. The parameters used when running ARGweaver.

(XLSX)

S3 Table. The posterior distribution of recombination and migration rates estimated from both the full ARG and the consensus tree.

(XLSX)

Acknowledgments

Thanks to Lenora Kepler for giving useful comments when preparing the manuscript.

Data Availability

All code and data to replicate the analyses performed in this paper are available at https://github.com/sunnyfangfangguo/SCAR_project_repo. Further information on the Aspergillus genotypes and their corresponding metadata are available in Supporting information S1 Table.

Funding Statement

This research was supported by grant 2019-67021-29932 from the USDA National Institute of Food and Agriculture (https://www.nifa.usda.gov/) to DAR. DAR was additionally supported by funding from USDA Hatch project 1016556. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

References

  • 1. Rosenberg NA, Nordborg M. Genealogical trees, coalescent theory and the analysis of genetic polymorphisms. Nat Rev Genet. 2002;3(5):380–390. doi: 10.1038/nrg795 [DOI] [PubMed] [Google Scholar]
  • 2. Hein J, Schierup MH, Wiuf C. Gene genealogies, variation and evolution: A primer in coalescent theory. Oxford: Oxford University Press; 2005. [Google Scholar]
  • 3. Smith JM, Smith NH, O’Rourke M, Spratt BG. How clonal are bacteria? Proc Natl Acad Sci USA.1993;90(10):4384–4388. doi: 10.1073/pnas.90.10.4384 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4. Stapley J, Feulner PGD, Johnston SE, Santure AW, Smadja CM. Variation in recombination frequency and distribution across eukaryotes: patterns and processes. Phil Trans R Soc B.2017;372(1736):20160455. doi: 10.1098/rstb.2016.0455 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5. Hasan AR, Ness RW. Recombination Rate Variation and Infrequent Sex Influence Genetic Diversity in Chlamydomonas reinhardtii. Genome Biol Evol. 2020;12(4):370–380. doi: 10.1093/gbe/evaa057 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Hudson RR. Gene genealogies and coalescence process. Oxford surveys in evolutionary biology. 1990;7(1):1–44. [Google Scholar]
  • 7. Speidel L, Forest M, Shi S, Myers SR. A method for genome-wide genealogy estimation for thousands of samples. Nat Genet. 2019;51(9):1321–1329. doi: 10.1038/s41588-019-0484-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8. Goss EM. Genome-enabled analysis of plant-pathogen migration. Annu Rev Phytopathol. 2015;53:121–135. doi: 10.1146/annurev-phyto-080614-115936 [DOI] [PubMed] [Google Scholar]
  • 9. Nieuwenhuis BPS, James TY. The frequency of sex in fungi. Phil Trans R Soc B. 2016;371(1706):20150540. doi: 10.1098/rstb.2015.0540 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10. Kubatko LS, Degnan JH. Inconsistency of phylogenetic estimates from concatenated data under coalescence. Syst Biol. 2007;56(1):17–24. doi: 10.1080/10635150601146041 [DOI] [PubMed] [Google Scholar]
  • 11. Griffiths RC, Marjoram P. An ancestral recombination graph. In: Progress in population genetics and human evolution. New York NY USA: Springer; 1997. p. 257–270. doi: 10.1007/978-1-4757-2609-1_16 [DOI] [Google Scholar]
  • 12. Rasmussen MD, Hubisz MJ, Gronau I, Siepel A. Genome-wide inference of ancestral recombination graphs. PLoS Genet. 2014;10(5):e1004342. doi: 10.1371/journal.pgen.1004342 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13. McVean GAT, Cardin NJ. Approximating the coalescent with recombination. Phil Trans R Soc B.2005;360(1459):1387–1393. doi: 10.1098/rstb.2005.1673 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14. Kelleher J, Wong Y, Wohns AW, Fadil C, Albers PK, McVean G. Inferring whole-genome histories in large population datasets. Nat Genet. 2019;51(9):1330–1338. doi: 10.1038/s41588-019-0483-y [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15. Notohara M. The coalescent and the genealogical process in geographically structured population. J Math Biol. 1990;29(1):59–75. doi: 10.1007/BF00173909 [DOI] [PubMed] [Google Scholar]
  • 16. Wakeley J. Coalescent theory: An introduction. Greenwood Village, Colorado: Roberts & Company Publishers; 2009. [Google Scholar]
  • 17. Beerli P, Felsenstein J. Maximum likelihood estimation of a migration matrix and effective population sizes in n subpopulations by using a coalescent approach. Proc Natl Acad Sci USA. 2001;98(8):4563–4568. doi: 10.1073/pnas.081068098 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18. Maio ND, Wu CH, O’Reilly KM, Wilson D. New routes to phylogeography: A Bayesian structured coalescent approximation. PLoS Genet. 2015;11(8):e1005421. doi: 10.1371/journal.pgen.1005421 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19. Müller NF, Rasmussen D, Stadler T. MASCOT: parameter and state inference under the marginal structured coalescent approximation. Bioinformatics. 2018;34(22):3843–3848. doi: 10.1093/bioinformatics/bty406 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20. Vaughan TG, Kühnert D, Popinga A, Welch D, Drummond AJ. Efficient Bayesian inference under the structured coalescent. Bioinformatics. 2014;30(16):2272–2279. doi: 10.1093/bioinformatics/btu201 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21. Volz EM. Complex population dynamics and the coalescent under neutrality. Genetics. 2012;190(1):187–201. doi: 10.1534/genetics.111.134627 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22. Rasmussen DA, Volz EM, Koelle K. Phylodynamic inference for structured epidemiological models. PLoS Comput Biol. 2014;10(4):e1003570. doi: 10.1371/journal.pcbi.1003570 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23. Müller NF, Rasmussen DA, Stadler T. The structured coalescent and its approximations. Mol Biol Evol. 2017;34(11):2970–2981. doi: 10.1093/molbev/msx186 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24. Mahmoudi A, Koskela J, Kelleher J, Chan YB, Balding D. Bayesian inference of ancestral recombination graphs. PLoS Comput Biol. 2022;18(3):e1009960. doi: 10.1371/journal.pcbi.1009960 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25. Wohns AW, Wong Y, Jeffery B, Akbari A, Mallick S, Pinhasi R, et al. A unified genealogy of modern and ancient genomes. Science.2022;375(6583):eabi8264. doi: 10.1126/science.abi8264 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26. Kelleher J, Etheridge AM, McVean G. Efficient coalescent simulation and genealogical analysis for large sample sizes. PLoS Comput Biol. 2016;12(5):e1004842. doi: 10.1371/journal.pcbi.1004842 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27. Watterson GA. On the number of segregating sites in genetical models without recombination. Theor Popul Biol. 1975;7(2):256–276. doi: 10.1016/0040-5809(75)90020-9 [DOI] [PubMed] [Google Scholar]
  • 28. Kingman JFC. On the genealogy of large populations. J Appl Probab. 1982;19(A):27–43. doi: 10.1017/S0021900200034446 [DOI] [Google Scholar]
  • 29. Kuhner MK, Yamato J, Felsenstein J. Maximum likelihood estimation of recombination rates from population data. Genetics. 2000;156(3):1393–1401. doi: 10.1093/genetics/156.3.1393 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30. Wiuf C, Hein J. The ancestry of a sample of sequences subject to recombination. Genetics. 1999;151(3):1217–1228. doi: 10.1093/genetics/151.3.1217 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31. Kelleher J, Thornton KR, Ashander J, Ralph PL. Efficient pedigree recording for fast population genetics simulation. PLoS Comput Biol. 2018;14(11):e1006581. doi: 10.1371/journal.pcbi.1006581 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32. Hasegawa M, Kishino H, Yano T. Dating of the human-ape splitting by a molecular clock of mitochondrial DNA. J Mol Evol. 1985;22(2):160–174. doi: 10.1007/BF02101694 [DOI] [PubMed] [Google Scholar]
  • 33. Spielman SJ, Wilke CO. Pyvolve: A flexible Python module for simulating sequences along phylogenies. PLoS One. 2015;10(9):e0139047. doi: 10.1371/journal.pone.0139047 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34. Robinson DF, Foulds LR. Comparison of phylogenetic trees. Math Biosci. 1981;53(1-2):131–147. doi: 10.1016/0025-5564(81)90043-2 [DOI] [Google Scholar]
  • 35. Christensen S, Molloy EK, Vachaspati P, Warnow T. OCTAL: Optimal completion of gene trees in polynomial time. Algorithms Mol Biol. 2018;13(1):6. doi: 10.1186/s13015-018-0124-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36. Kendall M, Colijn C. Mapping phylogenetic trees to reveal distinct patterns of evolution. Mol Biol Evol. 2016;33(10):2735–2743. doi: 10.1093/molbev/msw124 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37. Hubisz M, Siepel A. Inference of ancestral recombination graphs using ARGweaver. In:Statistical Population Genomics. vol. 2090. New York, NY: Springer US; 2020. p. 231–266. doi: 10.1007/978-1-0716-0199-0_10 [DOI] [PubMed] [Google Scholar]
  • 38. Eskola M, Kos G, Elliott CT, Hajšlová J, Mayar S, Krska R. Worldwide contamination of food-crops with mycotoxins: Validity of the widely cited’FAO estimate’ of 25. Crit Rev Food Sci Nutr.2020;60(16):2773–2789. doi: 10.1080/10408398.2019.1658570 [DOI] [PubMed] [Google Scholar]
  • 39. Klich MA. Aspergillus flavus: the major producer of aflatoxin. Mol Plant Pathol. 2007;8(6):713–722. doi: 10.1111/j.1364-3703.2007.00436.x [DOI] [PubMed] [Google Scholar]
  • 40. Amaike S, Keller NP. Aspergillus flavus. Annu Rev Phytopathol. 2011;49(1):107–133. doi: 10.1146/annurev-phyto-072910-095221 [DOI] [PubMed] [Google Scholar]
  • 41. Runa F, Carbone I, Bhatnagar D, Payne GA. Nuclear heterogeneity in conidial populations of Aspergillus flavus. Fungal Genet Biol. 2015;84:62–72. doi: 10.1016/j.fgb.2015.09.003 [DOI] [PubMed] [Google Scholar]
  • 42. Geiser DM, Pitt JI, Taylor JW. Cryptic speciation and recombination in the aflatoxin-producing fungus Aspergillus flavus. Proc Natl Acad Sci USA.1998;95(1):388–393. doi: 10.1073/pnas.95.1.388 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43. Horn BW, Moore GG, Carbone I. Sexual reproduction in Aspergillus flavus. Mycologia. 2009;101(3):423–429. doi: 10.3852/09-011 [DOI] [PubMed] [Google Scholar]
  • 44. Horn BW, Gell RM, Singh R, Sorensen RB, Carbone I. Sexual reproduction in Aspergillus flavus sclerotia: Acquisition of novel alleles from soil populations and uniparental mitochondrial inheritance. PloS One. 2016;11(1):e0146169. doi: 10.1371/journal.pone.0146169 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45. Ojeda-Lopez M, Chen W, Eagle CE, Gutierrez G, Jia WL, Swilaiman SS, et al. Evolution of asexual and sexual reproduction in the aspergilli. Stud Mycol. 2018;91:37–59. doi: 10.1016/j.simyco.2018.10.002 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46. Moore GG, Singh R, Horn BW, Carbone I. Recombination and lineage-specific gene loss in the aflatoxin gene cluster of Aspergillus flavus. Mol Ecol. 2009;18(23):4870–4887. doi: 10.1111/j.1365-294X.2009.04414.x [DOI] [PubMed] [Google Scholar]
  • 47. Moore GG, Elliott JL, Singh R, Horn BW, Dorner JW, Stone EA, et al. Sexuality generates diversity in the aflatoxin gene cluster: evidence on a global scale. PLoS Pathog. 2013;9(8):e1003574. doi: 10.1371/journal.ppat.1003574 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48. Carbone I, Ramirez-Prado JH, Jakobek JL, Horn BW. Gene duplication, modularity and adaptation in the evolution of the aflatoxin gene cluster. BMC Ecol Evol. 2007;7(1):111. doi: 10.1186/1471-2148-7-111 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49. Moore GG, Olarte RA, Horn BW, Elliott JL, Singh R, O’Neal CJ, et al. Global population structure and adaptive evolution of aflatoxin-producing fungi. Ecol Evol. 2017;7(21):9179–9191. doi: 10.1002/ece3.3464 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50. Wicklow DT, Wilson DM, Nelsen TC. Survival of Aspergillus flavus sclerotia and conidia buried in soil in Illinois or Georgia. Phytopathology. 1993;83(11):1141–1147. doi: 10.1094/Phyto-83-1141 [DOI] [Google Scholar]
  • 51. Probst C, Bandyopadhyay R, Price LE, Cotty PJ. Identification of atoxigenic Aspergillus flavus isolates to reduce aflatoxin contamination of maize in Kenya. Plant Dis. 2011;95(2):212–218. doi: 10.1094/PDIS-06-10-0438 [DOI] [PubMed] [Google Scholar]
  • 52. Ortega-Beltran A, Callicott KA, Cotty PJ. Founder events influence structures of Aspergillus flavus populations. Environ Microbiol. 2020;22(8):3522–3534. doi: 10.1111/1462-2920.15122 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53. Fountain JC, Clevenger JP, Nadon B, Youngblood RC, Korani W, Chang PK, et al. Two new Aspergillus flavus reference genomes reveal a large insertion potentially contributing to isolate stress tolerance and aflatoxin production. G3 (Bethesda). 2020;10(10):3515–3531. doi: 10.1534/g3.120.401405 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54. Molo MS, White JB, Cornish V, Gell RM, Baars O, Singh R, et al. Asymmetrical lineage introgression and recombination in populations of Aspergillus flavus: implications for biological control. bioRxiv:2022.03.12.484001v1[Preprint]. 2022[cited 2022 June 16]. Available from: https://www.biorxiv.org/content/10.1101/2022.03.12.484001v1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 55. Machida M, Asai K, Sano M, Tanaka T, Kumagai T, Terai G, et al. Genome sequencing and analysis of Aspergillus oryzae. Nature. 2005;438:1157–1161. doi: 10.1038/nature04300 [DOI] [PubMed] [Google Scholar]
  • 56. McVean G, Awadalla P, Fearnhead P. A coalescent-based method for detecting and estimating recombination from gene sequences. Genetics. 2002;160(3):1231–1241. doi: 10.1093/genetics/160.3.1231 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 57. Álvarez Escribano I, Sasse C, Bok JW, Na H, Amirebrahimi M, Lipzen A, et al. Genome sequencing of evolved aspergilli populations reveals robust genomes, transversions in A. flavus, and sexual aberrancy in non-homologous end-joining mutants. BMC Biol. 2019;17(1):88. doi: 10.1186/s12915-019-0702-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 58.Dudas G, Bedford T, Hadfield J. baltic; 2016. Available from: https://bedford.io/projects/baltic/.
  • 59. Wilton PR, Carmi S, Hobolth A. The SMC’ is a highly accurate approximation to the ancestral recombination graph. Genetics. 2015;200(1):343–355. doi: 10.1534/genetics.114.173898 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 60. Brandt DY, Wei X, Deng Y, Vaughn AH, Nielsen R. Evaluation of methods for estimating coalescence times using ancestral recombination graphs. Genetics. 2022;221(1):iyac044. doi: 10.1093/genetics/iyac044 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 61. Awadalla P. The evolutionary genomics of pathogen recombination. Nat Rev Genet. 2003;4(1):50–60. doi: 10.1038/nrg964 [DOI] [PubMed] [Google Scholar]
  • 62. Vos M, Didelot X. A comparison of homologous recombination rates in bacteria and archaea. ISME J. 2009;3(2):199–208. doi: 10.1038/ismej.2008.93 [DOI] [PubMed] [Google Scholar]
  • 63. Stukenbrock EH, Dutheil JY. Fine-Scale recombination maps of fungal plant pathogens reveal dynamic recombination landscapes and intragenic hotspots. Genetics. 2018;208(3):1209–1229. doi: 10.1534/genetics.117.300502 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 64. den Bakker HC, Vankuren NW, Morton JB, Pawlowska TE. Clonality and recombination in the life history of an asexual arbuscular mycorrhizal fungus. Mol Biol Evol. 2010;27(11):2474–2486. doi: 10.1093/molbev/msq155 [DOI] [PubMed] [Google Scholar]
  • 65. Kuhner MK. LAMARC 2.0: maximum likelihood and Bayesian estimation of population parameters. Bioinformatics. 2006;22(6):768–770. doi: 10.1093/bioinformatics/btk051 [DOI] [PubMed] [Google Scholar]
  • 66. Steinrücken M, Paul JS, Song YS. A sequentially Markov conditional sampling distribution for structured populations with migration and recombination. Theor Popul Biol. 2013;87:51–61. doi: 10.1016/j.tpb.2012.08.004 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 67. Hubisz MJ, Williams AL, Siepel A. Mapping gene flow between ancient hominins through demography-aware inference of the ancestral recombination graph. PLoS Genet. 2020;16(8):e1008895. doi: 10.1371/journal.pgen.1008895 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 68. Stolz U, Stadler T, Müller NF, Vaughan TG. Joint inference of migration and reassortment patterns for viruses with segmented genomes. Mol Biol Evol. 2022;39(1):msab342. doi: 10.1093/molbev/msab342 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 69. Kuhner MK. Coalescent genealogy samplers: windows into population history. Trends Ecol Evol. 2009;24(2):86–93. doi: 10.1016/j.tree.2008.09.007 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 70. Muller NF, Stolz U, Dudas G, Stadler T, Vaughan TG. Bayesian inference of reassortment networks reveals fitness benefits of reassortment in human influenza viruses. Proc Natl Acad Sci USA.2020;117(29):17104–17111. doi: 10.1073/pnas.1918304117 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 71. Gell RM, Horn BW, Carbone I. Genetic map and heritability of Aspergillus flavus. Fungal Genet Biol. 2020;144:103478. doi: 10.1016/j.fgb.2020.103478 [DOI] [PubMed] [Google Scholar]
  • 72. Drott MT, Satterlee TR, Skerker JM, Pfannenstiel BT, Glass NL, Keller NP, et al. The Frequency of sex: Population genomics reveals differences in recombination and population structure of the aflatoxin-producing fungus Aspergillus flavus. mBio. 2020;11(4):963. doi: 10.1128/mBio.00963-20 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 73. Choo KH. Why is the centromere so cold? Genome Res. 1998;8(2):81–82. doi: 10.1101/gr.8.2.81 [DOI] [PubMed] [Google Scholar]
  • 74. Wakeley J, Hey J. Estimating ancestral population parameters. Genetics. 1997;145(3):847–855. doi: 10.1093/genetics/145.3.847 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 75. Hare MP. Prospects for nuclear gene phylogeography. Trends Ecol Evol. 2001;16(12):700–706. doi: 10.1016/S0169-5347(01)02326-6 [DOI] [Google Scholar]
  • 76. Rasmussen DA, Guo F. Espalier: Efficient tree reconciliation and ARG reconstruction using maximum agreement forests. bioRxiv:2022.01.17.476639v2[Preprint].2022[cited 2022 June 16]. Available from: https://www.biorxiv.org/content/10.1101/2022.01.17.476639v2. [Google Scholar]
  • 77. Rice SH. Evolutionary theory: Mathematical and conceptual foundations. Sunderland, Massachusetts U.S.A.: Sinauer Associates, Inc.Publishers; 2018. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

S1 Fig. One possible ARG of two samples resulting from the coalescent with recombination.

Time starts at present (bottom) and increases going backward in time (top). The genome of each lineage is represented by a rectangle with blue filled regions containing material ancestral to the sample and unfilled regions non-ancestral material. (A) The first event going backward in time is a recombination event. (B) The second event is another recombination event. (C) The third event is a coalescent event creating a new sequence, where the ancestral material is partitioned into two segments with non-ancestral material in between. This non-ancestral material is trapped between the two segments of ancestral material. (D and E) Coalescent events merge the ancestral material back onto a single genomic background. This figure was inspired by the original figure of Wiuf and Hein [30].

(TIF)

S2 Fig. The inferred number of recombination events in ARGs sampled by ARGweaver with the maximum joint likelihood, maximum likelihood, and maximum iteration as compared to the true simulated numbers under different μ/r ratios.

In the legend, Max_iter, Max_Likeli, Max_Joint represents maximum iteration, maximum likelihood, and maximum joint likelihood, respectively.

(TIF)

S3 Fig. Scaled Kendall-Colijn (KC) distances between the true (simulated) local trees and the local tree inferred by ARGweaver in the reconstructed ARG under different ratios of mutation rate / recombination rate.

The lambda value in the KC metric was set at either 0.0, 0.5, and 1.0, where higher lambda values preferentially weight branch length differences over topological differences. For each simulation, Ne is 100, sample size is 50, genome length is 1e04, and recombination rate r is 2.5e-06. Under each ratio, 100 simulations were run.

(TIF)

S4 Fig. Average pairwise genetic diversity pi in sequences simulated under different μ/r ratios.

(TIF)

S5 Fig. Estimating migration rates M with different sample sizes.

Estimating migration rates M between two subpopulations with (A) 20 samples, (B) 50 samples, and (C) 100 samples. Each black line is x = y. Dots and blue bars represent the median posterior estimates and the 95% confidence intervals for each simulation.

(TIF)

S6 Fig. Effective population size, recombination rates and migration rates estimated using SCAR from ARGs inferred by ARGweaver under different μ/r ratios.

The dashed red lines are the simulated effective population size, recombination rate and migration rate in all simulations, respectively. For each simulation, genome length is 1e04, recombination rate r is 2.5e-06, and each population has two subpopulations, for each subpopulation Ne is 50, sample size is 25, migration rate is 0.015. Because ARGweaver assumes a single panmictic population, we scaled the effective population sizes Ne input into ARGweaver to be equivalent in terms of coalescent rates to that of a structured population with two demes using equation 4.22 in Rice [77]. Under each ratio, 100 simulations were run.

(TIF)

S7 Fig. ARG of the 51 lineage IB isolates (A), 48 lineage IC isolates (B) and the aflatoxin gene cluster of lineage IC (C) reconstructed by ARGweaver.

The reconstructed ARG is visualized using a tanglegram to show how the topology of local trees varies across chromosome 3. Each local tree corresponds to one genome region separated from neighboring regions by an inferred recombination breakpoint. Note only the first 10 of 193 local trees in the ARG of lineage IB, and only the first 10 of 775 local trees in the ARG of lineage IC are shown. In the ARG of the aflatoxin gene cluster, there are 12 local trees.

(TIF)

S8 Fig. RF distance between neighboring local trees, and average RF distance calculated from 20 one-random-SPR trees of lineages IB and IC, respectively.

(TIF)

S9 Fig. The relationship of genome location distance and RF distance of pairs of local trees, and the histogram of non-recombination segment length (neighboring breakpoints distance).

When calculating the genome location distance, we set the middle location of each genome region as coordinates, and then the distance is the absolute value of coordinates difference between two trees.

(TIF)

S10 Fig. The migration rates (per generation) likelihood profile of lineages IB and IC between subpopulations in four states using the SCAR model.

(TIF)

S1 Table. A. flavus isolates metadata.

A. flavus isolates sampling locations, lineages, and other information for lineages IB and IC.

(XLSX)

S2 Table. All runtime parameters of ARGweaver.

The results of Watterson’s theta and population recombination rate calculated by LDhat at different missing threshold levels. The parameters used when running ARGweaver.

(XLSX)

S3 Table. The posterior distribution of recombination and migration rates estimated from both the full ARG and the consensus tree.

(XLSX)

Data Availability Statement

All code and data to replicate the analyses performed in this paper are available at https://github.com/sunnyfangfangguo/SCAR_project_repo. Further information on the Aspergillus genotypes and their corresponding metadata are available in Supporting information S1 Table.


Articles from PLoS Computational Biology are provided here courtesy of PLOS

RESOURCES