Skip to main content
Proceedings of the National Academy of Sciences of the United States of America logoLink to Proceedings of the National Academy of Sciences of the United States of America
. 2025 May 14;122(20):e2412978122. doi: 10.1073/pnas.2412978122

Exact and efficient phylodynamic simulation from arbitrarily large populations

Michael Celentano a,1, William S DeWitt b,2, Sebastian Prillo b, Yun S Song a,b,1
PMCID: PMC12107099  PMID: 40366686

Significance

Birth–death-mutation-sampling (BDMS) models have a wide variety of applications in biology, including phylogenetics, epidemiology, and cancer genomics. Simulating evolutionary trees under these models is essential for benchmarking inference methods, but the current approach can be computationally prohibitive if the death rate is high or the population size is extremely large while the sampling probability is low, as is typical in many important applications. Here, we address this computational bottleneck by proving that, for any BDMS model, there exists an equivalent pure-birth process with complete sampling. This enables us to develop a highly efficient simulation algorithm that scales linearly with the ascertained tree size, independent of the population size, thereby opening new avenues for developing and testing inference methods.

Keywords: phylogenetic trees, BDMS model, forward-equivalent model, efficient simulation

Abstract

Many biological studies involve inferring the evolutionary history of a sample of individuals from a large population and interpreting the reconstructed tree. Such an ascertained tree typically represents only a small part of a comprehensive population tree and is distorted by survivorship and sampling biases. Inferring evolutionary parameters from ascertained trees requires modeling both the underlying population dynamics and the ascertainment process. A crucial component of this phylodynamic modeling involves tree simulation, which is used to benchmark probabilistic inference methods. To simulate an ascertained tree, one must first simulate the full population tree and then prune unobserved lineages. Consequently, the computational cost is determined not by the size of the final simulated tree, but by the size of the population tree in which it is embedded. In most biological scenarios, simulations of the entire population are prohibitively expensive due to computational demands placed on lineages without sampled descendants. Here, we address this challenge by proving that, for any partially ascertained process from a general multitype birth–death–mutation-sampling model, there exists an equivalent process with complete sampling and no death, a property which we leverage to develop a highly efficient algorithm for simulating trees. Our algorithm scales linearly with the size of the final simulated tree and is independent of the population size, enabling simulations from extremely large populations beyond the reach of current methods but essential for various biological applications. We anticipate that this massive speedup will significantly advance the development of novel inference methods that require extensive training data.


Phylogenetic trees describe the ancestral relationships within a sample of individuals from a large population and are central objects in studies of evolution. (We make no distinction between phylogenetic and genealogical trees in this work.) These individuals can represent extant or extinct species in macroevolution (1, 2), viral sequences collected over time in epidemiology (3), or individual cells in studies of cancer evolution or affinity maturation (4–8), for example. The branch lengths and branching rates in these phylogenies have been used to infer shifts in diversification rates across lineages and over time in the tree of life (9–11), to estimate effective reproduction number or predict future strains in viral evolution (12, 13), and to estimate rates of metastasis, phylodynamics, plasticity, or paths of tumor evolution in cancer (14), among many other applications.

Due to death and incomplete sampling in these applications, the inferred phylogeny typically represents a partial history of the full population. This partial observation process can lead to bias in the estimation of fundamental population parameters. For example, the branching rate in the observed phylogeny is typically substantially smaller than that in the full population phylogeny (15, 16). Moreover, certain population-level quantities may not be identified by the distribution of the observed phylogeny without further assumptions (11, 17, 18).

Simulations play a central role in tree-based inference. Their uses include benchmarking existing methods (4, 19), training novel methods based on simulated data (20), and, in some approaches, may form a subroutine of the inferential method itself (21). In order to faithfully represent the relationship between population-level parameters and the observed data, these simulations must include the partial observation process. Current approaches simulate the partial observation process directly. First, the phylogeny of the full population is simulated; next, some lineages are sampled; and finally, lineages that are not ancestral to a sampled lineage are pruned from the full phylogeny (15).

In many applications, full-population simulations are prohibitively expensive because they must expend substantial computational resources on lineages that, because they have no sampled descendants, do not appear in the observed phylogeny. For example, in a typical year, there are tens of millions of flu infections in the United States alone (22), but large phylogenetic analyses of flu are often limited to tens of thousands of sampled viral sequences (23), and it is not uncommon to analyze phylogenies with only a few hundred samples per year (24). In cancer, a cubic centimeter of tumor mass contains roughly one billion cells, yet single-cell resolution studies of cancer with CRISPR-Cas9-based lineage tracing assays sequence fewer than 100,000 cells (14, 25–27), representing roughly 0.01% of the population. Recent works at best simulate a population of 40,000 cancer cells subsequently subsampled down to 1% (27, 28), which is highly unrealistic.

This paper proposes an algorithm for exact (up to numerical and time-discretization error) simulation from a general class of multitype birth–death processes with birth, death, mutation, and incomplete sampling. This class of models agrees with those considered by MacPherson et al. (29), which unified a collection of models used in a wide range of biological contexts, including the applications described above (1, 2, 9–12, 30–32). This general class of models is referred to as birth–death-mutation-sampling (BDMS) models. The computational cost of our algorithm for simulating BDMS models scales not with the size of the full population, as do existing approaches, but rather with the sample size. It thus avoids expending computational resources on unobserved lineages and is optimal in the sense that its theoretical runtime is O(output size), and any algorithm must have complexity at least as large as the time required to write its output. Based on the typical numbers for flu and cancer evolution studies described above, our approach can reduce computation by a factor of 1,000 to 10,000, and make it feasible to simulate with realistic population-size and subsampling parameters. Thus, our algorithm will facilitate the assessment of existing methods under more biologically realistic settings and enable the development of simulation-based training and estimation approaches.

From a technical point of view, our algorithm is based on the following insight. The distribution of the observed phylogeny in any BDMS model is equivalent to that generated by an alternative BDMS model with no death and complete sampling. In this alternative BDMS model, which we call the forward-equivalent (FE) model, the full phylogeny corresponds to the observed phylogeny. Therefore, simulating from the FE model allows us to avoid expending computational resources on unobserved lineages while generating observed trees from the same distribution.

Our insight is closely related to recent work on identifiability in subsampled birth–death models (11, 17, 18); this work observed that in the single-type setting, different time-dependent population-level parameterizations can give rise to the same observed data distribution. Our algorithm is based on the lack of identifiability in the more general multitype setting. Whereas lack of identifiability prohibits exact inference (without further assumptions), it also facilitates simulation. Because multiple BMDS models give rise to the same observed data distribution, we can base our simulations on those that can be simulated most efficiently.

The Multitype BDMS Model

The BDMS model we study is a multitype birth–death process with mutations and incomplete sampling as presented by MacPherson et al. (29). It consists of a collection of lineages that give birth, die, mutate, and are sampled over time. The model begins with a single lineage at time τ=tmax>0 measured as the (positive) distance in time before the present day, τ = 0. The single lineage at time τ=tmax is initialized with type a drawn from a categorical distribution with parameter π=(π1,…,πd) over a finite collection of d types indexed by 1,…,d. Throughout the document, we will use variables a and b to denote (possibly nondistinct) types in the type-space. Each lineage progresses independently of all other lineages, with events arriving according to Poisson point processes with potentially time-varying intensity. These processes are as follows. At time τ, a lineage of type a gives birth to a lineage of type b at rate λa,b(τ), dies at rate μa(τ), and is sampled at rate ψa(τ). Upon sampling, a lineage dies with probability ra(τ). When a lineage gives birth, there are two daughter lineages, one with type a and one with type b. The parameter λa,a(τ) describes the rate at which births without mutation occur. For b ≠ a, the parameter λa,b(τ) describes the rate of cladogenetic mutation. Anagenetic mutations—ones which occur at nonbirth events—from type a to type b occur at rate γa,b(τ), which is nonzero for only b ≠ a.

In addition to the above processes, whose events arrive according to time-dependent Poisson point processes, we allow for concerted sampling events (CSEs) (29). These are instances in time at which a fraction of the population gets simultaneously sampled. These occur at fixed times t0=0<t1<⋯<tL≤tmax. The lth CSE consists of sampling all extant lineages of type a at time tl independently with probability ρa,l. CSEs allow the model to accommodate multiple samples taken simultaneously, which almost surely cannot occur when sampling occurs only via a Poisson point process. Biologically, these could correspond to 1) fossilization events in macroevolution, 2) tumor biopsy in cancer evolution, or 3) same-day sampling of infected individuals in a viral outbreak; see ref. 29 and references therein for further discussion. During a CSE, each sampled lineage dies with probability qa,l. The model is defined by the set of parameters Θ=(π,λ,μ,γ,ψ,r,ρ,q,t,tmax), whose interpretations are summarized in Table 1. The rate parameters λ,μ,γ,ψ and the death probabilities r may depend on time τ.

Table 1.

Summary of processes in the BDMS model

Process Description
Initialization At time tmax, the population begins with one lineage with type a∼Cat(π).
Birth For all a,b∈{1,…,d} and τ∈[0,tmax], lineages of type a split into types a and b at rate λa,b(τ) at time τ.
Death For all a∈{1,…,d} and τ∈[0,tmax], lineages of type a die at rate μa(τ) at time τ.
Anagenetic mutation For all a,b∈{1,…,d} and τ∈[0,tmax], lineages of type a mutate to type b at rate γa,b(τ) at time τ.
Sampling For all a∈{1,…,d} and τ∈[0,tmax], lineages of type a are sampled at rate ψa(τ) at time τ. If sampled, they die with probability ra(τ) at time τ.
CSEs For all l∈{0,⋯,L} and a∈{1,…,d}, lineages of type a at time tl are sampled with probability ρa,l. If sampled, they die with probability qa,l.

The reconstructed phylogeny refers to the subset of the full phylogeny containing only those lineages ancestral to a sampled lineage (15). In Fig. 1, we provide a diagram demonstrating the partial observation process on a full phylogeny and the corresponding reconstructed phylogeny. In applications, it is typically the reconstructed phylogeny (or an estimate of it based on sequence data) that is observed. Thus, the distribution of the reconstructed phylogeny and its corresponding likelihood in terms of model parameters, rather than the distribution and likelihood for the full phylogeny, must be used as the basis for inference. A large body of work derives the likelihood for reconstructed phylogenies as a solution to a system of ordinary differential equations (ODEs) which can be solved numerically (2, 30, 31). Our simulation method will also rely on solving a system of ODEs.

Fig. 1.

Fig. 1.

Schematic of partial observation process. In the full phylogeny (A), color represents type, extinct lineages are indicated with thin dashed lines, unsampled surviving lineages are indicated with solid lines, and sampled lineages are indicated with thick solid lines and numbered leaves (all sampling events occur at the present day). The corresponding ascertained phylogeny (B) is obtained by pruning lineages that are not ancestral to a sampled lineage, tracing the thick solid lines in (A).

Simulation Algorithms

We describe two methods for simulating reconstructed phylogenies. The first, which we call the full simulation, simulates the full phylogeny and then removes (or “prunes”) lineages that are not ancestral to a sampling event; this is the current state-of-the-art. The second is our method, which we call the FE simulation; this approach simulates only those lineages that will have sampled descendants, thereby greatly reducing computational resources for most practical applications.

The Full Simulation.

There are a variety of methods for simulating the full phylogeny which differ according to whether they grow the phylogeny in a depth-first or breadth-first manner and in how they determine the time and type of birth, death, mutation, and sampling events. We used an efficient breadth-first implementation (33) whose time complexity is linear in the number of simulated events, where a single event corresponds to a birth, death, mutation, or sampling event in the simulated population. Pseudocode for the algorithm we used is stated in Algorithm 1. The contribution of this paper is the FE simulation described in the next section, which can be viewed as a wrapper around the full simulation presented here. Indeed, the FE simulation can be wrapped around any implementation of a time-varying BDMS model. The implementation we used was selected to optimize time complexity in the number of simulated events. While it is not the contribution of this paper, it is presented for completeness.

In words, Algorithm 1 simulates forward in time starting at τ=tmax and ending at τ = 0 or until all lineages in the simulation die or a user-specified capacity limit nmax is exceeded. The nodes in the tree correspond to birth, death, mutation, or sampling events. As we grow the tree, each node contains information about its type, event type, and time.

We generate the tree in a breadth-first manner. At each moment, the algorithm maintains biological time τ and the tree generated up until time τ. Each iteration generates the next event in biological time anywhere in the tree, and advances the tree to the time of that next event. Thus, consecutive iterations generate events that are consecutive in biological time but which need not occur to the same lineage or be close phylogenetically.

In order to achieve this, at each iteration, the algorithm maintains, for each type a=1,⋯,d, a set Sa containing the most recent event nodes for all extant lineages of type a. The next event is then generated as follows:

  1. First, the time and type of the next event are determined. The type of the next event specifies i) whether it is a birth, death, mutation, or sampling event, ii) the type of the parent node, and iii) for birth and mutation events, the type of the child or children nodes. It does not specify on which lineage the event occurs. In Algorithm 1, this step is represented by the function G ETN EXTE VENT. The time and type of the next event can be determined using the model parameters Θ, the sizes of the extant populations for each type {|Sa|}a=1d, and the current biological time τ. In SI Appendix, section A, we describe an implementation of G ETN EXTE VENT which runs in constant time in the size of the extant population.

  2. The parent node of the next event node is determined. Denoting by a the parent type for the event returned by G ETN EXTE VENT, we pick a parent node uniformly at random from Sa. We use a data structure for Sa that permits this sampling in O(1) time (see below).

  3. The phylogeny is advanced to the time of the next event. This involves creating a new event node whose parent is as chosen in the previous step and updating the sets {Sa} as needed. See Algorithm 1 for details (which depend on the event type). This step requires possibly inserting or removing nodes from the sets Sa. As we describe below, we use a data structure for Sa that permits insertion and removal in constant time.

These iterations progress until either the time of the next event is after present time τ = 0 or a user-specified population size capacity limit is exceeded. If the time of the next event is after the present time, then this event does not occur. Instead, all extant lineages are advanced to the present, and sampling occurs for each lineage according to the sampling probabilities ρa,0.

We allow for a user-specified capacity limit even though this is not formally a part of the BDMS model. Practically, it is useful to have an implementation that allows termination based on a user-specified capacity limit. Depending on the model parameters, the population size can grow exponentially with time. Thus, if tmax is set too large, the algorithm will fail to terminate in a reasonable amount of time. In practice, one chooses model parameters such that simulation to the present is, except in rare cases, feasible with available computational resources. The capacity limit is chosen large enough so that it rarely is reached but serves as protection against exponential blow-up. In this case, the capacity limit will have a negligible impact on the distribution of simulated trees.

graphic file with name pnas.2412978122inline01.jpg

After the full phylogeny has been simulated as described above, the tree is pruned to remove all lineages and nodes that are not ancestral to a sampling event. Moreover, birth events in which only one child lineage survives either 1) are removed if the surviving offspring has the same phenotype as the parent or 2) appears as anagenetic mutations if the surviving offspring has a different phenotype than the parent. The pruning operation can be carried out in time linear in the number of events in the full phylogeny.

For simplicity and conciseness, we have omitted from this description and from the pseudocode in Algorithm 1 CSEs except for the one at the present day. These are straightforward to add and do not affect our discussion on computational complexity. Indeed, when the time of the next event is determined to be after the next concerted sampling event, the event does not occur. Instead, all extant lineages are advanced to the time of the concerted sampling event, at which point the appropriate sampling and death events are carried out.

We implement Algorithm 1 so that each iteration of the while loop (which corresponds to a single event) runs in constant time in the population size. This requires that G ETN EXTE VENT has constant time complexity O(1) in the population size, and the sets Sa are implemented using a data structure which supports insertion, removal, and uniform random sampling in constant time in the population size. We describe these implementation details in SI Appendix, section A. With this implementation, Algorithm 1 has time complexity linear in the number of events in the full phylogeny. In SI Appendix, Empirical Validation and Fig. S2, we empirically validate that the computation time scales linearly with the number of events in the full phylogeny. For completeness, we also provide in SI Appendix, section A an implementation of G ETN EXTE VENT that is logarithmic in the population size but has better dependence on the size d of the type space.

The FE Simulation.

The full simulation expends computational time on all lineages, including those that have no sampled descendants and thus do not appear in the reconstructed phylogeny. We propose a method that does not expend computational resources on such unobserved lineages. Avoiding such computation is nontrivial: The appearance of a lineage in the reconstructed phylogeny depends on the occurrence (or not) of a future sampling event. Thus, in Algorithm 1, the appearance of an event in the reconstructed phylogeny cannot be determined at the time the event is simulated.

In this section, we show that the distribution of the reconstructed phylogeny in the full model conditional on it being nonempty is equal to that generated by an alternative BDMS model without death and with complete sampling at the present. We call this alternative BDMS model the FE model.

Precisely, consider any set of model parameters Θ:=(π,λ,μ,γ,ψ,r,ρ,q,t,tmax) for the full simulation. Our main result is that, for any such Θ, there is an alternative set of parameters ΘFE:=(πFE,λFE,μFE,γFE,ψFE,rFE,ρFE,t,tmax) satisfying μaFE(τ)=0 for all a∈{1,⋯,d}, τ∈[0,tmax] (no death) and ρa,0FE=1 for all a∈{1,⋯,d} (complete sampling at the present) such that the distribution of the reconstructed phylogeny T under Θ conditional on being nonempty, T≠T∅, is equal to the distribution of the reconstructed phylogeny under ΘFE (with T∅ denoting the empty tree realization, which corresponds to a full tree in which all lineages are either extinct or unsampled, so that pruning leaves no ascertained subtree). The parameters ΘFE are given precisely in the next subsection via a map F on parameter space such that ΘFE=F(Θ). Let random variable TΘ denote the reconstructed phylogeny in the full model parameterized by Θ.

Theorem 1.

The distribution of the reconstructed phylogeny in the full model conditional on its nonemptiness is equivalent to the unconditional distribution of the reconstructed/full phylogeny in the forward-equivalent model:

Law(TΘ∣TΘ≠T∅)=Law(TF(Θ)). [1]

We prove Theorem 1 in SI Appendix, section B.

Theorem 1 suggests simulating the reconstructed phylogeny in the full model by running the full simulation on the parameters ΘFE=F(Θ). This approach, which we call the FE simulation, is given in Algorithm 2. It generates reconstructed phylogenies from Law(TΘ∣TΘ≠T∅). If one wants to generate reconstructed phylogenies from Law(TΘ) allowing for emptiness, one can first generate a Bernoulli random variable B with success probability P(TΘ≠T∅) (which is computed in the next subsection) and, if B = 0, return T∅, whereas if B = 1, return FESim(Θ,nmax). In practice, one often will want to generate nonempty phylogenies, so this extra step will not be necessary.

In the FE model, all lineages are observed and the full and the reconstructed phylogeny are the same. When used to simulate reconstructed phylogenies in models with death or incomplete sampling, the FE simulation effectively avoids expending computational resources on lineages that are not observed. This leads to substantial computational savings when either only a small fraction of the full phylogeny is observed or the full phylogeny only rarely survives until the present. An analysis of computational complexity is carried out in SI Appendix,Efficiency Improvements of FE Simulations.

Implementing Algorithm 2 requires evaluating the FE model parameters ΘFE via the map F on line 1. These can be precomputed once, and then used to generate an arbitrary number of trees via repeated calls to the full simulation, as on line 2. These precomputations are described in SI Appendix, section A. The cost of precomputation is amortized over the number of simulated trees, so contributes negligible computational cost when this number is large. In our experiments, precomputations were very fast.

In practice, one may choose to set nmax<∞ in Algorithm 2. Because in the FE model, reconstructed and full phylogenies are the same, simulating from the FE model with finite nmax is equivalent to simulating from the full model conditional on its nonemptiness and on the maximal number of simultaneously extant lineages at any point in time in the reconstructed phylogeny being bounded above by nmax.

graphic file with name pnas.2412978122inline02.jpg

The Forward-Equivalent Model Parameters.

In this section, we define the map F giving parameters ΘFE explicitly in terms of the parameters Θ of the full model. Recall that we use variables a and b to denote (possibly nondistinct) types in the type-space. A key quantity is the nonobservation probability Ea(τ) for a=1,⋯,d and τ∈[0,tmax] in the full model. It is the probability that, given a lineage of type a in the population at time τ, none of its descendants will be sampled. Note that P(TΘ≠T∅) is given by 1−∑a=1dπaEa(tmax). At CSEs, the nonobservation probability will be different immediately prior to and after the realization of the CSE’s sampling and death events. We denote the nonobservation probability prior to the realization of these events by Ea(tl+) and after the realization of these events by Ea(tl−), where tl is the time of the CSE. As shown in ref. 29, equation 15), the nonobservation probabilities are given by the solution to the following ODE system for all a=1,⋯,d and τ∈[0,tmax]:

graphic file with name pnas.2412978122inline03.jpg

For completeness, we derive Eq. 2 in SI Appendix, section B. The nonobservation probability has previously played an important role in likelihood-based and Bayesian methods of inference based on the reconstructed phylogeny (1, 2, 9, 10, 13, 29). For all a,b∈{1,⋯,d} and τ∈[0,tmax], the forward-equivalent mapping ΘFE=F(Θ) is defined by

graphic file with name pnas.2412978122inline04.jpg

By Eq. 2, Ea(0+)=1−ρa,0, whence by Eq. 3, ρa,0FE=1. Thus, in the FE simulation, all lineages at τ = 0 are sampled. We note that the ODE Eq. 2 is Lipschitz continuous in its solution on each inter-CSE interval, so for λ,μ,γ,ψ,r suitably smooth in the time domain, it follows by standard results that there exists a unique solution, i.e., the map F is well defined. It suffices, for example, to assume that the parameters are continuous or piecewise constant in time.

It is enlightening to interpret some of the equations in Eq. 3. The equation for λa,bFE(τ) indicates that the birth rate in the reconstructed phylogeny is smaller than that in the population. This effect is stronger for individuals that are more unlikely to have sampled descendants. The equation for γa,bFE(τ) indicates that anagenetic mutation rates can be upward or downward biased in the reconstructed phylogeny. In particular, mutations from types that are unlikely to have sampled descendants and to types that are likely to have sampled descendants are higher in the reconstructed phylogeny than in the population; mathematically, Ea(τ)>Eb(τ) implies 1−Eb(τ)1−Ea(τ)>1, so γa,bFE(τ)>γa,b(τ). One factor that increases the probability of having a sampled descendant is having “higher fitness” in terms of a larger birth rate or lower death rate, leading to a higher chance of survival. Roughly speaking, if we view the survival probability 1−Ea(τ) as a measure of “fitness,” these equations indicate that the relative birth rates of “fit” vs. “unfit” individuals in the reconstructed phylogeny are higher than in the population, and mutation rates from “unfit” to “fit” individuals are enhanced. These biases exemplify the importance of incorporating the sampling process into phylogenetic simulations.

As a concrete example, we plot in Fig. 2 the FE model parameters in a two-type model with a Fit and Unfit phenotype, with λFit=1.0, λUnfit=0.25, μFit=μUnfit=0.25, and anagenetic mutation rates γFit,Unfit=γUnfit,Fit=0.5. We consider both a low sampling probability ρ = 0.01 and moderate sampling probability ρ = 0.25, occurring uniformly across phenotypes at the present. We observe that the FE birth rate is smaller than that in the population for both the Fit and Unfit phenotypes. Moreover, we see that in the FE model, birth rates are higher in the distant past than in the present. This heightened diversification rate in the observed phylogeny in the distant past has been termed the “push of the past” (34) and results from survivorship bias. We also plot the relative birth rate in the FE model, defined as λFitFE(τ)/λUnfitFE(τ). We see that it is larger than 4, indicating that the birth rate of the Unfit phenotype is reduced more relative to its population value than that of the Fit phenotype. This effect is stronger when ρ is smaller. These qualitative phenomena can be easily seen in the formulas in Eq. 3. Indeed, the amount by which the birth rate is depressed is controlled by 1−Eb(τ), the probability a lineage will end up in the sample, so that the qualitative time dependence of the birth rates, the inflation of the relative birth rate, and the dependence of the relative birth rate on ρ can be read off the plot of 1−Ea(τ) in Fig. 2. We also observe that the mutation rate from the Unfit to Fit phenotype is higher and from the Fit to Unfit phenotype is lower in the FE model than in the population, with a stronger effect for smaller ρ. This is the result of selective pressures, which are more pronounced when ρ is smaller. Again, Eq. 3 indicates the relevant quantity is the ratio (1−Eb(τ))/(1−Ea(τ)), the qualitative behavior of which can also be observed in the plot of 1−Ea(τ) in Fig. 2.

Fig. 2.

Fig. 2.

Full and FE model parameters as a function of time in a two-type model with a Fit and Unfit phenotype, with λFit=1.0, λUnfit=0.25, μFit=μUnfit=0.25, and anagenetic mutation rates γFit,Unfit=γUnfit,Fit=0.5. The relative birth rate is defined as λFit(τ)/λUnfit(τ) and λFitFE(τ)/λUnfitFE(τ). The relative mutation rate is defined as γFit,Unfit(τ)/γUnfit,Fit(τ) and γFit,UnfitFE(τ)/γUnfit,FitFE(τ). Because the relative rates are a joint property of fit and unfit individuals, and not a separate property of each individually, only three lines (full, ρ = 0.25, ρ = 0.01) appear in the second and fourth plots, and these are displayed in black rather than color coded according to fitness.

Efficiency Improvements of FE Simulations.

As we justified earlier, our simulation algorithm has time complexity which is linear in the number of simulated events. The FE simulation can be faster than the full simulation because it simulates fewer events per nonempty reconstructed phylogeny.

There are two reasons why the FE simulation simulates fewer events per nonempty reconstructed phylogeny. First, the reconstructed phylogeny contains fewer events (i.e., nodes) than the full phylogeny. For example, in a pure birth process that samples present-day lineages with probability ρ, the reconstructed tree will have approximately ρ times as many nodes as the full phylogeny. We thus expect the FE simulation to run 1/ρ times faster per tree than the full simulation.

Second, in the full simulation, the reconstructed phylogeny may be empty. Thus, the full simulation may require multiple retries to produce a single nonempty reconstructed phylogeny. The events simulated in trees with empty reconstructed phylogenies contribute to the computational cost of simulating a single nonempty phylogeny. In contrast, the FE simulation never produces the empty tree T∅. As an artificial extreme case, consider a trivial process without birth or death and which samples present-day lineage with probability ρ. In this case, the full tree is a “stick.” The reconstructed tree is a “stick” with probability ρ and is T∅ otherwise. The FE simulation simulates a stick in its first try, requiring Θ(1) time per nonempty reconstructed tree. The full simulation requires in expectation 1/ρ retries to obtain a nonempty reconstructed tree. In this case, the speedup provided by our method is again 1/ρ.

In what follows, we study the key quantity R (respectively, RFE), the expected number of events required to produce a single nonempty reconstructed tree in the full (respectively, FE) simulation. We can estimate the ratio of the empirical runtimes of the full simulation and FE simulations by making the assumption that the empirical runtime is approximately equal to a constant c (given by the computer’s intrinsic speed) times the number of simulation events, the expected empirical runtime of the full (respectively, FE) simulation is approximately cR (respectively (cRFE). Hence, we use the ratio cRcRFE=RRFE of expected event counts as an estimate of the relative speedup of the full simulation and FE simulations. We compute this value exactly for a birth–death process in Proposition 1 below, and in our empirical benchmarks, we will see that the observed speed-up is consistent with the theoretical value derived in Proposition 1. For a single-type birth–death process, we prove the following result:

Proposition 1.

Consider running a birth–death process for 1 unit of time with birth rate λ, death rate μ, and extant sampling probability ρ. Then:

  1. If λ = μ, then:
    RRFE=1ρ(1+μ).
  2. If λ ≠ μ, then:
    RRFE=1ρ[1+μ(eλ−μ−1)(λ−μ)eλ−μ].

We prove Proposition 1 in SI Appendix, section C. In the simpler case that the birth and death rates are equal, we see that the estimated speedup is essentially linear in the (inverse) sampling probability ρ and in the death rate μ. Later, in our empirical benchmarks, we will see that this theoretical value in Proposition 1 provides a quite accurate estimate of speedup.

For the general BDMS model, we have the following result.

Proposition 2.

Let T denote the full tree in the full model, and R(T) its corresponding (possibly empty) reconstructed tree. Then

RRFE=E[#nodes(T)]E[#nodes(R(T))].

We emphasize that nodes in T include birth events, mutation events, and sampling events and thus need not all be locations of bifurcation in the tree. We prove Proposition 2 in SI Appendix, section C. The significance of Proposition 2 is that it unifies the two sources of speed-up described above, avoiding explicit accounting of the number of retries required to observe a nonempty reconstructed phylogeny.

We remark that the expected number of nodes appearing in Proposition 2 can be computed numerically with time discretization and dynamic programming. Thus, Proposition 2 allows for numerical estimates of speed-up factors. Empirically, the FE simulation may experience a constant factor computational overhead relative to the full simulation due to its sampling from time-inhomogeneous Poisson processes; see next section. In our experiments, this overhead was smaller than a factor of 2, so the FE simulation was faster than the full simulation for moderate values of ρ and μ.

Empirical Validation

We carry out several simulations to validate our method. First, we consider a case where both the full and FE simulations are feasible, and perform several tests of whether the reconstructed phylogenies produced by the two simulations have the same distribution. Then, we perform several simulations to measure the relative computational efficiency of the two approaches and to validate the theory from the previous section. Last, we use the FE simulation to generate phylogenies from a setting in which the full simulation is computationally infeasible on our machines.

Distribution Tests.

We performed a simulation study to test that the full and FE simulations produce reconstructed phylogenies with the same distribution. The full model consisted of two types, Fit and Unfit. The population was simulated for tmax=20 units of time. This value of tmax (as well as those in the sections to come) was chosen because we observed that it generated moderately sized reconstructed phylogenies (with 10 s to 100 s extant lineages at τ = 0) given the parameters defined below. Both types have a death rate of μFit=μUnfit=0.25, the Unfit type has birth rate of λUnfit=0.25, and the Fit type has a birth rate of λFit=1. Recall that, without mutation and given infinite time, a population will go extinct with probability 1 if and only if the birth rate does not exceed the death rate: λ ≤ μ. Thus, we have chosen parameters so that the Unfit population is just barely in the regime where it would, without mutation, be assured eventual extinction. On the other hand, the Fit population would, without mutation, be unlikely to go extinct and would grow exponentially fast. We consider anagenetic mutation rates γFit,Unfit=0.8 and γUnfit,Fit=0.1. Thus, deleterious mutations from Fit to Unfit are much more common than beneficial mutations from Unfit to Fit. Based on our simulations (see below), these mutation rates keep the distribution of types in the population relatively balanced. We consider a model with sampling at the present ρFit,0=ρUnfit,0=0.5 and no sampling at earlier times or at death events.

We generated 1,000 nonempty phylogenies from both the full and FE simulations for the above model. Since we conditioned on nonemptiness, generating a tree in the full simulation sometimes required multiple retries.

We tested distributional equivalence of several scalar summary tree statistics. Because phylogenetic trees are high-dimensional objects, distributional agreement on these test statistics does not necessarily imply distributional equivalence of the phylogenetic trees. Moreover, the tree statistics we selected are not intended to be exhaustive, and we do not intend to imply that they provide an optimal summary of tree geometry for any particular application. Rather, we intend to capture a wide enough range of tree features to provide convincing evidence that the distributional equivalence Eq. 1 holds. The tree statistics we considered the following:

  • Event count. The total number of nodes in the tree, which includes births, mutations, and sampled leaf nodes.

  • Leaf count. The total number of leaves in the tree. In this simulation, this is the size of the sample from the present-day population.

  • Branch length. The cumulative branch length stratified by type (for Fit and Unfit lineages) and in total.

  • Subtree count, stratified by size. The number of nodes for which the descendant tree has size nodes (including the root node). For example, the subtree count at size=1 is the number of leaves. The subtree count at size=3 contains the sum of the number of cherries and the number of nodes after which one mutation event but no birth events occur B.P.-day sampling.

  • Lineage count, stratified by type and time. For a type in {Fit,Unfit} and time t, the number of lineages in the tree of that type at a cross-section at time t.

We also considered the distribution of “block statistics.” In multitype models, each phylogeny is partitioned into a collection of maximally connected subtrees of uniform type. We call each element of this partition a block. A block statistic is a scalar summary of a block; e.g., total branch length. We simulated 1,000 nonempty trees and plotted histograms of various block statistics over the list of generated blocks. Note that not all trees contain the same number of blocks, so trees with more blocks contribute more counts to these histograms than trees with fewer blocks. The histograms represent a distribution that assigns an equal weight to each block, and thus assigns a weight to each tree proportional to its number of blocks. We consider the following block statistics:

  • Events per block, stratified by type. The number of nodes in the block.

  • Branch length per block, stratified by type. The cumulative branch length of the block.

In Fig. 3, we show histograms for two of these summary statistics—lineage count and branch length per block—stratified by type. For the block-based statistics (in this case, branch length per block), the y-axis counts the number of blocks cumulatively across phylogenies, so that each phylogeny may contribute multiple blocks to the count, and larger phylogenies will typically contribute more. In all cases, the histograms generated by the full and FE simulations are visually similar. For each summary statistic, we performed a two-sided Mann–Whitney U test and the Kolmogorov–Smirnov test to compare the distributions. We caution that the theoretical null distribution used to compute Kolmogorov–Smirnov test statistic is only asymptotically valid for continuous distributions. Thus, it must be interpreted with caution for the count-based test statistics when the counts are small. Similar plots to Fig. 3, reporting results for all the summary statistics listed above, are provided in SI Appendix, Fig. S1.

Fig. 3.

Fig. 3.

Distributional comparison of summary statistics from two-type model described in the text. The full and forward-equivalent simulations are both run until 1,000 nonempty trees are generated. Each plot displays a different summary statistics, and the Mann–Whitney (MW) and Kolmogorov–Smirnov (KS) P-value testing the equivalence of the full and forward-equivalent simulations. (A) Number of extant lineages at biological time t = 16 with phenotype Unfit. (B) Number of extant lineages at biological time t = 16 with phenotype Fit. (C) Branch length of blocks with phenotype Unfit. (D) Branch length of blocks with phenotype Fit. The simulation parameters are described in the main text, SI Appendix, Distribution Tests.

While not a proof of distributional equivalence, these tests indicate that our implementation successfully produces the distributional equivalence predicted by Theorem 1, providing evidence for its correctness.

Computational Efficiency.

We empirically assessed the relative computational cost of the full and the FE simulations and their dependence on population size and the size of the subsampled phylogeny under three models: single-type without death, single-type with death, and two-type.

The “single-type without death” model consisted of a unique type with constant birth rate given by λ = 1.0 and no death run for tmax=5 units of biological time. We subsampled the present population with probability ρ, which we set to ρ=0.1×k for k=1,…,10. At each value of k, we simulated 50 nonempty trees. As in the previous subsection, the full simulation may require multiple retries to generate a single nonempty tree.

All results are displayed in Fig. 4. In the Left column we report, for each value of ρ, the average total simulation time (including retries) required to produce 50 nonempty trees, normalized by 50. In the Right column, we report the ratio of the computation time required by the full simulation to the FE simulation on a log–log scale.

Fig. 4.

Fig. 4.

Comparison of computational costs. Time (sec) per tree is the total amount of simulation time required to produce 50 nonempty trees, divided by 50. Speed up factor is the ratio of the time per tree from the full simulation to the FE simulation. All sampling occurs at present with probability ρ for each extant lineage identically across types. Horizontal dashed line at speed up factor=1. (A) Top row: Single-type without death. λ = 1.0, μ = 0, and tmax=5. (B) Middle row: Single-type with death. λ = 1.0, μ = 1.0, and tmax=10. (C) Bottom row: Two-type with death. Two types: Fit and Unfit. λFit=1.0, λUnfit=0.25, and μFit=μUnfit=0.25.

Fig. 4A shows results for the single-type model without death. For the full simulation, the mean time per tree is approximately constant in ρ. For the FE simulation, the mean time per tree appears to be linear in ρ. This is consistent with our simulation scaling linearly in the total number of simulated events, which in the full simulation is independent of ρ and in the FE simulation is proportional to ρ on average.

The speed-up factor is decreasing with ρ, and is larger than 1 for ρ ≤ 0.5, reaching ≈5 at ρ = 0.1. Regressing the log speed up factor on logρ gives the approximation speedupfactor≈0.58ρ−0.99, consistent with the inverse dependence on ρ predicted by Proposition 1. The speed-up factor is smaller by approximately a factor of 2 relative to the theory. We believe this is because, in this model, the forward-equivalent incurs some overhead relative to the full simulation because it must sample from time-inhomogeneous rather than constant-rate Poisson processes (see SI Appendix, section A for implementation details). For ρ ≳ 0.6, the gain from avoiding simulating unobserved events does not overcome this computational overhead, and the speed-up factor is less than one. We emphasize, however, that this overhead increases computation time by a constant factor which does not grow with phylogeny size. Thus, it will be overcome by a small amount of subsampling even for very large phylogenies. For models that do not include death, the FE simulation is faster than the full simulation when there is at least a moderate amount of subsampling. When the full model itself includes time-inhomogenous rate parameters, the FE simulation will not have this computational overhead relative to the full simulation.

In Fig. 4B, we present similar results for a single-type model that includes death. Precisely, we consider a regime with birth rate λ = 1.0 and death rate μ = 1.0, run for tmax=10 units of biological time. The computational savings are even more dramatic in this case, at ρ = 0.1 reaching a speed-up factor of ≈45 and at ρ = 1 a speed-up factor of ≈6. In this case, even at ρ = 1, the FE simulation is much faster than the full simulation. This is because lineages that die are not sampled. For models that include death, the FE simulation can be more efficient for all subsampling schemes.

We also observe that the computation time for the full simulation is no longer approximately constant in the sampling probability ρ. In fact, unlike in the FE simulation, the computation tends to be larger for smaller values of ρ. We suspect this is a result of the computational cost of pruning the phylogeny, which is more computationally intensive when a smaller fraction of the tree is sampled.

In Fig. 4C, we present results for the two-type model described in the previous subsection, and observe similar phenomena to that appearing in the single-type simulations. SI Appendix, Fig. S2 further illustrates the aforementioned computational overhead and the linear scaling of computation time in the total number of simulated events.

Subsampling from Massive Phylogenies.

The previous section focused on situations in which, although the FE simulation was much faster than the full simulation, the phylogeny sizes were small enough that both approaches were computationally feasible. The computational cost of the FE simulation scales with the size of the subsampled rather than the full phylogeny. Thus, in principle, it allows for simulation of phylogenies subsampled from arbitrarily large populations.

As an example, we consider a multitype model with two types Unfit and Fit with birth rates λUnfit=0.25 and λFit=1.0, death rates μUnfit=0.25 and μFit=0.5, and mutation rates γUnfit,Fit=0.1 and γFit,Unfit=0.25, respectively. Thus, the Fit type has higher birth rates and death rates but a larger net speciation rate than the Unfit type, i.e., λFit−μFit>λUnfit−μUnfit. Moreover, deleterious mutations occur at a higher rate than beneficial mutations. We simulate the population for biological time tmax=47 and sample each lineage in the present population with probability ρ=10−9. With these simulation parameters, we find we often generate trees with leaf counts in the 10 s to 100 s. This indicates that the full population size from which the phylogeny is sampled is in the 10 s to 100 s of billions. On a Macbook Pro with an Apple M1 Pro chip, each tree in this simulation required just over a second of computation time on average.

In Fig. 5, we display a typical phylogeny drawn from this simulation. From such a tree, we see several features that are relevant to understanding phylogenies generated from experiments involving billions of cells. In particular, we observe that most birth events occur well before the present, and most (but not all) mutations occur after the most recent observed birth event. Most lineages mutated to the Unfit type shortly after the most recent birth event, but mutated again to the Fit type before sampling at the present day. Further information regarding observed mutation rates and birth rates, their time dependence, and the behavior of various approaches to estimating model parameters, can also be investigated empirically using such simulated phylogenies.

Fig. 5.

Fig. 5.

A subsampled phylogeny from a multitype model with population size in the billions. The Fit type is in orange and the Unfit type is in blue.

Discussion

We have proposed a method for simulating reconstructed phylogenies that leads to substantial computational savings when there is sparse sampling or high levels of death in the population. Many scientific studies rely on extensive phylogenetic simulation. Unfortunately, when the full population size is in the billions or more, as is typical in epidemiological, cancer evolution, and antibody evolution applications, the cost of the full simulation is prohibitive. Our work makes simulating the reconstructed phylogeny feasible in these domains when the set of sampled lineages is substantially smaller than the full population, enabling much more realistic simulations and benchmark studies.

We believe that our FE simulation approach will facilitate improved inference of population dynamics. We describe some directions for future work.

Training of Machine Learning Models.

Recently, deep learning approaches for estimating epidemiological parameters from reconstructed phylogenies have been proposed (20). These methods are often trained on large sets of phylogenies simulated with different model parameters. By accelerating simulation, our method can facilitate training such models. In particular, the FE simulation can allow the simulated phylogenies to be faithful to realistic population sizes common in epidemiological, cancer evolution, and other domains.

Simulation at Inference-Time.

Some inferential methods require simulation at inference time. For example, “Approximate Bayesian Computation” involves computing summary statistics of observed phylogenies, and then stochastically searching for model parameters (e.g., birth, death, and mutation rates, the timing of CSEs, etc) which, in simulation, generate phylogenies with similar summary statistics (21). A computational bottleneck in these approaches is the cost of simulation. We anticipate the FE simulation may improve or enable simulation-based approaches to inference.

Identifiability.

Following the seminal paper of Louca and Pennell (11), there has been substantial interest in issues of identifiability in birth–death models (17, 18). These papers study single-type models with time-varying birth and death rates, and show that, due to subsampling, there are multiple values of the underlying process parameters that can induce the same distribution over observed phylogenies. This calls into question the ability to use phylogenies to reconstruct parameters driving diversification and extinction dynamics in the past. Our simulation approach is related to a lack of identifiability in multitype models: Indeed, the full model and the FE model induce the same distribution over reconstructed phylogenies, so cannot be distinguished using the observed data alone. Thus, this paper establishes that the identifiability issues that occur in single-type models also occur in more general multitype models, and we specify for each full model a different model that belongs to the same equivalence class. The current paper identifies the utility of this lack of identifiability for the purpose of simulation, but it will also be important to investigate the challenges this introduces for the purpose of inference. Moreover, a complete description of the classes of indistinguishable models and investigation of assumptions that may resolve identifiability issues, as in refs. 17 and 18, is left to future work.

Materials and Methods

Software Implementation.

Reproducible analysis is available on GitHub (Code available at ref. 35). We used the Python package BDMS (33)—which is developed by us and other collaborators—as a reference implementation of the full simulation, and developed wrapper code to implement the forward-equivalent mapping Θ↦ΘFE and perform simulation studies. We use the Python package ETE (36) for tree manipulation and visualization.

Supplementary Material

Appendix 01 (PDF)

Acknowledgments

This research is supported in part by a Miller Research Fellowship (to M.C.), and a James S. McDonnell Foundation Postdoctoral Fellowship (to W.S.D), and NIH grants R56-HG013117 and R01-HG013117 (to Y.S.S).

Author contributions

M.C., W.S.D., S.P., and Y.S.S. designed research; M.C., W.S.D., S.P., and Y.S.S. performed research; M.C., W.S.D., and S.P. contributed new reagents/analytic tools; M.C. analyzed data; Y.S.S. supervised research; and M.C., W.S.D., S.P., and Y.S.S. wrote the paper.

Competing interests

The authors declare no competing interest.

Footnotes

This article is a PNAS Direct Submission.

Contributor Information

Michael Celentano, Email: mcelentano@berkeley.edu.

Yun S. Song, Email: yss@berkeley.edu.

Data, Materials, and Software Availability

Code data have been deposited in GitHub (35).

Supporting Information

References

  • 1.Morlon H., Phylogenetic approaches for studying diversification. Ecol. Lett. 17, 508–525 (2014). [DOI] [PubMed] [Google Scholar]
  • 2.Maddison W. P., Midford P. E., Otto S. P., Estimating a binary character’s effect on speciation and extinction. Syst. Biol. 56, 701–710 (2007). [DOI] [PubMed] [Google Scholar]
  • 3.Stadler T., Sampling-through-time in birth-death trees. J. Theor. Biol. 267, 396–404 (2010). [DOI] [PubMed] [Google Scholar]
  • 4.Quinn J. J., et al. , Single-cell lineages reveal the rates, routes, and drivers of metastasis in cancer xenografts. Science 371, eabc1944 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Yang D., et al. , Lineage tracing reveals the phylodynamics, plasticity, and paths of tumor evolution. Cell 185, 1905–1923.e25 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Horns F., et al. , Lineage tracing of human B cells reveals the in vivo landscape of human antibody class switching. eLife 5, e16578 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Horton M. B., et al. , Lineage tracing reveals B cell antibody class switching is stochastic, cell-autonomous, and tuneable. Immunity 55, 1843–1855.e6 (2022). [DOI] [PubMed] [Google Scholar]
  • 8.Hoehn K. B., Kleinstein S. H., B cell phylogenetics in the single cell era. Trends Immunol. 45, 62–74 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Höhna S., Stadler T., Ronquist F., Britton T., Inferring Speciation and extinction rates under different sampling schemes. Mol. Biol. Evol. 28, 2577–2589 (2011). [DOI] [PubMed] [Google Scholar]
  • 10.FitzJohn R. G., Maddison W. P., Otto S. P., Estimating trait-dependent speciation and extinction rates from incompletely resolved phylogenies. Syst. Biol. 58, 595–611 (2009). [DOI] [PubMed] [Google Scholar]
  • 11.Louca S., Pennell M. W., Extant timetrees are consistent with a myriad of diversification histories. Nature 580, 502–505 (2020). [DOI] [PubMed] [Google Scholar]
  • 12.Stadler T., et al. , Estimating the basic reproductive number from viral sequence data. Mol. Biol. Evol. 29, 347–357 (2011). [DOI] [PubMed] [Google Scholar]
  • 13.Neher R. A., Russell C. A., Shraiman B. I., Predicting evolution from the shape of genealogical trees. eLife 3, e03568 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Yang D., et al. , Lineage tracing reveals the phylodynamics, plasticity, and paths of tumor evolution. Cell 185, 1905–1923.e25 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Nee S., May R. M., Harvey P. H., The reconstructed evolutionary process. Philos. Trans. Biol. Sci. 344, 305–311 (1994). [DOI] [PubMed] [Google Scholar]
  • 16.Moore B. R., Höhna S., May M. R., Rannala B., Huelsenbeck J. P., Critically evaluating the theory and performance of Bayesian analysis of macroevolutionary mixtures. Proc. Natl. Acad. Sci. U.S.A. 113, 9569–9574 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Legried B., Terhorst J., A class of identifiable phylogenetic birth-death models. Proc. Natl. Acad. Sci. U.S.A. 119, e2119513119 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Legried B., Terhorst J., Identifiability and inference of phylogenetic birth-death models. J. Theor. Biol. 568, 111520 (2023). [DOI] [PubMed] [Google Scholar]
  • 19.Title P. O., Rabosky D. L., Tip rates, phylogenies and diversification: What are we estimating, and how good are the estimates? Methods Ecol. Evol. 10, 821–834 (2019). [Google Scholar]
  • 20.Thompson A., Liebeskind B., Scully E. J., Landis M., Deep learning and likelihood approaches for viral phylogeography converge on the same answers whether the inference model is right or wrong. Syst. Biol. 73, 183–206 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.S. Xie, L. Valente, R. S. Etienne, Inferring state-dependent diversification rates using approximate bayesian computation (ABC). bioRxiv [Preprint] (2023). 10.1101/2023.10.14.562317 (Accessed 25 March 2025). [DOI]
  • 22.Rolfes M. A., et al. , Annual estimates of the burden of seasonal influenza in the united states: A tool for strengthening influenza surveillance and preparedness. Influ. Other Respir Viruses 12, 132–137 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Barrat-Charlaix P., Huddleston J., Bedford T., Neher R. A., Limited predictability of amino acid substitutions in seasonal influenza viruses. Mol. Biol. Evol. 38, 2767–2777 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Neher R. A., Bedford T., nextflu: Real-time tracking of seasonal influenza virus evolution in humans. Bioinformatics 31, 3546–3548 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Quinn J., et al. , Single-cell lineages reveal the rates, routes, and drivers of metastasis in cancer xenografts. Science 371, eabc1944 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Simeonov K. P., et al. , Single-cell lineage tracing of metastatic cancer reveals selection of hybrid EMT states. Cancer Cell 39, 1150–1162.e9 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.M. Jones et al. , Inference of single-cell phylogenies from lineage tracing data using Cassiopeia. Genome Biol. 21, 92 (2020). [DOI] [PMC free article] [PubMed]
  • 28.S. Prillo, A. Ravoor, N. Yosef, Y. S. Song, ConvexML: Scalable and accurate inference of single-cell chronograms from CRISPR/Cas9 lineage tracing data. Syst. Biol., in press [DOI] [PMC free article] [PubMed]
  • 29.MacPherson A., Louca S., McLaughlin A., Joy J. B., Pennell M. W., Unifying phylogenetic birth-death models in epidemiology and macroevolution. Syst. Biol. 71, 172–189 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Laudanno G., Haegeman B., Rabosky D. L., Etienne R. S., Detecting lineage-specific shifts in diversification: A proper likelihood approach. Syst. Biol. 70, 389–407 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Morlon H., Parsons T. L., Plotkin J. B., Reconciling molecular phylogenies with the fossil record. Proc. Natl. Acad. Sci. U.S.A. 108, 16327–16332 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Neher R. A., Hallatschek O., Genealogies of rapidly adapting populations. Proc. Natl. Acad. Sci. U.S.A. 110, 437–442 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.W. S. DeWitt et al. , BDMS: A tree simulator for birth-death-mutation sampling processes (Version 0.6.0., 2024). 10.5281/zenodo.10467425. Accessed 15 December 2024. [DOI]
  • 34.Budd G. E., Mann R. P., History is written by the victors: The effect of the push of the past on the fossil record. Evolution 72, 2276–2291 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.M. E. Celentano, W. S. DeWitt, S. Prillo, Y. S. Song, Forward equivalent trees. https://github.com/songlab-cal/forward-equivalent-trees. Deposited 15 December 2024.
  • 36.Huerta-Cepas J., Serra F., Bork P., ETE 3: Reconstruction, analysis, and visualization of phylogenomic data. Mol. Biol. Evol. 33, 1635–1638 (2016). [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

Appendix 01 (PDF)

Data Availability Statement

Code data have been deposited in GitHub (35).


Articles from Proceedings of the National Academy of Sciences of the United States of America are provided here courtesy of National Academy of Sciences

RESOURCES