[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Maximum upload size exceeded #474

Closed
adomingues opened this issue Aug 13, 2020 · 3 comments
Closed

[BUG] Maximum upload size exceeded #474

adomingues opened this issue Aug 13, 2020 · 3 comments

Comments

@adomingues
Copy link

Describe the bug
When loading an external data set there is an error message:

Maximum upload size exceeded

iSEE_error

The rds file is 74 MB in size.

The issue does not occur when the app is started directly with the dataset using iSEE(se).

To Reproduce

## convert seurate to SE and save
library(Seurat)
sce_converted <- as.SingleCellExperiment(seo)
saveRDS(sce_converted, file = "~/Desktop/human_zhong_seo_clustering.rds")

## start iSEE brower window
iSEE()
# Fails to upload object

se <- readRDS("~/Desktop/human_zhong_seo_clustering.rds")
library("iSEE")
iSEE(se) ## works

Expected behavior
I expected to load the data and start exploring it. Let me know if you need the object. It was generated from publicaly available data.

Desktop (please complete the following information):

  • OS: Linux Ubuntu 18.04
  • Browser: Firefox 79.0

Session info (please complete the following information)

R version 4.0.2 (2020-06-22)
Platform: x86_64-conda_cos6-linux-gnu (64-bit)
Running under: Ubuntu 18.04.5 LTS

Matrix products: default
BLAS/LAPACK: /home/domingue/miniconda3/envs/R_4.0.1_dev/lib/libopenblasp-r0.3.10.so

locale:
 [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8
 [5] LC_MONETARY=en_GB.UTF-8    LC_MESSAGES=en_GB.UTF-8
 [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] parallel  stats4    stats     graphics  grDevices utils     datasets
[8] methods   base

other attached packages:
 [1] shiny_1.5.0                 iSEE_2.0.0
 [3] SingleCellExperiment_1.10.1 SummarizedExperiment_1.18.1
 [5] DelayedArray_0.14.0         matrixStats_0.56.0
 [7] Biobase_2.48.0              GenomicRanges_1.40.0
 [9] GenomeInfoDb_1.24.0         IRanges_2.22.1
[11] S4Vectors_0.26.0            BiocGenerics_0.34.0

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.4.6           lattice_0.20-41        circlize_0.4.10
 [4] shinyWidgets_0.5.3     png_0.1-7              digest_0.6.25
 [7] mime_0.9               R6_2.4.1               ggplot2_3.3.2
[10] colourpicker_1.0       pillar_1.4.6           GlobalOptions_0.1.2
[13] zlibbioc_1.34.0        rlang_0.4.7            miniUI_0.1.1.1
[16] GetoptLong_1.0.2       Matrix_1.2-18          DT_0.15
[19] labeling_0.3           shinyjs_1.1            splines_4.0.2
[22] htmlwidgets_1.5.1      igraph_1.2.5           RCurl_1.98-1.2
[25] munsell_0.5.0          vipor_0.4.5            compiler_4.0.2
[28] httpuv_1.5.4           pkgconfig_2.0.3        shinyAce_0.4.1
[31] shape_1.4.4            mgcv_1.8-31            htmltools_0.5.0
[34] tibble_3.0.3           GenomeInfoDbData_1.2.3 viridisLite_0.3.0
[37] crayon_1.3.4           later_1.1.0.1          bitops_1.0-6
[40] grid_4.0.2             nlme_3.1-148           jsonlite_1.7.0
[43] xtable_1.8-4           gtable_0.3.0           lifecycle_0.2.0
[46] magrittr_1.5           scales_1.1.1           farver_2.0.3
[49] XVector_0.28.0         promises_1.1.1         ellipsis_0.3.1
[52] vctrs_0.3.2            rjson_0.2.20           RColorBrewer_1.1-2
[55] tools_4.0.2            glue_1.4.1             crosstalk_1.1.0.1
[58] yaml_2.2.1             fastmap_1.0.1          clue_0.3-57
[61] colorspace_1.4-1       cluster_2.1.0          rintrojs_0.2.2
[64] shinydashboard_0.7.1   ComplexHeatmap_2.4.2
@federicomarini
Copy link
Contributor
federicomarini commented Aug 13, 2020

Hi @adomingues!
This is not really a bug, it is linked to the settings Shiny comes along with.

From the details of ?iSEE, you can find the solution:

By default, the maximum request size for file uploads defaults to 5MB 
(https://shiny.rstudio.com/reference/shiny/0.14/shiny-options.html). 
To raise the limit (e.g., 50MB), run options(shiny.maxRequestSize=50*1024^2).

In your case, I'd try with
options(shiny.maxRequestSize=100*1024^2) to be safe

@adomingues
Copy link
Author

🤦

I can confirm that it is working now. Cheers @federicomarini!

@federicomarini
Copy link
Contributor

No need to 🤦 😉
Glad it is solved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants