apex (version 1.0.2)

read.multidna: Read multiple DNA alignments

Description

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.

See Also

Examples

Run this code
## get path to the files
files <- dir(system.file(package="apex"),patter="patr", full=TRUE)
files

## read files
x <- read.multiFASTA(files)
x
plot(x)

y <- read.multiphyDat(files, format="fasta")
y

Run the code above in your browser using DataCamp Workspace