Skip to main content

An in-memory data analysis format for single-cell profiles alongside their corresponding images and segmentation masks.

Project description

CytoDataFrame

PyPI - Version Build Status Coverage Status Ruff uv Software DOI badge

CytoDataFrame extends Pandas functionality to help display single-cell profile data alongside related images.

CytoDataFrame is an advanced in-memory data analysis format designed for single-cell profiling, integrating not only the data profiles but also their corresponding microscopy images and segmentation masks. Traditional single-cell profiling often excludes the associated images from analysis, limiting the scope of research. CytoDataFrame bridges this gap, offering a purpose-built solution for comprehensive analysis that incorporates both the data and images, empowering more detailed and visual insights in single-cell research.

CytoDataFrame is best suited for work within Jupyter notebooks. With CytoDataFrame you can:

  • View image objects alongside their feature data using a Pandas DataFrame-like interface.
  • Highlight image objects using mask or outline files to understand their segmentation.
  • Adjust image displays on-the-fly using interactive slider widgets.
  • Automatically detect 3D image volumes and render interactive trame views in notebooks when 3D dependencies are installed (with graceful fallback otherwise).

For 3D notebook display behavior:

  • 3D-aware rendering is enabled by default (display_options={"auto_trame_for_3d": True}).
  • Disable automatic trame switching with display_options={"auto_trame_for_3d": False}.
  • Force trame layout regardless of auto-detection with display_options={"view": "trame"}.

📓 Want to see CytoDataFrame in action? Check out our example notebook for a quick tour of its key features.

✨ CytoDataFrame development began within coSMicQC - a single-cell profile quality control package. Please check out our work there as well!

Installation

Install CytoDataFrame from source using the following:

# install from pypi
pip install cytodataframe

# or install directly from source
pip install git+https://github.com/cytomining/CytoDataFrame.git

Contributing, Development, and Testing

Please see our contributing documentation for more details on contributions, development, and testing.

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

cytodataframe-0.2.1-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file cytodataframe-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: cytodataframe-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 47.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cytodataframe-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be12a6161c65bc933ee9bda2befdf193ec321db3c09276d1edb221da1e31d0f5
MD5 818ed9a042acd4a8a2ae67f17cb8f0f7
BLAKE2b-256 622e55bd9b3c0ead6f5fdc61903144fdefad2067136f8232846d60b9ebf60a5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cytodataframe-0.2.1-py3-none-any.whl:

Publisher: publish-pypi.yml on cytomining/CytoDataFrame

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