Skip to main content

Cellular Annotation & Perception Pipeline

Description

Cell-APP automates the generation of cell masks (and classifications too!), enabling users to create custom instance segmentation training datasets in transmitted-light microscopy.

To learn more, read our preprint: https://www.biorxiv.org/content/10.1101/2025.01.23.634498v2.

For questions regarding installation or usage, contact: anishjv@umich.edu

Usage

  1. Users who wish to segment HeLa, U2OS, HT1080, or RPE-1 cell lines may try our pre-trained model. These models can be used through our GUI (see Installation) and their weights can be downloaded at: https://zenodo.org/communities/cellapp/records?q=&l=list&p=1&s=10. To learn about using pre-trained models through the GUI, see this video:

  2. Users who wish to segment their own cell lines may: (a) try our "general" model (GUI/weight download) or (b) train a custom model by creating an instance segmentation dataset via our Dataset Generation GUI (see Installation). To learn about creating custom datasets through the GUI, see this video:

Installation

cell-AAP requires Python 3.11–3.12. We recommend installing into a clean virtual environment (via conda or venv) to avoid dependency conflicts.

1. Create and activate an environment

With conda:

conda create -n cellapp -c conda-forge python=3.11
conda activate cellapp

Or with venv:

python -m venv cellapp
source cellapp/bin/activate  # Linux/Mac
cellapp\Scripts\activate     # Windows PowerShell

2. Install Pytorch:

conda install -c pytorch -c conda-forge pytorch torchvision #Mac
pip install torch torchvision #Linux/Windows

3. Install Cell-APP:

pip install cell-AAP

4. Finally, detectron2 must be built from source atop Cell-APP:

    
#Mac
git clone https://github.com/facebookresearch/detectron2.git
CC=clang CXX=clang++ ARCHFLAGS="-arch arm64" python -m pip install -e detectron2 --no-build-isolation

#Linux/Windows
git clone https://github.com/facebookresearch/detectron2.git
python -m pip install -e detectron2 --no-build-isolation

Napari Plugin Usage

  1. To open napari simply type "napari" into the command line, ensure that you are working the correct environment
  2. To instantiate the plugin, navigate to the "Plugins" menu and hover over "cell-AAP"
  3. You should see three plugin options; two relate to Usage 1; one relates to Usage 2.

Release files for cell-AAP 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cell-AAP 1.0.7
File Size Uploaded
cell_aap-1.0.7.tar.gz 73.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for cell-AAP 1.0.7
File Interpreter ABI Platform
cell_aap-1.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 73.7 MB

Release files / cell_aap-1.0.7.tar.gz

Download URL cell_aap-1.0.7.tar.gz
Size 73.6 MB
Tags Source
SHA-256 checksum
How to use checksums
f55e3440dec5c6e45d4c08b0dcb149e5dacde5ab59842c54b89c8bca7e01b785
BLAKE2b-256 checksum
How to use checksums
7062f7dae7c4882257bf8e0edba426ee0826be351a57fb121fef61e72f3d9e4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / cell_aap-1.0.7-py3-none-any.whl

Download URL cell_aap-1.0.7-py3-none-any.whl
Size 60.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e5528187ab3577fe709df04ab3c233f36d1ec3d8283cf98a73b737ea4e78a9c
BLAKE2b-256 checksum
How to use checksums
43399c56f6ddc18bdef0ea54a71e70ffb5de928ecd2b68146db37af6a9f2664b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

1 release file

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page