ici_models_main_ui <- function(id){
ns <- shiny::NS(id)
shiny::tagList(
iatlas.modules::messageBox(
width = 24,
shiny::includeMarkdown("inst/markdown/ici_models.markdown"),
shiny::actionLink(ns("method_link"), "Click to view method description.")
),
shiny::htmlOutput(ns("excluded_dataset")),
iatlas.modules::optionsBox(
width = 24,
shiny::column(
width = 6,
shiny::uiOutput(ns("bucket_list"))
),
shiny::column(
width = 3,
shiny::p(strong("2. Select predictors")),
shiny::selectizeInput(ns("predictors_clinical_data"),
label = "Clinical Data",
choices = NULL,
multiple = TRUE),
shiny::selectizeInput(ns("predictors_immunefeatures"),
label = "Immunefeatures",
choices = NULL,
multiple = TRUE),
shiny::selectizeInput(ns("predictors_biomarkers"),
label = "Biomarkers",
choices = NULL,
multiple = TRUE),
shiny::selectizeInput(ns("predictors_gene"),
label = "Gene Expression",
choices = NULL,
multiple = TRUE)
),
shiny::column(
width = 3,
shiny::selectInput(ns("response_variable"),
label = "3. Select Response Variable",
choices = c("Responder", "Clinical Benefit")),
shiny::uiOutput(ns("response_characteristics")),
shiny::br(),
iatlas.modules::optionsBox(
width = 12,
title = "Advanced",
collapsible = TRUE,
collapsed = TRUE,
shiny::numericInput(ns("seed_value"), "Add seed", value = NULL, width = "80%"),
shiny::br(),
shiny::p("Balance categorical classes in cross-validation folds"),
shiny::checkboxInput(ns("balance_resp"), "Balance folds in cv for Response outcome", value = TRUE),
shiny::checkboxInput(ns("balance_pred"), "Balance folds in cv for categorical predictors", value = FALSE),
shiny::conditionalPanel(
"input.balance_pred == 1",
shiny::uiOutput(ns("categoric_pred")),
ns = ns
),
shiny::br(),
shiny::selectInput(
ns("scale_method"),
"Scale numerical predictors",
choices = c(
"None",
"Log2",
"Log2 + 1",
"Log10",
"Log10 + 1"
),
selected = "None"
),
shiny::uiOutput(ns("num_transform")),
shiny::br(),
shiny::p("Transform numerical predictors"),
shiny::checkboxInput(ns("do_norm"), "Normalize numeric data", value = TRUE)
)
)
),
shiny::fluidRow(
shiny::verticalLayout(
iatlas.modules::messageBox(
width = 12,
shiny::uiOutput(ns("samples_summary")),
shiny::br(),
shiny::htmlOutput(ns("response_levels")),
shiny::htmlOutput(ns("missing_data")),
shiny::htmlOutput(ns("single_level")),
shiny::htmlOutput(ns("missing_level")),
shiny::htmlOutput(ns("missing_sample"))
)
),
shiny::column(
width = 6,
ici_models_train_ui(ns("ici_model1"))
),
shiny::column(
width = 6,
ici_models_train_ui(ns("ici_model2"))
)
)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.