Skip to main content

3D cell segmentation by composing 2D segmentations

Project description

3DCellComposer - A Versatile Pipeline Utilizing 2D Cell Segmentation Methods for 3D Cell Segmentation

Haoran Chen, Ted Chang, Matthew Ruffalo and Robert F. Murphy
Carnegie Mellon University
V1.5.4 June 18, 2025

3DCellComposer is a versatile, open-source software designed as a general solution for 3D cell segmentation. It allows users to choose any existing 2D segmentation model appropriate for their tissue or cell type(s) without requiring any additional training. Moreover, we have enhanced our CellSegmentationEvaluator quality evaluation tool to support 3D images. It allows users to compare and select the most suitable 2D segmentation models for 3D tasks, without the need for human annotations to assess performance.

It is available as a full-featured GitHub repository from https://github.com/murphygroup/3DCellComposer, and as this PyPI python package that provides a simplified implementation that uses just DeepCell as the 2D segmenter. Note that this package is significantly slower than (and does not support some of the options of) the version available from GitHub.

NOTE: The name of this package was changed in V1.5.4 from "ThreeDCellComposer" to "threedcellcomposer" to comply with PyPI requirement of PEP 625

Reference: Haoran Chen and Robert F. Murphy (2025) 3DCellComposer - A Versatile Pipeline Utilizing 2D Cell Segmentation Methods for 3D Cell Segmentation. Under review.

Using the PyPI package

To use the package,

pip install threedcellcomposer

To call the function in python,

from threedcellcomposer.threedcellcomposer import threedcellcomposer

threedcellcomposer(image_path,nucleus_channel_marker_list,cytoplasm_channel_marker_list,membrane_channel_marker_list,segmentation_method)

where the channel lists are strings consisting of the names (not numbers) of the channels to be used for segmentation. Only 'deepcell' is supported as the segmentation_method by the PyPI package at this time. Additional optional arguments are described below.

'run_3DCellComposerUsingPackage.py' is an example python script that calls threedcellcomposer.

Contact

Robert F. Murphy - murphy@cmu.edu
Haoran Chen - haoran.chen@stjude.org

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

threedcellcomposer-1.5.4.tar.gz (15.9 kB view details)

Uploaded Source

File details

Details for the file threedcellcomposer-1.5.4.tar.gz.

File metadata

  • Download URL: threedcellcomposer-1.5.4.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for threedcellcomposer-1.5.4.tar.gz
Algorithm Hash digest
SHA256 795e6b99f83af93845ab7dc378a19a51b6b84660939777f47d1a8f4321b209ba
MD5 f328cd1deae6b7ead336135005c61391
BLAKE2b-256 fdea9a08f866582cbfde43636db4639ca335ebdd5d945531bf1c79356b8ee939

See more details on using hashes here.

Supported by

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