Skip to content

Commit 47ed5a4

Browse files
committed
fixing setup
1 parent 68b557b commit 47ed5a4

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Multioviz has three usages: To (1) visualize ranked molecular variables as GRNs
3333

3434

3535
## Dependencies
36-
- R (>= 4.1.0)
36+
- R (>= 4.1.2)
3737
- BANN (>= 0.1.0)
3838
- shiny (>= 1.7.1)
3939
- visNetwork (>= 2.1.0)

multioviz/inst/app/server.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
server <- function(input, output, session) {
22
options(shiny.maxRequestSize=30*1024^2)
33
app_dir <- getwd()
4-
source(paste(app_dir, "/inst/app/scripts/helpers.R", sep = ""))
4+
source(paste(app_dir, "/multioviz/inst/app/scripts/helpers.R", sep = ""))
55

66
# initialize reactive values for ML model args
77

@@ -37,7 +37,7 @@ server <- function(input, output, session) {
3737
observe({
3838
if(demo){
3939
# if no arguments, run demo
40-
source(paste(app_dir, "/inst/app/scripts/perturb.R", sep = ""))
40+
source(paste(app_dir, "/multioviz/inst/app/scripts/perturb.R", sep = ""))
4141

4242
# BANNs is run
4343
lst = runModel(reactivesModel$X, reactivesModel$y, reactivesModel$mask)
@@ -161,28 +161,28 @@ server <- function(input, output, session) {
161161

162162
# UI stuff
163163
output$logo <- renderImage({
164-
list(src = paste(app_dir, "/inst/app/www/logo.png", sep = ""), width = "20%", height = "35%", alt = "Alternate text")
164+
list(src = paste(app_dir, "/multioviz/inst/app/www/logo.png", sep = ""), width = "20%", height = "35%", alt = "Alternate text")
165165
}, deleteFile = FALSE)
166166

167167
output$colorbar1 <- renderImage({
168-
list(src = paste(app_dir, "/inst/app/www/colorbar1.png", sep = ""), width = "100%", height = "25%", alt = "Alternate text")
168+
list(src = paste(app_dir, "/multioviz/inst/app/www/colorbar1.png", sep = ""), width = "100%", height = "25%", alt = "Alternate text")
169169
}, deleteFile = FALSE)
170170

171171
output$colorbar2 <- renderImage({
172-
list(src = paste(app_dir, "/inst/app/www/colorbar2.png", sep = ""), width = "100%", height = "25%", alt = "Alternate text")
172+
list(src = paste(app_dir, "/multioviz/inst/app/www/colorbar2.png", sep = ""), width = "100%", height = "25%", alt = "Alternate text")
173173
}, deleteFile = FALSE)
174174

175175

176176
observeEvent("", {
177177
showModal(modalDialog(
178-
includeHTML(paste(app_dir, "/inst/app/www/intro_text.html", sep = "")),
178+
includeHTML(paste(app_dir, "/multioviz/inst/app/www/intro_text.html", sep = "")),
179179
easyClose = TRUE,
180180
))
181181
})
182182

183183
observeEvent(input$quickstart, {
184184
showModal(modalDialog(
185-
includeHTML(paste(app_dir, "/inst/app/www/intro_text2.html", sep = "")),
185+
includeHTML(paste(app_dir, "/multioviz/inst/app/www/intro_text2.html", sep = "")),
186186
easyClose = TRUE,
187187
#footer = actionButton(inputId = "example_data_viz", label = "VIEW EXAMPLE DATA", icon = icon("info-circle"))
188188
))

runApp.R renamed to runMultioviz.R

File renamed without changes.

setupMultioviz.sh

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
git clone https://github.com/lcrawlab/BANNs.git
22
R CMD INSTALL BANNs/BANN_R/BANN_0.1.0.tar.gz
33
Rscript load_packages.R
4-
Rscript multioviz/load_multioviz.R
4+
cd multioviz
5+
Rscript ../load_multioviz.R

0 commit comments

Comments
 (0)