format_to_besthit: Formatting the Phyloseq Object advanced

Description Usage Arguments Details Value Examples

View source: R/format_to_besthit.R

Description

Format the phyloseq object to add the best taxonomy in phyloseq object (tax_table and otu_table).

Usage

1

Arguments

x

phyloseq-class object

Details

Most commonly it is observed that the taxonomy file has classification until a given taxonomic level. row.names for both tax_table and otu_table have best hit, until maximun genus level (species classification with short amplicons is a myth)is made available. This code is a slight modification of the code from ampvis phyloseq-class. Here, we directly take the phyloseq object as input and make the necessary formatting.

Value

phyloseq-class object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
  # Example data
    library(microbiome)
    library(microbiomeUtilities)
    library(tibble)
    data("biogeogut")
    p0 <- biogeogut
    p0.f <- format_to_besthit(p0)
          
## End(Not run)

microsud/microbiomeutilities-shiny documentation built on May 7, 2019, 9:38 a.m.