-
Notifications
You must be signed in to change notification settings - Fork 46
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
micro-sam as an nf-core module #698
Comments
Hi @kbestak and thanks for your interest! Regarding the CLI: we don't have automatic segmentation exposed in our CLI yet, but this is straightforward to implement. We can provide a python script for it in the next few days, and we can then include this into the
Note that we support either single or three channel images. Support for a different number of channels is possible in principle, but requires some data processing or model adaptations. Regarding the docker container: we don't have the capacity to build this ourselves, but are happy to support you in building this. To set up the
All our dependencies are on |
Hi @constantinpape, thank you for such a quick response! |
A short update here, from the mamba installation, it was extremely easy to get a hosted Docker container as a Seqera container available as: community.wave.seqera.io/library/micro_sam:1.0.1--8aeb5052332a2952 |
Hi @anwai98, thanks a lot for making this! I might have found an issue with the napari.util try - except block First, for full context, here is the build page for the container I'm using for testing: https://wave.seqera.io/view/builds/bd-2ef5d1866f4d0325_1 Attempting to run the following:
results in this OSError, whereas the except block in the link above only catches cases for ImportError:
Thanks again! |
Hi @kbestak, Thanks for following up on this. Can you uninstall Let us know if it works! |
Hi @anwai98, thanks for the tip! excluding Next week, I'll be working on the nf-core module during an nf-core hackathon prior to the Nextflow Summit. I have three additional questions:
Thank you so much for all the help! |
Hi @kbestak,
Nice! (in case there are any specific requirements to build the image, let us know)
That sounds great, thanks!
Could you point me out which model are you using? (i.e. the argument you pass to
By default,
The recommendation for tile and halo shapes is to provide 2d tile and halo shapes as a sequence of per-axes spatial shape values, eg. for a tile shape of (512, 512) with a halo shape of (128, 128), the arguments would be as follows: |
Hi @anwai98, Right now i am trying to use the --tile_shape and --halo options and i run into the same issue as @kbestak.
i used the following values: i tested it on a i appreciate any help on that or a hint on what i'm missing here :) Thank you in advance |
Hi @CaroAMN, Can you share with me the shape of your input arrays? (I see the spatial shapes you provided, is it with multiple channels, etc) EDIT: Hmm I have another hypothesis. Let me check it out and come back to you! |
I tried it with one single channel .tif with this shape (2302, 1800)
Thanks :) ! |
Hi @CaroAMN, can you send me the entire command which is triggered for running the automatic segmentation CLI? (I'll try to reproduce it) EDIT: Ahha no worries. I managed to reproduce it 😉. I'll get back to you! |
Hi, not yet, unfortunately. I'm in the process of pushing the container to the Biocontainers repository. The only problem for me was to find time to work on it. But it should be better from next week on time-wise. I will keep you updated :) |
Thanks for the quick response @CaroAMN ! Maybe relevant for you: we updated the installation instructions and we only depend on conda-forge now, not on the pytorch channel; see https://computational-cell-analytics.github.io/micro-sam/micro_sam.html#from-conda for details. Let us know if you run into any further issues where we could help. |
Hi,
We would be very interested in adding micro-sam into the nf-core framework (https://nf-co.re) where we are pushing for spatial omics and microscopy tools and workflows. It is a community that introduces standards and tools to facilitate development of Nextflow pipelines. We would want an official nf-core module for micro-sam automatic detection and implement it into the nf-core/molkart (https://nf-co.re/molkart/) and nf-core/mcmicro (https://nf-co.re/mcmicro/).
To adhere to nf-core guidelines, we would need:
The Docker image would require CPU support (we're still working on GPU support options - but it's looking most likely that there will need to be an image depending on drivers).
I would greatly appreciate any help on how to get started with the points above and thanks in advance!
The text was updated successfully, but these errors were encountered: