Atera contour boundary ecology workflow#
This workflow demonstrates contour-native multimodal discovery on the Atera WTA FFPE breast Xenium sample. It combines each contour’s H&E patch with cell-level spatial transcriptomics to score tumor-boundary ecology programs, cluster contour ecotypes, match controls, and rank biological hypotheses.
Notebook:
Source notebook:
docs/tutorials/contour_boundary_ecology.ipynb
Dataset#
The reference tutorial is parameterized for:
Y:\long\10X_datasets\Xenium\Atera\WTA_Preview_FFPE_Breast_Cancer_outs
It expects the standard Xenium export plus:
WTA_Preview_FFPE_Breast_Cancer_he_image.ome.tifWTA_Preview_FFPE_Breast_Cancer_he_alignment.csvxenium_explorer_annotations.generated.geojsoncells.parquetcell_feature_matrix.h5
What the workflow does#
Loads the Atera Xenium sample with H&E image alignment metadata.
Imports a tutorial-sized subset of Xenium Explorer contours from GeoJSON.
Cuts one level-0 H&E patch per contour into
XeniumSlide.contour_images.Builds a contour study table with geometry, pathomics, cell-level pseudobulk RNA, pathway scores, cell-cell interaction summaries, and context features.
Scores the six default boundary programs:
immune_exclusion,myeloid_vascular_belt,emt_invasive_front,stromal_encapsulation,tls_adjacent_activation, andnecrotic_hypoxic_rim.Clusters contour ecotypes, pairs exemplar contours with matched controls, and writes a report-ready discovery package.
Outputs#
The checked tutorial artifact bundle is stored under:
manuscript/atera_contour_boundary_ecology/
Primary files:
summary.jsonreport.mdcontour_features.csvprogram_scores.csvecotype_assignments.csvmatched_exemplars.csvprogram_feature_deltas.csvhypothesis_ranking.csvexemplar_montage.pngatera_tutorial_contour_subset.geojson
Biology readout#
The current tutorial run analyzes 28 real Atera contours across seven Explorer structures and 170,057 cells. It identifies four contour ecotypes and ranks all six boundary programs. The top-program distribution is:
immune_exclusion: 10 contoursstromal_encapsulation: 6 contoursemt_invasive_front: 3 contourstls_adjacent_activation: 3 contoursnecrotic_hypoxic_rim: 3 contoursmyeloid_vascular_belt: 3 contours
The result should be treated as a tutorial-scale discovery package: it is meant to show how contour H&E evidence, molecular evidence, and matched controls are assembled into hypotheses. Larger production reruns should use more contours and may enable streamed transcript-gradient profiling.