phylipdframe | 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 PHYLIP-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 PHYLIP
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).
phylipdframe(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 = FALSE,
outgroup = "Abutilon_costicalyx")
ITS <- catdf[[1]]
petLpsbE <- catdf[[2]]
rpl16 <- catdf[[3]]
phylipdframe(ITS, file = "filename.nex")
phylipdframe(petLpsbE, file = "filename.nex")
phylipdframe(rpl16, file = "filename.nex")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.