export_mothur_dist | R Documentation |
.names
and .dist
files for mothurThe purpose of this function is to allow a user to easily export a distance object
as a pair of files that can be immediately imported by mothur for OTU clustering
and related analysis. A distance object can be created in R
in a number of
ways, including via cataloguing the cophentic distances of a tree object.
export_mothur_dist(x, out=NULL, makeTrivialNamesFile=NULL)
x |
(Required). A |
out |
(Optional). The desired output filename for the |
makeTrivialNamesFile |
(Optional). Default |
A character vector of the different cutoff values contained in the file.
For a given set of arguments to the cluster()
command from within
mothur, a number of OTU-clustering results are returned in the same
list file. The exact cutoff values used by mothur can vary depending
on the input data. This simple function returns the cutoffs that were actually
included in the mothur output. This an important extra step prior to
importing the OTUs with the import_mothur_otulist()
function.
# data(esophagus) myDistObject <- as.dist(ape::cophenetic.phylo(phy_tree(esophagus))) export_mothur_dist(myDistObject)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.