Skip to content

Commit e3edb40

Browse files
committed
v1.1.1 - Fix bug: Date source close behavior
1 parent 42cbbb8 commit e3edb40

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

R/Page_1_Data_Input.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Page_1_Data_Input_Server = function(input, output, session) {
124124
removeModal()
125125
if (input$demoFile == "Chicken") {
126126
showModal(modalDialog(
127+
easyClose = TRUE,
127128
title = "Data Source",
128129
p("Tan, X., Zhang, J., Dong, J., Huang, M., Li, Q., Wang, H., ... & Wang, D. (2024). Whole-genome variants dataset of 209 local chickens from China. Scientific Data, 11(1), 169.",
129130
br(),
@@ -141,6 +142,7 @@ Page_1_Data_Input_Server = function(input, output, session) {
141142

142143
} else if (input$demoFile == "Wild rice") {
143144
showModal(modalDialog(
145+
easyClose = TRUE,
144146
title = "Data Source",
145147
p("Kajiya-Kanegae, H., Ohyanagi, H., Ebata, T., Tanizawa, Y., Onogi, A., Sawada, Y., ... & Sato, Y. (2021). OryzaGenome2.1: Database of diverse genotypes in wild Oryza species. Rice, 14, 1-8.", br(),
146148
tags$a(href = "https://doi.org/10.1186/s12284-021-00468-x", target = "_blank",
@@ -156,6 +158,7 @@ Page_1_Data_Input_Server = function(input, output, session) {
156158
))
157159
} else if (input$demoFile == "Human #HGDP") {
158160
showModal(modalDialog(
161+
easyClose = TRUE,
159162
title = "Data Source",
160163
p("Bergström, A., McCarthy, S. A., Hui, R., Almarri, M. A., Ayub, Q., Danecek, P., ... & Tyler-Smith, C. (2020). Insights into human genetic variation and population history from 929 diverse genomes. Science, 367(6484), eaay5012.", br(),
161164
tags$a(href = "https://doi.org/10.1126/science.aay5012", target = "_blank",
@@ -172,6 +175,7 @@ Page_1_Data_Input_Server = function(input, output, session) {
172175
))
173176
} else if (input$demoFile == "Yeast") {
174177
showModal(modalDialog(
178+
easyClose = TRUE,
175179
title = "Data Source",
176180
p("Peter, J., De Chiara, M., Friedrich, A., Yue, J. X., Pflieger, D., Bergström, A., ... & Schacherer, J. (2018). Genome evolution across 1,011 Saccharomyces cerevisiae isolates. Nature, 556(7701), 339-344.", br(),
177181
tags$a(href = "https://doi.org/10.1038/s41586-018-0030-5", target = "_blank",
@@ -189,7 +193,6 @@ Page_1_Data_Input_Server = function(input, output, session) {
189193
})
190194

191195
observeEvent(input$select_demo, {
192-
removeModal()
193196
shinyjs::show("inputStatus")
194197
withProgress(message = 'Processing data...', value = 0.05, {
195198
if (input$demoFile == "Chicken"){

R/Page_5_Genetic_Diversity.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ Page_5_Genetic_Diversity_Server = function(input, output, session) {
11371137
pre_results = pre_results()
11381138
pre_results[[40]] = paste0("Methodology: AMOVA quantifies genetic variation at hierarchical levels by extending ANOVA to genetic data. It partitions total variance into three components: among groups, among individuals within groups, and within individuals.", "\n",
11391139
"Estimated variance percentage (%) and p-value of population strata: " , "\n",
1140-
"P-values were calculated using a randomization test with", input$nperm, "permutations", "\n",
1140+
"P-values were calculated using a randomization test with ", input$nperm, " permutations", "\n",
11411141
"Among groups: ", AMOVA_res$Variance_percentage[1], ", p-value: ", AMOVA_res$p_value[1], "\n",
11421142
"Among individual within groups: ", AMOVA_res$Variance_percentage[2], ", p-value: ", AMOVA_res$p_value[2], "\n",
11431143
"Within individuals: ", AMOVA_res$Variance_percentage[3], ", p-value: ", AMOVA_res$p_value[3])

0 commit comments

Comments
 (0)