Description Usage Arguments Value Author(s) See Also Examples
Get the Sequence object associated with a given node of a phylo object aggregated by a PhyloSim object.
1 2 | ## S3 method for class 'PhyloSim'
getSeqFromNode(this, node=NA, ...)
|
this |
A PhyloSim object. |
node |
Node identifier. |
... |
Not used. |
A Sequence object.
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="ATG",processes=list(list(JC69())))
);
# get the sequence associated with node 5
getSeqFromNode(sim,5) # Should be NA
# Run the simulation
Simulate(sim)
# try again
getSeqFromNode(sim,5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.