Description Usage Arguments Author(s) See Also Examples
This function takes one or more objects of class "DNAbin"
and writes them to an interleaved NEXUS file.
1 |
... |
One or more objects of class |
file |
character string giving a file name |
labels |
vector of mode |
Christoph Heibl
write.nex
, write.phy
, write.fas
1 2 3 4 5 6 7 8 9 10 11 | # load sequence data and split in three parts
# -------------------------------------------
data(woodmouse)
w1 <- woodmouse[, 1:250]
w2 <- woodmouse[, 251:750]
w3 <- woodmouse[, 750:965]
# write nexus file with taxon block
# ---------------------------------
markers <- c("gene1", "gene2", "gene3")
write.partitioned.nex(w1, w2, w3, labels = markers)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.