Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spatial analysis of IDH-mutant glioma

This repository contains R analysis code accompanying:

Hoefflin, Greenwald, Galili Darnell, Mount, et al.
Spatial analysis reveals the evolving organization of IDH-mutant glioma.
Cancer Cell (2026).

Overview

The scripts in this repository document the main spatial transcriptomics and spatial proteomics analyses performed for the study. They are provided as an analysis record and as a starting point for researchers who wish to adapt these approaches to related datasets.

This repository is not intended to be a standalone R package or a fully automated end-to-end pipeline. The scripts reflect the working analysis environment used for the study and may require modification of file paths and other project-specific settings before use.

The core computational framework—including metaprogram generation, spatial coherence, spatial-association analyses, and consensus interactions—was developed and more extensively documented in our earlier glioblastoma study:

The current repository applies and extends this framework to IDH-mutant gliomas.

Data availability

The data used by these scripts are available from the following repositories:

The Visium and CODEX workflows can be used independently.

Repository organization

Visium spatial transcriptomics

Script Description
1_Vis_PerSamp_QC_LeidenClustering.R Per-sample quality control, dimensionality reduction, Leiden clustering, and cluster gene programs
2_Vis_PerSampleNMF.R Per-sample non-negative matrix factorization
3_Vis_Metaprograms.R Generation and annotation of recurrent metaprograms
4_Vis_SpotAnn_SampleComp.R Spot annotation and sample-composition analyses
5_Vis_StateCoherence.R Spatial-coherence analyses
6_Vis_SpatialRelationships.R Colocalization, adjacency, and proximity analyses
7_Vis_ConsensusInteractions.R Definition of recurrent consensus interactions
8_Vis_InteractionTypes.R Classification and comparison of interaction types

CODEX spatial proteomics

Script Description
9_CODEX_Import_functions_objects.R Data import, shared functions, annotations, and analysis objects
10_CODEX_Expression_heatmaps.R Marker-expression and cell-state heatmaps
11_CODEX_Composition_analysis.R Cell-composition analyses
12_CODEX_TME_composition_per_grade.R Tumour-microenvironment composition across grades
13_CODEX_Spatial_maps_by_grade.R Spatial maps organized by tumour grade
14_CODEX_Colocalization.R Cell-type colocalization and neighborhood analyses
15_CODEX_Junction_analysis.R Analyses of anatomical and tumour-state junctions

Scripts 10–15 use functions and objects initialized in script 9.

Use

  1. Clone or download this repository.
  2. Download the relevant Visium and/or CODEX data from the repositories listed above.
  3. Update project-specific file paths in the scripts to match your local directory structure.
  4. Install the R packages loaded by the scripts.
  5. Run the scripts relevant to the analysis of interest.

The scripts do not need to be run as a single uninterrupted workflow. Researchers starting from processed matrices or cell tables may begin with the corresponding downstream analysis.

To generate README.md from this file, run:

rmarkdown::render("README.Rmd")

Reproducibility notes

  • The repository contains the analysis code used in the study but does not include every temporary or intermediate object generated during analysis.
  • Some scripts contain hard-coded paths or settings inherited from the original computing environment and must be adapted before use.
  • Package versions and computing environments may affect numerical results, visual appearance, or clustering outcomes.
  • Large input datasets are hosted externally rather than tracked in this repository.

Citation

When using this code or the associated datasets, please cite the IDH-mutant glioma study.

When reusing the general spatial-analysis framework, please also cite the 2024 Cell study listed above.

Support

For questions about the shared methodological framework, including metaprogram generation, spatial statistics, and copy-number alteration inference, please refer to the more extensively documented glioblastoma repository:

https://github.com/tiroshlab/Spatial_Glioma

This repository is provided primarily as an analysis record. Maintenance and user support may be limited.

About

code and analyses for spatial IDH-mutant glioma

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages