taxonomy: Assign taxonomy to nucleotide sequences

Description Usage Arguments Value Return types

View source: R/taxonomy.R

Description

This method uses a common interface to call primary taxonomic assignment algorithms (i.e., those which assign taxonomy based on a taxonomically classified reference sequence database, but not based on the results of other algorithms) from other R packages or external programs.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
taxonomy(seq, reference, method, min_confidence = 50, multithread = FALSE, ...)

taxonomy_dada2(
  seq,
  reference,
  multithread = FALSE,
  min_confidence,
  tryRC = FALSE,
  outputBootstraps = TRUE,
  verbose = TRUE,
  ...
)

taxonomy_sintax(
  seq,
  reference,
  min_confidence = NULL,
  multithread = FALSE,
  exec = NULL,
  ...
)

taxonomy_idtaxa(
  seq,
  reference,
  multithread = FALSE,
  strand = "top",
  min_confidence = 40,
  ...
)

Arguments

seq

('character“ vector or something that can be coerced to one, or a matrix with sequences as the column names ) Sequences to assign taxonomy

reference

('character“ string giving a path to a file or the result from DECIPHER::LearnTaxa()/train_idtaxa()) An appropriately formatted reference database (see Details).

method

('character“ string) taxonomy assignment method. Currently accepted values are "dada2", "sintax", and "idtaxa".

min_confidence

('integer“ between 0 and 100) The minimum confidence to report results.

multithread

(integer scalar) the number of processors to use for assignment.

...

additional arguments for methods

tryRC

(logical scalar) passed on to dada2::assignTaxonomy()

outputBootstraps

(logical scalar) passed on to dada2::assignTaxonomy()

verbose

(logical scalar) passed on to dada2::assignTaxonomy()

exec

(character string) name of the executable to use for SINTAX search. The default is "vsearch", but "usearch" should also work. In either case, the executable should be installed and on the system path.

strand

(character string) passed on to DECIPHER::IdTaxa()

Value

raw results of the taxonomy assignment, of various types depending on method.

Return types


brendanf/phylotax documentation built on March 3, 2021, 2:21 p.m.