Skip to content

Commit e5eb2bc

Browse files
authored
Update cellpose docker (#142)
* bump cellpose docker version * update instructions
1 parent 6ea8a9f commit e5eb2bc

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

BeginnerSegmentation/bonus_materials/bonus_3_cellpose.cppipe

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ RunCellpose:[module_num:5|svn_version:'Unknown'|variable_revision_number:6|show_
8181
Select the input image:OrigDNA
8282
Rescale images before running Cellpose:No
8383
Run CellPose in docker or local python environment:Docker
84-
Select Cellpose docker image:cellprofiler/runcellpose_with_pretrained:0.1
84+
Select Cellpose docker image:cellprofiler/runcellpose_with_pretrained:2.3.2
8585
Expected object diameter:30
8686
Detection mode:nuclei
8787
Name the output object:RunCellpose

internal_use/docs/source/BeginnerSegmentation/BeginnerSegmentationPlugins.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Imaging Platform, Broad Institute of MIT and Harvard, Cambridge, MA.
1111
This will happen automatically the first time you call a given Docker from CellProfiler (i.e. run a CellProfiler pipeline that uses the Docker) but if you are running this tutorial in a workshop setting we strongly recommend download in advance of the workshop as these are large files (5-10 GB) and bandwidth is often limited in a workshop setting.
1212
In Docker Desktop or Podman Desktop you can search for containers in the top search bar (see below).
1313
Make sure you select a tag (version) that is supported by the plugin you are using and then select "Pull".
14-
We reccomend `biocontainers/ilastik:1.4.0_cv2` for ilastik and `cellprofiler/runcellpose_with_pretrained:3.1.2.2` or `cellprofiler/runcellpose_with_pretrained:4.0.6` for Cellpose.
14+
We recommend `biocontainers/ilastik:1.4.0_cv2` for ilastik and `cellprofiler/runcellpose_with_pretrained:3.1.2.2` for Cellpose.
1515
1. Download the example images from the Beginner Segmentation Tutorial.
1616
[Click here for download](https://github.com/CellProfiler/tutorials/raw/master/BeginnerSegmentation/Archive_EN.zip).
1717
(Delete/ignore the pipelines; we will just use the images.)
@@ -265,7 +265,7 @@ Evaluate your prediction in Runilastik across a few image sets using OverlayOutl
265265
:width: 700
266266
:align: center
267267
268-
Screenshot of the Runilastik module
268+
Screenshot of the Runilastik module
269269
```
270270

271271
```{figure} ./TutorialImages/WorkspaceViewerilastik.png
@@ -311,13 +311,15 @@ If for whatever reason this isn't working, move on, but it will save you some ti
311311
### Load the pipeline and evaluate segmentation
312312

313313
```{note}
314-
If using Docker, the very first time you execute the RunCellpose module, it will need to download a ~5GB-10GB file (depending on the verison of Cellpose), which may be slow depending on your internet connection (unless you downloaded it in preparation as we suggest above).
314+
If using Docker/Podman, the very first time you execute the RunCellpose module, it will need to download a ~5GB-10GB file (depending on the verison of Cellpose), which may be slow depending on your internet connection (unless you downloaded it in preparation as we suggest above).
315315
You only need to do this step once, however!
316316
```
317317

318318
1. Drag `bonus_3_cellpose.cppipe` into the pipeline panel.
319319
1. Drag the `images_Illum-corrected` subfolder from the main exercise into the Images module
320-
1. Put CellProfiler into TestMode <img src="./TutorialImages/startTestMode.png" width="120" alt="Start Test Mode button"/>, open the eye icons <img src="./TutorialImages/EyeOpen.png" width="20" alt="Open Eye icon"/> next to RunCellpose and OverlayOutlines, and then hit Run <img src="./TutorialImages/Run.png" width="120" alt="Run"/>
320+
1. Put CellProfiler into TestMode <img src="./TutorialImages/startTestMode.png" width="120" alt="Start Test Mode button"/>
321+
1. If using Docker/Podman, and if you've already pre-downloaded a container, ensure that the `Select Cellpose Docker image` setting in the `RunCellpose` module matches the container you already downloaded.
322+
1. Open the eye icons <img src="./TutorialImages/EyeOpen.png" width="20" alt="Open Eye icon"/> next to RunCellpose and OverlayOutlines, and then hit Run <img src="./TutorialImages/Run.png" width="120" alt="Run"/>
321323
1. You may wish to put a pause <img src="./TutorialImages/Pause.png" width="20" alt="Pause"/> next to SaveImages, or uncheck it <img src="./TutorialImages/InactivatedModule.png" width="20" alt="Unchecked"/>, to keep it from saving images while you are exploring this pipeline.
322324
1. As before, using OverlayOutlines and/or the WorkspaceViewer, evaluate segmentation on a few images. Where is CellProfiler doing better, and where is Cellpose doing better?
323325
1. Use the Info <img src="./TutorialImages/Info.png" width="35" alt="Info"/> button to learn more about the different parameters you can pass to Cellpose (we don't offer all of them, but many!) - how does tweaking these affect your output? How about changing the model you're using, and/or the image you're segmenting?

0 commit comments

Comments
 (0)