Skip to main content

ITASC aggregate quantification: per-position quantifiers (density, shape, dynamics, contacts: cell-cell edges, T1 events) and napari visualization

Reason this release was yanked:

pre-release

Project description

itasc-aggregate

Independent ITASC piece for aggregate quantification. It hosts per-position quantifiers; the bundled one is contacts: extract cell-cell edges, border edges, and T1 events from 2D+t cell-label stacks (optionally validated against nucleus labels) into a self-describing HDF5 file, and visualize the result in napari.

Install

pip install itasc-aggregate

This pulls in itasc-core. Both install into the shared itasc.* namespace (PEP 420), so import itasc.contact_analysis works whether or not the full ITASC orchestrator is present.

Use

The napari plugin is the full ITASC catalog app restricted to the contact step: it does not run segmentation or tracking, so it treats the committed cell_labels.tif (required) and nucleus_labels.tif (optional) as inputs and produces the contact-analysis .h5.

  • napari plugin: add the ITASC Aggregate widget.

    • Data folders: point Find at a parent directory to discover every position (a folder containing cell_labels.tif) beneath it; the columns are derived from each position's nesting under that directory. Each row carries a three-dot status rail (cell labels, nucleus labels, contact analysis) that shows, at a glance, which inputs are present and whether the .h5 is built. Click a rail dot to load that input into the viewer (or, for the contact dot, open the overlays).
    • Contact Analysis: select a row to retarget the stage to that position; run or re-run its contact analysis and visualize the result.
    • Aggregate: the project-level capstone pools across the whole catalog, grouped by your columns, once positions have been added.
  • Headless / scripting:

    from itasc.contact_analysis import (
        ensure_contacts,        # build only if missing (or overwrite=True)
        discover_contact_batch_jobs,
        run_contact_batch,
    )
    
    # Single position (missing-only):
    ensure_contacts(
        cell_labels_path="cells.tif",
        nucleus_labels_path=None,            # optional
        output_path="contact_analysis.h5",
    )
    
    # Batch by name-based autodiscovery:
    jobs = discover_contact_batch_jobs(
        "/data/study",
        cell_name="cell_labels.tif",
        nucleus_name="nucleus_labels.tif",  # optional
        h5_name="contact_analysis.h5",
    )
    results = run_contact_batch(jobs, overwrite=False)
    

    build_contacts(...) remains available for an unconditional build.

I/O contract

  • Input: cell_labels (2D+t TIFF, required); nucleus_labels (2D+t TIFF, optional: when given, the cell_id == nucleus_id invariant is enforced).
  • Output: an HDF5 file with cells, edges, t1_events, and provenance.

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.

itasc_aggregate-0.2.0.dev0-py3-none-any.whl (158.0 kB view details)

Uploaded Python 3

File details

Details for the file itasc_aggregate-0.2.0.dev0-py3-none-any.whl.

File metadata

  • Download URL: itasc_aggregate-0.2.0.dev0-py3-none-any.whl
  • Upload date:
  • Size: 158.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for itasc_aggregate-0.2.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 b016ab2428731209c8d1735d0da6fd6e68d2bbb9a1ae7d68b7a77be2798f61b7
MD5 6230a242a11411395cf99e7d06c548f1
BLAKE2b-256 b1ea3d0564ca38ed0babecd384e9368fda3b38aa70585179458931bc4398b3d4

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