| mcknight_residuals_pq | R Documentation |
Computes the residuals from a linear regression of
\log(\text{richness}) against \log(\text{sequencing depth})
as a depth-robust alpha diversity metric (Mikryukov et al. 2023;
McKnight et al. 2018, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.5061/dryad.tn8qs35")}). This avoids
discarding data through rarefaction.
mcknight_residuals_pq(physeq, add_to_sam_data = TRUE)
physeq |
(required) a |
add_to_sam_data |
(logical, default |
Either a phyloseq object with an augmented sample_data (default)
or a named numeric vector of residuals.
Adrien Taudière
data_f_res <- mcknight_residuals_pq(data_fungi_mini)
head(sample_data(data_f_res)$mcknight_residuals)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.