Description Usage Arguments Value Author(s) See Also Examples
Gets all the Sequence objects associated with the nodes of a phylo object aggregated by a PhyloSim object.
The order of the Sequence objects in the returned list reflects the identifiers of the associated nodes.
1 2 | ## S3 method for class 'PhyloSim'
getSequences(this, ...)
|
this |
A PhyloSim object. |
... |
Not used. |
A list of sequence objects.
Botond Sipos, Gregory Jordan
For more information see PhyloSim
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Create a PhyloSim object.
# Provide the phylo object
# and the root sequence.
sim<-PhyloSim(
name="TinySim",
phylo=rcoal(3),
root.seq=NucleotideSequence(string="ATG",processes=list(list(JC69())))
);
# run the simulation
Simulate(sim)
# get all the associated sequence objects
getSequences(sim)
# get the sequence associated with node 3
# via virtual field
sim$sequences[[3]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.