View source: R/coverage_based_rarefaction.R
rarefy_even_coverage | R Documentation |
rarefy_even_coverage
performs coverage-based rarefaction for a phyloseq object using iNEXT package
rarefy_even_coverage(
ps_obj,
coverage = 0.97,
remove_not_rarefied = FALSE,
include_iNEXT_results = FALSE,
correct_singletons = FALSE,
se = FALSE,
nboot = 40,
knots = 50,
n_rarefy_iter = 1,
rarefy_average_method = "round",
sample_method = "phyloseq",
ran_seed = 1234
)
ps_obj |
Phyloseq object. |
coverage |
Numeric. Coverage specified by a user (default = 0.97 = 97%). |
remove_not_rarefied |
Logical. If |
include_iNEXT_results |
Logical. If TURE, iNEXT results will be included as a element of the output. The first object is a rarefied phyloseq object, and the second object is an iNEXT result. Also, if |
correct_singletons |
Logical. If TURE, singleton counts will be corrected according to the method of Chiu & Chao (2016). Corrected coverage and reads will be used for the rarefaction of the original data. |
se |
Logical. Specify whether SE of the rarefaction curve is calculated. |
nboot |
Numeric. Specify |
knots |
Numeric. Specify |
n_rarefy_iter |
Numeric. The number of iterations of rarefactions (default = 1). |
rarefy_average_method |
Character. If |
sample_method |
Character. Specify which function is used for rarefaction. |
ran_seed |
Numeric. Random seed. |
Hsieh et al. (2016) Methods in Ecology and Evolution https://doi.org/10.1111/2041-210X.12613
Rarefied phyloseq object (ps_rare
). If include_iNEXT_results = TRUE
, iNEXT
results are stored in the second element of the list.
# rarefy_even_coverage(ps_obj, coverage = 0.97)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.