inst/app/ui/survival.R

tabItem(tabName = "tcgasurvival",
        fluidRow(
            column(8,  bsAlert("survivalmessage"),
                   bsCollapse(id = "collapsesurvivalplot", open = "Survival plot",
                              bsCollapsePanel("Survival plot", uiOutput("survivalplot"), style = "default")
                   )),
            column(4,
                   box(title = "Survival plot",width = NULL,
                       status = "danger",
                       solidHeader = FALSE, collapsible = FALSE,
                       box(title = "Data",width = NULL,
                           solidHeader = TRUE, collapsible = TRUE,
                           bsTooltip("survivalplotfile", "A table (.csv) or a SummarizedExperiment (.rda) with survival information (days_to_death, days_to_last_follow_up, vital_status).","left"),
                           shinyFilesButton(id = 'survivalplotfile',
                                            label = 'Select file',
                                            title = 'Please select a csv/rda file with a data frame with the following columns days_to_death, days_to_last_follow_up, vital_status',
                                            multiple = FALSE)
                       ),
                       box(title = "Parameters",width = NULL,
                           solidHeader = TRUE, collapsible = TRUE, collapsed = TRUE,
                           useShinyjs(),
                           checkboxInput("survivalbyGene", "Survival by  levels ?", value = FALSE, width = NULL),
                           bsTooltip("survivalbyGene", "If the input is a SummarizedExperiment with gene expression data, the user will be able to verify the survival for the group of samples with high/low expression of a certain gene.","left"),
                           numericInput("survivalPercent", "High/Low  cut-off (%)",
                                        min = 0, max = 1, value = 0.25, step = 0.1),
                           bsTooltip("survivalPercent", "Cut-off  to consider  high/low groups. Example if 25%: 0%-25% = Low, 25%-75% - medium, 75%-100% high","left"),
                           selectizeInput('survivalGene',
                                          'Gene/Probe',
                                          choices=NULL,
                                          multiple = FALSE),
                           bsTooltip("survivalGene", "Gene/Probe used to identify high/low groups","left"),
                           selectizeInput('survivalplotgroup',
                                          'Group column',
                                          choices=NULL,
                                          multiple = FALSE),
                           textInput("survivalplotLegend", label = "Legend text", value = "Legend"),
                           textInput("survivalplotMain", label = "Title", value = "Kaplan-Meier Overall Survival Curves"),
                           bsTooltip("survivalplotLimit", "Set the limit of the x-axis, if 0 the automatic value will be considered",
                                     "left"),
                           useShinyjs(),
                           sliderInput("survivalplotLimit", "x-axis limit", min = 0, max = 10000, value = 0),
                           checkboxInput("survivalplotPvalue", "Show p-value?", value = TRUE, width = NULL),
                           checkboxInput("survivalplotRiskTable", "Show risk table?", value = TRUE, width = NULL),
                           checkboxInput("survivalplotConfInt", "Show confidence interval?", value = TRUE, width = NULL)
                       ),
                       box(title = "Size control",width = NULL,
                           solidHeader = TRUE, collapsible = TRUE, collapsed = TRUE,
                           sliderInput("survivalwidth", "Plot Width (%)", min = 0, max = 100, value = 100),
                           sliderInput("survivalheight", "Plot Height (px)", min = 0, max = 1200, value = 800)),
                       actionButton("survivalplotBt",
                                    "Plot survival plot",
                                    style = "background-color: #000080;
                                            color: #FFFFFF;
                                            margin-left: auto;
                                            margin-right: auto;
                                            width: 100%",
                                    icon = icon("picture-o")),
                       downloadButton('savesurvivalpicture', 'Export figure', class = "butt2"),
                       textInput("survivalPlot.filename", label = "Filename", value = "survival.pdf"),
                       bsTooltip("survivalPlot.filename", "Filename (pdf, png, svg)", "left")
                   )
            )
        )
)

Try the TCGAbiolinksGUI package in your browser

Any scripts or data that you put into this service are public.

TCGAbiolinksGUI documentation built on Nov. 8, 2020, 6:09 p.m.