set_ALDEx2 | R Documentation |
Set the parameters for ALDEx2 differential abundance detection method.
set_ALDEx2(
assay_name = "counts",
pseudo_count = FALSE,
design = NULL,
mc.samples = 128,
test = "t",
paired.test = FALSE,
denom = "all",
contrast = NULL,
expand = TRUE
)
assay_name |
the name of the assay to extract from the
TreeSummarizedExperiment object (default |
pseudo_count |
add 1 to all counts if TRUE (default
|
design |
a character with the name of a variable to group samples and
compare them or a formula to compute a model.matrix (when
|
mc.samples |
an integer. The number of Monte Carlo samples to use when estimating the underlying distributions. Since we are estimating central tendencies, 128 is usually sufficient. |
test |
a character string. Indicates which tests to perform. "t" runs Welch's t test while "wilcox" runs Wilcoxon test. "kw" runs Kruskal-Wallace test while "kw_glm" runs glm ANOVA-like test. "glm" runs a generalized linear model. |
paired.test |
A boolean. Toggles whether to do paired-sample tests.
Applies to |
denom |
An |
contrast |
character vector with exactly three elements: the name of a variable used in "design", the name of the level of interest, and the name of the reference level. If "kw" or "kw_glm" as test, contrast vector is not used. |
expand |
logical, if TRUE create all combinations of input parameters
(default |
A named list containing the set of parameters for
DA_ALDEx2
method.
DA_ALDEx2
# Set some basic combinations of parameters for ALDEx2
base_ALDEx2 <- set_ALDEx2(design = "group",
contrast = c("group", "grp2", "grp1"))
# Set a specific set of normalization for ALDEx2 (even of other
# packages!)
setNorm_ALDEx2 <- set_ALDEx2(design = "group",
contrast = c("group", "grp2", "grp1"))
# Set many possible combinations of parameters for ALDEx2
all_ALDEx2 <- set_ALDEx2(design = "group", denom = c("iqlr", "zero"),
test = c("t", "wilcox"), contrast = c("group", "grp2", "grp1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.