Skip to main content
. 2017 Apr 8;34(8):2065–2084. doi: 10.1093/molbev/msx124

Fig. 9.

Fig. 9

A schematic showing our Monte Carlo approach to estimate the conditional probability of a sequence under a relaxed clock. Note that this procedure only modifies the subtree of the phylogeny that joins the sequences, P˜(t). At the top, we show a particle just before attaching a new sequence. In this case, the particle has already incorporated two sequences, and the location of the third sequence on the transmission forest has already been selected. First, we make L copies of P˜(t2), the subtree of the phylogeny that connects all sequences observed up to time t2 (at ①). For each of these phylogenies we propose an attachment site and an edge length for sequence g3 (at ②). The edge length of the edge subtending sequence g3, e, is drawn from a Gamma distribution parameterized as described in the text. We split the edge between the root and sequence g2 according to a Beta distribution into two lengths, a and b; this procedure preserves Gamma distributed edge lengths for two components of the split edge. Then, for each proposed phylogeny, we use the peeling algorithm to compute the conditional probability of sequence g3 (at ③). Finally, we sample one of these proposed phylogenies with probability proportional to its weight (at ④). The unsampled proposals are discarded and the particle takes the average of the conditional probabilities as its weight.