Skip to main content

A recast of cell segmentation models built on the Burn deep learning framework.

Project description

cellcast_python

pypi license

This crate contains the Python bindings (via PyO3) for the cellcast core Rust library. Cellcast is a recast of cell segmentation models built on the Burn tensor and deep learning framework. The goal of this project is to modernize (i.e. recast) established cell segmentation models with a WebGPU backend. Cellcast aims to make access to cell segmentation models easy and reproducible.

Installation

Requirements

The cellcast Python package currently supports the following architectures:

Operating System Architecture
Linux x86-64, arm64
macOS intel, arm64
Windows x86-64

Cellcast is compatible with Python >=3.7 and requires only NumPy.

cellcast from PyPI

You can install the cellcast Python package from PyPI with:

$ pip install cellcast

Build cellcast_python from source

To build the cellcat_python package from source, use the maturin build tool (this requires the Rust toolchain). If you're using uv to manage your Python virtual environments (venv) add numpy and maturin to your environment and run the maturin develop command in the cellcast_python directory of the cellcast repository with your venv activated:

$ source ~/path/to/myenv/.venv/bin/activate
$ (myenv) cd cellcast_python
$ maturin develop

Alernatively if you're using conda or mamba you can do the following:

$ cd cellcat_python
$ mamba activate myenv
(myenv) $ mamba install numpy maturin
...
(myenv) $ maturin develop

This will compile a non-optimized cellcast binaries. Pass the --release flag to compile optimized binaries (note that compilation time may take upwards of 10 minutes).

Usage

Using cellcast

Once cellcast has been installed, cellcast will be available to import. The example below demonstrates how to use cellcast and the StarDist 2D versatile fluo segmentation model with Python. Note that this example assumes you have access to 2D data and tifffile installed in your Python environment with cellcast:

import cellcast.models as ccm
from tifffile import imread

# load 2D data for inference
data_2d = imread("path/to/data_2d.tif")

# run stardist inference and produce instance segmentations
labels = ccm.stardist_2d_versatile_fluo.predict(data, gpu=True)

Run help() on the stardist_2d_versatile_fluo.predict function to see the full function signature and default values.

License

Cellcast itself is a dual-licensed project with your choice of:

These licenses only apply to the cellcast project and do not apply to the individual models supported by cellcast. You can find each model's associated license listed in the MODEL-LICENSES file.

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

cellcast-0.1.2.tar.gz (54.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cellcast-0.1.2-cp37-abi3-win_amd64.whl (10.2 MB view details)

Uploaded CPython 3.7+Windows x86-64

cellcast-0.1.2-cp37-abi3-manylinux_2_28_aarch64.whl (9.7 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.28+ ARM64

cellcast-0.1.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.0 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

cellcast-0.1.2-cp37-abi3-macosx_11_0_arm64.whl (9.3 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

cellcast-0.1.2-cp37-abi3-macosx_10_12_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

Details for the file cellcast-0.1.2.tar.gz.

File metadata

  • Download URL: cellcast-0.1.2.tar.gz
  • Upload date:
  • Size: 54.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cellcast-0.1.2.tar.gz
Algorithm Hash digest
SHA256 930b873cb136542a6cf6f331259a6eae5b21024a186b7d0917573f562ab13d8e
MD5 3fc46f5c2dd07683880ea7b0f0b407c1
BLAKE2b-256 0f39bda04359cee7e7b48573ce67222543f4cbe0e4b33a2e6a6306969bb103b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellcast-0.1.2.tar.gz:

Publisher: release-pypi.yml on uw-loci/cellcast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cellcast-0.1.2-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: cellcast-0.1.2-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 10.2 MB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cellcast-0.1.2-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 521ddbf1e03d7b986dd5c8dbe4c77753f7b33ce594aa2a7f16202e379e6069a0
MD5 7fc1ca101fb714edc884014b637dea8d
BLAKE2b-256 c3823c80f924e7e042b73266643428996440436163a9e726212d0181555a1046

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellcast-0.1.2-cp37-abi3-win_amd64.whl:

Publisher: release-pypi.yml on uw-loci/cellcast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cellcast-0.1.2-cp37-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cellcast-0.1.2-cp37-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 496789c082600f9ccd0bb82f025fe02cecfa0b4bead65afc50693428106bf0cf
MD5 30c028db28da68e069e7190d0b6caef9
BLAKE2b-256 3851a4667f9dd66984a1bb140fdc375b93aaa72e9145e4029688499cc588c3ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellcast-0.1.2-cp37-abi3-manylinux_2_28_aarch64.whl:

Publisher: release-pypi.yml on uw-loci/cellcast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cellcast-0.1.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cellcast-0.1.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cfb423195fa304522b0b8570cfe91d3c2d3ff23fbad1757abba175abf9c7316c
MD5 664c11cccd108383e1a96f689efd14c3
BLAKE2b-256 d2b1de6a18d49b94ac7cd6076ba9de4c254d17245b94a71638e090c8066ec1e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellcast-0.1.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-pypi.yml on uw-loci/cellcast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cellcast-0.1.2-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cellcast-0.1.2-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43c097f07efb8abf898232b9671426c0f14448469315147b90f097adc9922b1b
MD5 99e1fa16ebdb615616e8778fade2331d
BLAKE2b-256 70c104dc9ef452ae85da2ec662af78973e8866ff808586522522e322b2f42db4

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellcast-0.1.2-cp37-abi3-macosx_11_0_arm64.whl:

Publisher: release-pypi.yml on uw-loci/cellcast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cellcast-0.1.2-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cellcast-0.1.2-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 102b794c635d62a8510faf18d7ad46b38bc98560dd907eb42bcd957a41d44f35
MD5 5ad76efa1e2ddb44db985d32278c9df5
BLAKE2b-256 11df3a4f939197b1385ab176e9e462cc691103d13907bbe8b710f0bd38020116

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellcast-0.1.2-cp37-abi3-macosx_10_12_x86_64.whl:

Publisher: release-pypi.yml on uw-loci/cellcast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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