dropSeq | R Documentation |
This function drops the smaller sequence(s) (with missing characters)
for any species duplicated with multiple accessions in the DNA alignment. You
can run dropSeq with multiple DNA alignments, but then we recommend to run
catmultGenes
first.
dropSeq(...,
shortaxlabel = FALSE)
... |
one or a list of NEXUS-formatted gene datasets as loaded by ape's
|
shortaxlabel |
Logical, if |
A list of dataframe(s) containing the input DNA alignment(s), where duplicated accessions of the same species are removed.
Domingos Cardoso
catmultGenes
writeNexus
writePhylip
nexusdframe
phylipdframe
fastadframe
## Not run:
data(Ormosia)
# Run dropSeq for one or more individual DNA alignment and then save each
# dataset with non-duplicated species using nexusdframe, phylipdframe or fastadframe
df <- dropSeq(Ormosia)
ITS <- df[[1]]
nexusdframe(ITS, file = "filename.nex")
# Run function catmultGenes first
catdf <- catmultGenes(Ormosia,
maxspp = TRUE,
shortaxlabel = FALSE,
missdata = TRUE)
# Run dropSeq for the entire concatenated DNA alignments
catdf <- dropSeq(catdf,
shortaxlabel = FALSE)
# Then save the concatenated DNA alignment
writeNexus(catdf,
file = "filename.nex",
bayesblock = TRUE,
interleave = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.