Skip to content

Commit 78fbb7d

Browse files
authored
Merge pull request #107 from lz100/devel
prepare for 1.18 bug fix and changes
2 parents 204a1c6 + d3e29aa commit 78fbb7d

16 files changed

+186
-153
lines changed

..Rproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Version: 1.0
2+
ProjectId: 3ee419e1-3a27-4c0f-864f-2fa23a0603d1
23

34
RestoreWorkspace: No
45
SaveWorkspace: No

DESCRIPTION

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: systemPipeShiny
22
Title: systemPipeShiny: An Interactive Framework for Workflow Management and Visualization
3-
Version: 1.17.0
4-
Date: 2023-10-16
3+
Version: 1.17.1
4+
Date: 2025-04-10
55
Authors@R: c(
66
person(given = "Le", family = "Zhang", role = c("aut", "cre"), email = "le.zhang001@email.ucr.edu"),
77
person(given = "Daniela", family = "Cassol", role = c("aut"), email = "danicassol@gmail.com"),
@@ -53,8 +53,8 @@ Suggests:
5353
BiocStyle,
5454
knitr,
5555
rmarkdown,
56-
systemPipeR (>= 2.2.0),
57-
systemPipeRdata (>= 2.0.0),
56+
systemPipeR (>= 2.12.0),
57+
systemPipeRdata (>= 2.10.0),
5858
rhandsontable,
5959
zip,
6060
callr,
@@ -80,6 +80,6 @@ Encoding: UTF-8
8080
LazyData: true
8181
BugReports: https://github.com/systemPipeR/systemPipeShiny/issues
8282
URL: https://systempipe.org/sps, https://github.com/systemPipeR/systemPipeShiny
83-
RoxygenNote: 7.1.2
83+
RoxygenNote: 7.3.2
8484
Roxygen: list(markdown = TRUE)
8585
Config/testthat/edition: 3

NEWS.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# systemPipeShiny 1.18.0
2+
## Major Change
3+
- Update to systemPipeR 2.12 and systemPipeRdata 2.10
4+
- Add support for Single Cell RNAseq, BLAST, and Cheminformatics workflows
5+
which are new in systemPipeR.
6+
7+
## Minor Change
8+
- use `esquisse_container` instead of `esquisseContainer` due to the new version of {esquisse}.
9+
10+
## Bug Fix
11+
- Fix shiny 1.10 update that caused some buttons not working.
12+
- Fix welcome page logo animation not working, now remove the animation.
13+
- Fix checkModulePkgs_internal had wrong logic when all packages are installed.
14+
Now return the correct value.
15+
16+
17+
118
# systemPipeShiny 1.9.04
219

320
## Major Change

R/spsCore.R

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,7 @@ spsOptDefaults <- function(app_path = getwd()){
371371
#' @rdname spsOptDefaults
372372
#' @param show_legend bool, show the color legend?
373373
#' @importFrom crayon green blue make_style chr
374-
#'
375-
#' @return
376374
#' @export
377-
#'
378375
spsOptions <- function(app_path = getwd(), show_legend = TRUE){
379376
if(!file.exists(glue("{app_path}/config/sps_options.yaml"))) {
380377
spserror(glue("{app_path}/config/sps_options.yaml does not exist"))
@@ -590,16 +587,18 @@ checkModulePkgs_internal <- function(module_name, pkgs, mol_title){
590587
BiocManager::install(c("{missing_str}"))\n
591588
'
592589
))
590+
return(glue(
591+
'
592+
```r
593+
if (!requireNamespace("BiocManager", quietly=TRUE))
594+
install.packages("BiocManager")
595+
BiocManager::install(c("{missing_str}"))
596+
```
597+
'
598+
))
599+
} else {
600+
return(character(0))
593601
}
594-
glue(
595-
'
596-
```r
597-
if (!requireNamespace("BiocManager", quietly=TRUE))
598-
install.packages("BiocManager")
599-
BiocManager::install(c("{missing_str}"))
600-
```
601-
'
602-
)
603602
} else NULL
604603
}
605604

R/spsCoreServer.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ spsServer <- function(tabs, server_expr, mod_missings, sps_env, guide, mainUI) {
148148
#'
149149
#' @param session shiny session
150150
#' @noRd
151-
#' @return
152151
#' @importFrom shinyWidgets sendSweetAlert
153152
spsWarnings <- function(session, shared){
154153
sps_warnings <- list()

R/tab_vs_esq.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ vs_esqUI <- function(id) {
116116
esquisse::esquisse_ui(
117117
id = ns("esq"),
118118
header = FALSE,
119-
container = esquisse::esquisseContainer(height = "700px")
119+
container = esquisse::esquisse_container(height = "700px")
120120
)
121121
),
122122
div(

R/tab_wf_setup.R

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,18 @@ wf_setupUI <- function(id){
7575
selectizeInput(
7676
inputId = ns("choose_wf"),
7777
label = "Choose a workflow template",
78-
choices = c(Example="eg", RNAseq="rnaseq", Varseq="varseq",
79-
Riboseq="riboseq", Chipseq="chipseq", `Empty workflow (start from scratch)`="new",
80-
`Upload custom workflows`="exist"
81-
),
78+
choices = c(
79+
Example="eg",
80+
RNAseq="rnaseq",
81+
Varseq="varseq",
82+
Riboseq="riboseq",
83+
Chipseq="chipseq",
84+
`Single Cell RNAseq`="SPscrna",
85+
BLAST="SPblast",
86+
`Cheminformatics Drug Similarity`="SPcheminfo",
87+
`Empty workflow (start from scratch)`="new",
88+
`Upload custom workflows`="exist"
89+
),
8290
options = list(style = "btn-primary")
8391
)
8492
),
@@ -153,8 +161,8 @@ wf_setupUI <- function(id){
153161
If the required command
154162
line tools are not installed, the workflow will fail. Please
155163
make sure you install them and the path is exported."),
156-
HTML("<li>Current version of SPS (>= 1.6) is compatible with the latest
157-
SPR (>= 2.2.0) and SPRdata (>=1.24.0). Make sure you install the
164+
HTML("<li>Current version of SPS (>= 1.17) is compatible with the latest
165+
SPR (>= 2.12.0) and SPRdata (>=2.10.0). Make sure you install the
158166
correct versions.
159167
</li>")
160168
),
@@ -350,6 +358,7 @@ wf_setupServer <- function(id, shared){
350358
"new" = normalizePath(file.path(final_env_path, "targets.txt")),
351359
"exist" = wf_targets_path(),
352360
"eg" = normalizePath(file.path(final_env_path, "targets.txt")),
361+
"SPblast" = normalizePath(file.path(final_env_path, "targets_blast.txt")),
353362
normalizePath(file.path(final_env_path, "targetsPE.txt"))
354363
), blocking_level = "error")
355364
updateProgressBar(session, "gen_wf_pg", 4, 6, title = "update project info - workflow file")
@@ -359,6 +368,9 @@ wf_setupServer <- function(id, shared){
359368
"varseq" = normalizePath(file.path(final_env_path, "systemPipeVARseq.Rmd")),
360369
"riboseq" = normalizePath(file.path(final_env_path, "systemPipeRIBOseq.Rmd")),
361370
"chipseq" = normalizePath(file.path(final_env_path, "systemPipeChIPseq.Rmd")),
371+
"SPscrna" = normalizePath(file.path(final_env_path, "SPscrna.Rmd")),
372+
"SPblast" = normalizePath(file.path(final_env_path, "SPblast.Rmd")),
373+
"SPcheminfo" = normalizePath(file.path(final_env_path, "SPcheminfo.Rmd")),
362374
"exist" = wf_wf_path(),
363375
"eg" = normalizePath(file.path(final_env_path, "systemPipeExample.Rmd")),
364376
"new" = normalizePath(file.path(final_env_path, "new.Rmd"))
@@ -406,6 +418,19 @@ wf_setupServer <- function(id, shared){
406418
observeEvent(input$confirm_next, {
407419
req(input$confirm_next)
408420
shinyjs::runjs("$('#wf-wf_panel-1-heading > h4').trigger('click');")
421+
if (input$choose_wf %in% c("SPscrna", "SPcheminfo")) {
422+
shinyWidgets::sendSweetAlert(
423+
session = session,
424+
type = "info",
425+
title = "No need of targets",
426+
html = TRUE,
427+
text = h4(
428+
tags$b("Single Cell and Cheminformatics workflows"),
429+
" do not require a targets file. You can directly click
430+
'Add to task' to skip the targets preparation step."
431+
)
432+
)
433+
}
409434
})
410435
}
411436
moduleServer(id, module)

R/tab_wf_wf.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ wf_wfUI <- function(id){
9393
br(), br(), br(), spsHr(other_color = "rgb(2, 117, 216, 0.5)"),
9494
div(
9595
class = 'step-box-control',
96-
tags$button(class="fa fa-undo-alt shiny-bound-input action-button", id=ns("step_undo"), style="color: #3c8dbc") %>%
96+
actionButton(ns("step_undo"), "", icon = icon("undo-alt"), style="color: #3c8dbc", class = "") %>%
9797
bsTip("Undo", placement = "bottom"),
98-
tags$button(class="fa fa-redo-alt shiny-bound-input action-button", id=ns("step_redo"), style="color: #3c8dbc") %>%
98+
actionButton(ns("step_redo"), "", icon = icon("redo-alt"), style="color: #3c8dbc") %>%
9999
bsTip("Redo", placement = "bottom"),
100100
div(
101101
class = "wf-history-panel",
@@ -105,11 +105,11 @@ wf_wfUI <- function(id){
105105
tags$tr(tags$td("Next history:"), tags$td("3"))
106106
)
107107
),
108-
tags$i(class="fa fa-plus shiny-bound-input action-button", id=ns("step_new"), style="color: #5cb85c;") %>%
108+
actionButton(ns("step_new"), "", icon = icon("plus"), style="color: #5cb85c;") %>%
109109
bsTip("Add a new step", placement = "bottom", status = "success"),
110-
div(id=ns("step_trash"), class="step-trash", tags$span(), tags$i()) %>%
110+
div(id = ns("step_trash"), class="step-trash", tags$span(), tags$i()) %>%
111111
bsTip("Drag here to delete a step", placement = "bottom", status = "danger"),
112-
tags$button(class="fa fa-save shiny-bound-input action-button", id=ns("totask"))%>%
112+
actionButton(ns("totask"), "", icon = icon("save"), style="color: black;")%>%
113113
bsPop("Add to SPS task", placement = "bottom",
114114
"Send the workflow to SPS workflow module manager so you can run it.")
115115
)

inst/app/www/css/sps_welcome.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@
1313
transform: translate(-15px, -50px);
1414
}
1515

16-
#sps_header_logo > g{
17-
position: relative;
18-
transition: filter 500ms;
19-
}
20-
21-
#sps_header_logo > g:hover {
22-
transform: scale(1.3);
23-
filter: blur(1px);
24-
}
25-
2616
.welcome-header .card {
2717
height: calc(20vw - 50px);
2818
width: calc(20vw - 50px);

inst/app/www/css/sps_wf_wf.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,20 @@
109109

110110
.step-box-control > button {
111111
width: 4rem;
112-
margin: -5px 0;
112+
margin: -20px 0;
113113
font-size: 4rem;
114114
top: 0;
115115
border: none;
116-
background-color: transparent;
116+
background-color: transparent !important;
117+
&:active {
118+
box-shadow: unset;
119+
-webkit-box-shadow: unset;
120+
-moz-box-shadow: unset;
121+
-o-box-shadow: unset;
122+
}
123+
&:focus-visible, &:focus {
124+
outline: none !important;
125+
}
117126
}
118127

119128
.step-box-control > button[disabled] {

inst/app/www/js/sps_welcome.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ $(function(){
77
});
88
var svg = $("#welcome-svg > svg");
99
svg.removeAttr("height").removeAttr("width");
10-
//$("#sps_header_logo").fadeIn(2000);
11-
//hoverLogo(document.querySelector("#sps_header_logo"));
12-
VanillaTilt.init(document.querySelector("#sps_header_logo > g"), {
13-
"full-page-listening": true,
14-
glare: true,
15-
max: 45
16-
});
10+
$("#sps_header_logo").fadeIn(2000);
1711
})();
1812

1913

0 commit comments

Comments
 (0)