generate_scrambled_data: Permute the data within samples, maintaining relative...

View source: R/parse_data.R

generate_scrambled_dataR Documentation

Permute the data within samples, maintaining relative abundances but scrambling patterns of variation within taxa

Description

Permute the data within samples, maintaining relative abundances but scrambling patterns of variation within taxa

Usage

generate_scrambled_data(
  tax_level = "ASV",
  host_sample_min = 75,
  count_threshold = 1,
  sample_threshold = 0.2
)

Arguments

tax_level

taxonomic level at which to agglomerate data

host_sample_min

minimum sample number for host inclusion in the filtered data set

count_threshold

minimum count for taxon inclusion in the filtered data set

sample_threshold

minimum proportion of samples within each host at which a taxon must be observed at or above count_threshold

Value

a named list of count table, taxonomy, and metadata components


kimberlyroche/rulesoflife documentation built on May 7, 2023, 11:08 a.m.