pyXenium.mechanostress#
pyXenium.mechanostress is the canonical beta surface for morphology-derived
mechanical stress analysis in Xenium data. It converts cell and nucleus
boundaries into fibroblast axis strength, tumor-stroma growth patterning, and
cell polarity outputs.
Configuration for axial orientation and ANE density analysis. |
|
Configuration for tumor-stroma growth pattern classification. |
|
Configuration for cell/nucleus centroid polarity analysis. |
|
Configuration for the integrated mechanostress workflow. |
|
Per-sample mechanostress results and cohort-level artifact paths. |
|
Computed mechanostress tables, summary metadata, and artifact paths. |
|
Estimate per-cell axial orientation and elongation ratio from boundary vertices. |
|
Summarize global and local axial orientation coherence. |
|
Compute Aligned Neighbour Energy density across radius-based neighborhoods. |
|
Classify tumor cells as infiltrative or expanding from tumor-stroma geometry. |
|
Summarize infiltrative and expanding tumor fractions. |
|
Compute gene-wise Spearman coupling to tumor-stromal distance. |
|
Compute cell polarity from cell and nucleus centroid offsets. |
|
Summarize polarized cell fractions and offset magnitudes. |
|
Run the mechanostress workflow across sample directories and write cohort summaries. |
|
Run the integrated mechanostress workflow on a XeniumSlide object or Xenium export path. |
|
Write the fixed mechanostress artifact set to disk. |
|
Render a compact markdown report for mechanostress outputs. |
|
Validate HNSCC tumor-stroma reference outputs or compare recomputed outputs. |
|
Validate Suzuki LUAD/TSU ER and ANE reference outputs or compare recomputed outputs. |