catmultGenes | R Documentation |
Compares a list of "n" gene datasets (individual DNA alignments) and makes them with the same number of taxa, ready for combined, multigene phylogenetic analysis. This function is best designed for concatenating DNA alignments where species have duplicated sequences (multiple accessions) from different collections. Then, make sure the species are labeled with both the scientific name and the same identifying number throughout each DNA alignment. Identifying numbers could be collector surname and associated collection number, or an accession number for the isolated DNA from which each gene was sequenced. During the comparison across DNA alignments for concatenation, the function will consider that any species is represented by multiple sequences and so in each individual gene dataset species will fully matched if they have exact scientific name and associated identifying number.
catmultGenes(...,
maxspp = TRUE,
shortaxlabel = TRUE,
missdata = TRUE,
outgroup = NULL,
verbose = TRUE)
... |
a list of NEXUS-formatted gene datasets as read by ape's |
maxspp |
Logical, if |
shortaxlabel |
Logical, if |
missdata |
Logical, if |
outgroup |
Provide the outgroup taxa (either one taxon name or a vector of multiple taxon names that are present in all individual gene dataset) if the concatenation is intended to maintain incomplete taxa (taxa missing the sequence for a particular gene). |
verbose |
Logical, if |
A list of dataframes of the equally-sized gene dataset, where the first column "species" include all taxon names and the second column "sequence" include the DNA sequence for the corresponding taxon.
Domingos Cardoso and Quezia Cavalcante
writeNexus
writePhylip
dropSeq
nexusdframe
phylipdframe
fastadframe
## Not run:
data(Luetzelburgia)
catdf <- catmultGenes(Luetzelburgia,
maxspp = TRUE,
shortaxlabel = TRUE,
missdata = TRUE,
verbose = TRUE)
outgrouptaxa <- c("Vataireopsis_araroba", "Vataireopsis_speciosa")
catdf <- catmultGenes(Luetzelburgia,
maxspp = FALSE,
shortaxlabel = TRUE,
missdata = FALSE,
outgroup = outgrouptaxa,
verbose = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.