CellMet is cell segmentation shape analysis library
Project description
CellMet
A generalist algorithm to analyse cell shape from 3D labeled image.
This code is made to analyse cell shape from 3D labeled image. It is divide in three parts:
- Prerequisite that will create image containing one cell. This is mandatory to fasten the following analysis.
- We determine edges and faces associated to each cell. Quality of this analysis is dependant of the quality of the labeled image. There is no segmentation correction.
- Analysis of cells, faces and edges.
There is a Python API to allow user to integrate CellMet into your custom workflow.
Input/Output and datas organisation
Input
In order to be able to use this project. You first need to segment you image using CellPose (or any other software that gives 3D label image). You need to be satisfied by your label image, since there is no manual correction (only filter can be apply to remove cells that has a volume below a threshold for example).
Then, you can perform 3D cell segmentation with CellMet.
Output and datas organisation
You can generate ply/obj file for each cells.
Datas are organised as half-edge structures. The vertex, edge, face and cell tables are interconnected to represent and navigate through the mesh's elements. |
|
Prerequisite
It creates two folders names "npz" and "obj_mesh" that stores numpy array of binary one cell image and ply/obj file of each cell respectively. npz file are mandatory for the analyse, while obj_mesh allows to visualise cells in 3D with Blender. All files are named after the cell id in the original image.
Segmentation
This part consists of analysing the labelled image in order to determine neighbouring relationship between cells; contact between two cells (i.e. face); contact between three cells (i.e. edge).
Analysis
Cell information (cell_df.csv)
|
|
Cell plane information (cell_plane.csv)
Plane measure :
|
|
Edge information (edge_df.csv)
- Real distance $D_r$
- Short distance $D_s$
- Curvature index $1-(D_s/D_r)$
Face information (face_df.csv)
:warning: Only lateral face (coloured face in scheme)
|
|
Install
See INSTALL.md for a step by step install.
Troubleshooting
Kernel crash due to lack of memory: reduce the number of core used for parallelized task.
Roadmap
- Add GUI with python or as a Napari plugin
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 cellmet-0.9.1.tar.gz
.
File metadata
- Download URL: cellmet-0.9.1.tar.gz
- Upload date:
- Size: 61.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5561f32f93027911898df1999bd4d8127598ba9a925d2eeb7f19e24d8269db9d |
|
MD5 | 2854b2f52c2c9134b2e758aabab797aa |
|
BLAKE2b-256 | d4703940f93186f1dd122c2783e2dc54201f763b31e5c4206dbb674c55b08f09 |
File details
Details for the file CellMet-0.9.1-py3-none-any.whl
.
File metadata
- Download URL: CellMet-0.9.1-py3-none-any.whl
- Upload date:
- Size: 48.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd8ce2dd29b6db17bb07e1e4125103e4bf8559c6daee1d6479d5ca30ca7fbc9b |
|
MD5 | 1bc24fd45ebc0be26fbf6021b4252392 |
|
BLAKE2b-256 | 1f41edd4239f7c74a4a6068ed8075256600275f5dc7df69730ce43a0d84322c3 |