Description Usage Arguments Value Author(s) See Also Examples
Run a simulation according to a PhyloSim object.
The phylo object and the root sequence must be set before attempting to run a simulation. Also the bigRate of the root sequence must not be NA or zero, so at least one sane Process object must be attached to the root sequence object.
1 2 |
this |
A PhyloSim object. |
quiet |
TRUE or FALSE (default). |
... |
Not used. |
The PhyloSim object (invisible).
Botond Sipos, Gregory Jordan
For more information see PhyloSim
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Create a PhyloSim object.
# Provide the phylo object
# and the root sequence.
sim<-PhyloSim(
name="TinySim",
phylo=rcoal(3),
root.seq=NucleotideSequence(string="ATGC",processes=list(list(JC69())))
);
# Run the simulation
Simulate(sim);
# Print the resulting sequences
sim$sequences
# Print the resulting alignment
sim$alignment
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.