readfiles: Read multiple DNA alignments

Description Usage Arguments Author(s) See Also Examples

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

1
2
3
4
5

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(s)

Thibaut Jombart t.jombart@imperial.ac.uk

Klaus Schliep klaus.schliep@gmail.com

See Also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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

apex documentation built on April 14, 2020, 5:32 p.m.