romanhaa/cerebroApp

Can't get Cerebro to Work with Shiny

Opened this issue ยท 6 comments

Wanted to try everything before I posted on here again haha ๐Ÿ˜…
Any help would be appreciated, Also talked to my colleague and once we have the data up and running I can share it with you so you can try our 300k cell 10x sample haha

So i followed all your steps from here https://romanhaa.github.io/cerebroApp/articles/host_cerebro_on_shinyapps.html

I've ran into some issues and can't get it to work. I attached some screen shots and a tree of my ~/test_cerebro_shinyapps

this is where i ran:
setRepositories(addURLs = c(BioC = "https://bioconductor.org/packages/3.11/bioc"))
rsconnect::deployApp('~/test_cerebro_shinyapps/', appName = 'Cerebro')
Screen Shot 2020-10-15 at 8 00 58 PM (2)

this is my app.R
Screen Shot 2020-10-15 at 8 10 58 PM (2)

this is my R Shiny web page and the error i get.
Screen Shot 2020-10-15 at 8 00 58 PM

aelyaderani@pbc-cerebro:~/test_cerebro_shinyapps$ tree
.
โ”œโ”€โ”€ app.R
โ”œโ”€โ”€ extdata
โ”‚   โ”œโ”€โ”€ example_gene_set.gmt
โ”‚   โ”œโ”€โ”€ genes_mt_hg_ensembl.tsv.gz
โ”‚   โ”œโ”€โ”€ genes_mt_hg_gencode_v27.tsv.gz
โ”‚   โ”œโ”€โ”€ genes_mt_hg_name.tsv.gz
โ”‚   โ”œโ”€โ”€ genes_mt_mm_ensembl.tsv.gz
โ”‚   โ”œโ”€โ”€ genes_mt_mm_gencode_vM16.tsv.gz
โ”‚   โ”œโ”€โ”€ genes_mt_mm_name.tsv.gz
โ”‚   โ”œโ”€โ”€ genes_ribo_hg_ensembl.tsv.gz
โ”‚   โ”œโ”€โ”€ genes_ribo_hg_gencode_v27.tsv.gz
โ”‚   โ”œโ”€โ”€ genes_ribo_hg_name.tsv.gz
โ”‚   โ”œโ”€โ”€ genes_ribo_mm_ensembl.tsv.gz
โ”‚   โ”œโ”€โ”€ genes_ribo_mm_gencode_vM16.tsv.gz
โ”‚   โ”œโ”€โ”€ genes_ribo_mm_name.tsv.gz
โ”‚   โ”œโ”€โ”€ hg38_gene_ID_name.tsv.gz
โ”‚   โ”œโ”€โ”€ logo_Cerebro.png
โ”‚   โ”œโ”€โ”€ mm10_gene_ID_name.tsv.gz
โ”‚   โ””โ”€โ”€ v1.3
โ”‚   โ”œโ”€โ”€ example.crb
โ”‚   โ”œโ”€โ”€ pbmc_SCE.rds
โ”‚   โ””โ”€โ”€ pbmc_seurat.rds
โ”œโ”€โ”€ rsconnect
โ”‚   โ””โ”€โ”€ shinyapps.io
โ”‚   โ””โ”€โ”€ klsnrna
โ”‚   โ””โ”€โ”€ Cerebro.dcf
โ””โ”€โ”€ shiny
โ””โ”€โ”€ v1.3
โ”œโ”€โ”€ about
โ”‚   โ”œโ”€โ”€ UI.R
โ”‚   โ””โ”€โ”€ server.R
โ”œโ”€โ”€ analysis_info
โ”‚   โ”œโ”€โ”€ UI.R
โ”‚   โ””โ”€โ”€ server.R
โ”œโ”€โ”€ color_management
โ”‚   โ”œโ”€โ”€ UI.R
โ”‚   โ””โ”€โ”€ server.R
โ”œโ”€โ”€ color_setup.R
โ”œโ”€โ”€ enriched_pathways
โ”‚   โ”œโ”€โ”€ UI.R
โ”‚   โ”œโ”€โ”€ select_content.R
โ”‚   โ”œโ”€โ”€ server.R
โ”‚   โ””โ”€โ”€ table.R
โ”œโ”€โ”€ extra_material
โ”‚   โ”œโ”€โ”€ UI.R
โ”‚   โ”œโ”€โ”€ content.R
โ”‚   โ”œโ”€โ”€ select_content.R
โ”‚   โ””โ”€โ”€ server.R
โ”œโ”€โ”€ gene_expression
โ”‚   โ”œโ”€โ”€ UI.R
โ”‚   โ”œโ”€โ”€ expression_by_gene.R
โ”‚   โ”œโ”€โ”€ expression_by_group.R
โ”‚   โ”œโ”€โ”€ expression_by_pseudotime.R
โ”‚   โ”œโ”€โ”€ expression_in_selected_cells.R
โ”‚   โ”œโ”€โ”€ projection.R
โ”‚   โ”œโ”€โ”€ server.R
โ”‚   โ””โ”€โ”€ table_of_selected_cells.R
โ”œโ”€โ”€ gene_id_conversion
โ”‚   โ”œโ”€โ”€ UI.R
โ”‚   โ””โ”€โ”€ server.R
โ”œโ”€โ”€ groups
โ”‚   โ”œโ”€โ”€ UI.R
โ”‚   โ”œโ”€โ”€ cell_cycle.R
โ”‚   โ”œโ”€โ”€ composition.R
โ”‚   โ”œโ”€โ”€ expression_metrics.R
โ”‚   โ”œโ”€โ”€ select_group.R
โ”‚   โ”œโ”€โ”€ server.R
โ”‚   โ””โ”€โ”€ tree.R
โ”œโ”€โ”€ load_data
โ”‚   โ”œโ”€โ”€ UI.R
โ”‚   โ”œโ”€โ”€ sample_info.R
โ”‚   โ”œโ”€โ”€ select_file.R
โ”‚   โ””โ”€โ”€ server.R
โ”œโ”€โ”€ marker_genes
โ”‚   โ”œโ”€โ”€ UI.R
โ”‚   โ”œโ”€โ”€ select_content.R
โ”‚   โ”œโ”€โ”€ server.R
โ”‚   โ””โ”€โ”€ table.R
โ”œโ”€โ”€ most_expressed_genes
โ”‚   โ”œโ”€โ”€ UI.R
โ”‚   โ”œโ”€โ”€ select_group.R
โ”‚   โ”œโ”€โ”€ server.R
โ”‚   โ””โ”€โ”€ table.R
โ”œโ”€โ”€ overview
โ”‚   โ”œโ”€โ”€ UI.R
โ”‚   โ”œโ”€โ”€ projection.R
โ”‚   โ”œโ”€โ”€ selected_cells_plot.R
โ”‚   โ”œโ”€โ”€ selected_cells_table.R
โ”‚   โ””โ”€โ”€ server.R
โ”œโ”€โ”€ plotting_functions.R
โ”œโ”€โ”€ shiny_UI.R
โ”œโ”€โ”€ shiny_server.R
โ”œโ”€โ”€ trajectory
โ”‚   โ”œโ”€โ”€ UI.R
โ”‚   โ”œโ”€โ”€ distribution_along_pseudotime.R
โ”‚   โ”œโ”€โ”€ expression_metrics.R
โ”‚   โ”œโ”€โ”€ number_of_expressed_genes_by_state.R
โ”‚   โ”œโ”€โ”€ number_of_transcripts_by_state.R
โ”‚   โ”œโ”€โ”€ projection.R
โ”‚   โ”œโ”€โ”€ select_method_and_name.R
โ”‚   โ”œโ”€โ”€ selected_cells_table.R
โ”‚   โ”œโ”€โ”€ server.R
โ”‚   โ””โ”€โ”€ states_by_group.R
โ””โ”€โ”€ utility_functions.R

20 directories, 84 files

Hi @aelyaderani! I think I remember having had that same problem before. I'll have a look at it later today and let you know.

thanks @romanhaa ๐Ÿ˜Š I'll take whatever help I can. I really want TGen (https://www.tgen.org/) to use cerebro as its primary data sharing with out collaborators... let me know if you are able to find the problem. thanks! :)

I was able to re-produce and fix it. It's actually quite simple, you only need to replace

Cerebro.options <- list(

with

Cerebro.options <<- list(

in the app.R file. This means the Cerebro.options variable will be assigned to the global environment. Let me know how if that solves it also for you.

EDIT: I updated the vignette accordingly.

thanks! @romanhaa it worked perfect :)

hi @romanhaa i was wandering if changing the Maximum upload size is different for the shiny host? i changed 800 to 2000. Is that correct? if so, i'm not sure why i'm getting that Message because the test .crb file i'm using is only 500MB :(
Screen Shot 2020-10-20 at 9 01 32 PM

Screen Shot 2020-10-20 at 9 01 32 PM (2)

Hmm, that's strange. I'm wondering if shinyapps.io has any limits for file uploads. The alternative is that the options are not set correctly but I can't see any mistake.

Is the app hosted on port 1337? You should be able to see that from the log messages.

Can you try to set the max size for file uploads through options(shiny.maxRequestSize=2000*1024^2)? You can just add that line above or below the definition of shiny_options. It shouldn't make any difference but it might be worth a try.