add_new_taxonomy_pq: Add new taxonomic rank to a phyloseq object.

View source: R/dada_phyloseq.R

add_new_taxonomy_pqR Documentation

Add new taxonomic rank to a phyloseq object.

Description

lifecycle-experimental

One of main use of this function is to add taxonomic assignment from a new database.

Usage

add_new_taxonomy_pq(
  physeq,
  ref_fasta,
  suffix = NULL,
  method = c("dada2", "sintax", "lca", "idtaxa"),
  trainingSet = NULL,
  min_boostrap = NULL,
  ...
)

Arguments

physeq

(required): a phyloseq-class object obtained using the phyloseq package.

ref_fasta

(required) A link to a database. passed on to dada2::assignTaxonomy.

suffix

(character) The suffix to name the new columns. If set to NULL (the default), the basename of the file reFasta is used with the name of the method. Set suffix to "" in order to remove any suffix.

method

(required, default "dada2") :

  • "dada2": dada2::assignTaxonomy()

  • "sintax": see assign_sintax()

  • "lca": see assign_vsearch_lca()

  • "idtaxa": see assign_idtaxa()

trainingSet

see assign_idtaxa(). Only used if method = "idtaxa". Note that if trainingSet is not NULL, the ref_fasta is overwrite by the trainingSet parameter. To customize learning parameters of the idtaxa algorithm you must use trainingSet computed by the function learn_idtaxa().

min_boostrap

(Int. [0:1])

Minimum bootstrap value to inform taxonomy. For each bootstrap below the min_boostrap value, the taxonomy information is set to NA.

Correspond to parameters :

  • dada2: minBoot, default value = 0.5

  • sintax: min_boostrap, default value = 60

  • lca: threshold, default value = 60

  • idtaxa: threshold, default value = 60

...

Other arguments passed on to the taxonomic assignation method.

Value

A new phyloseq-class object with a larger slot tax_table"

Author(s)

Adrien Taudière

See Also

dada2::assignTaxonomy(), assign_sintax(), assign_vsearch_lca(), assign_sintax()


adrientaudiere/MiscMetabar documentation built on Jan. 19, 2025, 6:42 p.m.