romanhaa / Cerebro

Visualization of scRNA-seq data.
MIT License
93 stars 19 forks source link

Maximum Upload Size Exceeded in Standalone Version #20

Closed davisidarta closed 4 years ago

davisidarta commented 4 years ago

Hey @romanhaa

First of all: THANK YOU for this amazing tool! I use Cerebro on a everyday basis and my non-bioinformatician colleagues love it for exploring results I share. I'm also sharing Cerebro objects for our new article submissions :)

I'm opening this issue because of a minor issue when using Cerebro on a Windows machine. Similarly to Cerebro implementation in R, an error message appears when trying to upload large files to Cerebro, stating 'Maximum Upload Size Exceeded'.

When I use Cerebro within R, I can easily bypass this by setting MaxFileSize to a larger value. However, I couldn't figure out how to do this when using a Windows standalone version (which I requested to be installed on my lab study room computer). Is there any way to set this value when using Cerebro in the standalone version?

romanhaa commented 4 years ago

Hi @davisidarta! It's always great to hear that people find Cerebro useful. That's exactly what I made it for :)

Fixing the issue you describe should be pretty straight-forward. What you need to do is the following: Navigate to the directory where Cerebro is installed, and from there to resources/app. In there, you should find a file called app.R which contains the call to cerebroApp::launchCerebro(). After adding the maxFileSize parameter with the proper value you should be ready to load larger files into Cerebro.

Please let me know if this worked for you.

In the future, I'll probably increase the limit or remove it completely, maybe just add a warning instead.

davisidarta commented 4 years ago

@romanhaa That solved it! Thank you lots :)

JMarzec commented 3 years ago

Hi @davisidarta

On top of @romanhaa's hint I also had to change limits on the server where I'm hosting Cerebro. In my case changing the server's maximum HTTP request size allowance solved the issue.

Best Jacek