update_assignment: Update the taxonomic assignment of a phyloseq object

View source: R/update_assignment.R

update_assignmentR Documentation

Update the taxonomic assignment of a phyloseq object

Description

Replaces the tax_table slot of a phyloseq object with updated assignments based on a revised version of a reference database.

Usage

update_assignment(ps, ref, use_function = "species")

Arguments

ps

Phyloseq object to be updated

ref

Path to the reference database (a FASTA file) to use for assignment

use_function

One of either 'species' or 'taxonomy', indicating if reference database is use_functionted for species (assignSpecies) or taxonomy (assignTaxonomy) assignment. Defaults to 'species' with the MButils assignSpecies_mod function.

Value

An updated phyloseq object.


ammararuby/MButils documentation built on Jan. 29, 2023, 11:13 a.m.