apex (version 1.0.6)

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, ...)

Value

read.multidna and read.multiFASTA return an object of class multidna, read.multiphyDat returns an object of class multiphyDat.

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.

Author

Thibaut Jombart t.jombart@imperial.ac.uk

Klaus Schliep klaus.schliep@gmail.com

See Also

  • read.dna

  • read.FASTA

  • read.phyDat

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
opar <- par(no.readonly=TRUE)
par(mfrow=c(2,2))
plot(x, row=FALSE)
par(opar)

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

Run the code above in your browser using DataLab