Commit 65f168c9 authored by Jean-Karim Heriche's avatar Jean-Karim Heriche

Changed upload file size limit to 500 MB and moved the option from the module...

Changed upload file size limit to 500 MB and moved the option from the module R/datafile.R to the main file image_data_explorer.R
parent 4f06e4f3
......@@ -38,7 +38,7 @@ COPY R /usr/local/app/image-data-explorer/R
COPY www /usr/local/app/image-data-explorer/www
COPY imageViewer /usr/local/app/image-data-explorer/imageViewer
# Install the custom imageViwer package
# Install the custom imageViewer package
RUN R -e "library(devtools);setwd('/usr/local/app/image-data-explorer/imageViewer'); install();"
# IDE is available on port 5476
......
......@@ -104,9 +104,6 @@ SelectVariable <-function( name, output_name ){
input_data_server <- function(input, output, session) {
ns <- session$ns # Allow to use ns() input in the server
## Increase max upload size to 100 MB
options(shiny.maxRequestSize=100*1024^2)
## Server-side directories we're allowed to navigate to find the image root dir
roots = c(home = "~", wd = '.')
......
......@@ -93,7 +93,6 @@ explore_image_server <-function(input, output, session, rv){
clickPosition <- data.frame(t(c(rv$pixelPosition)))
roiData <- rv$data[,c(rv$roiX, rv$roiY)]
}
print("Searching table")
nn <- nn2(roiData,
clickPosition,
k = k,
......
......@@ -41,6 +41,8 @@ library(RANN)
library(MASS)
library(uwot)
# Increase max upload size to 500 MB
options(shiny.maxRequestSize=500*1024^2)
## Increase amount of RAM allocated to the JVM to allow BioFormats to read large files.
# options(java.parameters = "-Xmx8g" )
......@@ -101,10 +103,7 @@ ui <- function(request) {
server <- function(input,output,session){
ns <- session$ns # Allow to use ns() in the server
## Increase max upload size to 100 MB
options(shiny.maxRequestSize=100*1024^2)
## To update menu areas
react <- reactiveValues(update_key = NULL)
## Detect switching menu areas
......@@ -165,6 +164,7 @@ IDE <- shinyApp(ui = ui,
server = server,
enableBookmarking = "url",
options = list(port = 5476))
# Supply desired port to runApp() because it ignores options in shinyApp()
## Need to supply host for use in Docker container
runApp(IDE, port = 5476, host = "0.0.0.0")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment