a, UMAP of all fresh tumor cells, highlighting identified clusters. b, Marker genes (y axis) of identified fresh tumor cell clusters, grouped and annotated on the x axis. Dot sizes represent the percentage of cells expressing the gene in the given cluster, and the color scale shows scaled average relative expression. c, Heatmap representing the relative expression (color bar) of the top 30 marker genes (rows) for the tumor metaprograms identified by NMF across all fresh tumor cells (columns). d, Proportions (y axis) of fresh tumor-derived NMF metaprograms (color legend) in tumor cells for each fresh sample (x axis). e, Cell type-specific TF regulatory networks (regulon, x axis) derived by SCENIC, plotted against their normalized specificity score (y axis). f, Boxplots representing relative frequencies of metaprograms in all fresh and frozen tumors in adult (n = 10) versus pediatric (n = 23) age groups. The median is marked by the thick line within the boxplot, the first and third quartiles by the upper and lower limits, and the 1.5 times interquartile range by the whiskers. Three asterisks denote credible statistical changes as assessed by a Bayesian scCODA model with FDR < 0.05 and without multiple test corrections. g, Boxplots representing relative frequencies of metaprograms in all fresh and frozen tumors grouped by pontine (n = 19) versus thalamic (n = 14) locations. The median is marked by the thick line within the boxplot, the first and third quartiles by the upper and lower limits, and the 1.5 times interquartile range by the whiskers. Three asterisks denote credible statistical changes as assessed by a Bayesian scCODA model with FDR < 0.05 and without multiple test corrections. h, RNA in situ hybridization for MES-like (CD44) and macrophage (CD14) markers in two adult and two pediatric H3-K27M DMGs. Two to three slides were stained for each sample with 10–15 fields of view taken per slide. i, Two-dimensional representations of the OC-like versus AC-like (x axis) and OPC-like (y axis) scores for adult and pediatric H3-K27M DMGs, respectively.