| fastadframe | R Documentation |
Writes data.frame formatted DNA alignment or list
formatted NEXUS file as originally imported with ape's function
read.nexus.data into a FASTA-formatted file. It is useful for
writing each gene dataset from within the resulting list of compared gene datasets,
after running the concatenating functions catfullGenes and
catmultGenes. The function is also useful for saving into FASTA
format the original list-formatted NEXUS object as read by read.nexus.data,
after making specific changes in such original individual alignment (e.g. corrections
of species names).
fastadframe(x, file,
dropmisseq = TRUE,
endgaps.to.miss = TRUE)
x |
The object to be written, any two-column-sized |
file |
Either a character string naming a file or a |
dropmisseq |
Logical, if |
endgaps.to.miss |
Logical, if |
Domingos Cardoso
catfullGenes
catmultGenes
dropSeq
## Not run:
data(Gaya)
catdf <- catfullGenes(Gaya,
multiaccessions = FALSE,
shortaxlabel = TRUE,
missdata = TRUE)
ITS <- catdf[[1]]
petLpsbE <- catdf[[2]]
rpl16 <- catdf[[3]]
fastadframe(ITS, file = "filename.fasta",
dropmisseq = TRUE)
fastadframe(petLpsbE, file = "filename.fasta",
dropmisseq = TRUE)
fastadframe(rpl16, file = "filename.fasta",
dropmisseq = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.