Skip to main content

Standalone pythomics feature extraction

Extract per-object lumen and epithelium measurements and block-summed density maps from an integer label-map image. This folder is self-contained and does not import the repository's model/inference code.

Install

From this directory, install the listed dependencies into your environment:

python -m pip install -r requirements.txt

Image readers are provided by scikit-image. Parquet output is deliberately not required; object-level tables are CSV, density arrays are compressed NPZ, and MAT output is optional.

CLI

Run from the repository root:

python -m pythomics_standalone path/to/labels.png --output-dir output --save-mat

The default label values are lumen=1, epithelium=2, stroma=4, epithelial-cells=5, stromal-cells=6. Override with --lumen-label, --epithelium-label, --stroma-label, --epithelial-cells-label, and --stromal-cells-label. --min-area sets the minimum connected component size in source pixels (default 2048); --block-size HEIGHT WIDTH sets density aggregation blocks (default 20 20).

Epithelium regions include both epithelium and epithelial-cell pixels. Stroma density includes stromal-cell pixels. Connected components are labeled independently in each tissue mask. Tables contain source-pixel area, circularity (roundness), and for epithelium average skeleton thickness and epithelial-cell fraction. Density NPZ arrays are block sums, with edge blocks padded with zeros. The optional MAT file includes densities plus feature maps projected across every source-resolution pixel.

Outputs are <input-stem>_lumen.parquet, <input-stem>_epithelium.parquet, and <input-stem>_densities.npz; with --save-mat, also <input-stem>_features.mat at density (block) resolution, or full resolution with --save-full-mat. To build a MAT file from an existing label map and tables, pass --lumen-parquet and --epithelium-parquet. -j/--jobs sets worker processes (default: up to 12 CPUs); specify a higher value to use more.

Metadata

Release files for lavlab-pythomics 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lavlab-pythomics 0.2.0
File Size Uploaded Provenance Actions
lavlab_pythomics-0.2.0.tar.gz 18.9 kB With provenance Details for lavlab_pythomics-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lavlab-pythomics 0.2.0
File Interpreter ABI Platform Actions
lavlab_pythomics-0.2.0-py3-none-any.whl Python 3 none any Details for lavlab_pythomics-0.2.0-py3-none-any.whl

Total release size: 27.8 kB

Release files / lavlab_pythomics-0.2.0.tar.gz

Download URL lavlab_pythomics-0.2.0.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
286eb6cbf8b32c6f13906396842b7887fa6d0245f8b1a4560e7db65d53196f7a
BLAKE2b-256 checksum
How to use checksums
027faefd63afb1bc026109903f8a5de7589f62d17f0d13a9c77336e33b1d5393
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / lavlab_pythomics-0.2.0-py3-none-any.whl

Download URL lavlab_pythomics-0.2.0-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
210e6703781d692f6c3062a2618c8b7365a3733c96933a1d3fd1db86fc06446e
BLAKE2b-256 checksum
How to use checksums
e4d4205841cad65a8448c1da9b8cd2d9cc57c823b13d29a3c0e4e4d274ee7b84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Security for lavlab-pythomics 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lavlab_pythomics-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page