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.stardist_2d as sd
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 = sd.predict_versatile_fluo(data, gpu=True)

Run help() on the predict_versatile_fluo() 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.2.0.tar.gz (56.4 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.2.0-cp37-abi3-win_amd64.whl (10.2 MB view details)

Uploaded CPython 3.7+Windows x86-64

cellcast-0.2.0-cp37-abi3-manylinux_2_28_aarch64.whl (9.8 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.28+ ARM64

cellcast-0.2.0-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.2.0-cp37-abi3-macosx_11_0_arm64.whl (9.3 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

cellcast-0.2.0-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.2.0.tar.gz.

File metadata

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

File hashes

Hashes for cellcast-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f1f0300fee61d52237735e39554cdb5ea919b89acd2f8ced8be4d7da18e60eed
MD5 bb4a006d77cbf995d0c21daca023d7ed
BLAKE2b-256 8f39d8fb9e3cb7caf59e9b49e9d11839b65a76419921574484690ab9bf6e8d32

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellcast-0.2.0.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.2.0-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: cellcast-0.2.0-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.2.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ffa05d7c18f0920b3adaae345a39eb5d3f5b68ba4f30a1eca631e73706d4f87b
MD5 009c8ca5b2d509dfc4a6772db2b7c3e8
BLAKE2b-256 1ad5632cdd2ff46cb0137c6aaaed543f2810d9de1586e280a62b5bfdb8c98cd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellcast-0.2.0-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.2.0-cp37-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cellcast-0.2.0-cp37-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3a45f7fa4fdd098978a4e0956ab29b98a0f46ca74d952b8f28cab1c77924fd97
MD5 a428f2d2c39edea9fd713ea38b13d215
BLAKE2b-256 41eaa0e00d1c6de4bb80055858f4eef0846515e5ed956aab9e9157d37b017088

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellcast-0.2.0-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.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cellcast-0.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f39a3217fddf49778f8a89fc5d6b55a9b34fed9dcb05b9ea427b0c0fd2ec65a1
MD5 c9d570e5218a4297e0165e3653ffdfb1
BLAKE2b-256 998d5963a4b488db5a43b0601e462bffa6480bfe9a01c70edbde53a741fadc62

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellcast-0.2.0-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.2.0-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cellcast-0.2.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd3de7a5ebf09c19b18eae46abf26dcc551bdb9da4754ec81958168a4fd196e6
MD5 85317863aa08314e454720112129ffbb
BLAKE2b-256 f44dcfbbc33481d2f5038b5187f23704cb5566416d8fdad167b8c783cfbed525

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellcast-0.2.0-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.2.0-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cellcast-0.2.0-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 583b075c055df598b30f9d5722281eeec3b1e823d606d54b2106ba95fba4b86a
MD5 d286f7cc2d7b8ff711900b35e147632a
BLAKE2b-256 f3f9d9d8a187164603cd9603920b08a53848b2902c1d4408c20a6e1a87cc8819

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellcast-0.2.0-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