MannLabs / alphatims

An open-source Python package for efficient accession and visualization of Bruker TimsTOF raw data from the Mann Labs at the Max Planck Institute of Biochemistry.
https://doi.org/10.1016/j.mcpro.2021.100149
Apache License 2.0
81 stars 25 forks source link

No plots are shows when using the GUI in Google Chrome or Firefox #202

Closed MarcIsak closed 2 years ago

MarcIsak commented 2 years ago

Describe the bug I have created an 'alphatims docker image' (see attachment) for alphatims 0.3.2 that I run in WSL2, and I can manage to port the gui to my browser (localhost:4500). However, once I have uploaded a *.d file, there are no plots displayed. I can't see any error messages being displayed either (see attached log)

Dockerfile to create the alphatims image (zipped)

Dockerfile.zip

Setup file run by CMD in dockerfile setup.zip

To Reproduce Steps to reproduce the behavior (more detailed in the Dockerfile):

  1. 'conda create -n alphatims python=3.8'
  2. 'conda install -n alphatims pip'
  3. 'conda activate alphatims'
  4. pip install 'alphatims[plotting]'
  5. Run alphatims gui --port:4500
  6. Open browser and load http://localhost:4500
  7. Load either .d folder or .hdf file

Expected behavior Expect plots to appear once the file is uploaded in the gui. The plots are compressed and do not show anything.

Logs Please provide the log (see the AlphaTims terminal on where to find it). log_20220607125907.txt

Screenshots If applicable, add screenshots to help explain your problem. error_alphatims_gui_0_3_2

Version (please complete the following information):

Additional context Add any other context about the problem here. Attached log files or upload data files if possible.

swillems commented 2 years ago

Thanks for the feedback. Can you try to update step 4 to: pip install 'alphatims[stable,plotting-stable]' and see if this works better? (You can also update the current environment with an --upgrade flag after the pip install ...)?

MarcIsak commented 2 years ago

Hi, I replaced 'pip install alphatims[plotting]' with pip install 'alphatims[stable, plotting-stable]' but it results in an error when I run: alphatims gui --port=4500. I have attached the log file log_20220607143209.txt

swillems commented 2 years ago

Right, I forgot about that one... Should hopefully be fixed by adding a step 4.5: pip install jinja2==3.0.2 --upgrade

swillems commented 2 years ago

Hey @MarcIsak . Did you get it working? If yes, I will close this issue. If not, you can try with the latest release (v1.0.0), although you should still use the stable installation (this is now explicitly mentioned in the readme as well).