Patient samples
The study uses a previously described cohort58 comprising 1,342 patients who underwent resection for colorectal cancer at Central Finland Central Hospital between 1 January 2000 and 31 December 2015 and had adequate tumour samples available. Formalin-fixed and paraffin-embedded (FFPE) tumour samples were obtained from the pathology archives of the Central Finland Central Hospital Nova, which covers all colorectal cancers diagnosed in Central Finland (the population of the area averaged around 270,000 during the study period). Associated clinical data were collected from clinical patient records by study physicians. Moreover, all tumours were previously re-evaluated for disease stage, tumour grade (WHO 2019 criteria), mismatch repair (MMR) status, BRAF V600E mutation status and the presence of lymphovascular invasion58. Analyses of this cohort were approved by the Regional medical research ethics committee of the Wellbeing services county of Central Finland (Dnro 13U/2011, 1/2016, 8/2020 and 2/2023) andthe Finnish Medicines Agency (Fimea, FIMEA/2023/001573). The need to obtain informed consent from the study patients was waived (Dnro FIMEA/2023/001573).
The validation dataset was approved by the Medical Ethics Committee at Helsinki University Hospital (HUS/1223/2021). Permission to use archive samples without informed consent was granted by the Finnish National Supervisory Authority of Health and Welfare (permit number Valvira Dnro 1004/06.01.03.01/2012) and the FIMEA Finnish Medicines Agency (permit number FIMEA Dnro 2021/006901). Final TMA blocks of duplicate 1.2 mm cores were made in TMA Grand Master (3D Histech). For spatial transcriptomics selected full tumour samples from the same cohort were used. The authors affirm that the study was conducted following the rules of the Declaration of Helsinki of 1975, revised in 2013.
Collagen analyses were performed on a previously described cohort59 comprising an independent cohort of 1,011 patients who underwent resection for stage I–IV CRC at Oulu University Hospital between 2006 and 2020. The analysis was based on TMAs that included four 1.2-mm-diameter cores, two from the IM and two from the CT. Analyses of this cohort were approved by the Regional medical research ethics committee of the Wellbeing services county of North Ostrobothnia (37/2020). The patients gave written informed consent for the study. Final TMA blocks of duplicate 1.2 mm IM and CT cores were made in TMA Grand Master (TMA Master II). For this cohort all tumours were previously re-evaluated for disease stage, tumour grade (WHO 2019 criteria), MMR status, BRAF V600E mutation status, tumour budding based on the International Tumor Budding Consensus Conference (ITBCC) criteria30, and the presence of lymphovascular invasion58. CD3+ and CD8+ T cell densities were quantified separately in the CT and IM, converted into percentile values, averaged across the four resulting measures and categorized as low (0–25), intermediate (>25–70) or high (>70–100), following the main principles of the Immunoscore assay.
Immunofluorescence staining and imaging of spatial transcriptomics samples
Immunofluorescence staining and imaging of TMAs was performed as previously described60 for pan-cadherin antibodies to label the tumour cells and their plasma membranes and the nuclear marker DAPI. Imaging was performed using the Zeiss Axio Scan.Z1 slide scanner, with each round of staining recorded as an independent image. The CZI image file contained up to five fluorescent channels. For the full tumour samples, the staining was carried out on the same slides as spatial transcriptomics, after the spatial transcriptomics analyses. To select ROIs for sample collection for transcriptome analysis, the slides were stained with Syto13, pan-CK (AF532), CD45 (AF594) and αSMA (AF647)A to visualize nuclei, epithelial cells, immune cells and stroma, respectively. Imaging of the staining was performed on the DSP instrument using 50, 200, 200, 200 ms on the FITC, CY3, Texas Red and CY5 channels, respectively. After quenching the signal, the slides were restained for the indicated markers and the signal was imaged on the DSP instrument. The single-channel images were loaded to HALO v.3.6 image analysis software for visualization, registered based on the nuclear signal and fused to generate a composite image with 8 markers (including the nuclei).
Multiplexed staining and imaging
Multiplexed fluorescence immunohistochemical staining and imaging was performed in 4–6 cycles as previously described60 for two sets of antibodies, listed below, and the nuclear marker DAPI. After the first-round staining and whole-slide imaging, the fluorescence signal was bleached, the antibodies from the first-round staining were denatured and subsequent staining rounds were performed. Imaging was performed on the Zeiss Axio Scan.Z1 slide scanner with each round of staining saved as a separate .CZI image file.
The following primary antibodies were used: αSMA (Dako, M0851; 1:500, 1 h at room temperature), β-catenin (Cell Marque, 224M-14; 1:500, 1.5 h at room temperature), E-cadherin (BD Biosciences, 610182; 1:200, 1 h at room temperature), CDX2 (Cell Signaling, 23083; 1:1,000, 1 h at room temperature), H3K9me2/3 (Cell Signaling, 5327; 1:200, 1 h at room temperature), pan-cytokeratin (Abcam, ab7753; 1:150, 1 h at room temperature), pan-cytokeratin (Invitrogen, MA5-13156; 1:100, 1 h at room temperature), PROX1 (Cell Signaling, 45546; 1:400, 1 h at room temperature), Ki-67 (Dako, M7240; 1:100, 1 h at room temperature), tenascin C (R&D Systems, MAB2138; 1:400, 1 h at room temperature), vimentin (Santa Cruz Biotechnology, sc-6260; 1:400, 1 h at room temperature), ANXA1 (Abcam, ab214486; 1:500, overnight at 4 °C), YAP1 (Santa Cruz Biotechnology, sc-101199; 1:50, overnight at 4 °C) and a collagen-binding peptide (generated by the laboratory of V. Weaver61; 1:500, overnight at 4 °C). For pan-epithelial (pan-EPI) cocktail staining, the antibodies (Abcam, ab7753; Invitrogen, MA5-13156; and BD Biosciences, 610182) were combined, each at 1:200, and applied for 2 h at room temperature.
Immunofluorescence staining and imaging of TMAs was performed as previously described60 for pan-cadherin antibodies to label the tumour cells and their plasma membranes and the nuclear marker DAPI.
Image analysis pipeline for patient samplesPreprocessing and segmentation
Preprocessing and segmentation were performed essentially as described previously36. In brief, TMA cores were de-arrayed using built-in tools from QuPath (v.0.5.1)62. Cores exhibiting folding artifacts, blurriness or limited tumour content were excluded from analysis. After preprocessing, nuclei were segmented based on DAPI signal using custom-trained Cellpose 2.0 models (v.2.0 and v.2.2.2)63, separately optimized for the TMA and whole-slide image datasets. The tumour and stromal compartments were identified using a multi-label U-Net trained on 30 representative cores. Pixel-level annotations were generated manually in ilastik (v.1.4.0)64 based on pan-EPI staining.
Architecture classification of TMAs
Tumour architectural subtypes were classified through a transfer-learning pipeline comprising four stages:
Stage 1, tiling: each TMA core image was subdivided into non-overlapping 448 × 448 px (208 × 208 µm) tiles covering the full tissue area.
Stage 2, feature embedding: a multi-label U-Net was trained to segment architectural subtypes. Ground-truth masks were derived from the tumour–stroma segmentations described above, with tumour regions manually re-annotated according to three architectural subtypes: glandular (organized, lumen-forming structures), fragmented (disrupted tumour clusters) and solid (dense). Two additional classes (stroma and edge/background) were included to handle non-tumour regions. The training set comprised 196 cores selected as unambiguous archetypes of each architectural subtype. The validity of this selection was assessed by computing silhouette scores on a panel of interpretable morphological features (Fig. 1f) and comparing the archetype score to a null distribution generated from 1,000 size-matched random draws of cohort cores assigned matching per-class labels (Extended Data Fig. 2e). Each tile was then passed through the trained U-Net, and the activations at the deepest convolutional layer (bottleneck) were aggregated through global average pooling to yield a compact feature vector per tile, encoding the dominant morphological pattern without requiring a separate hand-crafted feature design.
Stage 3, tile-level classification: a multinomial logistic regression classifier (L-BFGS solver, scikit-learn) was trained on the bottleneck embeddings to assign each tile to one of five classes: glandular, fragmented, solid, stroma or edge/background. Features were standardized before classification. The training set comprised 1,154 manually annotated tiles (365 glandular, 251 fragmented, 148 solid, 199 stroma and 191 edge/background), randomly sampled from 760 cores across the cohort. Performance was evaluated using stratified fivefold cross-validation. At inference, the classifier output five class probabilities per tile; tiles dominated by edge or stroma (probability ≥ 0.5) were excluded, and the remaining glandular, fragmented and solid probabilities were renormalized to sum to one before assigning each tile to its most probable architectural subtype (argmax).
Stage 4, patient-level classification: tile-level predictions were aggregated per sample. The proportion of tumour-classified tiles belonging to each architectural subtype was computed separately for the CT (centre of the tumour) and IM. If a single subtype accounted for more than 50% of tiles, the sample was classified as that dominant architecture; otherwise, it was labelled mixed. The trained U-Net can be reused to extract morphological embeddings from other colorectal cancer datasets, provided that a membrane staining is available and that tissue tiles are of comparable physical size to those used in this study (448 × 448 pixels, corresponding to approximately 208 × 208 µm at the imaging resolution used here); tiles acquired at a different pixel resolution can be resampled (downsampled or upsampled) to match the model’s input size. However, the tile-level logistic regression classifier generally requires retraining to account for dataset-specific differences such as staining variability, imaging conditions or cohort composition. This is the strategy that we followed when applying the pipeline to the validation and multiplex datasets in this study: the U-Net embeddings were extracted directly, while the classifier was retrained on a new set of annotated tiles for each dataset. For the validation dataset, the classifier was retrained by supplementing the original training set with 205 additional annotated tiles (44 glandular, 49 fragmented, 28 solid, 50 stroma and 34 edge/background). For the multiplex dataset, 1,886 tiles were independently annotated (740 glandular, 446 fragmented, 123 solid, 491 stroma and 86 edge/background) and used to train a separate classifier. The pretrained U-Net model is available in ONNX format at Zenodo (https://doi.org/10.5281/zenodo.20343193).
Morphological features of tissue architectures
Branch length
Branch lengths were quantified from the binary tumour mask by first removing small objects (<20 px) and filling small holes (<100 px area), then skeletonizing the mask using skimage.morphology.skeletonize. Small spurious branches with an arc length of shorter than 5 pixels were removed by pruning using the skan library. Branch lengths were measured as geodesic arc lengths along the skeleton paths (√2-weighted pixel distances) using skan.summarize()[‘branch-distance’].
Contour roughness
The global contour roughness of the tumour boundary was assessed by extracting all contours from the binary tumour mask at level 0.5 using skimage.measure.find_contours. Contours with fewer than five points were discarded. The remaining contours were smoothed with a Gaussian filter (σ = 1) to reduce pixel noise. Pointwise curvature κ for a smoothed contour (x(s), y(s)) was computed by finite differences:
$$\kappa =\frac{|{x}^{{\prime} }{y}^{{\prime\prime} }-{y}^{{\prime} }{x}^{{\prime\prime} }|}{{({{x}^{{\prime} }}^{2}+{{y}^{{\prime} }}^{2})}^{3/2}}$$
where primes denote derivatives with respect to the contour parameter. Absolute curvature values were summed over all contours and normalized by the total number of contour points N to yield mean roughness per unit length.
Lumen area
Lumens within the binary tumour mask were detected by filling all holes (scipy.ndimage.binary_fill_holes) and subtracting the original mask. The resulting lumen mask was labelled, and each lumen area (in pixels) was measured through skimage.measure.regionprops.
Three-nearest-neighbour distances
For each cell centroid, the Euclidean distances to its k = 3 nearest neighbours were computed using sklearn.neighbors.NearestNeighbors with a BallTree algorithm. For each cell, the mean, s.d., coefficient of variation and maximum of the k neighbour distances were stored as features.
Nuclear orientation order
The local nuclear orientation order (Ψk) was computed for each cell using its k = 3 nearest neighbours. For each neighbour, the orientation angle θ was obtained by projecting the cell’s orientation vector (defined by its longest axis) onto a fixed reference direction. The nematic order parameter was then calculated as:
$${\varPsi }_{k=3}=\sqrt{{\langle \cos (2\theta )\rangle }^{2}+{\langle \sin (2\theta )\rangle }^{2}}$$
yielding a value between 0 (random orientations) and 1 (perfectly aligned neighbours).
Stroma proximity
Stroma proximity was determined by computing, for each tumour cell centroid, the minimum Euclidean distance to the set of stroma cell centroids using pairwise distance computation (scipy.spatial.distance.cdist).
Tumour–stroma ratio
Tumour–stroma ratio was calculated by measuring the total pixel areas of the tumour and stroma compartments from the segmentation mask and computing the ratio of tumour pixel count to stroma pixel count.
Fragmentation index
The fragmentation index was computed by first constructing a spatial proximity graph of all tumour cell centroids, where an edge connects any two cells of which the Euclidean distance is within 80 pixels (radius-based connectivity using a BallTree). Louvain community detection was then applied to this unweighted graph to partition cells into spatially coherent communities. The fragmentation index was calculated as the number of detected communities divided by the cell count.
Quantification of peritumoural ECM organization across tumour architectures
Whole-core fluorescence images were segmented into 12 tissue compartments with a multi-scale tumour/stroma classifier, and tumour islands were defined as connected components of the tumour class on the cleaned compartment map after upsampling to image resolution. The stromal compartment was restricted to a strict definition that excluded muscle, vessel, adipose, dense-stroma and debris classes. For each tumour island, a peri-tumoural region of interest was constructed as the 50 µm band immediately outside the island border, intersected with the strict stroma mask. Within this region, fibre body masks were obtained for the collagen I and TNC channels (analysed independently) using a fine-tuned U-Net applied at a probability threshold of 0.5.
From each body mask, we derived three independent descriptors of the underlying fibre network65: (1) the box-counting fractal dimension of the binarized mask, capturing network roughness and branching complexity; (2) the mean structure-tensor coherence within the mask, ranging from 0 for isotropic networks to 1 for perfectly aligned fibres; and (3) the median local fibre thickness, computed as twice the Euclidean distance transform sampled along the fibre skeleton and converted to micrometres using a pixel size of 0.325 µm. Features were emitted per (image × island × channel × distance band × stroma definition × architecture) so that all downstream summaries remained traceable to the underlying islands and fluorescence pixels. To avoid within-image pseudoreplication, every subsequent comparison was performed on per-(image × architecture) means, obtained by averaging each feature across the islands sharing the same architecture within an image.
Whole-slide image analysis
Whole-slide image immunostainings were registered using the warpy workflow in ImageJ and QuPath. Whole-slide images were subsequently divided into non-overlapping tiles of 1,000 × 1,000 pixels and selected for downstream analysis in a manner analogous to TMAs, including tumour/stroma classification and nuclear segmentation. For each nucleus, the average nuclear intensity of markers (ANXA1, SNAIL1) was quantified. For cytoplasmic markers (E-cadherin, ANXA1, VIM), the nuclear contour was dilated by 5 pixels to approximate the cytoplasmic region, from which the average cytoplasmic intensity was computed. Single-cell profiles were then clustered using the Leiden algorithm at a resolution of 0.1.
Spatial coherence
For each whole-slide-image tile, we computed a spatial-coherence score that quantifies whether cells with the same label group together or segregate. First, for every cell we counted its 12 immediate closest neighbours that shared the same label and averaged this count across all cells in the tile. Next, we generated a null range by randomly shuffling the position of all cells 100 times, repeating the same neighbour counting for each shuffle; the average value from these shuffled sets was taken as the expected mean. The score was then calculated as (observed – expected_mean)/(expected_max – expected_mean). A score above zero means cells with the same label cluster together more than would be expected by chance (attraction), a value of zero corresponds to a random arrangement and a negative value denotes spatial repulsion, where same-label cells are less likely to be adjacent than expected by chance.
Multiplex IF dataset processing
TMA cores were identified using the dearrayer functionality in QuPath. Background illumination correction and background subtraction were subsequently performed for each core and staining round using PyBaSiC. TMAs were registered across six staining rounds using the DAPI channel as a reference. All cores underwent semi-manual quality control to remove samples that were damaged, exhibited poor registration or contained absent/very low tumour content.
Nuclear segmentation was performed using the Cellpose cyto3 model with the DAPI channel as the input. Tissue pixels were classified into tumour, stroma, tissue fold, autofluorescence, necrosis and background using an iterative supervised approach in ilastik until good visual agreement between pan-EPI signal and tumour masks was achieved across cores. For each cell, mean marker intensities were extracted using pyradiomics, and nuclear shape features were computed using a custom Python pipeline. To approximate cytoplasmic signal, nuclear masks were expanded by three pixels using expand_labels from skimage. We also computed, for each nucleus, the mean value of the ilastik pixel-classification probability map to derive cell-level classification confidence metrics.
Before clustering, cells with extreme nuclear areas were removed by excluding the lowest 1st percentile and highest 99th percentile. Tumour cells were then selected based on a tumour probability threshold of >0.5 and processed using a standard Scanpy workflow. Data were scaled using scanpy.pp.scale with max_value = 10, such that values were truncated to a maximum of 10 after scaling. Principal component analysis was performed using the maximum available number of components, and a k-nearest-neighbour graph was constructed with n_neighbors = 50. Clustering was performed using the Leiden algorithm with the igraph-based implementation.
For patient-level grouping, normalized phenotype distributions were used as input for hierarchical clustering (Ward linkage). The number of patient groups was determined based on biological interpretability and stability of the resulting clusters.
Morphological embedding trajectory analysis
Tile-level U-Net embeddings were z-scored and used to build a k-nearest-neighbour graph, visualized by t-distributed stochastic neighbour embedding (t-SNE). Partition-based graph abstraction (PAGA) was computed on the three architecture classes (glandular, fragmented, solid, assigned by argmax of the renormalized U-Net probabilities after removing edge and stroma tiles) and overlaid on the t-SNE. Diffusion pseudotime was computed from a diffusion map of the same embeddings, rooted at the most confident glandular tile, and tiles were grouped into 40 equal-width pseudotime bins. Within each bin, architecture probabilities were averaged, and cell phenotype fractions (cells assigned to tiles by centroid position) were averaged and renormalized to unit sum.
Spatial transcriptomics experiment and analyses
Spatial transcriptomics was performed using the GeoMX-DSP platform (Nanostring/Bruker). Eight patients with stage II/III CRC were selected from the TMA cohort based on presence of architecturally heterogeneous tumours. Samples were prepared according to recommendations from the vendor for FFPE slides, including baking for 60 min at 60 °C, dewaxing and antigen retrieval with ER2 for 20 min at 100 °C, fixation in NBF (10%), incubation in NBF stop and proteinase K treatment (15 min at 37 °C). These steps were performed on the Leica BondRX autostainer. The slides were incubated with the probes overnight and, after stringent washes, were stained with Syto13, pan-cytokeratin (AF532), αSMA (custom conjugated on AF647) and CD45 (AF594) antibodies to detect tumour and stromal microenvironments. ROIs (67, 61, 96 and 59 for the four slides, carrying patients 1 and 2, 3 and 5, 4 and 6, and 7 and 8, respectively) were segmented for pan-cytokeratin positivity to collect 82, 94, 141 and 63 areas of interest (AOIs) representing tumour and tumour–stroma boundary. Each ROI yielded a tumour AOI and, where collected, a stroma AOI. Transcriptomic analyses of the tumour compartment (Figs. 2f, 4a,b and Extended Data Fig. 10a) used the 249 tumour AOIs from 8 patients. After scanning, tissue sections were additionally stained with antibodies against SNAIL1 (Santa Cruz, sc-271977), E-cadherin (BD, 610182), ANXA1 (Abcam, ab214486) and VIM (Santa Cruz, sc-6260) and imaged using Phenoimager (Akoya Biosciences).
Quality control of the sequencing data was performed in R using GeoMx packages, following standard GeoMx QC guidelines. Segment filtering employed the following thresholds: minimum reads per segment (AOI) = 1,000, minimum percentage of reads trimmed = 80, minimum percentage of reads stitched = 80, minimum percentage of reads aligned = 75, minimum sequencing saturation = 50, minimum negative control counts = 1, maximum counts in the NTC (no-template control) well = 9,000.
Segments with low signal were removed based on the limit of quantification. Gene filtering was applied by both compartment (tumour/stroma) and architecture type to preserve important genes in underrepresented regions. A 10% segment cut-off was used. Data were normalized using the third quartile (Q3) method.
Differential gene expression analysis
For differential gene expression, raw counts were analysed using the PyDESeq2 Python package, with patient sample included as a covariate to control for interpatient variability. For each gene, a Wald test was used to assess differential expression; multiple-testing correction was performed using the Benjamini–Hochberg procedure to control the FDR. Genes with an adjusted P value (q value) below 0.05 were considered significantly differentially expressed.
Gene set enrichment analysis
Gene set enrichment analysis was performed using the prerank function from the GSEApy Python package with 1,000 permutations. Before analysis, all genes were ranked according to their effect sizes (log-transformed fold changes) derived from the differential expression analysis. The following gene sets from previous studies were included. EMT gene sets: Wound response GO GP66, mesenchymal67, matrix remodelling68, TGFB activation (TGFB KEGG, TGFB CORE GENES/TGFB1/TGFB2)68,69, EMT activation (EMT Core Genes)67, EMT Hallmark70, pEMT71, EMT-II (MP13)72. SC gene sets: crypt base32, LGR5 intestinal SCs33, fetal8, regenerative34 and revival colonic SCs52. High-relapse gene sets: epithelial-specific high-risk gene set, core high-relapse cells73.
Trajectory analysis
Trajectory analysis was performed using PAGA74 with the sc.tl.paga function built into Scanpy (v.1.9.6)75. To prepare the data, we first selected 3,000 highly variable genes using the seurat flavour of sc.pp.highly_variable_genes. Next, we calculated and selected 100 principal components (PCs) using sc.tl.pca. PCs were batch-corrected using Harmony (v.0.0.9)76 to correct for patient-specific gene expression profiles. Finally, nearest neighbours were calculated using sc.pp.neighbors (n_neighbors = 30) on the corrected PCs and PAGA was run on tumour architecture types.
Pseudotime analysis
We calculated diffusion pseudotime (DPT77) using the sc.tl.diffmap and sc.tl.dpt functions from Scanpy (v.1.9.6)75. In preparation, for a patient sample, we selected 3,000 highly variable genes using the seurat flavour of sc.pp.highly_variable_genes. Next, we calculated 100 principal components (PCs) using sc.tl.pca. Finally, nearest neighbours were calculated using sc.pp.neighbors (n_neighbors = 30) on the corrected PCs. DPT was run using a cell in the glandular region of the tumour as a ‘root cell’, representing its most unperturbed region.
Patient-derived 3D organoid culture
The use of human CRC organoid cultures was approved as part of the iCAN Precision Medicine Flagship study reviewed by the HUS Ethical Committee and is executed based on a HUS research permit (4.5.2023 §38 (HUS/223/2023)), a Findata data permit (THL/1338/14.02.00/2022) and material transfer agreements with Helsinki Biobank (HBP20210170) and Finnish Hematology and Registry Biobank FHRB (12.5.2022). The underlying PANORG study collecting the samples to the iCAN Flagship was approved by the ethical committee of the Helsinki and Uusimaa hospital district and study site institutional review boards (PANORG ethical approval HUS/390/2021, HUS approval HUS/69/2022). The study participants provided written, informed consent for the protocols. Organoids were maintained in a mixture of 60% LWRN medium (originally established in ref. 78) and 40% human basal medium supplemented with rhEGF (R&D, 236-EG, 100 ng ml−1); LWRN was replaced with Advanced DMEM (Thermo Fisher Scientific) for no-WNT conditions. Organoids were subjected to single-cell sequencing and selected to harbour APC and TP53 mutations for the studies here.
scRNA-seq
Patient-derived CRC organoids were cultured in Matrigel or collagen (drug treatment experiment), after which single-cell suspensions were generated by incubation with cell recovery solution (30 min at 4 °C; Corning) followed by digestion with TrypLE Express Enzyme (5 min at 37 °C; Invitrogen). After washing with ice-cold DMEM, single cells were counted using Luna-II automated cell counter (Logos Biosystems) and loaded on a microwell cartridge of the BD Rhapsody Express system (BD) according to the manufacturer’s instructions. Single-cell whole-transcriptome analysis libraries were prepared according to the manufacturer’s instructions using the BD Rhapsody WTA Reagent kit (BD, 633802) and sequenced on the Illumina NextSeq 500 system using the High Output Kit v2.5 (150 cycles, Illumina) for 2 × 75 bp paired-end reads with 8 bp single index aiming sequencing depth of >20,000 reads per cell for each sample.
Analysis
UMI, complex barcode, and sample tags were extracted from raw reads and demultiplexed using a custom script (rhapsody-demultiplex; https://github.com/Bioinformatics-Service-MPI-Munster/scrna-tools). Reads were mapped using STAR (v.2.7.10a)79 (–soloType CB_UMI_Complex –soloCellFilter None –outSAMtype BAM SortedByCoordinate –soloFeatures GeneFull_Ex50pAS –soloAdapterSequence NNNNNNNNNGTGANNNNNNNNNGACA –soloCBmatchWLtype 1MM –soloCBposition 2_0_2_8 2_13_2_21 3_1_3_9 –soloUMIposition 3_10_3_17 –soloCBwhitelist BD_CLS1_v2_draft.txt BD_CLS2_v2_draft.txt BD_CLS3_v2_draft.txt –runRNGseed 1 –soloMultiMappers EM –readFilesCommand zcat –outSAMattributes NH HI AS nM NM MD jM jI MC ch CB UB GX GN). Raw counts were imported as AnnData (v.0.10.7)80 objects in Python (v.3.9.11). We removed low-complexity barcodes using the knee plot method (1,500–3,000 counts per cell) and further filtered out cells with a high mitochondrial mRNA percentage (>50%). Doublets were predicted with scrublet (v.0.2.3)81. Finally, each sample’s gene expression matrix was normalized using scran (v.1.26.2)82, with Leiden clustering83 input at resolution 0.5.
At this stage, the samples were merged with scanpy (v.1.10.1)75. For 2D embedding, expression values were cell cycle regressed using sc.tl.score_genes_cell_cycle with G2M and S-phase gene lists from ref. 84 and sc.pp.regress_out. The expression matrix was subset to the 3,000 most highly variable genes (sc.pp.highly_variable_genes, flavor=“seurat”). We calculated and selected the top 100 PCs (sc.tl.pca), which served as basis for k-nearest neighbour calculation (sc.pp.neighbors, n_neighbors = 30). Nearest neighbours were then used as an input for UMAP layout (sc.tl.umap, min_dist = 0.3). Leiden clusters were calculated using sc.tl.leiden at resolution 0.7. Pseudotime and gene set enrichment analyses were performed as described for the spatial transcriptomics datasets. For reanalysis of the published tumour in vivo data, we chose a cell in the most stem-like cluster according to CytoTRACE analysis.
For generation of consensus gene sets, EMT gene sets (mesenchymal67, matrix remodelling68, TGFB activation (TGFB KEGG, TGFB CORE GENES/TGFB1/TGFB2)68,69, EMT activation (EMT Core Genes67, EMT Hallmark70, pEMT71, EMT-II (MP13)72) and SC gene sets (crypt base32, LGR5 intestinal SCs33, fetal8, regenerative34 and revival colonic SCs52) were merged and overlapping genes within and across gene sets were removed to generate the Core-EMT, Core-CBC and Core-RegSC gene sets.
Hybrid state analysis
All cells in the dataset were scored for the Core-EMT, Core-CBC and Core-RegSC gene sets using the Scanpy sc.tl.score_genes function. The scores were then converted to a per-dataset rank rescaled to [0, 1]. Cells were then ordered across the CBC to RegSC–EMT axis as a composite_trajectory = (RegSC_rank01 + EMT_rank01 − CBC_rank01 + 1)/3. Cells with composite_trajectory in the top 30% of the per-dataset distribution were classified hybrid.
For distribution across the EMT–RegSC axis, two curated marker panels were scored per hybrid cell with sc.tl.score_genes (random_state = 0): a RegSC-pole panel (GPRC5A, TSPAN1, PDZK1IP1, ANXA1, ANXA3, S100A6, S100A11, LCN2, SAA1, SAA2, KRT16, KRT17, SPP1, CD44, EMP1 and TACSTD2) and an EMT pole panel (SNAI1, SNAI2, ZEB1, ZEB2, TWIST1, TWIST2, VIM, FN1, S100A4, ACTA2, MMP14, PLAU, PLAUR, SERPINE1, TIMP1). Each panel score was z-scored within its dataset, and the pole axis was defined as axis_pole = z(score_EMT_pole) − z(score_RegSC_pole). The pole-axis shift among hybrid cells was computed as Cliff’s δ = 2 × U/(n_c × n_Unt) − 1, where U is the Mann–Whitney U statistic of axis pole over the two hybrid groups. δ ∈ [−1, +1]; δ < 0 represents that hybrid cells of c are shifted toward the regenerative pole relative to untreated-hybrid cells, δ > 0 represents that hybrid cells of c are shifted toward the EMT pole. By default, untreated sits at δ = 0.
Engineered hydrogel scaffoldsMicrostamping hydrogel topography
Hydrogel scaffolds were engineered as described previously42,85. A PDMS stamp (see below) with a crypt-mimicking array of pillar topography was placed in the central top reservoir of the chip. To generate the ECM for the chip, bovine TeloCol-6 type I collagen solution (5225-50mL, Advanced Biomatrix) was neutralized according to the manufacturer’s instructions and then mixed with Matrigel (356231, Corning) at a 75/25 (v/v) ratio. After gel injection through gel-loading port, hydrogel was polymerized at 37 °C, 5% CO2 (hereafter referred to as incubator) for 15 min. After ECM polymerization, all chip reservoirs were topped up with PBS or cell culture medium.
Microtopography stamps fabrication
Stamps featuring crypt-mimicking microtopography were fabricated from PDMS by replica moulding of 2PP-printed models. First, arrays of colon crypt-mimicking micropillars were designed in Autodesk Fusion. Several topographies were tested and optimized, the final microtopography design consists of the slightly conical pillars, ranging from 50 to 120 µm in diameter (top to bottom) and 700 µm in height. The 3D model was printed using a NanoOne (UpNano) 2PP printer on glass coverslips with UpPhoto resin and a ×10/0.4 NA objective. To generate a master mould with inverted topography, the printed structures were plasma-activated and silanized overnight using vapour-phase trichloro(1H,1H,2H,2H-perfluorooctyl) silane (Sigma-Aldrich). PDMS (Sylgard 184, Dow Corning; 10:1 base-to-curing agent ratio) was poured over the master, degassed under vacuum, and cured at 80 °C for 12 h. The resulting PDMS replica was cut, plasma-activated and silanized overnight as above. This PDMS negative was then used repeatedly as a mould for casting final PDMS stamps using the same procedure (Sylgard 184, 10:1 ratio, cured at 80 °C for 12 h).
Organoid plating and sample preparation
Organoids were dissociated using TrypLE Express (Thermo Fisher Scientific) and resuspended at 40 million cells per ml in Advanced DMEM (Thermo Fisher Scientific) supplemented with 10 µM Y27632 after which 5 µl of cell suspension was plated onto each chip. Cells were allowed to settle for 1 h in a cell culture incubator, after which the chips were filled with Y27632-supplemented medium. The next day, Y27632 was removed and cells were cultured for 5 days. Chips were fixed in 4% PFA for 16 h at 4 °C, placed into 3D-printed custom histomoulds, filled with HistoGel (Thermo Fisher Scientific), embedded in paraffin and sectioned as described previously86. The samples were then processed for RNA in situ hybridization or immunofluorescence as described below.
RNA in situ hybridization
In situ hybridization was performed using RNAscope technology (Advanced Cell Diagnostics) according to the manufacturer’s protocols. In brief, organoids were fixed in 4% PFA for 30 min at 37 °C, rinsed with PBS, dehydrated in a graded ethanol series and air dried. The slides were then rehydrated and 2 drops of hydrogen peroxide were added to each slide for 10 min. Primary antibodies were added and incubated overnight at 4 °C. The slides were washed and fixed with 4% PFA for 30 min at room temperature. After PBS washes, three drops of 1:15 diluted Protease Plus were added to slides and incubated for 10 min, followed by PBS washes.
RNA probes were prewarmed for 10 min at 40 °C, cooled down and added onto slides. The slides were incubated with probes for 2 h at 40 °C, washed twice with wash buffer, subjected to stepwise hybridization with amplifier solutions for 15 min each at 40 °C, followed by application of blocker solutions. Finally, samples were incubated with Alexa-conjugated secondary antibodies diluted in co-detection antibody diluent for 30 min at room temperature. After washes and brief incubation with DAPI, the slides were mounted in Elvanol and imaged. The following probes were used: ANXA1-c3 465411, LGR5-c2 311021, OLFM4-c1 311041, VIM-c1 310441. Images were obtained using the Zeiss LSM980 system using ×20 air and ×40 water objectives. Channels were acquired sequentially at room temperature using Zeiss Zen Blue software (v.3.13).
Immunofluorescence staining of organoids
Organoids were fixed in 4% PFA for 1 h at room temperature, permeabilized in 0.6% Triton X-100 for 30 min, blocked with 5% BSA and 5% goat serum in PBS for 2 h, after which primary antibodies were added in blocking solution and incubated overnight at 4 °C. After multiple washes in PBS, secondary Alexa Fluor-conjugated antibodies were added in 1% BSA, 1% goat serum for 2 h at room temperature. Organoids were then mounted in ProLong Gold (Thermo Fisher Scientific). The following primary antibodies were used: ANXA1 (Abcam, ab214486, 1:1,000, overnight, 4 °C), YAP1 (Santa Cruz, sc-101199, 1:500, overnight, 4 °C), active YAP (Abcam, ab205270, 1:100, overnight, 4 °C), β-catenin (Cell Marque, 224M-14, 1:100, overnight, 4 °C), SNAIL1 (Santa Cruz, sc-271977, 1:50, overnight, 4 °C), HP1α (Cell Signaling, 2616, 1:200, overnight, 4 °C), lamin A/C (Cell Signaling, 2032, 1:200, overnight, 4 °C), SOX4 (Abcam, ab236557, 1:400, overnight, 4 °C), pSMAD2/3 (Cell Signaling, 3108, 1:100, overnight, 4 °C). Images were obtained using either the Zeiss LSM980 or Nikon Yokogawa CSU-W1 system with ×20 air and ×40 water objectives. Channels were acquired sequentially at room temperature using Zeiss Zen Blue software (v.3.13) or NIS Elements (AR 5.41.01).
Mechanical compression of organoids
To mechanically compress the organoids, organoids grown in Matrigel for 5 days were replated on top of Matrigel-coated 12–20 mm round glass coverslips and allowed to attach for 24 h. After attachment, the organoids were sandwiched with another 12–20 mm coverslip with a weight applying 200 Pa of vertical stress (generating a 45% reduction in organoid height) for 20 h.
Live imaging of organoid invasion
For 3D organoid imaging, single cells were first embedded in 8 mg ml−1 Matrigel and, after 4 days of culture, were transferred either to fresh Matrigel or pH-adjusted 1 mg ml−1 collagen I matrices. The organoids were treated with 5 µM TDI-011536 (MedChemExpress, HY-150042), 10 ng ml−1 TGFβ1 (StemCell Technologies, 78067.1) or both with daily medium replenishment while being live-cell imaged every 30 min with a Sartorius Incucyte S3 incubator microscope for up to 4 days.
Bright-field images were segmented using Cellpose4-SAM87 and edge detection followed by morphological gap-closing and hole-filling to obtain binary organoid masks that were imported to ImageJ (Fiji). MorphoLibJ88 was used to quantify convexity, Geodesic diameter, Geodesic elongation and organoid area that were scaled between 0 and 1 to initially classify the organoids into expanded, dispersive or cohesive classes in an unbiased manner. As the resolution of the masks was not sufficient to accurately capture surface structures, the classifications were all manually inspected further and assigned to the final classes.
RT–qPCR
RNA was isolated using the NucleoSpin RNA plus Kit (Macherey-Nagel). RNA quality was assessed using the high-sensitivity RNA Screen Tape Analysis (TapeStation, Agilent) and subsequently 500 ng of RNA was reverse transcribed applying the SuperScript IV VILO Master Mix (Thermo Fisher Scientific) according to the manufacturer’s instructions. PCR was performed using the PowerUp SYBR Green Mastermix (Thermo Fisher Scientific) on the QuantStudio5 Real-Time PCR System (Thermo Fisher Scientific). Gene expression was quantified using the ΔΔCt method with normalization to B2M. The following primers were used. B2M: forward primer, GAGTATGCCTGCCGTGTGAA; reverse primer, GCTTACATGTCTCGATCCCACT; AXIN2: forward primer, GCGCTGACGGATGATTCCAT; reverse primer, TGGGTTCTCGGGAAATGAGGT; ASCL2: forward primer, CGCCTACTCGTCGGACGACAG; reverse primer, GCCGCTCGCTCGGCTTCCG.
Colonoscopy-guided intracolonic transplantations and analyses
Mouse colonoscopy was performed using the TELE PACK+VET system (Karl Storz, RP101S1). Illumination was provided by a xenon light source connected through the Adapt. KST fibre-optic light cable/Xenon 100 (495KS). The system includes a camera control, air insufflation units and an integrated endoscopic video unit with built-in documentation and memory storage. Colonoscopy imaging was performed using an integrated multipurpose Hopkins Telescope (67031BA) with an outer diameter of 11.5 Fr. Images were acquired using an IMAGE1 S HX FULL HD Camera Head (TH110). Mice were anaesthetized with isoflurane and organoid fragments corresponding to 5 × 105 single cells were transplanted into the colonic submucosa using a Hamilton syringe (Hamilton, Reno, 7656-01) equipped with a transfer needle for sample loading (7770-02) and an injection needle (7803-05). The needle was carefully inserted into the colonic submucosa, and 50 µl of organoid fragments suspended in 1 mg ml−1 rat collagen type 1 (Sigma-Aldrich, C3867) supplemented with 10% Corning Matrigel (Corning, 356231) was delivered and generated a visible submucosal bleb. The mice were treated for 5 days after transplantation with the LATS kinase inhibitor TDI-011536 (MedChemExpress, HY-150042). TDI-011536 was prepared at a concentration of 5 mg ml−1 by emulsification in 10% Kolliphor HS 15 (Merck, 42966) in PBS and administered by oral gavage twice daily at a dose of 2.5 mg per kg. Vehicle-treated animals received 10% Kolliphor in PBS alone.
TGFβ1 treatment was performed using human recombinant TGFβ1 (StemCell Technologies, 78067.1) within Affi-Gel Blue beads (Bio-Rad Laboratories, 153-7301). In brief, beads were washed four times with ice-cold bi-distilled water and incubated overnight with 500 µl of 50 µg ml−1 TGFβ1 in PBS supplemented with 10 mM HEPES. TGFβ1-loaded beads were mixed with organoid fragments in collagen solution at a final proportion of 10% (v/v) before implantation. For dual-treatment experiments, animals received both TDI-011536 administration and TGFβ1-loaded beads as described above. Each treatment group consisted of four mice (n = 4). Mice were monitored three times per week, and colonoscopy imaging was performed every 2 weeks for 4 weeks before euthanasia.
Tissue biopsies (intestinal rolls) were fixed in 4% PFA, embedded in paraffin and sectioned. Sections were de-paraffinized using a graded alcohol series and antigen retrieval was carried out using target retrieval solution (Dako) at pH 6 or pH 9 in a pressure cooker. Unspecific binding was blocked using 5% normal goat serum, 3% BSA in PBS, after which antibodies were diluted in DAKO antibody diluent and incubated overnight in a moist chamber at 4 °C. After PBS washes, Alexa-Fluor-conjugated secondary antibodies were diluted in 1% BSA in PBS, incubated for 1 h at room temperature, after which samples were mounted in Elvanol. The following primary antibodies were used: ANXA1 (Abcam, ab214486), pSMAD2/3 (Cell Signaling, 3108) and active YAP (Abcam ab205270). Images were obtained using the Zeiss LSM980 system with ×20 air and ×40 water objectives. Channels were acquired sequentially at room temperature using Zeiss Zen Blue software (v.3.13). The tumour area was quantified using ANXA1 staining to generate a ROI mask in Fiji. The number of ROIs was used to extract the lesion number.
All animal experiments were performed in accordance with EU Directive 2010/63/EU and Finnish legislation, and were approved by the National Animal Experiment Board of Finland (ELLA) under project licence ESAVI/30305/2023. Female NOD.Cg-PrkdcscidIl2rgtm1Wjl/SzJ (NSG) mice (The Jackson Laboratory, 005557) were used at 12 weeks of age at the start of the experiment. Sample size was determined using the resource equation method (E = N − T), where N is the total number of animals and T the number of groups; with four groups of four mice (N = 16), E = 12, within the recommended range of 10–20. Mice were randomly allocated to experimental groups; no formal randomization method was used. Tumour implantation was confirmed in all mice, and animals were euthanized and dissected 4 weeks after transplantation. No mice reached the humane end-point limits defined in the licence, and no mice were excluded from the analysis.
Statistics and reproducibility
Statistical analyses were performed using GraphPad Prism software (GraphPad, v.9) or in R (v.2023.09.1+494). Statistical significance was determined using the specific tests indicated in the corresponding figure legends. Only two-tailed tests were used. In all cases in which a test for normally distributed data was used, normal distribution was confirmed using the Kolmogorov–Smirnov test (α = 0.05). All experiments presented in the manuscript were repeated at least in three independent replicates. Automated software algorithms were used for unbiased quantification of staining intensities, sequencing data and architecture features/cell shapes in all experiments involving these techniques so blinding was not relevant. For animal experiments endoscopy and sample collection were performed in a blinded manner. For manual organoid invasion pattern classification blinding was applied during data analysis. No statistical methods were used to predetermine sample sizes. Sample size was determined based on previous experience, published literature, or to specific requirements of a given technique.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.