Skip to main content

Self-contained flow cytometry analysis helpers with a slim vendored Cytoflow runtime.

Project description

zeztz-flow

zeztz-flow is an marimo-compatible flow-cytometry FCS analysis package. Derived from cytoflow, this package is designed to become a minimal platform, allowing users to perform vibe analysis with their own AI agents.

Features:

  • FCS import with automatic well-plate metadata
  • Cleanup gating: scatter, doublet removal, polygon, custom thresholds
  • Density plots, faceted histograms, ridgeline plots
  • Subset by row, column, or well
  • Median-fluorescence export
  • Self-contained — vendored Cytoflow runtime, no extra installs
  • Pure Python — no compiled extensions
  • Designed for AI-assisted analysis

Installation

pip install zeztz-flow

Package name on PyPI is zeztz-flow (with hyphen), but the import is zeztzflow (no hyphen, no underscore):

import zeztzflow as flow

Using with marimo (uv-based)

# Install into existing marimo environment
uv pip install zeztz-flow

# Or create a new project
uv init my-fcs-analysis
cd my-fcs-analysis
uv add marimo zeztz-flow
uv run marimo edit

Development

git clone https://github.com/anomalyco/ZeztzFlow.git
cd ZeztzFlow
uv venv
uv pip install -e .
uv run python test/package_smoke_test.py

For conda-based setup: mamba env create -f environment.yml

Quick Start

Open a marimo notebook and paste this prompt to your AI agent:

Run a first-pass flow cytometry analysis using zeztzflow on the FCS files in path/to/fcs_directory. Load with zeztz_exp, run the default gating pipeline (saturation, cells, singlets), then show a histogram faceted by row. Put each auto_gate_* call in its own marimo cell.

The agent reads AGENTS.md for the full pipeline, channel names, and marimo gotchas.

Documentation

Testing

MPLCONFIGDIR=/tmp/mplconfig python test/package_smoke_test.py

License

GPL-compatible. See LICENSE.txt and THIRD_PARTY_NOTICES.md.

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

zeztz_flow-0.2.1.tar.gz (76.2 kB view details)

Uploaded Source

Built Distribution

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

zeztz_flow-0.2.1-py3-none-any.whl (82.5 kB view details)

Uploaded Python 3

File details

Details for the file zeztz_flow-0.2.1.tar.gz.

File metadata

  • Download URL: zeztz_flow-0.2.1.tar.gz
  • Upload date:
  • Size: 76.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for zeztz_flow-0.2.1.tar.gz
Algorithm Hash digest
SHA256 bead10ce41443ceeb80e5b782884fcf8399b4e0ae0437af601450e936d6cb1ed
MD5 6a3a8a8e4812fe6ca34d33ba3980ba36
BLAKE2b-256 d9a444130e557ee6f19a06cf63d043bd0a1bc893c47a776da687cde13cd0145f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zeztz_flow-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 82.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for zeztz_flow-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 262ad581ccaa814b365bc4179d2c2d540f45e5c82a49f0b2b8c6be1f4fdd001e
MD5 a943f9bf3751a9f96e4fafcc2e348b7b
BLAKE2b-256 4340aebc16cff4042143c36497c708fc981570d4f12e9776ca89f3c323288d4a

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