write.pml | R Documentation |
write.pml
writes out the ML tree and the model parameters.
write.pml(x, file = "pml", save_rds = TRUE, ...)
x |
an object of class ancestral. |
file |
a file name. File endings are added. |
save_rds |
logical, if TRUE saves the pml object as a rds file, otherwise the alignment is saved as a fasta file. |
... |
Further arguments passed to or from other methods. |
write.pml
returns the input x invisibly.
ancestral.pml
, plotAnc
data(woodmouse)
fit <- pml_bb(woodmouse, "JC", rearrangement = "none")
write.pml(fit, "woodmouse")
unlink(c("woodmouse_pml.txt", "woodmouse_tree.nwk", "woodmouse.rds"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.