View source: R/mrbayes_input.R
mrbayes_input | R Documentation |
MrBayes
Takes a list of data matrices and converts into a NEXUS file that can
be read by MrBayes
. Can be used for multiple data partitions and
data types.
mrbayes_input(dat.list, type.vec, set.vec, out.file)
dat.list |
List: Each index contains a matrix for a data partition. Could be a matrix of morphological characters, DNA alignments for a gene, etc. Row names are taxa, column names are the characters, with cells containing the character states per taxa. |
type.vec |
Character: A vector of the data partition types (the matrices
in |
set.vec |
Character: A vector of the data partition sets (the matrices
in |
out.file |
Character: A single value, the name of the NEXUS file to save. |
Primary functionality is to convert data generated in R into NEXUS.
Calculates data ranges and sets up partitions. Addition of MrBayes
run commands are not supported.
Writes a NEXUS file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.