No project description provided
Project description
Cellular Annotation & Perception Pipeline
Utilities for the semi-automated generation of instance segmentation annotations to be used for neural network training. Utilities are built ontop of UMAP, HDBSCAN and a finetuned encoder version of FAIR's Segment Anything Model developed by Computational Cell Analytics for the project micro-sam. In addition to providing utilies for annotation building, we train networks using FAIR's detectron2 to
- Demonstrate the efficacy of our utilities.
- Be used for microscopy annotation of supported cell lines
Cell-line specific models currently include:
- HeLa
- U2OS
Models have demonstrated performance efficacy on:
- HT1080 (HeLa model)
- RPE1 (U2OS model)
We've also developed a napari application for the usage of these pre-trained networks.
Installation
We highly recommend installing cell-AAP in a clean conda environment. To do so you must have miniconda or anaconda installed.
If a conda distribution has been installed:
-
Create and activate a clean environment
conda create -n cell-aap-env python=3.11.0 conda activate cell-app-env
-
Within this environment install pip
conda install pip
-
Then install cell-AAP from PyPi
pip install cell-AAP --upgrade
-
Finally detectron2 must be built from source, atop cell-AAP
#For MacOS CC=clang CXX=clang++ ARCHFLAGS="-arch arm64" python -m pip install 'git+https://github.com/facebookresearch/detectron2.git' #For other operating systems python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
Napari Plugin Usage
- To open napari simply type "napari" into the command line, ensure that you are working the correct environment
- To instantiate the plugin navigate to the "Plugins" menu and select "cell-AAP"
- You should now see the Plugin, where you can select an image, display it, and run inference on it.
Configs Best Practices
If running inference on large volumes of data, i.e. timeseries data >= 300 MB in size, we recommend to proceed in the following manner.
- Assemble a small, < 100 MB, substack of your data using python or a program like ImageJ
- Use this substack to find the optimal parameters for your data, (Number of Cells, Network confidence threshold)
- Run Inference over the volume using the discovered optimal parameters
Interpreting Results
Once inference is complete the following colors indicate class prediction
- Red: Non-mitotic
- Blue: Mitotic
For analysis purposes, masks in the semantic and instance segmentations have the following value mapping: Semantic
- 1: Non-mitotic
- 100: Mitotic
Instance
- $2x$: Non-mitotic
- $2x-1$: Mitotic
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cell_aap-0.0.9.tar.gz
.
File metadata
- Download URL: cell_aap-0.0.9.tar.gz
- Upload date:
- Size: 30.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19ac9517f30994521744d1cc02cd386ad6ff089461503a439ea0f27467894874 |
|
MD5 | 6d3a1adde670c3ec9a88fb30193e3dad |
|
BLAKE2b-256 | 05e643ac18c1110380131a975d82a8e64d29598d43f1d8a9ec878e29e7d18142 |
File details
Details for the file cell_AAP-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: cell_AAP-0.0.9-py3-none-any.whl
- Upload date:
- Size: 41.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 795777b610593d1ff64afbbb9416ad41fd50acb23a52cdf0fef2cb86762e694c |
|
MD5 | 28bd21d1ed1b57fd3ed6254fd66d491f |
|
BLAKE2b-256 | a49ee63bd2386429dddb0e0a1467f8bf617f535ac0fa18c1d2febb0699ed85d0 |