tax_datatable: Make a datatable with the taxonomy of a 'phyloseq-class'...

View source: R/table_functions.R

tax_datatableR Documentation

Make a datatable with the taxonomy of a phyloseq-class object

Description

lifecycle-maturing

An interactive table for phyloseq taxonomy.

Usage

tax_datatable(
  physeq,
  abundance = TRUE,
  taxonomic_level = NULL,
  fact = NULL,
  modality = lifecycle::deprecated(),
  ...
)

Arguments

physeq

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

abundance

(logical, default TRUE) Does the number of sequences is print

taxonomic_level

(default: NULL) a vector of selected taxonomic level using their column numbers (e.g. taxonomic_level = 1:7)

fact

(default: NULL) Name of a column in physeq@sam_data or a factor/vector of length nsamples(physeq) to split OTU abundance by level. Formerly modality.

modality

[Deprecated] Use fact instead.

...

Other argument for the datatable function

Value

A datatable

Author(s)

Adrien Taudière

Examples


data("GlobalPatterns", package = "phyloseq")
if (requireNamespace("DT")) {
  tax_datatable(subset_taxa(
    GlobalPatterns,
    rowSums(GlobalPatterns@otu_table) > 10000
  ))

  # Using fact
  tax_datatable(GlobalPatterns,
    fact = "SampleType"
  )
}


MiscMetabar documentation built on Nov. 16, 2026, 5:06 p.m.