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 16); --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_features.csv, <input-stem>_epithelium_features.csv, and <input-stem>_densities.npz; with --save-mat, also <input-stem>_features.mat.

Metadata

Release files for lavlab-pythomics 0.1.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.1.0
File Size Uploaded Provenance Actions
lavlab_pythomics-0.1.0.tar.gz 1.9 MB With provenance Details for lavlab_pythomics-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.9 MB

Release files / lavlab_pythomics-0.1.0.tar.gz

Download URL lavlab_pythomics-0.1.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
2848a4e3a2aabaf1f9a135c27b04765203cde0824be629ac9004cc50235393be
BLAKE2b-256 checksum
How to use checksums
8bea8e3a0427a12a5b5b3774003f15b11acdbc952ee688a8272736d6605314af
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 8, 2026.

Transparency log

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

Download URL lavlab_pythomics-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c9f98f32f848454a144798f95ef6c57132a8dc0bb9bbcff6d71438bcda37d48
BLAKE2b-256 checksum
How to use checksums
29a3a76d0798665181f13cb308e3cf10b5c46b658f8eb43243c06b3e874cb369
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 8, 2026.

Transparency log

Security for lavlab-pythomics 0.1.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.1.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 8, 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