Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce teal_data class #75

Closed
wants to merge 15 commits into from
28 changes: 10 additions & 18 deletions RNA-seq/app.R
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
library(teal.modules.hermes)
library(teal.modules.general)
library(scda.2022)
library(nestcolor)

options(shiny.useragg = FALSE)

nest_logo <- "https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/PNG/nest.png"

# code>
mae <- hermes::multi_assay_experiment
mae_data <- dataset("MAE", mae)

adtte <- scda::synthetic_cdisc_data("rcd_2022_06_27")$adtte %>%
dplyr::mutate(is_event = CNSR == 0)
## Data reproducible code ----
data <- teal_data()
data <- within(data, {
library(scda.2022)
library(nestcolor)
ADTTE <- scda::synthetic_cdisc_data("rcd_2022_06_27")$adtte %>%
dplyr::mutate(is_event = CNSR == 0)
MAE <- hermes::multi_assay_experiment
})
datanames(data) <- c("ADTTE", "MAE")

data <- teal_data(
dataset(
"ADTTE",
adtte,
code = 'adtte <- scda::synthetic_cdisc_data("rcd_2022_06_27")$adtte %>%
dplyr::mutate(is_event = CNSR == 0)'
),
dataset("MAE", mae)
)

app <- init(
data = data,
Expand Down
Loading