Skip to content

Commit

Permalink
homepage adjustment (#302)
Browse files Browse the repository at this point in the history
* fix bug of download module

* adjust homepage layout

---------

Co-authored-by: Shixiang Wang (王诗翔) <[email protected]>
  • Loading branch information
lishensuo and ShixiangWang authored Jan 21, 2024
1 parent 9b58b87 commit 030edc1
Show file tree
Hide file tree
Showing 22 changed files with 698 additions and 482 deletions.
6 changes: 3 additions & 3 deletions inst/rmd/report_template.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Exploratory Analysis of UCSCXenashiny v2.0 Molecule Profiling"
subtitle: "Summary Report for `r params$id_type` `r params$id_name`"
title: "Exploratory Molecule Analysis of UCSCXenashiny v2.0"
subtitle: "TCGA Pan-Cancer Report for `r params$id_type` `r params$id_name`"
author:
- name: "Shensuo Li, UCSCXenashiny developer team"
email: [email protected]
Expand Down Expand Up @@ -73,7 +73,7 @@ link_set = switch(id_type,


# Introduction
This report is generated using the results obtained from the `UCSCXenaShiny::mol_quick_analysis` function. The analysis encompasses 5 sections, each executed for `r id_type` ``r id_name`` sourced from the [dataset](`r link_set`) in UCSC Xena TOIL hub. [All TCGA projects](https://gdc.cancer.gov/resources-tcga-users/tcga-code-tables/tcga-study-abbreviations) are analyzed individually and some cancer projects may be missing due to few samples with valid data for some analysis. The notation for statistical significance analysis is as follows: * indicates a P-value less than 0.05, ** indicates a P-value less than 0.01, and *** indicates a P-value less than 0.001.
This report is generated using the results obtained from the `UCSCXenaShiny::mol_quick_analysis` function. The analysis encompasses 5 sections, each executed for `r id_type` ``r id_name`` sourced from the [dataset](`r link_set`) in UCSC Xena TOIL(TCGA) hub. [All TCGA projects](https://gdc.cancer.gov/resources-tcga-users/tcga-code-tables/tcga-study-abbreviations) are analyzed individually and some cancer projects may be missing due to few samples with valid data for some analysis. The notation for statistical significance analysis is as follows: * indicates a P-value less than 0.05, ** indicates a P-value less than 0.01, and *** indicates a P-value less than 0.001.

Please note that our [Shiny app](https://shiny.hiplot.cn/ucsc-xena-shiny/) offers more comprehensive exploration possibilities, including alternative datasets for the same molecule, alternative analysis methods, molecule-molecule analysis, personalized sample filtering and grouping, result visualization, and download options.

Expand Down
17 changes: 10 additions & 7 deletions inst/shinyapp/App.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pacman::p_load(
shinyFeedback,
shinythemes,
shinyhelper,
shinycssloaders,
survival,
survminer,
ezcox,
Expand All @@ -98,7 +99,8 @@ pacman::p_load(
ggstatsplot,
ggradar,
zip,
msigdbr
msigdbr,
slickR
)

options(shiny.maxRequestSize=1024*1024^2)
Expand Down Expand Up @@ -415,18 +417,19 @@ ui <- tagList(
autoWaiter(html = spin_loader(), color = transparent(0.5)), # change style https://shiny.john-coene.com/waiter/
navbarPage(
id = "navbar",
title = div(
img(src = "xena_shiny-logo_white.png", height = 49.6, style = "margin:-20px -15px -15px -15px")
),
title = "UCSCXenaShiny v2",
# div(
# img(src = "xena_shiny-logo_white.png", height = 49.6, style = "margin:-20px -15px -15px -15px")
# ),
windowTitle = "UCSCXenaShiny",
# inst/shinyapp/ui
ui.page_home(),
ui.page_repository(),
ui.page_general_analysis(),
ui.page_pancan_tcga(),
ui.page_pancan_pcawg(),
ui.page_pancan_ccle(),
ui.page_pancan_quick(),
ui.page_pancan_tcga(),
# ui.page_pancan_pcawg(),
# ui.page_pancan_ccle(),
ui.page_download(),
# ui.page_global(),
ui.page_help(),
Expand Down
1 change: 1 addition & 0 deletions inst/shinyapp/helper/home_query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaaaaaaaaaaaaa
20 changes: 10 additions & 10 deletions inst/shinyapp/modules/function/modules-z-download-feat.R
Original file line number Diff line number Diff line change
Expand Up @@ -268,16 +268,16 @@ download_feat_Server = function(input, output, session, database = "toil",#id_op
output$x_axis_data_table = renderUI({
if(table.ui){
output$x_tmp_table = renderDataTable({
# shiny::validate(
# need(try(nrow(download_data())>0),
# "No sample data were available. Please inspect operations in Preset step."),
# )
# if(check_numeric){
# shiny::validate(
# need(try(class(download_data()$value)!="character"),
# "Please select a numeric variable."),
# )
# }
shiny::validate(
need(try(nrow(download_data())>0),
"No sample data were available. Please inspect operations in Preset step."),
)
if(check_numeric){
shiny::validate(
need(try(class(download_data()$value)!="character"),
"Please select a numeric variable."),
)
}
x_axis_data_ = download_data()[,c("Sample","value","cancer")]

if(class(x_axis_data_[,"value"])=="numeric"){
Expand Down
Loading

0 comments on commit 030edc1

Please sign in to comment.