read.multiGenes: Read Multiple Genes/Alignments files

Description Usage Arguments Author(s) See Also Examples

View source: R/read.multiGenes.R

Description

The function reads two o more dna files (alignments)

Usage

1
read.multiGenes(files, format = c("nexus", "phylip", "fasta"), names = NULL)

Arguments

files

Vecotr with the name of the files to read. The files must be in the same working directory.

format

The format of the files. Three options: 1. nexus, 2. phylip or 3. fasta

names

(optional), a vector with same lenght as files. This represent an specific name for each file. If missin, the function will use the files vector as names.

Author(s)

Omar Daniel Leon-Alvarado

See Also

multiGenBank concatGenes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(alignTools)

input <- c("files1.nex","file2.nex","file3.nex")

# In this example, names will be the same as input
data <- read.multiGenes(files=input, format="nexus")

# In this exmaple, names will be "id1","id2","id3".
data <- read.multiGenes(files=input, format="nexus",names=c("id1","id2","id3"))

str(data)

oleon12/alignTools documentation built on March 17, 2021, 4:57 p.m.