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

Unable to install cellpose with apptainer on HPC #61

Closed
giacuong171 opened this issue Mar 7, 2024 · 4 comments
Closed

Unable to install cellpose with apptainer on HPC #61

giacuong171 opened this issue Mar 7, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@giacuong171
Copy link

Description of the bug

Hello, I'm trying to install the Molkart pipeline with the test,apptainer profile on an HPC. But it always gives me an error:

Command error:
  Traceback (most recent call last):
    File "/usr/local/bin/cellpose", line 8, in <module>
      sys.exit(main())
               ^^^^^^
    File "/usr/local/lib/python3.11/site-packages/cellpose/__main__.py", line 61, in main
      logger, log_file = logger_setup()
                         ^^^^^^^^^^^^^^
    File "/usr/local/lib/python3.11/site-packages/cellpose/io.py", line 53, in logger_setup
      cp_dir.mkdir(exist_ok=True)
    File "/usr/local/lib/python3.11/pathlib.py", line 1116, in mkdir
      os.mkdir(self, mode)
  FileNotFoundError: [Errno 2] No such file or directory: '~/.cellpose'

Do you know how to fix this issue ?

Command used and terminal output

nextflow run main.nf -profile test,apptainer --outdir ../result/

Relevant files

nextflow.log

System information

  • Nextflow version 23.10.1.5891
  • Hardware: HPC
  • Container engine: Apptainer
  • OS: Linux
  • Version of nf-core/molkart: 1.0.0 (i think)
@giacuong171 giacuong171 added the bug Something isn't working label Mar 7, 2024
@giacuong171
Copy link
Author

For a temporary fix, I replaced docker with mamba environment file inside cellpose/main.nf and it works with the test profile.
I also forgot to mention an Error with numba, for the fix, i added export NUMBA_CACHE_DIR=/tmp/numba_cache before running cellpose.

@kbestak
Copy link
Collaborator

kbestak commented Mar 17, 2024

Hi, thank you for writing,
We've also experienced the numba issue before, the Cellpose biocontainer update should fix it. I'll be updating the Cellpose module to use that container, as well as the pipeline (dev branch) tomorrow.

@giacuong171
Copy link
Author

Hi, @kbestak ,
Is there any option in the pipeline, which i can save the segmentation and visualize it on orginal image with imagej ?

@kbestak
Copy link
Collaborator

kbestak commented Mar 21, 2024

Hi @giacuong171

The labeled images produced by segmentation tools are saved by default in the segmentation/filtered_masks folder in the output directory. While it is possible to load the image and the masks (convert to contours) in ImageJ and overlaying them, I would highly recommend using Napari to visualize the original image and the labelled mask for quality control of the segmentation options.

@kbestak kbestak closed this as completed Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants