mirl | R Documentation |
mirl()
will repeatedly rarefy to a user defined library size, for a specified number
of replications to characterize the variation introduced through random subsampling.
The implementation of mirl() allows for rarefying to be a statistically valid library
size normalization technique for diversity analyses. Users are encouraged to conduct
exploratory analysis to identify optimal rarefied library sizes for their data that
minimizes variation in samples. Users may have to choose between rarefying to smaller
than preferred library sizes or discarding small library size samples but the
implementation of mirl()
generally allows for rarefying to small library sizes at the
loss of resolution and precision in results.
mirl(
x,
libsize = min(phyloseq::sample_sums(x)),
rep = 1000,
set.seed = NULL,
trimOTUs = FALSE,
replace = FALSE,
mc.cores = 1L
)
x |
The |
libsize |
The specified library size to rarefy to. By default, |
rep |
The number of times rarefying will be repeated. By default, |
set.seed |
The seed value for reproducibility. |
trimOTUs |
A Boolean value determining whether OTUs that are absent from all samples after rarefying should be removed. |
replace |
A Boolean value determining whether subsampling should be performed with or without replacement. See Cameron et al., 2020 for further details. |
mc.cores |
From |
A list of phyloseq
objects.
library(mirlyn)
data(example)
## Not run:
mirl_object <- mirl(example, libsize = 10000, rep = 100, set.seed=120)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.