Skip to content

Commit

Permalink
Add shiny PCAWG cancer type control
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Dec 8, 2022
1 parent 744880f commit 71c3dab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: UCSCXenaShiny
Title: Interactive Analysis of UCSC Xena Data
Version: 1.1.8
Version: 1.1.9
Authors@R:
c(person(given = "Shixiang",
family = "Wang",
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# UCSCXenaShiny 1.1.9

- Added cancer type control for PCAWG survival analysis.
- Added TCGA batch id from MDA.

# UCSCXenaShiny 1.1.8

- Fixed issue to set mislabelled color in pcawg pan-cancer analysis (#247, Thanks to Tangjian Li).
Expand Down
6 changes: 6 additions & 0 deletions inst/shinyapp/modules/modules-pcawg-survival-analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ ui.modules_pcawg_sur_plot <- function(id) {
fluidPage(
fluidRow(
column(3, wellPanel(
selectInput(
inputId = ns("dataset"), label = "Choose a dataset:",
choices = unique(pcawg_info$dcc_project_code)
),
shinyWidgets::prettyRadioButtons(
inputId = ns("profile"), label = "Select a genomic profile:",
choiceValues = c("mRNA", "miRNA_TMM", "miRNA_UQ",
Expand Down Expand Up @@ -233,6 +237,7 @@ server.modules_pcawg_sur_plot <- function(input, output, session) {
val_dat <- data.frame("icgc_specimen_id" = names(val),"val" = as.numeric(val))

dat <- dplyr::inner_join(pcawg_info,val_dat,by="icgc_specimen_id") %>%
dplyr::filter(.data$dcc_project_code %in% input$dataset) %>%
dplyr::filter(!is.na(.data$OS.time)) %>%
dplyr::select( sampleID = icgc_specimen_id,
status = OS ,
Expand Down Expand Up @@ -267,6 +272,7 @@ server.modules_pcawg_sur_plot <- function(input, output, session) {

plot_text <- eventReactive(input$go, {
paste(
paste("Dataset :", input$dataset),
paste("Profile :", input$profile),
paste("Item :", input$item_input),
paste("Number of cases :", nrow(filter_dat())),
Expand Down

0 comments on commit 71c3dab

Please sign in to comment.