Skip to main content
Molecular Biology and Evolution logoLink to Molecular Biology and Evolution
. 2022 Nov 1;39(12):msac237. doi: 10.1093/molbev/msac237

Inference of Gene Flow between Species under Misspecified Models

Jun Huang 1,#, Yuttapong Thawornwattana 2,#, Tomáš Flouri 3, James Mallet 4, Ziheng Yang 5,
Editor: Tal Pupko
PMCID: PMC9729068  PMID: 36317198

Abstract

Genomic sequence data provide a rich source of information about the history of species divergence and interspecific hybridization or introgression. Despite recent advances in genomics and statistical methods, it remains challenging to infer gene flow, and as a result, one may have to estimate introgression rates and times under misspecified models. Here we use mathematical analysis and computer simulation to examine estimation bias and issues of interpretation when the model of gene flow is misspecified in analysis of genomic datasets, for example, if introgression is assigned to the wrong lineages. In the case of two species, we establish a correspondence between the migration rate in the continuous migration model and the introgression probability in the introgression model. When gene flow occurs continuously through time but in the analysis is assumed to occur at a fixed time point, common evolutionary parameters such as species divergence times are surprisingly well estimated. However, the time of introgression tends to be estimated towards the recent end of the period of continuous gene flow. When introgression events are assigned incorrectly to the parental or daughter lineages, introgression times tend to collapse onto species divergence times, with introgression probabilities underestimated. Overall, our analyses suggest that the simple introgression model is useful for extracting information concerning between-specific gene flow and divergence even when the model may be misspecified. However, for reliable inference of gene flow it is important to include multiple samples per species, in particular, from hybridizing species.

Keywords: gene flow, model misspecification, multispecies coalescent, introgression, Bayesian phylogenetics and phylogeography (BPP), species tree

Introduction

Hybridization can enhance variation in recipient species, and has long been recognized as an important process in plants that can stimulate the origin of new species (e.g., Anderson 1949; Mallet 2007). Analyses of genomic data in the past decade have highlighted the prevalence of hybridization or introgression in animals as well, including bears (Liu et al. 2014; Kumar et al. 2017), birds (Ellegren et al. 2012), and butterflies (Martin et al. 2013). Between-species gene flow may involve either sister or non-sister species and may play an important role in ecological adaptation (Mallet et al. 2016; Martin and Jiggins 2017). Gene flow can be a major contributor of genealogical variation across the genome and gene tree-species tree discordance, in addition to ancestral polymorphism or delayed coalescence (Maddison 1997; Nichols 2001).

There is a long history of studies in population genetics of models of population subdivision and migration (Wright 1943; Malecot 1948; Slatkin 1987), and a number of methods have been developed to estimate the migration rate between populations (Beerli and Felsenstein 1999, 2001; Bahlo and Griffiths 2000). An important limitation of models of population subdivision, when applied to data from different species or subspecies, is that they do not account for the divergence history of the populations or species. Introducing a population/species phylogeny into models of population subdivision not only improves the realism of the model but also opens up opportunities for addressing a number of interesting questions in evolutionary biology, such as estimating species divergence times and ancestral population sizes, delineating species boundaries, and inferring the direction, rate, and timing of gene flow (Jiao et al. 2021).

Two classes of models of gene flow have been developed that accommodate the phylogeny of the species, both of which are extensions of the multispecies coalescent (MSC) model (Rannala and Yang 2003). The first is the MSC-with-migration model (MSC-M, or isolation-with-migration or IM model, Hey and Nielsen 2004; Hey 2010; Zhu and Yang 2012; Dalquen et al. 2017; Hey et al. 2018), which assumes that two species exchange migrants at a certain rate over an extended time period. The rate of gene flow from species A to B is measured by the proportion of migrants (mAB) in the receiving population B or by the population migration rate, MAB=NBmAB, the expected number of immigrants from A to B per generation, where NB is the (effective) population size of species B. We note that the isolation-with-initial-migration (IIM) model of Costa and Wilkinson-Herbots (2017), which assumes that gene flow occurs initially after species divergence but stops after a period of time when reproductive isolation has been fully established, is an instance of the MSC-M or IM model (see below). The second class of models of gene flow is the MSC-with-introgression (MSci) model (Flouri et al. 2020), also known as multispecies network coalescent model (MSNC; Wen and Nakhleh 2018; Zhang et al. 2018), which assumes that gene flow occurs at fixed time points in the past. The rate of gene flow is measured by the introgression probability (φ or γ), which is the proportion of successful immigrants in the population at the time of introgression.

In the real world, introgressed alleles may be removed by natural selection because they are involved in hybrid incompatibility and are deleterious in the genetic background of the recipient population (Dobzhansky 1937; Muller 1942) or because they are linked to such loci (Petry 1983; Barton and Bengtsson 1986; Uecker et al. 2015). Thus the rate of gene flow (M in MSC-M or φ in MSci), when those models are used to analyze genomic sequence data, reflect the long-term effects of selection and drift as well as hybridization or introgression (Martin and Jiggins 2017). Such an effective rate of gene flow may be expected to vary across the genome, influenced by the presence of loci in the genomic region important in ecological adaptation and by the local recombination rate (Bürger and Akerman 2011; Aeschbacher and Bürger 2014; Akerman and Bürger 2014; Schumer et al. 2018; Edelman et al. 2019; Martin et al. 2019). The rate may also vary over time, depending on geological or ecological events that cause changes in the ecology and distribution of the species and in the chance for two species to exchange genes. One can envisage models of gene flow in which the rate varies over time and across genomic regions. For the present, such extended models are not yet implemented in the MSC framework, and the feasibility of fitting such parameter-rich models to genomic datasets is unexplored. MSC-M and MSci models implemented to date (Dalquen et al. 2017; Hey et al. 2018; Wen and Nakhleh 2018; Zhang et al. 2018; Flouri et al. 2020) assume constant rates, and should be considered first approximations when applied to genomic sequence data.

In this paper, we use mathematical analysis and computer simulation to examine the impact of model misspecification on estimation of parameters under the MSci model, such as species divergence and introgression times, population sizes, and introgression probabilities. We use the Bayesian program Bayesian phylogenetics and phylogeography (BPP) (Flouri et al. 2018, 2020) to analyze multilocus sequence data simulated under various MSci and MSC-M models. Although Bpp is our own implementation of the MSci model, our results should apply to similar exact or likelihood methods (Wen and Nakhleh 2018; Zhang et al. 2018). Our results may also apply to approximate methods, which use summaries of the data such as the genome-wide site-pattern counts (as in the D-statistic, Green et al. 2010 and Hyde, Meng and Kubatko 2009; Blischak et al. 2018), reconstructed gene trees (as in Snaq, Solis-Lemus and Ane 2016), or other summary statistics used in Approximate Bayesian Computation (Dittberner et al. 2022). However, approximate methods do not make a full use of information in the data and may not identify all parameters in the model. For example, the D-statistic is agnostic of the mode of gene flow (migration versus introgression) and cannot be applied to data sampled from only two species or populations. The computational strengths and statistical weaknesses of approximate methods have been discussed by a number of authors (Degnan 2018; Elworth et al. 2019; Jiao et al. 2021; Zhu and Yang 2021; Hibbins and Hahn 2022; Ji et al. 2022). In contrast, likelihood methods integrate over all possible gene trees underlying the sequence alignments, making use of all information about the model and parameters in the sequence data. They typically involve a heavy computational load. However, recent algorithmic improvements have made it possible to apply the MSci model to genome-scale datasets with more than 10,000 loci (Flouri et al. 2020). Inferring introgression events or constructing an introgression model using genomic sequence data, however, remains a challenging task, even when a binary species tree is specified, onto which introgression events can be added (Ji et al. 2022; Thawornwattana et al. 2022); see Discussion for an overview of currently available methods for inferring gene flow on a species phylogeny. For these and many other reasons, the model of gene flow assumed in our data analysis may often be incorrect. An important question is to what extent inference of gene flow and estimation of the timing and rate of gene flow can still be achieved when the model of gene flow is misspecified. The impact of model misspecification on estimation of other evolutionary parameters such as species divergence times is also of major concern.

Although there are many ways in which the assumed model is wrong, we are particularly interested in a few types that are likely in real data analyses (Finger et al. 2022; Thawornwattana et al. 2022). First, gene flow may be occurring continuously during a time period but an MSci model is fitted to the genomic data, which assumes that gene flow occurred at a particular time point (e.g., Wen and Nakhleh 2018; Jiao et al. 2020). We are here interested in whether species divergence times and ancestral population sizes are affected by the misspecification, and how the migration rate in the migration model (M) corresponds to the introgression probability in the MSci model (φ). The case of two species is analytically tractable. We study the limit of the maximum-likelihood estimates (MLEs) of introgression probability and introgression time when the data size (the number of loci) approaches infinity when the data are generated under the MSC-M model. We use computer simulation to verify and extend the analytical calculation.

Second, the introgression event may be assigned to a wrong branch on the species tree, for example, to a parental or daughter branch of the genuine introgression lineage. Alternatively, introgression may involve species that have since gone extinct or are not included in the data sample. The presence of such ghost species is known to mislead inference of the history of gene flow for the sampled species (Beerli 2004; Tricou et al. 2022). Thus we conducted simulation to examine the impact of unsampled species on the inference of gene flow. In general, our results demonstrate the usefulness of the simple introgression model in inferring gene flow using genomic sequence data.

Results

Correspondence between the MSC-M and MSci Models in the Case of two Species

Notation and Definition of Parameters

Following Jiao et al. (2020), we study the asymptotic behavior of Bayesian parameter estimation under the introgression (MSci) model when the data are generated under the migration (IM) model in the case of two species, with one sequence per species per locus (fig. 1). Here we focus on this simple case because it is analytically tractable. Note that our Bayesian implementation in Bpp (Flouri et al. 2020) accommodates an arbitrary number of species and an arbitrary number of sequences per species per locus, and the likelihood calculation averages over the gene genealogy for the sequences at each locus. We assume an infinite number of loci, and the data at each locus consist of a pair of sequences (a,b) from the two species, with x differences at n sites. The coalescent time t for the locus is unknown and underlies the observed difference. Jiao et al. (2020) analyzed the MSC-M model (fig. 1a) assuming infinite sequence length (n=) so that the true coalescent time between the two sequences (t) is known. Here we accommodate random fluctuations in the number of mutations due to finite sequence length and consider three variants of the migration model.

Fig. 1.


Fig. 1.

(ac) Three MSC-M models for two species A and B used to generate data: IM (isolation with migration), IIM (isolation with initial migration), and SC (secondary contact). The IIM model is an instance of the MSC-M model with a ghost species at node T and with migration from species A to T (b). Similarly, the SC model (c) is a case of the MSC-M model with τT>0. Note that τT is the time when migration stopped in the IIM model and the time when migration started in the SC model. In the numerical calculations and in the simulations, we assumed the population size θ0=0.002 for the thin branches and θ1=0.01 for the thick branches, and the migration rate was MAB=0.2 migrants from A to B per generation. Note that in our setup, the time period of gene flow is Δτ=θ0 in all three models. (d) The introgression (MSci) model used to analyze the data. (e) A schematic summary of the estimate of the introgression probability (φ) in the MSci model (d) when the data are generated under the MSC-M models of ac. The sudden drop in φ^ as MAB increases coincides with an underestimation of τR and overestimation of θR.

In the basic IM model (fig. 1a), species A and B diverged at time τR and there has since been gene flow from A to B at the rate of MAB migrants per generation. The IIM model (fig. 1b) assumes that migration occurred initially after species divergence but stopped at time τT>0 (Costa and Wilkinson-Herbots 2017), and is represented by an MSC-M model for three species including a ghost species. Here the ghost does not necessarily represent a real species but is a mathematical device for specifying the IIM model. The IIM model becomes identical to the IM model when τT=0. We also consider a secondary contact (SC) model (fig. 1c), in which two species initially had complete isolation but came into contact at a certain time point (τT) with ongoing gene flow at the rate of MAB ever since (Costa and Wilkinson-Herbots 2021). This is similarly specified using a ghost species at time point τT (fig. 1c). The migration model involves three types of parameters: species divergence times (τR,τT), population sizes for extant, and extinct species (θA,θB,θT,θR), and the (population) migration rate MAB. The population size parameter for any species with (effective) population size N is defined as θ=4Nμ, where μ is the mutation rate per site per generation. We refer to a branch on the species tree by its daughter node so that branch RA is also branch A, with population size parameter θA. Both divergence times (τ) and population sizes (θ) are measured by the expected number of mutations per site.

Asymptotic Theory

We first consider the IIM model of figure 1b, of which the IM model of figure 1a is a special case with τT=0. The backwards-in-time process of coalescent and migration in time interval (τT,τR) is described by a Markov chain with three states: AB, AA, and A (Notohara 1990). Here AB is the initial state, with two sequences in the sample, one in A and another in B; AA means both sequences are in A (in other words, sequence b is traced back into A); and A means one sequence in A (in other words, sequence b is traced back into A and has coalesced with sequence a). Note that in the Markov chain, time runs backwards, so the transition from AB to AA means migration of a sequence from A to B in the real world. The generator matrix for the Markov chain is (see, e.g., Notohara 1990; Jiao et al. 2020)

Q=ABAAAABww0AA02θA2θAA000 (1)

where w=mAB/μ=4MAB/θB is the mutation-scaled migration rate, and 2/θA is the coalescent rate in population A, with one time unit being the expected time taken to accumulate one mutation per site. Q has eigenvalues λ1=0, λ2=2/θA, and λ3=w.

Let the transition probability matrix over time t be P(t)={pij(t)}=eQt, where pij(t) is the probability that the Markov chain will be in state j time t later given that it is in state i at time 0. This is

P(t)=[ewtθAw2θAw(ewte2θAt)12ewtθAwe2θAt2θAw0e2θAt1e2θAt001]. (2)

The probability density of coalescent time t is thus

fiim(t)={PAB,AA(tτT)2θA,ifτT<t<τR,[1PAB,A(τRτT)]2θRe2θR(tτR),ift>τR={2w2θAw[ew(tτT)e2θA(tτT)],ifτT<t<τR,[22θAwew(τRτT)θAw2θAwe2θA(τRτT)]2θRe2θR(tτR),ift>τR. (3)

This is a function of w=4MAB/θB but not of MAB and θB individually. The parameters specifying the density are thus Θiim=(w,θA,θR,τR,τT). Note that the density under the IM model fim(t) is given by fiim(t) with τT=0 (fig. 1bandc).

Similarly under the secondary-contact (SC) model (fig. 1c), the coalescent-with-migration process over the time interval (0, τT) is described by the Markov chain of equation (1). Given the parameters Θm, the probability density of coalescent time t is

fsc(t)={PAB,AA(t)2θA,if0<t<τT,PAB,AA(τT)2θAe2θA(tτT),ifτT<t<τR,[PAB,AA(τT)2θAe2θA(τRτT)+PAB,AB(τT)]×2θRe2θR(tτR),ift>τR={wθA2wθA[ewte2θAt]2θA,if0<t<τT,wθA2wθA[ewτTe2θAτT]2θAe2θA(tτT),ifτT<t<τR,[wθA2wθA[ewτTe2θAτT]e2θA(τRτT)+ewτT]×2θRe2θR(tτR),ift>τR. (4)

Under the MSci model (fig. 1d), we have (e.g., Jiao et al. 2020)

fi(t)={φ2θSe2θS(tτS),ifτS<t<τR,[φe2θS(τRτS)+(1φ)]2θRe2θR(tτR),ift>τR. (5)

This is a function of parameters Θi=(φ,θR,θS,τR,τS). Given the coalescent time t for a locus, the probability of observing x differences at n sites under the JC mutation model (Jukes and Cantor 1969) is given by the binomial probability

f(x|t)=(3434e83t)x(14+34e83t)nx. (6)

The marginal probability of observing x differences at n sites, under both the migration (IM, IIM, SC) and introgression (MSci) models, is

f(x|Θ)=0f(x|t)f(t|Θ)dt, (7)

where f(t|Θ) is given by equations (3), (4), or (5).

For analytical tractability of the likelihood (eq. 7), we assume the infinite-sites mutation model instead of JC, and replace the binomial likelihood by a Poisson approximation

f(x|t)=1x!(2nt)xe2nt. (8)

Equation (7) is derived in SI text, as supplementary equation (S6), Supplementary material online for the IM (with τT=0) and IIM (with τT>0) models, supplementary equation (S7), Supplementary material online for the SC model, and supplementary equation (S9), Supplementary material online for the MSci model.

Suppose the data are generated under the migration model (IM, IIM, or SC) and analyzed under the MSci model. When the number of loci L, the MLE Θ^i under MSci will converge to Θi*, which minimizes the Kullback–Leibler (KL) divergence

D(ΘmΘi)=x=0nfm(x|Θm)logfm(x|Θm)fi(x|Θi), (9)

where the subscript “m” stands for any of the three MSC-M models (“im” for IM, “iim” for IIM, or “sc” for SC, fig. 1ac). The KL divergence is a measure of distance from the fitting introgression model to the true migration model: here Θm are fixed, whereas Θi are being estimated. The limiting values Θi* as L are also known as the pseudo-true parameter values for the misspecified MSci model. The BFGS optimization routine in Paml (Yang 2007) is used to minimize equation (9) to obtain the MLEs.

We are in particular interested in the introgression probability φ and the introgression time τS. Note that under the migration model, the probability that any lineage from species B traces back to A is

φ0=1e4MABΔτ/θB, (10)

where Δτ is the time period of gene flow (fig. 1ac). Equation (10) gives the expected proportion of migrants under the true migration model. When MAB is small, φ0(4MAB/θB)Δτ, which is also given by equating the expected total number of migrants under the two models: NBφ0mABNBΔτ/μ. Note that mABNB is the expected number of migrants per generation and Δτ/μ is the number of generations with gene flow.

It may be noted that the theory of equation (9) can be used to study the limiting parameter estimates (when L) in the migration model when the true model is the introgression model. One has only to flip the roles of fm(x|Θm) and fi(x|Θi) in equation (9). This is not pursued in this paper.

Asymptotic Results under the IM Model

We used the asymptotic theory (eq. 9) to obtain the MLEs (Θi*) under the MSci model (fig. 1d) when the data consist of an infinite number of loci, with one sequence of length n per species per locus, generated under the IM, IIM, or SC models (fig. 1ac). The true parameter values used (Θm) are shown in figure 1. The MLEs Θi* are shown in figure 2 and the true and best-fitting distributions of the coalescent time t are shown in supplementary figure S1, Supplementary Material online for the IM model. The corresponding results for the IIM and SC models are in supplementary figures S2–S5, Supplementary Material online, to be discussed in the next sections.

Fig. 2.


Fig. 2.

Best-fitting parameter values under the MSci model of figure 1d when data of two sequences per locus (one per species), each of n sites, are generated under the IM model of figure 1a. Five methods (a-e) are used to fit the MSci model, estimating 2, 3, 4, 5, and 4 parameters, respectively, whereas the other parameters are fixed. In (a), τR and φ are estimated, but θR and θS are fixed at their true values in the IM model, and the introgression time τS=τH is fixed at τT=0. In (b), τS is estimated as well. In (c), τS=0 is fixed, whereas the other four parameters are estimated. In (d), all five parameters are estimated. In (e), the constraint θR=θS is enforced so that four free parameters are estimated. The dotted lines for φ indicate the true total amount of introgression of equation (10). The dashed lines indicate φ* of equation (11). The true and best-fitting distributions of the coalescent time (t) are shown in supplementary figure S1, Supplementary Material online.

We use five methods (a–e) to fit the MSci model, with method d estimating all five parameters, whereas the others have some parameters fixed (fig. 2). We examined the effects of the sequence length (n) and the migration rate (MAB). Note that five parameters are identifiable under the MSci model: Θi=(τR,τS,θR,θS,φ) (fig. 1d), and θA,θB,θH are unidentifiable as no coalescent events can occur in those populations given one sequence per species per locus. Population size θS is identifiable as it is possible for both sequences a and b to be traced back to population S. Nevertheless, one expects the information concerning θS to be weak in datasets of two sequences per locus. In methods c and d, θS and φ are estimated as free parameters. Application of the misspecified MSci model (to data generated under the IM model) led to unreasonably large estimates of θS (as large as 0.5 mutations per site), and the poor estimates of θS caused φ to be poorly estimated as well. This is due partly to our use of one sequence per species per locus and partly to the confounding effects between θS and φ. We discuss both effects later when we describe the simulation results. Here we focus on methods a, b, and e, in which θS is fixed at the true value θ0 (in methods a and b) or constrained to be equal to θR (in method e).

In the IM model, migration occurs throughout the time interval (0,τR), at the rate of MAB migrants per generation (fig. 1a). When such data are analyzed under the introgression model, a simple expectation might be that the introgression time τS should be the average τR/2, whereas the introgression probability might be given by the expected proportion φ0 of equation (10). However, as we show below, this expectation is too simplistic.

First, we discuss the introgression time τS, assuming the true coalescent time (or n=). Given the data-generating IM model, there is a strictly positive probability for 0<t<ϵ for any small constant ϵ>0 (supplementary fig. S1, Supplementary Material online). In other words, there must exist loci at which t is arbitrarily close to 0. In the MSci model, sequences a and b cannot coalesce until they are in the same population S, so that τS<t. When the MSci model is fitted to data generated under the IM model, τ^S is dominated by the minimum rather than the average coalescent time, and τ^SτS*=0 when the number of loci L (and when the true coalescent time t is known). Even though migration occurs throughout the time interval (0,τR), the MSci model has to lump all migration events to one time point, τS*=0 (fig. 2bande).

With finite sequences (n<), t is not observed and is reflected in the number of mutations (x). Whatever the true t, there is a positive probability of observing no mutations between the two sequences, so that an absence of mutations (x=0) is not strong evidence for t=0. The MLE τS* reflects not only the minimum coalescent time, but also the whole distribution (supplementary fig. S1, Supplementary Material online). Thus τS*>0, different from the case where the coalescent time is known without error (n=). Nevertheless, one expects τS* to be closer to 0 than to τR, especially if the number of sites is large. Indeed in our calculations, τS*12τR (fig. 2bande).

Next we consider the introgression probability φ and again focus on methods a, b, and e (fig. 2). The estimate φ* increases nearly linearly when MAB is small (<14, say) but tails off at large MAB. All estimates are smaller than φ0 of equation (10) but they are close at low rates (with MAB<14 and φ<14, say) (fig. 2a, bande). We defer to a later section a detailed discussion of the estimation of φ, contrasting the IM, IIM, and SC models.

Finally the estimated divergence time between the two species (τR) matched the true values at low migration rates but was underestimated at high migration rates, with the ancestral population size θR overestimated (fig. 2). It may be tempting to interpret the underestimation of τR (and overestimation of θR) by the MSci model as being due to the difficulty of distinguishing complete isolation with recent species divergence from introgression or of distinguishing migration and coalescent events close to species divergence from ancestral polymorphism. However, this does not appear to be a correct interpretation.

We examined the true and fitted distributions of the coalescent time (supplementary fig. S1, Supplementary Material online). If there is no migration (MAB=0), the MSci model (with φ=0) will be correct, and the parameter estimates will converge to the true values, with a perfect fit to the density fm(t). At low migration rates (MAB0.1, say), the MSci model fits the density fm(t) very well, with the discontinuity point in the true and fitting distributions coinciding: τR*=τRm. At the intermediate rate of MAB=1, the species divergence time τR is still correctly estimated even though the fit to the density is poor (supplementary fig. S1, Supplementary Material online). At high rates (with MAB1.4, say), the true density has a mode in the interval (0,τRm), dropping off at τRm. The best fitting density starts from 0, with an exponential decay, and has a discontinuity point at τR with again an exponential decay. This best-fitting density is a poor fit, and the discontinuity point τR* is moved to smaller values as an attempt to accommodate the migration and coalescent events in the middle of the interval (0,τRm) to improve the fit (judged by the KL divergence). Thus τR is underestimated (τR*<τRm). As a result, the population size parameter θR is overestimated, as those two parameters tend to be strongly negatively correlated (e.g., Burgess and Yang 2008). In other words, the intermediate coalescent times in the interval (0, τR), which occur at a large proportion of loci, are accommodated or misinterpreted by the MSci model using a smaller τR and larger θR. Coalescent times in the range τR*<t<τRm, which represent true migration events, are misinterpreted as coalescent events in species R, and φ* is much less than φ0 (eq. 10).

Asymptotic Results under the IIM Model

When data are generated under the IIM model (fig. 1b) and analyzed under the MSci model (fig. 1d), the results (supplementary figs. S2 and S3, Supplementary Material online) show similar patterns to those under the IM model discussed above. Similarly, θS is difficult to estimate using two sequences per locus in methods c and d, and the poor estimates of θS affects the estimation of φ. Thus we focus on methods a, b, and e, in which θS is fixed or constrained, and on the introgression time and introgression probability.

In the IIM model, migration events occur throughout the time interval (τT,τR) (fig. 1b), but the estimate of the introgression time is dominated or influenced by the minimum coalescent time, so that τS*=τT when n=, and τS*>τT when n is finite. In the latter case, τS* is much closer to τT than to τR (supplementary fig. S2, Supplementary Material online).

The introgression probability φ* grew almost linearly with MAB when MAB was small (with MAB0.2, say), and this estimate was close to the expectation φ0 of equation (10) (supplementary fig. S2a,bande, Supplementary Material online). At high migration rates, equation (10) gave a serious overestimate. This “bias” in φ at high migration rates was accompanied by a reduction in τR and overestimation of θR. This can similarly be explained by the attempt of the MSci model to accommodate the coalescent times in the middle of the time interval (τT,τR) (supplementary fig. S3, Supplementary Material online).

Asymptotic Results under the SC Model

Under the SC model, there is initially complete isolation after species divergence but the two species come into contact at time τT, with ongoing gene flow ever since (fig. 1c). The best-fitting parameter values under the MSci model (Θi*), for data of two sequences per locus, are shown in supplementary figure S4, Supplementary Material online, with fitted densities of coalescent time t shown in supplementary figure S5, Supplementary Material online.

The results show patterns similar to those under the IM and IIM models discussed above. The species divergence time under the MSci model τR*=τR(sc) when the migration rate MAB is small but drops at very high rates (with MAB>2). The introgression time is dominated by the minimum coalescent time, so that τS*=0 when n=, and τS* is much closer to 0 than to τT when n is finite (supplementary fig. S4, Supplementary Material online). Note that in the true model migration occurs throughout the time interval (0,τT).

The introgression probability φ* grew almost linearly with the migration rate MAB when MAB was small (with MAB14, say), and was close to the expectation φ0 (eq. 10) when MAB<2 (supplementary fig. S4a,bande, Supplementary Material online). At very high rates (MAB>2), φ* was much smaller than φ0, and this ‘bias’ was accompanied by an underestimation of τR and overestimation of θR. Similarly to the IM and IIM models discussed above, this is due to the attempt of the MSci model to accommodate the coalescent times in the middle of the interval (0,τT) (supplementary fig. S5, Supplementary Material online).

The Amount of Gene Flow under the IM, IIM, and SC Models

Although the expected total amount of gene flow measured by φ0 (eq. 10) is the same under the IM, IIM, and SC models of figure 1ac, the estimates under the MSci model differ, as summarized in figure 1e.

At low migration rates, τR,θS, and θR in the MSci model are nearly accurately estimated to match those in the true model (figs. 2, supplementary figures S2 and S4, Supplementary Material online). Consider the case of infinitely long sequences with known coalescent time. Let τR*=τRm, θR*=θRm, and let the introgression time be τS*=0 for the IM and SC model, and τS*=τT for the IIM model. We also match the probability density of coalescent time t, with fi(t)=fm(t), for t>τR. With those simplifying assumptions, φ* that minimizes the KL divergence (eq. 9) can be derived as

φ(IM)*φ0wθA2(1e2θAτR)(1wθA2)(1e2θAτR),φ(IIM)*φ0wθA2(1e2θA(τRτT))(1wθA2)(1e2θA(τRτT)),φ(SC)*φ0wθA2wθA(ewτTe2θAτT)e2θA(τRτT)1e2θAτR. (11)

At low migration rates, equation (11) provides accurate numerical results (methods a, b, e in figs. 2, supplementary figures S2 and S4, Supplementary Material online). From equation (11), we have

φ0>φ(SC)*>φ(IIM)*=φ(IM)*. (12)

In other words, recent gene flow (as in SC) is easier to recover by the MSci model than ancient gene flow (as in IM or IIM). Note that φ(IIM)*=φ(IM)* holds only when one sequence is sampled per species; as there is no coalescent over (0,τT), IIM is essentially the same model as IM with a time shift (fig. 1). This will not be the case when multiple sequences per species are sampled or when the sequence length is finite.

Simulation Results

As our asymptotic theory was limited to a single sequence per species per locus, we used simulation to verify and augment our analytical calculations above. We simulated data under the IM, IIM, or SC models of figure 1ac, using the same parameter values as above, and analyzed them using Bpp under the MSci model (fig. 1d). The JC mutation model (Jukes and Cantor 1969) was assumed. In the basic setting, we used S=4 sequences per species per locus, n=1,000 sites per sequence, and L=4,000 loci in each dataset, with the migration rate MAB=0.2. We varied n,S,L,MAB to examine their effects. With multiple sequences per species (S>1), all eight parameters of the MSci model, Θi=(φ,θA,θB,θR,θS,θH,τR,τS) (fig. 1d) are identifiable (Yang and Flouri 2022). The results are summarized in figure 3. We note a few common features first. In nearly all cases, population sizes for extant species (θA,θB) were very well estimated, with posterior means close to the true values and with very narrow highest-probability-density (HPD) credibility intervals (CIs). The exception was parameter θB under the IM model (note that B is the species receiving immigrants), which was less well estimated when the dataset was small and had either short sequences (n=250) or few loci (L500), or when the migration rate was very high. The poorer estimation of θB appeared to be related to the underestimation of φ and τR; see below. The population size for the common ancestor θR was mostly well estimated, although overestimated at very high migration rates. Population sizes for the ancestral species (θS,θH) are harder to estimate; indeed they had larger CIs and were influenced by misspecification of the model of gene flow. As expected from the asymptotic results, τR was very well estimated, except at very high migration rates, in which case τR was underestimated (and θR overestimated).

Fig. 3.


Fig. 3.

Average posterior means and 95% HPD CIs for parameters in the MSci model of figure 1d over 30 replicate datasets simulated under the migration (IM, IIM, and SC) models of figure 1ac, plotted against the number of sites per sequence (n), the number of sequences per species (S), the number of loci (L), and the migration rate (MAB). Parameters in the migration model are given in the legend to figure 1. In the standard setting, each dataset consists of L=4,000 loci, with S=4 sequences per species at each locus and n=1,000 sites per sequence, and the migration rate was MAB=0.2 individuals per generation. In the four sets of simulations, one of the factors (n,S,L,M) varies whereas the others are fixed. When S=1, population sizes θA, θB, and θH are unidentifiable. Estimates of τ and θ parameters are multiplied by 103. Dotted lines indicate true values of identifiable parameters, except in the plot of φ against MAB, where it represents φ0 of equation (10), (which is identical for the IM, IIM, and SC models of fig. 1). Note that the n, S, L, and MAB axes are all on the logarithmic scale.

Next we examine the effects of n,S,L,MAB in turn. First, the number of sites (n) had a relatively small impact on MSci parameters, when other factors were fixed (at the basic setting of S=4,L=4,000, and MAB=0.2). When n=250, CIs for parameters such as the introgression time and probability (τS and φ) were wide. When n1,000, the CIs were much smaller for all parameters. The introgression time τ^S decreased slightly as the sequence became longer. This is consistent with the asymptotic analysis, which suggests that τS* is dominated by the smallest coalescent time or sequence divergence and should be 0 for the IM and SC models or τT for the IIM model (when n) (figs. 2, supplementary figures S2 and S4, Supplementary Material online). Similarly, for the IM and SC models, φ^ increased with the increase of n when MAB was low, as observed in the asymptotic analysis. Under the IIM model, small datasets with short sequences (n=250) produced very uncertain estimates of φ and θH (and, to a lesser extent, τS and θS). The two parameters are nearly confounded; this is discussed below when we examine the impact of the migration rate (MAB).

Second, we varied the number of sequences per species (S). When one sequence per species is in the data (S=1), only five parameters in the MSci model (fig. 1d) are identifiable: θR,θS,τR,τS,φ). When multiple sequences were sampled per species, all eight parameters are identifiable. They were well estimated when the dataset was large (say, with S2 for IM and SC or S4 for IIM). Even with S=4 sequences per species, estimates of φ from data generated under the IIM model involved wide CIs, with τS being close to τR, and θS and θH being very imprecise as well (fig. 3). This is due to the semi-unidentifiability or the confounding effects of the parameters, and will be discussed below. Here we note that the problem disappeared and all parameter estimates were well-behaved in large datasets when many sequences were sampled (S2 for IM and SC or S4 for IIM; fig. 3).

Third, we examined the impact of the number of loci (L). The IIM model was hard to fit in small datasets with a small number of loci (L1,000), generating large CIs for parameters φ and θH. This is the same pattern as in the case of short loci (n=250) or few sequences (S2), discussed above. In large datasets, the parameters were well estimated. Note that the number of loci L is the sample size in the statistical model as data at different loci are independently and identically distributed. Theory predicts that in large datasets the variance should be proportional to 1/L (see O’Hagan and Forster 2004 for the case of correctly specified models and Yang and Zhu 2018 for the case of misspecified models), and thus the CI should decrease at the rate of L1/2. This prediction held for parameters that were well estimated (fig. 3). As discussed earlier, the introgression time τS is dominated by the smallest coalescent time or smallest sequence divergence. Thus increasing the number of loci led to a decrease in the estimated introgression time, and the trend was in particular apparent for the IIM model (under which τ^SτT when L if n=). In all cases, the estimated introgression time (τ^S) was closer to the more recent end of the time interval for gene flow than to the midpoint, that is, τ^S<τR/2 for IM, τ^S<(τR+τT)/2 for IIM, and τ^S<τT/2 for SC (see fig. 1ac).

Finally, we evaluated the impact of the migration rate (MAB) (fig. 3). Under the IM model, there is a near linear relationship between the introgression probability φ and MAB at low rates. The amount of gene flow estimated under the MSci model is less than the true amount expected under the IM model (φ0 of eq. 10) but the two were close at low rates (with MAB<0.1, say). At very high rates (with MAB>1.0, say), divergence time τR was increasingly underestimated and the population size θR was overestimated. These patterns are the same as observed in the asymptotic analysis of infinite data (L=), and are due to the attempt of the MSci model to accommodate intermediate coalescent times in the data, as discussed earlier (see figs. 2, supplementary figures S2 and S4, Supplementary Material online).

Under the IIM model, φ^ involved very large uncertainties at low rates (MAB<0.04, say), with θS,τS, and θH affected as well. Given the small MAB, why did φ^ not converge to 0 with narrow CIs? Note that if MAB=0 in the IIM model, the MSC model with no gene flow or MSci with φ=0 will be the correct model. Similarly in figure 3 where MAB=0.2 was fixed, wide CIs for those parameters were observed in small datasets with short loci (n250), few sequences (S2), or few loci (L1,000), as noted above. Also in the asymptotic analysis (with L=), we noted that θS* and φ* were grossly wrong but had no sampling errors because the data size was L= (fig. 2; supplementary figures S2 and S4, Supplementary Material online, methods c, d). We suggest that all those results are due to the near unidentifiability of parameters in the MSci model (in particular, θS and φ); in other words, the parameters are confounded.

If MAB=0 in the MSC-M model, MSci with φ=0 will be the correct model, but φ>0 with a large appropriately adjusted θS may provide a very good fit to the data (of two sequences per locus). When MAB is small but nonzero, the MSci model will never achieve a perfect fit, and a large φ with appropriately adjusted θS may provide a better fit than a small φ. Thus in infinite data (L=), we may get grossly wrong estimates with no uncertainty (supplementary figure S2, Supplementary Material online, methods c, d). In finite datasets (L<), there will be a ridge in the posterior surface involving φ and θS, leading to wide CIs for those parameters, influenced by both model misspecification and the prior (fig. 3). Including multiple samples from the same species (S>1) is useful for improving the information content in the data, but strong correlation between φ^ and θ^S may be expected nevertheless. In this regard, the large uncertainties in posterior estimates of parameters may be useful as they help the investigator avoid incorrect inferences of a large φ when gene flow is minimal.

Introgression Events Assigned to Wrong Branches

We conducted simulations to examine the bias in parameter estimates when the introgression event is assigned on either the parental or daughter branch of the lineage genuinely involved in introgression. The data were simulated under model trees A or B and analyzed under models A or B of figure 4aandb.

Fig. 4.


Fig. 4.

(a,b) Two introgression (MSci) models and (c,d) two migration (IM) models used in simulation. The thin branches have the population size θ0=0.002 and the thick branches have θ1=0.01. In MSci model A, the species divergence/introgression times are τR=4θ0, τS=3θ0, τT=2θ0, and τX=τY=1.5θ0. In MSci model B, τR=4θ0, τS=3θ0, τT=θ0, and τX=τY=1.5θ0. Introgression probability is φ=0.2. In the IM model C, τR=4θ0, τS=3θ0, and τT=2θ0, with migration occurring from species A to B over time period (0,τT) at the rate M=0.1 migrants per generation. In the IM model D, τR=4θ0, τS=3θ0, and τT=θ0, with migration from species A to ST over time period (τT,τS) at the rate M=0.1. (e) The 95% HPD CIs for parameters in 100 replicate datasets of L=250, 1,000, and 4,000 loci. Column labels refer to the simulation model followed by the analysis model; for example, “B-A” means that data were simulated under model B and analyzed under model A. The values of θ and τ parameters are multiplied by 103. Black solid line indicates the true value.

In the A-A and B-B settings (fig. 4e), the correct MSci model was assumed, and the performance of the method serves as a reference for comparison. Most parameters, including the species divergence times (τR,τS,τT, and τX=τY) and population sizes for extant species (θA,θB,θC,θD), were well estimated. For well-estimated parameters, the CI width reduced by a half as the number of loci (L) quadrupled, as predicted by theory. Population sizes for ancestral species (θR, θS, θT, θX, and θY) were less well estimated, although performance improved with sample size: with L=4,000 loci, these parameters were well estimated. Introgression probability (φ) was well estimated, but thousands of loci were necessary to obtain precise estimates with narrow CIs under the standard settings used here (four sequences per species per locus and 500 sites per sequence).

In the other settings (fig. 4e), there was mismatch between the models used to simulate and to analyze data. We note that population sizes for extant species (θA,θB,θC,θD) were well estimated, as was the age of the root (τR). Performance for estimation of those parameters was very similar whether or not there was model misspecification (e.g., the A-B setting versus the B-B setting and C-A versus A-A). Below we focus on estimation of the other parameters.

In the A-B setting (fig. 4e), data were simulated under model A with AB introgression (fig. 4a) but analyzed under model B with introgression incorrectly assigned to the parental branch ST. Ancestral population sizes θR and θS were well estimated, similar to the B-B setting. Divergence times τR and τS were well estimated, but τ^T and τ^X were stuck together. We expect τ^T(B) to be mostly determined by the smallest sequence divergence (tbc) between B and C, which should be close to τT(A)=2θ0=0.004. Here, we use the superscript to indicate the model in which the parameter is defined. In the fitting model B, the introgression time τ^X(B) (which is >τ^T(B)) should reflect the smallest sequence divergence tab, whereas in the true model A, tab is mostly determined by τX (which is <τT). Thus misidentification of the introgression lineage caused τ^X(B) to be stuck at τ^T(B) (fig. 5a). There was virtually no information for θT as the population was estimated to have near-zero time duration with no chance for coalescence. The introgression probability was seriously underestimated, converging to φAB*0.12 when the number of loci L increases (table 1), whereas the true value was 0.2. This smaller estimate of introgression probability is explained by the distribution of coalescent times between species in the true and fitting models (supplementary fig. S6, Supplementary Material online, true model A). Under the true model A, sequences from A and B are more similar than those between A and C due to the AB introgression, with an excess of small coalescence time tab. Under the analysis model B, tab and tac have the same distribution. Thus the true model predicts an excess of small tab, whereas the fitting model predicts an excess of small tac, and having a smaller φ in the fitting model helps to reduce the discrepancy.

Fig. 5.


Fig. 5.

Posterior means of speciation/introgression times (×103) when the introgression event is assigned to a wrong branch. In (a) tree A-tree B, data were simulated using species tree A (fig. 4a), with introgression from species A to B, but are analyzed assuming tree B, with introgression assigned incorrectly to the parental branch ST (so that τX>τT). In (b) tree B-tree A, data were simulated under tree B (fig. 4b) and analyzed assuming tree A, with introgression assigned to the daughter branch B (with τX<τT). For each number of loci (L=250, 1,000, 4,000), 100 replicate datasets were generated and analyzed. These correspond to the A-B and B-A settings of figure 4e, where estimates of other parameters are shown.

Table 1.

Average Posterior Means and 95% HPD Intervals (in parentheses) for Introgression Time (τX, ×103) and Introgression Probability (φX) in the Simulations.

Analysis τX φ
L=250 L=1000 L=4000 L=250 L=1000 L=4000
Figure 4 A-A 3.06 (2.63, 3.49) 3.02 (2.80, 3.24) 3.00 (2.89, 3.11) 0.23 (0.16, 0.32) 0.21 (0.17, 0.24) 0.20 (0.19, 0.22)
Figure 4 B-A 1.62 (0.95, 2.05) 1.77 (1.54, 1.96) 1.82 (1.72, 1.91) 0.02 (0.00, 0.04) 0.02 (0.01, 0.03) 0.02 (0.02, 0.03)
Figure 4 C-A 1.12 (0.83, 1.40) 1.11 (0.97, 1.25) 1.11 (1.04, 1.18) 0.12 (0.09, 0.15) 0.12 (0.10, 0.13) 0.12 (0.11, 0.12)
Figure 4 D-A 1.69 (1.18, 2.07) 1.80 (1.58, 1.97) 1.86 (1.76, 1.94) 0.02 (0.01, 0.04) 0.02 (0.01, 0.03) 0.02 (0.02, 0.03)
Figure 4 A-B 3.82 (3.53, 4.11) 3.75 (3.61, 3.90) 3.73 (3.66, 3.80) 0.18 (0.09, 0.28) 0.13 (0.11, 0.16) 0.12 (0.11, 0.14)
Figure 4 B-B 2.98 (2.61, 3.35) 2.99 (2.80, 3.18) 3.00 (2.91, 3.10) 0.23 (0.14, 0.34) 0.20 (0.17, 0.24) 0.20 (0.18, 0.22)
Figure 4 C-B 2.98 (2.72, 3.24) 2.93 (2.80, 3.06) 2.91 (2.85, 2.98) 0.11 (0.08, 0.14) 0.10 (0.09, 0.12) 0.10 (0.10, 0.11)
Figure 4 D-B 2.83 (2.28, 3.38) 2.71 (2.42, 3.00) 2.73 (2.59, 2.87) 0.11 (0.04, 0.20) 0.08 (0.05, 0.10) 0.08 (0.07, 0.09)
Figure 6 IIM 3.40 (2.38, 4.36) 2.93 (2.42, 3.43) 2.83 (2.58, 3.08) 0.24 (0.04, 0.53) 0.10 (0.05, 0.16) 0.08 (0.06, 0.10)
Figure 7 2.81 (2.41, 3.22) 2.80 (2.60, 3.01) 2.79 (2.68, 2.89) 0.23 (0.16, 0.31) 0.21 (0.18, 0.25) 0.21 (0.19, 0.22)
Figure 8 3.12 (1.93, 4.07) 3.05 (2.42, 3.68) 2.98 (2.73, 3.23) 0.03 (0.01, 0.06) 0.03 (0.01, 0.04) 0.02 (0.02, 0.03)

In the B-A setting (fig. 4e), the simulation model (MSci model B of fig. 4b) assumes introgression involving the ancestral branch ST but the analysis model (model A) assigned introgression to the daughter branch TB. Posterior means and CIs for divergence times τR and τT were similar to those in the A-A setting. Note that τ^T(A) should be mostly determined by the smallest sequence divergence (tbc) between B and C, and given that this is τT(B)=2θ0=0.002, τ^T(A) was well estimated, unaffected by mis-assigned introgression event. Although the true introgression time τX was 0.003, it was forced to be less than τT by the analysis model A. As the number of loci increases, τ^X(A) became stuck at τ^T(A) (fig. 5b). However, τ^S(A) was seriously underestimated. This may be explained as follows. In the analysis model A, τ^S(A) was mostly determined by the shortest sequence distance between A and C. In the true model B, this should be close to τX(B)=1.5θ0=0.003, due to introgression. With mutational fluctuations in the sequences, one can expect τ^S(A) to lie between (τX(B),τS(B))=(1.5θ0,3θ0), but closer to τX(B) in large datasets with many sites and/or many loci. Population sizes θ^S(A) and θ^Y(A) were affected by the mis-assigned introgression events as well, as those populations are close to the introgression branches. In particular, θ^Y(A) was very imprecise as branch YT was very short, and θ^S(A) was overestimated because τ^S(A) was seriously underestimated (as those two parameters are negatively correlated). Finally, the introgression probability (φ) was underestimated, apparently converging to φBA*0.02 when the number of loci L increased (table 1), whereas the true value was 0.2. This greatly reduced introgression probability appeared to reflect the very poor fit of the misspecified model A to data generated under model B (see the large differences between the true and fitting distributions of coalescent times in supplementary fig. S6, Supplementary Material online, second row). As τ^X(A) and τ^S(A) are seriously underestimated, an excess of small coalescent times (tab,tac) is expected in the fitting model A but does not appear in the data, so that having a smaller φ improves the fit.

In summary, assigning introgression events to a wrong parental or daughter branch led to biased estimates of introgression times (causing the introgression events to collapse onto speciation events) and to seriously underestimated introgression probabilities.

Continuous Migration versus Episodic Introgression

In this set of simulations, we generated data under the IM models C and D of figure 4candd and analyzed them under the MSci models A and B, with the mode of gene flow misspecified and with gene flow assigned to either the correct branch or a wrong branch on the species tree.

In the C-A and D-B settings (fig. 4e), gene flow occurred continuously but the data were analyzed under the MSci model assuming introgression at a time point. The mode of gene flow was misspecified, but the lineages involved were correctly identified. In the C-A setting, gene flow was between non-sister species, whereas in the D-B setting it was between sister species. Speciation times (τR, τS, τT) and population sizes (θ) were well estimated, similar to the A-A setting. Surprisingly ancestral population sizes θT,θX,θY appeared to be even better estimated, with narrower CIs, in the C-A setting than in A-A. Speciation times and population sizes were extremely similar between settings D-B and B-B. Those results were consistent with the results for the case of two species (fig. 3), which showed that at low migration rates, species divergence times and population sizes were well estimated under the MSci model when the data were generated under the IM model.

In the C-A setting, the estimated introgression time τ^X(A) appeared to converge (when L increased) to 0.0011, much more recent than the average time of gene flow (τT(C)/2=0.002), and the introgression probability φ^CA appeared to converge to φCA*=0.12 (table 1), smaller than the expected proportion of total migrants: φ0=1e4MABτT(C)/θB(C)=0.148. As discussed earlier for the case of two species, the limiting value for τ^X(A) was nonzero, as the sequence length is finite, and the MLE φ^CA slightly underestimated the true amount of gene flow. In the D-B setting, the introgression time τ^X(B) appeared to converge to 0.0027, larger than τT(D)=0.002 but much smaller than the average time of gene flow, 12(τS(D)+τT(D))=0.004, and the introgression probability φ^DB appeared to converge to φDB*=0.08 (table 1), much smaller than φ0=0.148 from equation (10). In both the C-A and D-B settings, the estimated introgression time was within the time interval of gene flow, but closer to the time when gene flow stopped, whereas the amount of gene flow was underestimated (φCA*<φ0, φDB*<φ0). Moreover, we have φDB*<φCA*. These patterns are consistent with our analysis of the two-species case at low migration rates (eq. 12, fig. 3), which suggested that gene flow after a period of isolation (the SC model) is easier to recover than gene flow that starts at speciation but stops some time afterwards (the IIM model).

In the C-B and D-A settings (fig. 4e), the mode of gene flow was misspecified and furthermore gene flow was assigned onto the wrong branch of the species tree. In the C-B setting, divergence time τT was underestimated slightly, due to gene flow assigned to the wrong branch, as observed in the A-B setting. Ancestral population sizes θT and θY were affected by gene flow, similar to the A-B setting. Model B forces τX>τT. Thus we expect τ^X(B) and τ^T(B) to get stuck together, with both being smaller than τT(C)=2θ0=0.004; as the number of loci L increased, τ^X(B) appeared to converge to 0.0029, and φ^CB to φCB*=0.10 (table 1).

In the D-A setting, the divergence time τS was underestimated, due to gene flow assigned to the wrong branch, similarly to the B-A setting. The ancestral population sizes θR and θX were well estimated as in the A-A setting, but θT had a slight positive bias. The ancestral population sizes θS and θY were affected by the gene flow, similar to the B-A setting. The introgression time and probability (τX and φ) do not exist in the simulation model D. Model A forces τX<τT, so we expect τ^X(A) to be close to τT(D)=θ0=0.002; when the number of loci L increased, τ^X(A) appeared to converge to 0.00186, and φ^DA to φDA*=0.02 (table 1). Note that φ0>φ^CB>φ^DA with φ^CB<φ^CA and φ^DA<φ^DB. Those results are consistent with our early results for fitting the MSci model to data generated under the migration model in the two-species case (eq. 12, fig. 3), and with the results for the A-B and B-A settings that assignment of gene flow to a wrong branch reduces the estimate of φ.

In summary, the estimated introgression probabilities, at 0.12, 0.08, 0.10, and 0.02 for the C-A, D-B, C-B, and D-A settings, respectively, even though the total amount of gene flow was the same in models C and D (table 1), suggest the following general patterns. First, the MSci model underestimates the total amount of gene flow if gene flow occurs continuously in every generation (i.e., φ^CA<φ0,φ^DB<φ0), as discussed in our analysis of the two-species case. Second, assigning gene-flow events to wrong lineages led to serious underestimation of the amount of gene flow (i.e., φ^CB<φ^CA,φ^DA<φ^DB). Third, recent gene flow in the data is more easily recovered (i.e., φ^CA>φ^DB,φ^CB>φ^DA).

Isolation with Initial Migration (IIM) Model

Next, we assessed the effects of taxon sampling when the mode of gene flow is misspecified. We used the IIM model for three species of figure 6a to simulate data and analyzed them under the MSci model of figure 6b. Species divergence times (τR,τS) and population sizes (θA,θB,θC,θR,θS, and even θX and θY) were well estimated. We expect the estimated introgression time τ^X to converge to τT=θ0=0.002 if the sequence length is infinite and to a higher limit for finite sequence length. In our simulation τ^X0.00283 at L=4,000 (table 1). The estimated introgression probability (φ^) converged to a nonzero limit, 0.08 (table 1), compared with φ0=0.148 by equation (10).

Fig. 6.


Fig. 6.

(a) An isolation-with-initial-migration (IIM) model used to simulate data. The parameter values used are θ0=0.002 for population sizes for the thin branches and θ1=0.01 for the thick branches, τR=4θ0,τS=3θ0,τT=θ0 for species divergence times. The number of sequences is S=4, with the sequence length n=500. The migration rate is M=0.1. (b) The MSci model used to analyze the data. (c) The 95% HPD CIs for parameters, with black lines indicating the true values. Estimates of θ and τ are multiplied by 103.

The IIM model of figure 6a is very similar to the two-species model of figure 1b except that here the tree is larger with more species, and serves to highlight the fact that the impact of the misspecification of the model of gene flow is local. The case is also similar to the D-B setting of figure 4, with the only difference that here the hybridizing species T had only one descendent species sampled in the data, whereas in figure 4 (D-B) it had two descendent species sampled. Thus estimates of parameters such as the introgression probability and introgression time were similar to those in the D-B setting of figure 4 but with wider CIs (table 1). Unlike approximate methods designed to work with species triplets or quartets only, the Bayesian approach accommodates an arbitrary number of species in the data (with arbitrary data configurations at each locus), so that the difference in taxon sampling has only the effect of affecting the information content in the data.

Ghost Species

We considered two scenarios in which a species that contributed migrants to extant species has gone extinct or is otherwise unsampled in the data. Note that existence of extinct or unsampled species that received genetic materials from ancestors of extant species in the sample is not relevant to the analysis of the sampled data and does not constitute a model misspecification. In the first scenario, model A of figure 7a is used to simulate data, which assumes that species XUV contributed migrants to species B but is not included in the sample. Note that this model is equivalent to model A of figure 7a. When we fit model B (fig. 7b), the only incorrect assumption is the constraint that τX=τY. This is a minor misspecification. Indeed all parameters shared between the simulation model and the analysis model were well estimated (fig. 7c). The estimates of introgression time, τ^X=τ^Y0.0028 (table 1), were close to the average of the two parameters in the true model (0.0025). Introgression probability φ^0.21 (table 1) was also close to the true value (0.2). The existence of the ghost species (XUV) had very little effect on the inference.

Fig. 7.


Fig. 7.

(a) MSci model A (fig. 1A in Flouri et al. 2020) assumes that τX>τY and τT>τY and can represent scenario (a) in which species X split into two species (A and U), and species XUV contributed migrants into species TYB at time τY but has since become extinct. This model was used to simulate data, with θ0=0.002 for the thin branches and θ1=0.01 for the thick branches, τR=4θ0,τS=3θ0,τT=2θ0, τX=1.5θ0, and τY=θ0. The introgression probability is φ=0.2. The number of sequences is S=4, and the sequence length is n=500. (b) MSci model B (fig. 1B in Flouri et al. 2020) used to analyze the data, which incorrectly assumes τX=τY. (c) The 95% HPD CIs for parameters, with θs and τs multiplied by 103 and black solid line indicating the true value.

In the second scenario (fig. 8a), the true model assumes continuous migration involving intermediate ancestral species that have gone extinct, and the MSci model (fig. 8b) was fitted to data sampled from extant species. Divergence times τR and τT were very well estimated, as were the population sizes shared between the simulation and analysis models (θA, θB, θC, θR). We expect τ^T in model B to be dominated by the minimum coalescent time tab between sequences from A and B, and this is given by τT(A). Gene flow from branches RC to SU over the time interval (τU,τS) and then from SU to TB during (τU,τT) was interpreted as introgression in the MSci model. The effective rate for this migration may be close to MCUMUB=0.04, giving φ0=1e4×MCUMUB×(τTτU)/θB=0.031. The estimate was φ^X0.02 (fig. 8c, table 1). The introgression time τ^X should be between τU=θ0=0.002 and τT=2θ0=0.004 and the estimate was 0.0030 (fig. 8c, table 1). Note that both θ^T and θ^Y were overestimated (fig. 8c). Branch T of figure 8b corresponds to branches RS and ST of figure 8a, with population size θ0=0.002. Branch Y corresponds to a segment of branch TB over the time interval (τU,τT), with θ1=0.01. Overestimation of θY (and θT) may be because there is a deficit of tbb over the interval (τU,τS) due to gene flow, and the fitting MSci model, with the amount of gene flow underestimated (φ^<φ0), used large θ^Y and θ^T to compensate.

Fig. 8.


Fig. 8.

(a) Migration model involving ghost species for simulating data. The parameter values used are θ0=0.002 for the thin branches and θ1=0.01 for the thick branches, with the divergence times (τs) shown next to the internal nodes. The number of sequences is S=4, and the sequence length is n=500. The migration rates are MCU=MUB=0.2 migrants per generation. (b) MSci model used to analyze the data. (c) The 95% HPD CI for parameters, with θs and τs multiplied by 103, and with black solid lines indicating the true values.

Discussion

The Mode of Gene Flow and the Utility of Misspecified Introgression Models

The asymptotic theory, even though based on only two species with one sequence sampled per species per locus, has been very useful. It generated a number of insights that were confirmed and extended in our simulation. Together the theory and simulation suggest the following correspondence between the MSC-M and MSci models. When gene flow occurs continuously over an extended time period after divergence of two species and we fit the introgression model, the estimated introgression time tends to be closer to the more recent end of the time period of gene flow, because the introgression time is dominated by the most recent coalescent time or the minimum sequence divergence between species. If the true coalescent time is known and used as data, the introgression time will converge to the time when gene flow stopped. At low migration rates (M<14, say), the species divergence time is correctly estimated by the MSci model, and the introgression probability φ is lower than but close to the expected proportion of migrants (φ*<φ0). The estimate is particularly close under the secondary-contact model (supplementary fig. S4, Supplementary Material online). At very high migration rates, the estimated introgression probability φ* may be much less than φ0, and furthermore the species divergence time is underestimated to account for intermediate coalescent times generated under the MSC-M model. Recent gene flow (as in the SC model) is easier to recover (with φ* closer to φ0) than ancient gene flow (as in the IIM model).

The accurate estimation of species divergence times under the MSci model despite the misspecification, at least at lower migration rates (e.g., τR for M0.3 in fig. 3), may be worth emphasizing. It is well known that ignoring gene flow between two species may lead to serious underestimation of the species divergence time. Here our results suggest that if gene flow is continuous, the MSci model assuming introgression at a fixed time point still gives reliable estimates of the species divergence time. The estimated introgression probability (φ) may also serve as a useful guide even though it reflects both the migration rate per generation (m or M) and the time duration of the period of gene flow (eq. 10). Even if gene flow occurs continuously over time (so that the migration model is a more realistic model), the MSci model is effective in extracting historical information about species divergence times and population sizes. Note that on the evolutionary time scale, a few hundred or thousand generations may count as a fixed time point, in which case the MSci model may provide an adequate approximation.

Both the asymptotic theory and simulation have highlighted the semi-unidentifiability or confounding effects between the introgression probability (φ) and the population size of the donor species (θS in fig. 1d) (e.g., fig. 2, methods c and d). The problem is particularly acute under the IIM model applied to small datasets (with short loci, few sequences per species, or few loci), where high estimates of φ with wide CIs are produced even though migration occurs at very low rates (fig. 3). One such case has been observed in a recent analysis of genomic data from the erato group of Heliconius butterflies (Thawornwattana et al. 2022). The estimated H. saraH. demeter introgression probability was high with wide CIs for some chromosomal regions with a small number of loci (e.g., chromosome 21 with 4350 noncoding and 3628 coding loci, and an inversion on chromosome 15 with 149 noncoding and 167 coding loci), with the introgression time close to the species divergence time, whereas for the other large chromosomes, the estimates were nearly zero (φ^<0.01). The true rate in this case appeared to be φ0, but the limited data from small chromosomal segments led to poorly supported large introgression rates, as in our simulations (fig. 3).

We demonstrated that including multiple samples from the same species (in particular, from recipient species) is important to resolving unidentifiability issues or confounding effects, as well as boosting up the information content concerning the rate of gene flow in the data. In this regard, it may be noted that many approximate methods are designed to use only one sample per species, and it has been claimed that “adding more samples provides little new information with respect to introgression” (Hibbins and Hahn 2022). We suggest that this may not be a generally correct statement.

Overall, our simulations using larger species trees with more than two species suggest that misspecification of the mode of gene flow (continuous migration versus episodic hybridization/introgression) has relatively small and localized effects, restricted to divergence times and population sizes around the lineages involved in gene flow, while species divergence times, population sizes for extant species and for ancestral species not involved in gene flow are largely unaffected. If gene flow occurs between species A and B but more distantly related species are included in the data sample, parameters outside the AB clade are largely unaffected (e.g., compare results for the IIM model for two species of fig. 3 with those for three species of fig. 6). Similarly, if A represents a clade rather than one species, divergence times and population sizes inside the A clade are not affected by gene flow involving the branch ancestral to the A clade (e.g., compare the D-B setting of fig. 4 with the IIM model of fig. 3).

Assigning gene flow to parental or daughter branches causes the introgression probability to be underestimated, and the introgression time to collapse onto the species divergence time. This result may be used to diagnose the mis-assignment of introgression lineages in real data analysis (Ji et al. 2022). A number of authors have discussed the impact of ghost species on detection of between-species gene flow (Beerli 2004; Ottenburghs 2020). Tricou et al. (2022) used simulations to demonstrate that D-statistics can be misled to detect false signals of introgression when the model involved an unsampled (ghost) species. In our simulations, the impact of ghost species on Bayesian estimation of introgression rate and time was minor provided we considered the rate of gene flow in the migration and introgression models to reflect both indirect gene flow via intermediate species and direct gene flow.

Testing Models of Gene Flow

In this study, we fixed the model of introgression in our analyses, with all introgression events pre-identified, to examine the effects of model misspecification. One may ask what happens if different introgression models (which for example assign introgression events onto different branches of the species tree) are compared using genomic data. Currently, both *beast and Phylonet have implemented cross-model MCMC algorithms under the MSci model, which insert and delete introgression events on the species tree, allowing the Markov chain to move between models. Those algorithms are computationally expensive and currently the two programs can handle only very small datasets (with <100 loci, say). In the Bpp program, one may use the Bayes factor to compare two MSci models, using thermodynamic integration (Gelman and Meng 1998; Lartillot and Philippe 2006) combined with Gaussian quadrature to calculate the marginal likelihood values (Rannala and Yang 2017). In the case where the compared models are nested (e.g., one with introgression and another without), the Bayes factor may also be calculated through the Savage–Dickey density ratio (Dickey 1971), which uses only a within-model MCMC run under the more general model (Ji et al. 2022). This has a computational advantage over reversible jump MCMC (Green 1995), and has recently been applied to formulate and compare introgression models in an analysis of genomic data from the Tamias quadrivittatus group of North American chipmunks (Ji et al. 2022). Calculation of marginal likelihood values or Bayes factors may be feasible if we have only a small number of well-specified models but may not be feasible for searching in the space of MSci models for a given set of species.

Approximate methods have also been developed to infer introgression events or the so-called phylogenetic networks using summaries of the multilocus sequence data. For example, estimated gene tree topologies may be treated as data, as in Phylonet/gt (Wen et al. 2016). Some methods are designed to detect gene flow in a small tree with three or four species, including summary methods based on genome-wide site-pattern counts (such as D and Hyde discussed earlier) or on estimated gene trees (e.g., Snaq) and maximum likelihood applied to multilocus sequence alignments (e.g., 3s, Zhu and Yang 2012; Dalquen et al. 2017). Results for species subsets may then be combined to formulate an introgression model on the large tree for all species, which is a challenging task (Edelman et al. 2019; Thawornwattana et al. 2022). In summary, there is currently an acute need for improving the computational efficiency of Bayesian MCMC algorithms for inference under the MSC model with gene flow and the statistical efficiency of approximate methods.

It will also be interesting to use the same genomic data to compare the MSC-M and MSci models. The two classes of models often predict very different distributions of gene trees and coalescent times (e.g., supplementary figs. S1, S3, S5, Supplementary Material online; see also Jiao and Yang 2021). Thus, genomic data may be informative to distinguish them. A stochastic search in the combined space of MSC-M and MSci models may be infeasible, as the two types of models are very different. However, they can be compared using Bayes factors.

Materials and Methods

Simulation to Establish a Correspondence between the Migration and Introgression Models in the Case of Two Species

We analyzed the relationships between parameters when data are generated under the continuous migration model (IM, IIM, and SC; fig. 1ac) and analyzed under the episodic introgression (MSci) model (fig. 1d). Our theory assumed an infinite number of loci (L=), a finite number of sites per sequence (n), with only one sequence per species per locus. We conducted computer simulations to augment the theoretical analysis. Data of multilocus sequence alignments were simulated under the IM, IIM, and SC models of figure 1ac, and analyzed under the MSci model (fig. 1d). Population sizes on the species tree (fig. 1) were θ0=0.002 for the thin branches and θ1=0.01 for the thick branches. Migration occurred from species A to B after their divergence at τR=θ0 in the IM model, between τR=2θ0 and τT=θ0 in the IIM model, and between τT=θ0 and the present time in the SC model. In the standard model, the migration rate was MAB=0.2 individuals per generation. Each dataset consisted of L=4,000 loci, with S=4 sequences per species, and n=1,000 sites per sequence. We conducted four sets of simulation to examine the impact of the number of sites per sequence (n), the number of sequences per species (S), the number of loci (L), and the migration rate (MAB). The values used were n=250, 1,000, 4,000, 16,000, 64,000; S=1, 2, 4, 8, 16; L=250, 500, 1,000, 2,000, 4,000, 8,000; and MAB=0.01, 0.02, 0.03, 0.04, 0.05, 0.07, 0.1, 0.2, 0.3, 0.4, 0.5, 0.7, 1.0, 1.5, 2.0. With three models (IM, IIM, and SC), four factors (n,S,L,M), and 30 replicates, a total of 3×(5+5+6+13)×30=2,790 datasets were simulated. Data were simulated using Bpp 4.4.1 (Flouri et al. 2018, 2020), by generating the gene tree with coalescent times for each locus and then “evolving” sequences along branches of the gene tree under the JC mutation model (Jukes and Cantor 1969). Sequences at the tips of the gene tree constituted the data at the locus.

Each dataset was analyzed using Bpp under the MSci model (fig. 1d) to estimate the parameters. This is the so-called A00 analysis, with the model fixed (Yang 2015). The Bayesian implementation of the MSci model in Bpp accommodates gene-tree reconstruction uncertainties while making use of information in both gene tree topologies and branch lengths, and allows the estimation of the direction, timing, and strength of introgression (Jiao et al. 2021). The JC mutation model was assumed in the analysis. Gamma priors were assigned to population size parameters (θ) and to the age of the root on the species tree; θG(2,400) and τ0G(2,200). Note that the gamma distribution G(a,b) has mean a/b and variance a/b2, so that the shape parameter a=2 means diffuse priors. Introgression probability φ was assigned the beta prior beta(1,1), which is U(0,1).

We used 32,000 MCMC iterations as burnin, and took 2×105 samples, sampling every five iterations.

Introgression Events Assigned to Wrong Branches

Data were simulated under models A and B of figure 4 and analyzed under models A and B, possibly with the introgression event assigned incorrectly onto either the parental or a daughter branch of the branch truly involved in introgression. The species divergence times (τ) are shown in the trees (fig. 4). We used S=4 sequences per species per locus, with n=500 sites in the sequence. The number of loci was L=250, 1,000, and 4,000. We used two population sizes, with θ0=0.002 for the thin branches and θ1=0.01 for the thick branches. The number of replicates was 100.

Each dataset was analyzed using Bpp under both models A and B (fig. 4aandb). Gamma priors were assigned to parameters, θG(2,400) with mean 0.005 and τ0G(2,200) with mean 0.01. With two trees/models, three numbers of loci, 2×3×100=600 datasets were simulated, each analyzed under models A and B. We used 32,000 MCMC iterations as burnin, and took 2×105 samples, sampling every five iterations.

Continuous Migration versus Episodic Introgression

Data were simulated under the MSC-M models C and D of figure 4candd, with continuous migration at the rate M=0.1 migrants per generation, and analyzed under MSci models A and B (fig. 4aandb), resulting in four settings: C-A (simulation model C and analysis model A), C-B, D-A, and D-B. In setting C-A and D-B, gene flow was continuous in the true model but the MSci model assumes episodic introgression at a particular time point, so that the mode of gene flow is misspecified. In settings C-B and D-A, the mode of gene flow was similarly misspecified but we had in addition mis-assignment of gene flow to wrong branches on the species tree. Other parameter settings were the same as above. With two trees, three numbers of loci (L), a total of 600 datasets were generated, each analyzed twice (under models A and B).

Isolation with Initial Migration (IIM) Model

Data were simulated under the IIM model A of figure 6a, with AB migration over the time period (τT,τS), and analyzed under the MSci model of figure 6b, assuming introgression at time τX=τY. The IIM model was specified using a ghost species (U) from which no sequences were available. We generated 100 replicate datasets, each of L=250, 1,000, or 4,000 loci, with a total of 300 datasets simulated. MCMC settings were the same as above.

Ghost Species

To assess the effects of unsampled ghost population, we simulated data under MSci model A (see fig. 1A in Flouri et al. 2020) of figure 7a and analyzed them under the MSci model B of figure 7b, with τX=τY incorrectly assumed. Here introgression involved a ghost species XUV which went extinct or was otherwise unsampled in the data. This scenario is equivalent to model A of figure 7a. With the three values for L (250, 1,000, 4,000), 300 datasets were generated, all analyzed under the MSci model (fig. 7b).

We also used the IIM model of figure 8a to generate data, with migration from species RC to SU and from SU to TB, and with V and W to be unsampled ghost species. Data (i.e., sequences from A,B and C) were analyzed under the MSci model of figure 8b. We used three values for L (250, 1,000, 4,000) and 100 replicates, with 300 datasets simulated in total. Other settings were the same as above.

Supplementary Material

msac237_Supplementary_Data

Acknowledgments

This study has been supported by Biotechnology and Biological Sciences Research Council grants (BB/T003502/1, BB/R01356X/1), as well as by Harvard University.

Contributor Information

Jun Huang, School of Biomedical Engineering, Capital Medical University, Beijing 100069, P.R. China.

Yuttapong Thawornwattana, Department of Organismic and Evolutionary Biology, Harvard University, Cambridge, MA 02138.

Tomáš Flouri, Department of Genetics, Evolution and Environment, University College London, London WC1E 6BT, United Kingdom.

James Mallet, Department of Organismic and Evolutionary Biology, Harvard University, Cambridge, MA 02138.

Ziheng Yang, Department of Genetics, Evolution and Environment, University College London, London WC1E 6BT, United Kingdom.

Supplementary Material

Supplementary data are available at Molecular Biology and Evolution online.

References

  1. Aeschbacher S, Bürger R. 2014. The effect of linkage on establishment and survival of locally beneficial mutations. Genetics 197(1):317–336. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Akerman A, Bürger R. 2014. The consequences of gene flow for local adaptation and differentiation: a two-locus two-deme model. J Math Biol. 68(5):1135–1198. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Anderson E. 1949. Introgressive hydridization. New York: John Wiley. [Google Scholar]
  4. Bahlo M, Griffiths RC. 2000. Inference from gene trees in a subdivided population. Theor Popul Biol. 57:79–95. [DOI] [PubMed] [Google Scholar]
  5. Barton N, Bengtsson BO. 1986. The barrier to genetic exchange between hybridising populations. Heredity. 57(3):357–376. [DOI] [PubMed] [Google Scholar]
  6. Beerli P. 2004. Effect of unsampled populations on the estimation of population sizes and migration rates between sampled populations. Mol Ecol. 13:827–836. [DOI] [PubMed] [Google Scholar]
  7. Beerli P, Felsenstein J. 1999. Maximum-likelihood estimation of migration rates and effective population numbers in two populations using a coalescent approach. Genetics 152:763–773. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Beerli P, Felsenstein J. 2001. Maximum likelihood estimation of a migration matrix and effective population sizes in n subpopulations by using a coalescent approach. Proc Natl Acad Sci U S A. 98:4563–4568. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Blischak PD, Chifman J, Wolfe AD, Kubatko LS. 2018. HyDe: a Python package for genome-scale hybridization detection. Syst Biol. 67(5):821–829. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Bürger R, Akerman A. 2011. The effects of linkage and gene flow on local adaptation: a two-locus continent-island model. Theor Popul Biol. 80(4):272–288. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Burgess R, Yang Z. 2008. Estimation of hominoid ancestral population sizes under Bayesian coalescent models incorporating mutation rate variation and sequencing errors. Mol Biol Evol. 25(9):1979–1994. [DOI] [PubMed] [Google Scholar]
  12. Costa RJ, Wilkinson-Herbots H. 2017. Inference of gene flow in the process of speciation: an efficient maximum-likelihood method for the isolation-with-initial-migration model. Genetics 205(4):1597–1618. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Costa RJ, Wilkinson-Herbots HM. 2021. Inference of gene flow in the process of speciation: efficient maximum-likelihood implementation of a generalised isolation-with-migration model. Theor Popul Biol. 140(1–15):1–15. [DOI] [PubMed] [Google Scholar]
  14. Dalquen D, Zhu T, Yang Z. 2017. Maximum likelihood implementation of an isolation-with-migration model for three species. Syst Biol. 66:379–398. [DOI] [PubMed] [Google Scholar]
  15. Degnan JH. 2018. Modeling hybridization under the network multispecies coalescent. Syst Biol. 67(5):786–799. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Dickey JM. 1971. The weighted likelihood ratio, linear hypotheses on normal location parameters. Ann Math Stat. 42(1):204–223. [Google Scholar]
  17. Dittberner H, Tellier A, de Meaux J. 2022. Approximate Bayesian computation untangles signatures of contemporary and historical hybridization between two endangered species. Mol Biol Evol. 39(2):msac015. doi: 10.1093/molbev/msac015 [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Dobzhansky T. 1937. Genetics and the origin of species. New York: Columbia University. [Google Scholar]
  19. Edelman NB, Frandsen PB, Miyagi M, Clavijo B, Davey J, Dikow RB, García-Accinelli G, Van Belleghem SM, Patterson N, Neafsey DE, et al. 2019. Genomic architecture and introgression shape a butterfly radiation. Science 366(6465):594–599. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Ellegren H, Smeds L, Burri R, Olason PI, Backstrom N, Kawakami T, Kunstner A, Makinen H, Nadachowska-Brzyska K, Qvarnstrom A, et al. 2012. The genomic landscape of species divergence in Ficedula flycatchers. Nature 491:756–760. [DOI] [PubMed] [Google Scholar]
  21. Elworth RAL, Ogilvie HA, Zhu J, Nakhleh L. 2019. Advances in computational methods for phylogenetic networks in the presence of hybridization. Bioinform Phylogenet. 29:317–360. [Google Scholar]
  22. Finger N, Farleigh K, Bracken J, Leache A, Francois O, Yang Z, Flouri T, Charran T, Jezkova T, Williams D, et al. 2022. Genome-scale data reveal deep lineage divergence and a complex demographic history in the Texas horned lizard (Phrynosoma cornutum) throughout the southwestern and central USA. Genome Biol Evol. 14(1):evab260. doi: 10.1093/gbe/evab260 [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Flouri T, Jiao X, Rannala B, Yang Z. 2018. Species tree inference with BPP using genomic sequences and the multispecies coalescent. Mol Biol Evol. 35(10):2585–2593. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Flouri T, Jiao X, Rannala B, Yang Z. 2020. A Bayesian implementation of the multispecies coalescent model with introgression for phylogenomic analysis. Mol Biol Evol. 37(4):1211–1223. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Gelman A, Meng X. 1998. Simulating normalizing constants: from importance sampling to bridge sampling to path sampling. Stat Sci. 13:163–185. [Google Scholar]
  26. Green PJ. 1995. Reversible jump Markov chain monte carlo computation and Bayesian model determination. Biometrika 82:711–732. [Google Scholar]
  27. Green RE, Krause J, Briggs AW, Maricic T, Stenzel U, Kircher M, Patterson N, Li H, Zhai W, Hsi-Yang Met al. 2010. A draft sequence of the Neandertal genome. Science 328:710–722. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Hey J. 2010. Isolation with migration models for more than two populations. Mol Biol Evol. 27:905–920. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Hey J, Chung Y, Sethuraman A, Lachance J, Tishkoff S, Sousa VC, Wang Y. 2018. Phylogeny estimation by integration over isolation with migration models. Mol Biol Evol. 35(11):2805–2818. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Hey J, Nielsen R. 2004. Multilocus methods for estimating population sizes, migration rates and divergence time, with applications to the divergence of Drosophila pseudoobscura and D. persimilis. Genetics 167:747–760. [DOI] [PMC free article] [PubMed] [Google Scholar]
  31. Hibbins MS, Hahn MW. 2022. Phylogenomic approaches to detecting and characterizing introgression. Genetics 220(2):iyab173. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Ji J, Jackson DJ, Leache AD, Yang Z. 2022. Significant cross-species gene flow detected in the Tamias quadrivittatus group of North American chipmunks. BioRxiv. doi:10.1101/2021.12.07.471567
  33. Jiao X, Flouri T, Rannala B, Yang Z. 2020. The impact of cross-species gene flow on species tree estimation. Syst Biol. 69(5):830–847. [DOI] [PubMed] [Google Scholar]
  34. Jiao X, Flouri T, Yang Z. 2021. Multispecies coalescent and its applications to infer species phylogenies and cross-species gene flow. Natl Sci Rev. 8:nwab127. doi: 10.1093/nsr/nwab127 [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Jiao X, Yang Z. 2021. Defining species when there is gene flow. Syst Biol. 70(1):108–119. [DOI] [PubMed] [Google Scholar]
  36. Jukes T, Cantor C. 1969. Evolution of protein molecules. In: Munro H, editor. Mammalian protein metabolism. New York: Academic Press. p. 21–123.
  37. Kumar V, Lammers F, Bidon T, Pfenninger M, Kolter L, Nilsson MA, Janke A. 2017. The evolutionary history of bears is characterized by gene flow across species. Sci Rep. 7:46487. [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Lartillot N, Philippe H. 2006. Computing bayes factors using thermodynamic integration. Syst Biol. 55:195–207. [DOI] [PubMed] [Google Scholar]
  39. Liu S, Lorenzen ED, Fumagalli M, Li B, Harris K, Xiong Z, Zhou L, Korneliussen TS, Somel M, Babbitt Cet al. 2014. Population genomics reveal recent speciation and rapid evolutionary adaptation in polar bears. Cell 157:785–794. [DOI] [PMC free article] [PubMed] [Google Scholar]
  40. Maddison W. 1997. Gene trees in species trees. Syst Biol. 46:523–536. [Google Scholar]
  41. Malecot G. 1948. Les mathematiques de I’heredite. Paris: Masson. [Google Scholar]
  42. Mallet J. 2007. Hybrid speciation. Nature 446:279–283. [DOI] [PubMed] [Google Scholar]
  43. Mallet J, Besansky N, Hahn MW. 2016. How reticulated are species? BioEssays 38(2):140–149. [DOI] [PMC free article] [PubMed] [Google Scholar]
  44. Martin SH, Dasmahapatra KK, Nadeau NJ, Salazar C, Walters JR, Simpson F, Blaxter M, Manica A, Mallet J, Jiggins CD. 2013. Genome-wide evidence for speciation with gene flow in Heliconius butterflies. Genome Res. 23(11):1817–1828. [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. Martin SH, Davey JW, Salazar C, Jiggins CD. 2019. Recombination rate variation shapes barriers to introgression across butterfly genomes. PLoS Biol. 17(2):e2006288. [DOI] [PMC free article] [PubMed] [Google Scholar]
  46. Martin SH, Jiggins CD. 2017. Interpreting the genomic landscape of introgression. Curr Opin Genet Dev. 47:69–74. [DOI] [PubMed] [Google Scholar]
  47. Meng C, Kubatko LS. 2009. Detecting hybrid speciation in the presence of incomplete lineage sorting using gene tree incongruence: a model. Theor Popul Biol. 75(1):35–45. [DOI] [PubMed] [Google Scholar]
  48. Muller HJ. 1942. Isolating mechanisms, evolution, and temperature. Biol Symp. 6:71–125. [Google Scholar]
  49. Nichols R. 2001. Gene trees and species trees are not the same. Trends Ecol Evol. 16:358–364. [DOI] [PubMed] [Google Scholar]
  50. Notohara M. 1990. The coalescent and the genealogical process in geographically structured population. J Math Biol. 29:59–75. [DOI] [PubMed] [Google Scholar]
  51. O’Hagan A, Forster J. 2004. Kendall’s advanced theory of statistics: Bayesian inference. London: Arnold. [Google Scholar]
  52. Ottenburghs J. 2020. Ghost introgression: spooky gene flow in the distant past. Bioessays 42(6):e2000012. [DOI] [PubMed] [Google Scholar]
  53. Petry D. 1983. The effect on neutral gene flow of selection at a linked locus. Theor Popul Biol. 23:300–313. [DOI] [PubMed] [Google Scholar]
  54. Rannala B, Yang Z. 2003. Bayes estimation of species divergence times and ancestral population sizes using DNA sequences from multiple loci. Genetics 164(4):1645–1656. [DOI] [PMC free article] [PubMed] [Google Scholar]
  55. Rannala B, Yang Z. 2017. Efficient Bayesian species tree inference under the multispecies coalescent. Syst Biol. 66:823–842. [DOI] [PMC free article] [PubMed] [Google Scholar]
  56. Schumer M, Xu C, Powell DL, Durvasula A, Skov L, Holland C, Blazier JC, Sankararaman S, Andolfatto P, Rosenthal GG. 2018. Natural selection interacts with recombination to shape the evolution of hybrid genomes. Science 360(6389):656–660. [DOI] [PMC free article] [PubMed] [Google Scholar]
  57. Slatkin M. 1987. Gene flow and the geographic structure of natural populations. Science 236(4803):787–792. [DOI] [PubMed] [Google Scholar]
  58. Solis-Lemus C, Ane C. 2016. Inferring phylogenetic networks with maximum pseudolikelihood under incomplete lineage sorting. PLoS Genet. 12(3):e1005896. [DOI] [PMC free article] [PubMed] [Google Scholar]
  59. Thawornwattana Y, Seixas FA, Mallet J, Yang Z. 2022. Full-likelihood genomic analysis clarifies a complex history of species divergence and introgression: the example of the erato-sara group of Heliconius butterflies. Syst Biol. 71:1159–1177. [DOI] [PMC free article] [PubMed] [Google Scholar]
  60. Tricou T, Tannier E, de Vienne DM. 2022. Ghost lineages highly influence the interpretation of introgression tests. Syst Biol. doi: 10.1093/sysbio/syac011 [DOI] [PMC free article] [PubMed] [Google Scholar]
  61. Uecker H, Setter D, Hermisson J. 2015. Adaptive gene introgression after secondary contact. J Math Biol. 70(7):1523–1580. [DOI] [PMC free article] [PubMed] [Google Scholar]
  62. Wen D, Nakhleh L. 2018. Coestimating reticulate phylogenies and gene trees from multilocus sequence data. Syst Biol. 67(3):439–457. [DOI] [PubMed] [Google Scholar]
  63. Wen D, Yu Y, Hahn MW, Nakhleh L. 2016. Reticulate evolutionary history and extensive introgression in mosquito species revealed by phylogenetic network analysis. Mol Ecol. 25:2361–2372. [DOI] [PMC free article] [PubMed] [Google Scholar]
  64. Wright S. 1943. Isolation by distance. Genetics 28:114–138. [DOI] [PMC free article] [PubMed] [Google Scholar]
  65. Yang Z. 2007. PAML 4: phylogenetic analysis by maximum likelihood. Mol Biol Evol. 24:1586–1591. [DOI] [PubMed] [Google Scholar]
  66. Yang Z. 2015. The BPP program for species tree estimation and species delimitation. Curr Zool. 61:854–865. [Google Scholar]
  67. Yang Z, Flouri T. 2022. Estimation of cross-species introgression rates using genomic data despite model unidentifiability. Mol Biol Evol. 39:msac083. [DOI] [PMC free article] [PubMed] [Google Scholar]
  68. Yang Z, Zhu T. 2018. Bayesian selection of misspecified models is overconfident and may cause spurious posterior probabilities for phylogenetic trees. Proc Natl Acad Sci U S A. 115(8):1854–1859. [DOI] [PMC free article] [PubMed] [Google Scholar]
  69. Zhang C, Ogilvie HA, Drummond AJ, Stadler T. 2018. Bayesian inference of species networks from multilocus sequence data. Mol Biol Evol. 35:504–517. [DOI] [PMC free article] [PubMed] [Google Scholar]
  70. Zhu T, Yang Z. 2012. Maximum likelihood implementation of an isolation-with-migration model with three species for testing speciation with gene flow. Mol Biol Evol. 29:3131–3142. [DOI] [PubMed] [Google Scholar]
  71. Zhu T, Yang Z. 2021. Complexity of the simplest species tree problem. Mol Biol Evol. 39:3993–4009. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

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

Supplementary Materials

msac237_Supplementary_Data

Articles from Molecular Biology and Evolution are provided here courtesy of Oxford University Press

RESOURCES