You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rewrote NewInterface.R to provide a simplified, unified API for microbiome data analysis, consolidating multiple plotting and testing functions into core unified functions (plot_taxa, plot_alpha, plot_beta, test_taxa, test_beta, test_alpha). The new interface automatically detects study design and routes to the appropriate underlying function, improving usability and maintainability. Added detailed documentation and parameter validation, and removed legacy and redundant code.
Copy file name to clipboardExpand all lines: R/generate_alpha_boxplot_single.R
-6Lines changed: 0 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,6 @@
7
7
#' @param alpha.name The alpha diversity index to be plotted. Supported indices include "shannon", "simpson", "observed_species", "chao1", "ace", "pielou", and "faith_pd".
8
8
#' @param depth An integer specifying the sequencing depth for the "Rarefy" and "Rarefy-TSS" methods.
9
9
#' If NULL, no rarefaction is performed.
10
-
#' @param subject.var The variable in the metadata table that represents the subject.
11
10
#' @param time.var The variable in the metadata table that represents the time.
12
11
#' @param t.level Character string specifying the time level/value to subset data to,
13
12
#' if a time variable is provided. Default NULL does not subset data.
@@ -76,7 +75,6 @@
76
75
#' data.obj = peerj32.obj,
77
76
#' alpha.obj = NULL,
78
77
#' alpha.name = c("simpson"),
79
-
#' subject.var = "subject",
80
78
#' time.var = "time",
81
79
#' t.level = "2",
82
80
#' group.var = "group",
@@ -96,7 +94,6 @@
96
94
#' data.obj = peerj32.obj,
97
95
#' alpha.obj = alpha.obj,
98
96
#' alpha.name = c("simpson"),
99
-
#' subject.var = "subject",
100
97
#' time.var = "time",
101
98
#' t.level = "2",
102
99
#' group.var = "group",
@@ -119,7 +116,6 @@
119
116
#' data.obj = subset_T2D.obj,
120
117
#' alpha.obj = NULL,
121
118
#' alpha.name = c("shannon"),
122
-
#' subject.var = "subject_id",
123
119
#' time.var = "visit_number",
124
120
#' t.level = " 3",
125
121
#' group.var = "subject_race",
@@ -146,7 +142,6 @@
146
142
#' data.obj = peerj32.obj,
147
143
#' alpha.obj = NULL,
148
144
#' alpha.name = c("simpson"),
149
-
#' subject.var = "subject",
150
145
#' time.var = "time",
151
146
#' t.level = "2",
152
147
#' group.var = "group",
@@ -167,7 +162,6 @@ generate_alpha_boxplot_single <- function (data.obj,
Copy file name to clipboardExpand all lines: R/generate_alpha_change_test_pair.R
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,12 @@
23
23
#' @param alpha.name The alpha diversity index to be plotted. Supported indices include "shannon", "simpson", "observed_species", "chao1", "ace", "pielou", and "faith_pd". Previously named as `alpha.index`.
24
24
#' @param depth An integer specifying the sequencing depth for the "Rarefy" and "Rarefy-TSS" methods.
25
25
#' If NULL, no rarefaction is performed.
26
-
#' @param time.var Character string specifying the column name in metadata containing
27
-
#' time values for each sample. Required to identify pairs of time
28
-
#' points to calculate changes between.
29
26
#' @param subject.var Character string specifying the column name in metadata containing
30
27
#' unique subject IDs. Required to pair samples from the same subject
31
28
#' across time points.
29
+
#' @param time.var Character string specifying the column name in metadata containing
30
+
#' time values for each sample. Required to identify pairs of time
31
+
#' points to calculate changes between.
32
32
#' @param group.var Character string specifying the column name in metadata containing
33
33
#' grouping categories. Used as a predictor in the models to test for
34
34
#' differences in changes between groups. Optional, can be NULL.
0 commit comments