write.partitioned.nex: Write partitioned and commented NEXUS files

Description Usage Arguments Author(s) See Also Examples

Description

This function takes one or more objects of class "DNAbin" and writes them to an interleaved NEXUS file.

Usage

1

Arguments

...

One or more objects of class "DNAbin"

file

character string giving a file name

labels

vector of mode "character"; used to label partitions; its length must match the number of gene partitions

Author(s)

Christoph Heibl

See Also

write.nex, write.phy, write.fas

Examples

 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)

fmichonneau/phyloch documentation built on May 16, 2019, 1:45 p.m.