Description Usage Arguments Value Author(s) See Also Examples
The function download the sequences for multiple genes. The sequences will be stored in a list object and/or will be saved in different files in fasta format.
1 | multiGenBank(x, with.na = c("TRUE", "FALSE"), write.dna = c("TRUE", "FALSE"))
|
x |
is the matrix or data frame with the access numbers of each gene for each species or individual. This matrix must have the species or indivual names in the first column. See example. |
with.na |
Boolean, if there is any NA in the matrix, must be set as TRUE (default). When you have no data or access number in a gene for one or more species, you must codify this as NA, otherwise, the function will not work. |
write.dna |
Boolean, write each gene as separate files in fasta format. The file names will be the same as the column names. By deafault TRUE. |
The function returns a list object with the sequences for each gene (DNAbin class). Even setting write.dna=TRUE, the function will returns the list object.
Omar Daniel Leon-Alvarado leon.alvarado12@gmail.com
1 2 3 4 5 6 7 8 | library(alignTools)
data(Procyonidae)
head(Procyonidae, 5L)
genes <- multiGenBank(x=Procyonidae, with.na=TRUE, write.dna=FALSE)
str(genes)
genes$cytb
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.