Skip to main content

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

Project description

cellcast_python

Python bindings for the cellcast core Rust library.

Installation

cellcast from PyPI

You can install the cellcast Python package from PyPI with:

$ pip install cellcast

The cellcast Python package currently supports the following architectures:

Operating System Architecture
Linux amd64
macOS intel, arm64
Windows amd64

These binaries are compiled for Python 3.10, 3.11, 3.12, 3.13 and 3.14.

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)

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.0.tar.gz (49.3 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.0-cp37-abi3-win_amd64.whl (11.9 MB view details)

Uploaded CPython 3.7+Windows x86-64

cellcast-0.1.0-cp37-abi3-manylinux_2_28_aarch64.whl (10.4 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.28+ ARM64

cellcast-0.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.0 MB view details)

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

cellcast-0.1.0-cp37-abi3-macosx_11_0_arm64.whl (10.0 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

cellcast-0.1.0-cp37-abi3-macosx_10_12_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: cellcast-0.1.0.tar.gz
  • Upload date:
  • Size: 49.3 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.0.tar.gz
Algorithm Hash digest
SHA256 1f1885e9a79267ac637fe412882a51f19bed53eff8001ab3564f4a4dc23dd7a7
MD5 77e918652b8750f211f48998e73d603f
BLAKE2b-256 299ecd7387f19cff489f6bd95ddf3fd9aab9c6aed61e48065162a4978adad2b9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: cellcast-0.1.0-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 11.9 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.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2f1c54c255589caac890a3b265df432d64cb6921dba98107cf5cb7f2d3159e26
MD5 599687ed01dd756d039c64470485bd25
BLAKE2b-256 89396b3fdeb95fca452c90380437f8f28ebca29e9522ff40183ea206d70d82d1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cellcast-0.1.0-cp37-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 165234434d571209a030e83211a480fe70f5bb5299625439baf053ed58823b5e
MD5 ced284ff92286234e24de0267091717a
BLAKE2b-256 d831eb62857527edaf6d4b94c2675afcc59d4082f863f9452401035a250122a4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cellcast-0.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 58086d96405b734e2bf6beb31026874d5050587d4c7aef29d5c6067ac0186b9a
MD5 94e38dc123d34e65349a899f8c067e78
BLAKE2b-256 a62fb6d4c3e71157f6eb524b2b881e3598b5abfcda0e6e01966dcf8ba2f9399f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cellcast-0.1.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0870fb002ffa5b90ba6900a2627d01a44667c2e8a52f3b174eea1ee6c113c254
MD5 dcb04fee3c34a8955c1332c73027655c
BLAKE2b-256 573263973eba4486a353715df2ef1d8f5187ecd8a8b59e218cac5993f6c7323c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cellcast-0.1.0-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b4714bc2c59b584e1938d80735934b6a8840814741eacd1727e59e4da6eed0b9
MD5 75986abc209694fa9ec66afac3df4e04
BLAKE2b-256 36153523643e5a2507e07606a9de44caf0fdc4a34eb7d291c1cf3c355e15c06a

See more details on using hashes here.

Provenance

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