View source: R/expansions_simulate.R
simulate_clonal_tree | R Documentation |
Simulate an instance of coalescent process with local population structure
simulate_clonal_tree(
n_exp,
N,
K,
A,
sampling_times,
tip_colours,
div_times,
div_cols,
div_from = NA
)
n_exp |
number of expansions |
N |
background population size |
K |
carrying capacities |
A |
growth rates |
sampling_times |
sampling times |
tip_colours |
tip clade assignment |
div_times |
clade divergence times |
div_cols |
vector of colours ordered in sequence |
div_from |
(optional) parent populations for individual clades. If NA will be randomised equiprobably. |
list of: 'co' - list containing event times, event colour assignment and parents of clonal expansions; log_lh: the log likelihood
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.