CellProfiler#

Version: 4.2.7


Introduction#

CellProfiler is a free, open-source software designed for the quantitative analysis of biological images. It allows biologists, even those without expertise in computer vision or programming, to measure cell or whole-organism phenotypes from thousands of images automatically. Users create an analysis pipeline using modules to identify cells and their compartments, measuring various features to generate a comprehensive, quantitative dataset. While the software provides general and successful methods by default, users can customize these settings and leverage basic image analysis algorithms to tackle more complex challenges. Extensible through plugins in Python or for ImageJ, CellProfiler excels in analyzing cells, neurons, C. elegans, 2D fluorescent images, high-throughput screening, phenotype classification, and handling multiple stains per site. However, it is primarily limited to 2D images, is not ideal for manually-guided analysis, and has image size limitations.

Keywords:

image-processing high-content-screening segmentation machine-learning


Options#

-h / --help: Display help.

-i / --install: Install and create .desktop executible.

-u / --uninstall: Uninstall and remove all dependencies.

-p / --path (optional): Specify the installation directory. Default is $HOME/Documents


Installation instruction#

Login to a compute node#

  1. Use the instructions below to log in to a login node:

    1. Using terminal on local computer: You can find a comprehensive instructions provided by RC here on how to use a terminal to SSH into a login node. Depending on the operating system on your laptop, you may need to perform different steps.

    2. Using a browser (Chrome recommended): Alternatively, you can also go to this link to login to an O2 shell via browser. Detailed instructions are provided here.

  2. Once you log in, run the following command to request compute access:

srun --pty -p interactive -t 0-4:00 --mem 16g bash

Run Installer#

To install:#

/n/app/bias/cellprofiler/cellprofiler.sh -i 

or

/n/app/bias/cellprofiler/cellprofiler.sh --install

Tip

By deafult a conda environment is created inside your home directory on O2. However, as the space of the home directory is limited, we recommend you specify a path (scratch or lab folder) by adding -p or --path as your input argument where all the files will be stored.

To uninstall:#

/n/app/bias/cellprofiler/cellprofiler.sh -u

or

/n/app/bias/cellprofiler/cellprofiler.sh --uninstall

For help:#

/n/app/bias/cellprofiler/cellprofiler.sh -h

or

/n/app/bias/cellprofiler/cellprofiler.sh --help

Using CellProfiler on O2#

Using the GUI#

Once the installation is complete, you can verify that everything is set up correctly by logging into Desktop Mate. If you’re unsure how to do this, please refer to this HMS RC guide on logging into Desktop Mate.

Tip

We recommend using at least 16GB of memory. If you're working with larger images or tasks that require more resources, please allocate additional memory as necessary.

Upon logging in, you’ll find an icon on your desktop displaying the software’s logo and name. To launch the software, simply double-click this icon. The software is permanently installed on our Desktop Mate environment, meaning you only need to install it once. It will remain available for future sessions, just like software installed on your local computer.

When you’re finished using the software, you can log out. The next time you need it, just log back in, and it will be ready to use again.

Using in headless mode#

One can use CellProfiler through the command line interface (CLI) for batch processing. Instructions regarding the usage can be found here. You will need to activate the cellprofiler environment first to use it through CLI. If you used the default installation path, you can load the environement using the following command:

module load miniconda3/23.1.0
source activate $HOME/Documents/cellprofiler/env

Alternatively, if you installed CellProfiler in a different path, then run the following command:

module load miniconda3/23.1.0
source activate -p </path/to/your/cellprofiler/installation>/cellprofiler/env

Reference

Stirling, D.R., Swain-Bowden, M.J., Lucas, A.M. et al. CellProfiler 4: improvements in speed, utility and usability. BMC Bioinformatics 22, 433 (2021).doi:10.1186/s12859-021-04344-9

Find more information here.