Skip to main content

description

Project description

Celldetective

ico1 ico17 ico4 ico6 ico5 ico2 ico3

Celldetective is a python package and software to perform single-cell analysis on multimodal time lapse microscopy images.

Overview

Despite notable efforts in the development of user-friendly softwares that integrate state-of-the-art solutions to perform single cell analysis, very few are designed for time-lapse data and even less for multimodal problems where cells populations are mixed and can only be separated through the use of multimodal information. Few software solutions provide, to our knowledge, the extraction of response functions from single cell events such as the dynamic survival of a population directly in the GUI, as coding skills are usually required to do so. We want to study complex data which is often multimodal time lapse microscopy images of interacting cell populations, without loss of generality. With a high need for an easy-to-use, no-coding-skill-required software adapted to images and intended for biologists, we introduce Celldetective, an open-source python-based software with the following highlight features:

  • Comprehensive single-cell image analysis : Celldetective ships segmentation, tracking, and measurement modules, as well as event detection from single-cell signals, for up to two populations of interest.
  • Integration of state-of-the-art solutions : Celldetective harnesses state-of-the-art segmentation techniques (StarDist[^1], Cellpose[^2] ,[^3]) and tracking algorithm (bTrack[^4]), as well as the napari viewer[^5] where applicable. These algorithms are interfaced to be well integrated and accessible for the target audience, in the context of complex biological applications.
  • A framework for event description and annotations : we propose a broad and intuitive framework to annotate and automate the detection of events from single-cell signals through Deep Learning signal classification and regression. The event formulation is directly exploited to define population survival responses.
  • A neighborhood scheme to study cell-cell interactions : we introduce a neighborhood scheme to relate the spatio-temporal distribution and measurements of two cell populations, allowing the study of how cell-cell interactions affect single-cell and population responses.
  • Deep Learning customization in GUI : Celldetective facilitates the specialization of Deep Learning models or the creation of new ones adapted to user data, by facilitating the creation of training sets and the training of such models, without having to write a single line of code.
  • In-software analysis : Celldetective ships visualization tools to collapse single-cell signals with respect to an event, build survival curves, compare measurement distributions across biological conditions.
  • A library of segmentation and signal models: we created specific models to investigate a co-culture of MCF-7 cells and primary NK cells, that are available directly is the software with a large collection of generalist models developed by the StarDist and Cellpose teams, which are a perfect starting point to segment single cells in a new biological system.
  • Accessible and open source : Celldetective does not require any coding skills. The software, its models and datasets are made fully open source to encourage transparency and reproducibility.

System requirements

Hardware requirements

The software was tested on several machines, including:

  • An Intel(R) Core(TM) i9-10850K CPU @ 3.60GHz, with a single NVIDIA GeForce RTX 3070 (8 Gb of memory) and 16 Gb of memory
  • An Intel(R) Core(TM) i7-9750H CPU @ 2.60 GHz, with 16 Gb of memory

In GPU mode, succesive segmentation and DL signal analysis could be performed without saturating the GPU memory thanks to the subprocess formulation for the different modules. The GPU can be disabled in the startup window. The software does not require a GPU (but model inference will be longer). A typical analysis of a single movie with a GPU takes between 5 to 15 minutes. Depending on the number of cells and frames on the images, this computation time can increase to the order of half an hour on a CPU.

The memory must be sufficient to load a movie stack at once in order to visualize it in napari. Otherwise, processing is performed frame by frame, therefore the memory required is extremely low.

Software requirements

The software was developed simulateously on Ubuntu 20.04 and Windows 11. It was tested on MacOS, but Tensorflow installation can rquire extra steps.

  • Linux: Ubuntu 20.04.6 LTS (Focal Fossa) (not tested on ulterior versions)
  • Windows: Windows 11 Home 23H2

To use the software, you must install python, e.g. through Anaconda. We developed and tested the software in Python 3.9.18.

Installation

Stable release

Celldetective can be installed with pip:

pip install celldetective

We recommend that you create an environment to use Celldetective, e.g. with conda:

conda create -n celldetective python=3.9.18 pyqt
conda activate celldetective
pip install celldetective

Need an update? Simply type the following in the terminal (in your environment):

pip install --upgrade celldetective

Development version

From GitHub

If you want to run the latest development version, you can clone the repository to your local machine and install Celldetective in "development" mode. This means that any changes to the cloned repository will be immediately available in the python environment:

# creates "celldetective" folder
git clone git://github.com/remyeltorro/celldetective.git
cd celldetective

# install the celldetective package in editable/development mode
pip install -r requirements.txt
pip install -e .

To run the latest development version without cloning the repository, you can also use this line:

pip install git+https//github.com/remyeltorro/celldetective.git

From a zip file

You can also download the repository as a compressed file. Unzip the file and open a terminal at the root of the folder (same level as the file requirements.txt). We recommend that you create a python environment as Celldetective relies on many packages that may interfere with package requirements for other projects. Run the following lines to create an environment named "celldetective":

conda create -n celldetective python=3.9.18 pyqt
conda activate celldetective
pip install -r requirements.txt
pip install .

The installation of the dependencies will take a few minutes (up to half an hour if the network is bad). The Celldetective package itself is light and installs in a few seconds.

Before launching the software, move to a different directory as running the package locally can create some bugs when locating the models.

Quick start

You can launch the GUI by 1) opening a terminal and 2) typing the following:

python -m celldetective

Documentation

Read the tutorial here:

https://celldetective.readthedocs.io/

How to cite?

If you use this software in your research, please cite the Celldetective paper (currently preprint):

@article {Torro2024.03.15.585250,
    author = {R{\'e}my Torro and Beatriz D{\`\i}az-Bello and Dalia El Arawi and Lorna Ammer and Patrick Chames and Kheya Sengupta and Laurent Limozin},
    title = {Celldetective: an AI-enhanced image analysis tool for unraveling dynamic cell interactions},
    elocation-id = {2024.03.15.585250},
    year = {2024},
    doi = {10.1101/2024.03.15.585250},
    publisher = {Cold Spring Harbor Laboratory},
    abstract = {A current key challenge in bioimaging is the analysis of multimodal and multidimensional data reporting dynamic interactions between diverse cell populations. We developed Celldetective, a software that integrates AI-based segmentation and tracking algorithms and automated signal analysis into a user-friendly graphical interface. It offers complete interactive visualization, annotation, and training capabilities. We demonstrate it by analyzing original experimental data of spreading immune effector cells as well as antibody-dependent cell cytotoxicity events using multimodal fluorescence microscopy.Competing Interest StatementThe authors have declared no competing interest.},
    URL = {https://www.biorxiv.org/content/early/2024/03/17/2024.03.15.585250},
    eprint = {https://www.biorxiv.org/content/early/2024/03/17/2024.03.15.585250.full.pdf},
    journal = {bioRxiv}
}

Make sure you to cite the papers of any segmentation model (StarDist, Cellpose) or tracker (bTrack) you used through Celldetective.

Bibliography

[^1]: Schmidt, U., Weigert, M., Broaddus, C. & Myers, G. Cell Detection with Star-Convex Polygons. in Medical Image Computing and Computer Assisted Intervention -- MICCAI 2018 (eds. Frangi, A. F., Schnabel, J. A., Davatzikos, C., Alberola-López, C. & Fichtinger, G.) 265--273 (Springer International Publishing, Cham, 2018). doi:10.1007/978-3-030-00934-2_30.

[^2]: Stringer, C., Wang, T., Michaelos, M. & Pachitariu, M. Cellpose: a generalist algorithm for cellular segmentation. Nat Methods 18, 100--106 (2021).

[^3]: Pachitariu, M. & Stringer, C. Cellpose 2.0: how to train your own model. Nat Methods 19, 1634--1641 (2022).

[^4]: Ulicna, K., Vallardi, G., Charras, G. & Lowe, A. R. Automated Deep Lineage Tree Analysis Using a Bayesian Single Cell Tracking Approach. Frontiers in Computer Science 3, (2021).

[^5]: Ahlers, J. et al. napari: a multi-dimensional image viewer for Python. Zenodo https://doi.org/10.5281/zenodo.8115575 (2023).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

celldetective-1.1.0.tar.gz (394.6 kB view details)

Uploaded Source

Built Distribution

celldetective-1.1.0-py3-none-any.whl (429.6 kB view details)

Uploaded Python 3

File details

Details for the file celldetective-1.1.0.tar.gz.

File metadata

  • Download URL: celldetective-1.1.0.tar.gz
  • Upload date:
  • Size: 394.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for celldetective-1.1.0.tar.gz
Algorithm Hash digest
SHA256 df6e6401bf8c9c549d3cb415665fa6f977075280a485855df7bed4b5c71f57e9
MD5 896f212321724d8fd06387d870823de0
BLAKE2b-256 d71043bd676d3aa2d9e7e3df322395a65d9a69d804c714fc73a24410d5915aac

See more details on using hashes here.

File details

Details for the file celldetective-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for celldetective-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92f2d48d159ed4224e986c9603d41a105d9f24a7a2db93bfd9c706234eb10b91
MD5 80d68cce5e38c0f51665b245aaeee24c
BLAKE2b-256 ab4e93d98878e9765cc64e5cfea5068d0c4424d02816e7d0afb9e1904d5bf5a7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page