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_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.2

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.2
File Size Uploaded Provenance Actions
lavlab_pythomics-0.1.2.tar.gz 1.9 MB With provenance Details for lavlab_pythomics-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 1.9 MB

Release files / lavlab_pythomics-0.1.2.tar.gz

Download URL lavlab_pythomics-0.1.2.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
d0855df5d5f807442b5673b8fccc425cce0e8c492956119108e83e9bf63acbc9
BLAKE2b-256 checksum
How to use checksums
4559521dfa1207f82a0a0193ba9a37c91009835ddd532d0a5150fa03b3c32644
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.1.2-py3-none-any.whl

Download URL lavlab_pythomics-0.1.2-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3580e0d817ac76c71841cc19f6384f55e965a310027d4d7496d29bee908aa60
BLAKE2b-256 checksum
How to use checksums
9fa34f8813447d9b343b3444001c538745c2dbadc35270f814c7d26bcfe6a7e0
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.1.2

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.2.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