.uc
) to OTU table-cluster_otu
option flag. For
details about installing and running usearch, please
refer to the usearch
website. This importer is intended to read a particular
table format output that is generated by usearch with the
-uc
option flag, a file format that is often given
the .uc
extension in usearch documentation.
Because usearch is an external (non-R) application, there
is no direct way to continuously check that these
suggested arguments and file formats will remain in their
current state. If there is a problem, please verify your
version of usearch, create a small reproducible example
of the problem, and post it as an issue on the phyloseq
issues tracker. The version of usearch expected by this
import function is 7.0.109
. Hopefully later
versions of usearch maintain this function and format,
but the phyloseq team has no way to guarantee this, and
so any feedback about this will help maintain future
functionality. For instance, it is currently assumed that
the 9th and 10th columns of the .uc
table hold the
read-label and OTU ID, respectively; and it is also
assumed that the delimiter between sample-name and read
in the read-name entries is a single "_"
.
import_usearch_uc(ucfile, colRead = 9, colOTU = 10, readDelimiter = "_", verbose = TRUE)
connection
corresponding to the
file that contains the usearch output table. This is
passed directly to read.table
. Please see
its file
argument documentation for further links
and details.9
.10
.import
usearchfile <- system.file("extdata", "usearch.uc", package="phyloseq")
import_usearch_uc(usearchfile)
Run the code above in your browser using DataLab