Performs a wilcox test to determine features (be it Operational Taxanomic Unit (OTU), species, etc.) that are differentially abundant between two or more groups of multiple samples.
Usage
step_wilcox(
rec,
norm_method = "compositional",
max_significance = 0.05,
p_adj_method = "BH",
rarefy = FALSE,
id = rand_id("wilcox")
)Arguments
- rec
A Recipe object. The step will be added to the sequence of operations for this Recipe.
- norm_method
Transformation to apply. The options include: 'compositional' (ie relative abundance), 'Z', 'log10', 'log10p', 'hellinger', 'identity', 'clr', 'alr', or any method from the vegan::decostand function.
- max_significance
The q-value threshold for significance.
- p_adj_method
Character. Specifying the method to adjust p-values for multiple comparisons. Default is “BH” (Benjamini-Hochberg procedure).
- rarefy
Boolean indicating if OTU counts must be rarefyed.
- id
A character string that is unique to this step to identify it.
See also
Other Diff taxa steps:
step_aldex(),
step_ancom(),
step_corncob(),
step_deseq(),
step_lefse(),
step_maaslin()
Examples
data(metaHIV_phy)
## Init Recipe
rec <-
recipe(metaHIV_phy, "RiskGroup2", "Phylum") |>
step_subset_taxa(tax_level = "Kingdom", taxa = c("Bacteria", "Archaea"))
## Define step with default parameters
rec <- step_wilcox(rec)
#> Registered S3 method overwritten by 'car':
#> method from
#> na.action.merMod lme4
rec
#> ── DAR Recipe ──────────────────────────────────────────────────────────────────
#> Inputs:
#>
#> ℹ phyloseq object with 451 taxa and 156 samples
#> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid)
#> ℹ taxonomic level Phylum
#>
#> Preporcessing steps:
#>
#> ◉ step_subset_taxa() id = subset_taxa__Cannoli_siciliani
#>
#> DA steps:
#>
#> ◉ step_wilcox() id = wilcox__Schneeball
