Skip to content

Commit

Permalink
introduce transformators parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Jan 21, 2025
1 parent 4f07c33 commit 02d7e41
Show file tree
Hide file tree
Showing 17 changed files with 73 additions and 17 deletions.
5 changes: 4 additions & 1 deletion R/barplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#' analysis.
#'
#' @inheritParams module_arguments
#' @inheritParams teal::module
#'
#' @return Shiny module to be used in the teal app.
#'
Expand Down Expand Up @@ -35,7 +36,8 @@ tm_g_barplot <- function(label,
),
pre_output = NULL,
post_output = NULL,
.test = FALSE) {
.test = FALSE,
transformators = list()) {
message("Initializing tm_g_barplot")
assert_string(label)
assert_string(mae_name)
Expand All @@ -62,6 +64,7 @@ tm_g_barplot <- function(label,
post_output = post_output,
.test = .test
),
transformators = transformators,
datanames = mae_name
)
}
Expand Down
5 changes: 4 additions & 1 deletion R/boxplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#' analysis.
#'
#' @inheritParams module_arguments
#' @inheritParams teal::module
#'
#' @return Shiny module to be used in the teal app.
#'
Expand Down Expand Up @@ -36,7 +37,8 @@ tm_g_boxplot <- function(label,
),
pre_output = NULL,
post_output = NULL,
.test = FALSE) {
.test = FALSE,
transformators = list()) {
message("Initializing tm_g_boxplot")
assert_string(label)
assert_string(mae_name)
Expand All @@ -63,6 +65,7 @@ tm_g_boxplot <- function(label,
post_output = post_output,
.test = .test
),
transformators = transformators,
datanames = mae_name
)
}
Expand Down
5 changes: 4 additions & 1 deletion R/forestplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#' This module provides an interactive survival forest plot.
#'
#' @inheritParams module_arguments
#' @inheritParams teal::module
#'
#' @return Shiny module to be used in the teal app.
#'
Expand Down Expand Up @@ -56,7 +57,8 @@ tm_g_forest_tte <- function(label,
post_output = NULL,
plot_height = c(600L, 200L, 2000L),
plot_width = c(1360L, 500L, 2000L),
.test = FALSE) {
.test = FALSE,
transformators = list()) {
message("Initializing tm_g_forest_tte")
assert_string(label)
assert_string(adtte_name)
Expand Down Expand Up @@ -90,6 +92,7 @@ tm_g_forest_tte <- function(label,
post_output = post_output,
.test = .test
),
transformators = transformators,
datanames = c(adtte_name, mae_name)
)
}
Expand Down
5 changes: 4 additions & 1 deletion R/km.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#' `ADaM` structure.
#'
#' @inheritParams module_arguments
#' @inheritParams teal::module
#'
#' @return Shiny module to be used in the teal app.
#'
Expand Down Expand Up @@ -59,7 +60,8 @@ tm_g_km <- function(label,
),
pre_output = NULL,
post_output = NULL,
.test = FALSE) {
.test = FALSE,
transformators = list()) {
message("Initializing tm_g_km")
assert_string(label)
assert_string(adtte_name)
Expand Down Expand Up @@ -90,6 +92,7 @@ tm_g_km <- function(label,
post_output = post_output,
.test = .test
),
transformators = transformators,
datanames = c(adtte_name, mae_name)
)
}
Expand Down
5 changes: 4 additions & 1 deletion R/pca.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#' variables.
#'
#' @inheritParams module_arguments
#' @inheritParams teal::module
#'
#' @return Shiny module to be used in the teal app.
#' @export
Expand All @@ -30,7 +31,8 @@ tm_g_pca <- function(label,
exclude_assays = character(),
pre_output = NULL,
post_output = NULL,
.test = FALSE) {
.test = FALSE,
transformators = list()) {
message("Initializing tm_g_pca")
assert_string(label)
assert_string(mae_name)
Expand All @@ -52,6 +54,7 @@ tm_g_pca <- function(label,
post_output = post_output,
.test = .test
),
transformators = transformators,
datanames = mae_name
)
}
Expand Down
5 changes: 4 additions & 1 deletion R/quality.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ heatmap_plot <- function(object, assay_name) {
#' for RNA-seq gene expression quality control.
#'
#' @inheritParams module_arguments
#' @inheritParams teal::module
#'
#' @return Shiny module to be used in the teal app.
#'
Expand All @@ -84,7 +85,8 @@ tm_g_quality <- function(label,
exclude_assays = character(),
pre_output = NULL,
post_output = NULL,
.test = FALSE) {
.test = FALSE,
transformators = list()) {
assert_string(label)
assert_string(mae_name)
assert_character(exclude_assays, any.missing = FALSE)
Expand All @@ -106,6 +108,7 @@ tm_g_quality <- function(label,
post_output = post_output,
.test = .test
),
transformators = transformators,
datanames = mae_name
)
}
Expand Down
5 changes: 4 additions & 1 deletion R/scatterplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#' analysis.
#'
#' @inheritParams module_arguments
#' @inheritParams teal::module
#'
#' @return Shiny module to be used in the teal app.
#'
Expand Down Expand Up @@ -35,7 +36,8 @@ tm_g_scatterplot <- function(label,
),
pre_output = NULL,
post_output = NULL,
.test = FALSE) {
.test = FALSE,
transformators = list()) {
message("Initializing tm_g_scatterplot")
assert_string(label)
assert_string(mae_name)
Expand All @@ -61,6 +63,7 @@ tm_g_scatterplot <- function(label,
post_output = post_output,
.test = .test
),
transformators = transformators,
datanames = mae_name
)
}
Expand Down
5 changes: 4 additions & 1 deletion R/volcanoplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#' analysis.
#'
#' @inheritParams module_arguments
#' @inheritParams teal::module
#'
#' @return Shiny module to be used in the teal app.
#'
Expand All @@ -30,7 +31,8 @@ tm_g_volcanoplot <- function(label,
exclude_assays = character(),
pre_output = NULL,
post_output = NULL,
.test = FALSE) {
.test = FALSE,
transformators = list()) {
message("Initializing tm_g_volcanoplot")
assert_string(label)
assert_string(mae_name)
Expand All @@ -53,6 +55,7 @@ tm_g_volcanoplot <- function(label,
post_output = post_output,
.test = .test
),
transformators = transformators,
datanames = mae_name
)
}
Expand Down
2 changes: 1 addition & 1 deletion man/sampleVarSpecServer.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/tm_g_barplot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/tm_g_boxplot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/tm_g_forest_tte.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/tm_g_km.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/tm_g_pca.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/tm_g_quality.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/tm_g_scatterplot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/tm_g_volcanoplot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 02d7e41

Please sign in to comment.