These functions read multiple DNA alignments and store the output in a multidna object.
They are relying on ape's original functions read.dna and read.FASTA.
Usage
read.multidna(files, add.gaps = TRUE, ...)
read.multiFASTA(files, add.gaps = TRUE)
read.multiphyDat(files, add.gaps = TRUE, ...)
Arguments
files
a vector of characters indicating the paths to the files to read from.
add.gaps
a logical indicating if gap-only sequences should be added wherever sequences are missing; defaults to TRUE.
...
further arguments to be passed to the functions read.dna and read.FASTA.
## get path to the filesfiles <- dir(system.file(package="apex"),patter="patr", full=TRUE)
files
## read filesx <- read.multiFASTA(files)
x
plot(x)
y <- read.multiphyDat(files, format="fasta")
y