Manuscript Offprint
arXiv:2611.00226From Cross-Section to Cross-Omics: Conditional Cell Nucleus Image Editing in Spatial Transcriptomics
Yuechen Yang¹, Junchao Zhu¹, Junlin Guo¹, Yanfan Zhu¹, Ruining Deng², Zhengyi Lu¹, Tianyuan Yao¹, Chongyu Qu¹, Marilyn Lionts¹, Xingyi Guo³, Yaohong Wang⁴, Yu Wang³, Shilin Zhao³, Haichun Yang³, and Yuankai Huo¹
¹ Vanderbilt University, Nashville TN 37235, USA
² Weill Cornell Medicine, New York, NY 10065, USA
³ Vanderbilt University Medical Center, Nashville TN 37232, USA
⁴ The University of Texas MD Anderson Cancer Center, Houston TX 77030, USA
Abstract. Spatial transcriptomics (ST) platforms simultaneously measure gene expression and capture cell nucleus images at single-cell resolution. A fundamental property of tissue preparation introduces a confounding relationship between the two measurement modalities: sectioning a three-dimensional tissue into a thin slice produces a two-dimensional cross-section whose area depends on the cutting angle. Larger cross-sections expose more cytoplasm, yielding higher mRNA counts, while pathomics features such as nuclear area are measured directly from the same 2D boundary. This sectioning geometry creates an apparent correlation between gene expression and pathomics that reflects the measurement process rather than independent biology. Existing gene-to-image methods generate cell images from gene features but do not support condition-driven editing of existing images across both omics layers. We apply the Manifold-Aware Diffusion (MAD) framework to this dual-omics editing setting, enabling targeted modification of one feature group while preserving the other. Evaluated on podocyte cells from CosMx SMI kidney tissue, MAD achieves MAE = 0.6636 and FID = 25.19 for pathomics editing, outperforming all compared baselines. A controlled simulation study further confirms that the VAE component in MAD better preserves cross-group independence than CCDM (MAD without VAE).
Keywords: Spatial Transcriptomics · Image Editing · Multi-Omics · Diffusion Models · Cell Morphology.
1 Introduction
Spatial transcriptomics (ST) technologies profile gene expression at single-cell resolution while simultaneously preserving spatial tissue architecture through fluorescence imaging [8,12]. Platforms such as the CosMx Spatial Molecular Imager (SMI) [2] quantify transcript abundance within individual cells alongside multi-channel fluorescence images of cell nuclei. From these images, quantitative morphological pathomic features can be extracted. Both gene expression
Y. Yang et al.

Fig. 1. (a) Tissue sectioning mechanism: a 3D cell is cut at varying angles, producing 2D cross-sections of different areas. Larger cross-sections yield higher mRNA counts and larger nuclear area measurements, creating a sectioning-induced correlation between gene expression and pathomics. (b) Existing gene-to-image models are generation-only and condition on a single omics modality; no prior method performs condition-driven editing jointly across gene expression and pathomics. (c) Our approach applies MAD [13] to dual-omics conditional editing: given an existing cell nucleus image, one feature group is edited to a target value while the other is preserved.
and pathomics are therefore natively available per cell, making them natural conditioning signals for cell image analysis.
A fundamental but often overlooked property of ST data arises from how tissue is prepared (Fig. 1a). Sectioning a three-dimensional tissue into a thin slice produces a two-dimensional cross-section of each cell, and the geometry of this cross-section depends on the angle and position of the cut. Cells that are cut near their equator yield larger cross-sections with more exposed cytoplasm and proportionally higher mRNA capture; cells cut near a pole yield smaller, gene-sparse cross-sections. At the same time, pathomics features such as nuclear area and perimeter are measured directly from these 2D boundaries. Consequently, both modalities are governed by the same sectioning geometry: larger cross-sections produce higher apparent gene expression and larger measured pathomics values. This creates an apparent cross-omics correlation that reflects the measurement process rather than an underlying biological relationship.
To our knowledge, no existing method performs condition-driven editing of cell nucleus images jointly across gene expression and pathomics (Fig. 1b). Gene-conditioned image generation methods such as GeneFlow [11] and Genes2-Morphology [7] synthesize cell images from gene features in a purely generative mode: they produce images from scratch but do not modify an existing cell image according to a specified target. Diffusion-based editing models [9] support condition-driven image modification but are designed for single-modality settings and do not explicitly account for the independence structure between two distinct omics groups.

Fig. 2. Overview of the dual-omics conditional image editing framework. Gene expression g and pathomics p are concatenated into a joint feature vector c. The MAD framework [13] trains a conditional diffusion model on c and a feature manifold VAE that encodes within-group correlations. At editing time, a target vector c* is projected through the VAE to obtain a manifold-consistent conditioning signal, which is passed to the diffusion model to generate the edited cell nucleus image.
In this paper, we formulate the dual-omics conditional editing problem: given a cell nucleus image and its associated gene expression and pathomics features, produce an edited image that reflects a target value in one feature group while leaving the other group unchanged (Fig. 1c).
Our contributions are as follows:
- We apply the MAD framework [13] to dual-omics conditional image editing, enabling independent control of gene expression and pathomics features.
- We validate on real podocyte data and demonstrate through a controlled simulation that the VAE component in MAD better preserves cross-group independence than CCDM (MAD without VAE).
- MAD achieves MAE = 0.6636 and FID = 25.19, the best performance among all compared methods on pathomics editing.
2.1 MAD Framework
We apply the Manifold-Aware Diffusion (MAD) framework [13] to the dual-omics editing task (Fig. 2). MAD comprises a conditional diffusion model and a feature manifold VAE.
The conditional diffusion model is a UNet trained to generate cell nucleus images given c [4]. Following CCDM [1], a mapping network converts c into a conditioning embedding that modulates the UNet; classifier-free guidance [5] is applied at inference.
Y. Yang et al.
The feature manifold VAE learns the joint distribution of from observed feature pairs. At editing time, a target vector (for pathomics editing) is constructed and projected onto the learned feature manifold by optimizing in the VAE latent space. The resulting manifold-consistent conditioning vector is then used to condition the diffusion model to generate the edited image. This projection ensures that within-group correlations in the unchanged group are respected and prevents the editing of one group from inducing spurious changes in the other—a critical property given the empirical independence between the two groups.
3 Experiments
3.1 Dataset
We use kidney tissue data from the CosMx Spatial Molecular Imager platform [2], comprising 16 tissue sections (8 diabetic nephropathy, 8 normal) from two samples. Podocytes are identified by positive WT1 marker expression (WT1 > 0). A tissue-level split assigns 14 sections to training and 2 sections (one diabetic, one normal) to testing, preventing tissue-level information leakage. For each cell, a pixel nucleus-centered patch is extracted from the DAPI fluorescence channel as a grayscale float32 image.
Gene expression features comprise three genes relevant to podocyte biology: ACTN4 (alpha-actinin-4, associated with podocyte integrity and diabetic nephropathy [6,10]), PODXL (podocalyxin-like, a marker of podocyte apical surfaces), and VIM (vimentin, an intermediate filament protein). Pathomics features are extracted using Pyspatial [14] and all features are Z-score normalized per feature over the training set.
Figure 3 shows pairwise Pearson correlations between all 8 features. Within-group correlations are strong, while cross-group correlations remain near zero (). The general trend that larger area correlates with slightly higher gene expression is consistent with the tissue sectioning mechanism described in Sec. 1.
3.2 Baselines
We compare against four baselines organized into two categories.
Generation-only baselines (gene expression input; no editing capability): GeneFlow [11] uses rectified flow with an RNA encoder for conditional image synthesis from gene features. Genes2Morphology [7] conditions a StyleGAN-T generator on aligned gene-image representations. Neither method supports editing of existing images; they are evaluated on image quality metrics only.

Fig. 3. Pairwise Pearson correlation matrix for the 8 features (3 genes + 5 pathomics) in the podocyte dataset. Strong within-group correlations are observed (Area-Perimeter ; IntensityStd-IntensityMean ), while cross-group correlations remain near zero ().
Editing baselines (joint gene + pathomics conditioning): Stable Diffusion (SD) [9] is adapted with a FeatureProjector mapping the 8-dimensional joint feature vector to cross-attention conditioning; editing uses an image-to-image diffusion pass on the original cell image. CCDM [1] uses the same two-stage embedding and UNet architecture as MAD but without the feature manifold VAE, serving as a direct ablation that isolates the contribution of the VAE component. MAD [13] adds the VAE manifold projection to CCDM.
3.3 Evaluation Metrics
MAE (editing accuracy): Pyspatial is applied to each generated image to measure its pathomics features; MAE between measured and target values quantifies how accurately editing achieves the specified target.
FID (image quality): Fréchet Inception Distance [3] between generated and real cell images measures distribution-level image quality.
SSIM (structural fidelity): Structural Similarity Index between the edited image and the original cell image measures preservation of original cell structure.
3.4 Simulation Study
To validate cross-group independence preservation, we construct a synthetic benchmark with known independence structure. Four features are organized into
Y. Yang et al.

Fig. 4. Simulation study: cross-group independence preservation. - scatter plots show the editing-induced change in Group 1 features (Area, Gene1). Within-group pairs (diagonal blocks) show high correlation; cross-group pairs (off-diagonal blocks) should approach zero for a method that preserves independence. MAD achieves better cross-group independence preservation (cross-group MAE=0.112 when editing Area) compared to CCDM without VAE (cross-group MAE=0.271).
two groups: Area and Gene1; the two groups are statistically independent by construction, with positive within-group correlation. Synthetic images are generated from these features via a known process.
For each test sample, Area features are edited to a target value and the induced change in Gene1 is measured. An ideal method produces regardless of the editing magnitude . As shown in Fig. 4: when editing Area, MAD achieves (editing accuracy) with cross-group Gene1 MAE = 0.112, while CCDM achieves with Gene1 MAE = 0.271. When editing Gene1, MAD achieves with Area MAE = 0.061, while CCDM achieves with Area MAE = 0.138. The VAE component in MAD better preserves cross-group independence compared to CCDM.
4 Results
4.1 Pathomics Editing: Qualitative
Figure 5 compares pathomics editing sweeps for GeneFlow, Genes2Morphology, and MAD. As generation-only models, GeneFlow and Genes2Morphology do

Fig. 5. Pathomics editing: generation baselines versus MAD. Each row shows a sweep from low (left) to high (right) target values along the Area axis (top) and Intensity axis (bottom) for GeneFlow, Genes2Morphology, and MAD. Generation baselines produce outputs that vary with gene input but do not follow the specified pathomics gradient. MAD produces progressive morphological change along both editing dimensions.

Fig. 6. Pathomics editing: editing baselines versus MAD. Stable Diffusion (SD) produces minimal visible change across editing steps. CCDM (MAD without VAE) shows abrupt intensity variations without smooth structural progression. MAD achieves smooth, controlled morphological changes along both the Area and Intensity editing axes.
not condition on pathomics targets and produce outputs that do not follow the specified gradient. MAD displays progressive changes in nuclear size and intensity across the editing range.
Figure 6 compares editing models. Stable Diffusion produces limited structural variation across editing steps. CCDM shows changes that are not smoothly controlled along the target axis. MAD achieves gradual, coherent morphological progression for both Area and Intensity editing.
4.2 Pathomics Editing: Quantitative
Table 1 reports quantitative results. Among editing methods, MAD achieves the lowest MAE (0.6636) and FID (25.19), indicating the highest pathomics editing accuracy and the best generated image quality. SSIM is slightly lower for MAD than for Stable Diffusion (0.7964 vs. 0.8415); Stable Diffusion preserves more of the original structure but at the cost of poor editing accuracy (MAE = 1.901). Generation baselines show high MAE as expected, since they do not condition on pathomics targets. CCDM achieves competitive MAE (0.9158) but higher FID (31.15) compared to MAD, consistent with the simulation findings that CCDM introduces cross-group interference when the VAE is absent.
Y. Yang et al.
Table 1. Quantitative pathomics editing results. MAE measures editing accuracy (target vs. measured pathomics values of generated images); FID measures generated image quality; SSIM measures structural fidelity to the original cell image. ↓ lower is better; ↑ higher is better.
| Type | Method | MAE ↓ | FID ↓ | SSIM ↑ |
|---|---|---|---|---|
| Generation | GeneFlow [11] | 0.8807 | 55.47 | 0.5756 |
| Genes2Morphology [7] | 1.659 | 289.26 | 0.1027 | |
| Editing | Stable Diffusion [9] | 1.901 | 63.21 | 0.8415 |
| CCDM [1] | 0.9158 | 31.15 | 0.8078 | |
| MAD [13] | 0.6636 | 25.19 | 0.7964 |

Fig. 7. Gene editing results: ACTN4=0 (normal, left) vs. ACTN4=5 (disease-associated, right) for Genes2Morphology, GeneFlow, Stable Diffusion, and MAD. Generation models (Genes2Morphology, GeneFlow) produce outputs without a reference image. Editing models (SD, MAD) modify an existing cell image. MAD produces visually distinct outputs between the two ACTN4 conditions.
4.3 Gene Editing: Qualitative
Figure 7 shows gene editing results for all models, comparing outputs for ACTN4=0 and ACTN4=5. Qualitatively, MAD produces visually distinct images between the two ACTN4 conditions; differences between conditions for Stable Diffusion are less pronounced.
5 Conclusion
Tissue sectioning in spatial transcriptomics introduces a cross-omics confound: the two-dimensional cross-section area co-varies with both gene expression and pathomics measurements, creating an apparent correlation that is a geometric measurement artifact. We formulate the dual-omics conditional editing problem and apply the MAD framework [13] to enable independent editing of gene expression and pathomics features in podocyte cell nucleus images from CosMx SMI kidney tissue. MAD achieves the lowest MAE (0.6636) and FID (25.19) among all compared methods on pathomics editing. A controlled simulation study demonstrates that the VAE component in MAD better preserves cross-group independence compared to CCDM (MAD without VAE). Future directions include extending the framework to additional omics modalities, applying it to other cell types and ST platforms, and incorporating spatial neighborhood features as a third conditioning group for tissue-level analysis.
Acknowledgments. This research was supported by NIH R01DK135597 (Huo), DoD HT9425-23-1-0003 (HCY), NSF 2434229 (Huo) and KPMP Glue Grant. This work was also supported by Vanderbilt Seed Success Grant and Vanderbilt-Liverpool Seed Grant. This research was also supported by NIH grants R01EB033385, R01DK132338. We extend gratitude to NVIDIA for their support by means of the NVIDIA hardware grant.
References
-
Ding, X., Wang, Y., Zhang, K., Wang, Z.J.: Ccdm: Continuous conditional diffusion models for image generation. CoRR (2024)
-
He, S., Bhatt, R., Brown, C., Brown, E.A., Buhr, D.L., Chantranuvatana, K., Danaher, P., Dunaway, D., Garrison, R.G., Geiss, G., et al.: High-plex imaging of rna and proteins at subcellular resolution in fixed tissue by spatial molecular imaging. Nature biotechnology 40(12), 1794–1806 (2022)
-
Heusel, M., Ramsauer, H., Unterthiner, T., Nessler, B., Hochreiter, S.: Gans trained by a two time-scale update rule converge to a local nash equilibrium. Advances in neural information processing systems 30 (2017)
-
Ho, J., Jain, A., Abbeel, P.: Denoising diffusion probabilistic models. Advances in neural information processing systems 33, 6840–6851 (2020)
-
Ho, J., Salimans, T.: Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598 (2022)
-
Kaplan, J.M., H Kim, S., North, K.N., Rennke, H., A Correia, L., Tong, H.Q., Mathis, B.J., Rodríguez-Pérez, J.C., Allen, P.G., Beggs, A.H., et al.: Mutations in actn4, encoding -actinin-4, cause familial focal segmental glomerulosclerosis. Nature genetics 24(3), 251–256 (2000)
-
Lohmann, F., Valdeolivas, A., Vasiljević, J.: Connecting gene expression and tissue morphology with conditional generative models. In: ICML 2025 Generative AI and Biology (GenBio) Workshop
-
Moses, L., Pachter, L.: Museum of spatial transcriptomics. Nature methods 19(5), 534–546 (2022)
-
Rombach, R., Blattmann, A., Lorenz, D., Esser, P., Ommer, B.: High-resolution image synthesis with latent diffusion models. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 10684–10695 (2022)
-
Thomas, M.C., Brownlee, M., Susztak, K., Sharma, K., Jandeleit-Dahm, K.A., Zoungas, S., Rossing, P., Groop, P.H., Cooper, M.E.: Diabetic kidney disease. Nature reviews Disease primers 1(1), 15018 (2015)
-
Wang, M., Verma, S., Malusare, A., Wang, L., Lu, Y., Aggarwal, V., Sola, M., Grama, A., Lanman, N.A.: Geneflow: Translation of single-cell gene expression to histopathological images via rectified flow (2025), https://arxiv.org/abs/2511.00119
-
Williams, C.G., Lee, H.J., Asatsuma, T., Vento-Tormo, R., Haque, A.: An introduction to spatial transcriptomics for biomedical research. Genome medicine 14(1), 68 (2022)
-
Yang, Y., Guo, J., Deng, R., Zhu, J., Lu, Z., Qu, C., Zhu, Y., Guo, X., Wang, Y., Zhao, S., Yang, H., Huo, Y.: Explainable pathomics feature visualization via correlation-aware conditional feature editing (2026), https://arxiv.org/abs/2602.05397
Y. Yang et al.
- Yang, Y., Wang, Y., Yao, T., Deng, R., Yin, M., Zhao, S., Yang, H., Huo, Y.: Pyspatial: A high-speed whole slide image pathomics toolkit. In: IS&T International Symposium on Electronic Imaging. vol. 37, pp. HPCI-177 (2025)