OSCR

DRP1 mutations associated with EMPF1 encephalopathy perturb the transcriptional profile and maturation of cortical neurons.

Code ↔ Paper

39 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 39 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Mutation-specific trajectory deviations (TrajDev, interaction term) › Trajectory pattern classification ↔ 02_Analysis/revision/supplements/Supp4.sensitivity_analysis.py, lines 43–139 · score 0.98 · nes_strong, improvement_ratio, worsening_ratio, trajdev_nes, sign flip, Natural_worsening
  2. [2] § Mutation-specific trajectory deviations (TrajDev, interaction term) › Trajectory pattern classification ↔ 01_Scripts/Python/pattern_definitions.py, lines 272–406 · score 0.97 · NES_STRONG, IMPROVEMENT_RATIO, WORSENING_RATIO, trajdev_nes, sign flip, Natural_worsening
  3. [3] § Mutation-specific trajectory deviations (TrajDev, interaction term) › Targeted calcium-signaling gene analysis ↔ 02_Analysis/revision/supplements/5a.filtered_volcano_supplement.R, lines 1–71 · score 0.94 · CACNA1C, AveExpr, ATP2A1, log2 CPM, CACNA1S, CASR
  4. [4] § Results › A focused view on curated biological databases ↔ 02_Analysis/3.7.viz_chord_diagrams.py, lines 1–56 · score 0.94 · REACTOME eukaryotic translation, KEGG translation initiation, CC cytosolic ribosome, BP ribosome biogenesis, cytoplasmic structural ribosome, cytoplasmic ribosome biogenesis
  5. [5] § Results › A trajectory framework for developmental pathway dynamics ↔ 01_Scripts/Python/pattern_definitions.py, lines 272–406 · score 0.93 · normalized enrichment score, trajdev_nes, Passive patterns, Natural_worsening, classifiable trajectory, p.adjust
  6. [6] § Mutation-specific trajectory deviations (TrajDev, interaction term) › Targeted calcium-signaling gene analysis ↔ 02_Analysis/2.6.viz_calcium_genes.R, lines 1–61 · score 0.89 · CACNA1C, ATP2A1, CACNA1S, boxplots, CASR, CALR
  7. [7] § Results › A trajectory framework for developmental pathway dynamics ↔ 02_Analysis/3.7.viz_chord_diagrams.py, lines 1–56 · score 0.86 · leading edge membership, Chord diagrams, fold change, cytosolic ribosomal, cytoplasmic ribosomal, outer
  8. [8] § Results › Calcium pathways resist pathway-level interpretation, but gene-level signals are coherent ↔ 02_Analysis/2.2.viz_mito_translation_cascade.R, lines 1–68 · score 0.84 · ER calcium homeostasis, phosphate oxidase, calcium signal, logFC, B6, pyridoxamine
  9. [9] § Mutation-specific trajectory deviations (TrajDev, interaction term) › Per-replicate pathway enrichment (GSVA) ↔ 02_Analysis/1.6.gsva_analysis.R, lines 412–456 · score 0.80 · GSVA driver classification, mutant_driven, arm moves, ctrl_driven, median, dashboard
  10. [10] § Results › A focused view on curated biological databases ↔ 02_Analysis/revision/supplements/Supp10.replicate_level_gsva.py, lines 1–52 · score 0.79 · broader mitochondrial compensatory, Mito_Ribosome_Assembly, mtDNA_Maintenance, mitochondrial ribosome assembly, OXPHOS, GSVA
  11. [11] § Mutation-specific trajectory deviations (TrajDev, interaction term) › Per-replicate pathway enrichment (GSVA) ↔ 02_Analysis/1.6.gsva_analysis.R, lines 51–111 · score 0.79 · maxSize, minSize, logCPM, MitoCarta, kcdf, Gaussian
  12. [12] § Mutation-specific trajectory deviations (TrajDev, interaction term) › Per-replicate pathway enrichment (GSVA) ↔ 02_Analysis/2.4.viz_critical_period_trajectories_gsva.R, lines 1–66 · score 0.78 · maxSize, minSize, GSVA score, enrichment score, kcdf, Variation
  13. [13] § Results › A trajectory framework for developmental pathway dynamics ↔ 01_Scripts/Python/pattern_definitions.py, lines 1–35 · score 0.77 · passive recovery, active trajectory, Natural worsening, Sign reversal, deteriorating, definitions
  14. [14] § Mutation-specific trajectory deviations (TrajDev, interaction term) › Trajectory pattern classification ↔ 02_Analysis/3.5.viz_trajectory_flow.py, lines 137–278 · score 0.75 · Sign_reversal, NES_Late, Late_onset, NES_Early, NES_TrajDev, Transient
  15. [15] § Results › A focused view on curated biological databases ↔ 02_Analysis/revision/supplements/Supp9.cross_compartment_ribosome_trajectory.py, lines 331–371 · score 0.75 · broader mitochondrial compensatory, Mitochondrial_ribosome_assembly, arcs, machinery, subunits, trace
  16. [16] § Results › Mitochondrial pathways show partial transcriptional compensation ↔ 02_Analysis/2.2.viz_mito_translation_cascade.R, lines 155–199 · score 0.74 · Mitochondrial central dogma, ATP synthase, calcium gene, logFC, Calcium signaling, TrajDev
  17. [17] § Results › A trajectory framework for developmental pathway dynamics ↔ 02_Analysis/1.7.create_master_gsva_table.R, lines 286–346 · score 0.74 · passive recovery, active trajectory, Natural worsening, Sign reversal, deteriorating, adaptive
  18. [18] § Results › Mitochondrial pathways show partial transcriptional compensation ↔ 01_Scripts/Python/semantic_categories.py, lines 160–303 · score 0.74 · electron transport, ATP synthase, mitochondrial translation, respiratory, MitoCarta, OXPHOS
  19. [19] § Mutation-specific trajectory deviations (TrajDev, interaction term) › Trajectory pattern classification ↔ 02_Analysis/revision/supplements/6a.sensitivity_sig_universe.py, lines 162–202 · score 0.73 · Sign_reversal, NES_Late, Late_onset, NES_Early, NES_TrajDev, Transient
  20. [20] § Mutation-specific trajectory deviations (TrajDev, interaction term) › Gene set enrichment analysis ↔ 02_Analysis/1.1.main_pipeline.R, lines 1–43 · score 0.73 · GO Cellular Components, Ontologies, MitoCarta, pipeline, SynGO, BH
  21. [21] § Results › Mitochondrial pathways show partial transcriptional compensation ↔ 02_Analysis/2.2.viz_mito_translation_cascade.R, lines 106–153 · score 0.70 · ATP synthase subunits, assembly factors, catalytic, MitoCarta, translation, OXPHOS
  22. [22] § Results › Calcium pathways resist pathway-level interpretation, but gene-level signals are coherent ↔ 02_Analysis/2.2.viz_mito_translation_cascade.R, lines 1–68 · score 0.66 · calcium channel gamma, ORAI1, STIM1, STIM2, CALB1, CACNG3
  23. [23] § Results › A focused view on curated biological databases ↔ 02_Analysis/revision/supplements/Supp9.cross_compartment_ribosome_trajectory.py, lines 117–166 · score 0.66 · RPS proteins, postsynaptic ribosome, cytoplasmic ribosomal, SynGO, RPL, subunits
  24. [24] § Results › Transcriptomic profiling of DRP1 mutant cortical neurons ↔ 02_Analysis/revision/supplements/5b.maturation_euler.R, lines 1–39 · score 0.66 · Euler diagram, UpSet, maturation contrasts, g32a, r403c, DRP1
  25. [25] § Results › A focused view on curated biological databases ↔ 02_Analysis/3.3.ribosome_upset_plot.py, lines 103–134 · score 0.66 · cytoplasmic ribosomal gene, biogenesis factors, ribosome terms, RPL, RPS, subunits
  26. [26] § Methods › Statistical modelling ↔ 02_Analysis/1.1.main_pipeline.R, lines 134–187 · score 0.63 · sample.weights, voomLmFit, matrix, modelling, genotype
  27. [27] § Results › Transcriptomic profiling of DRP1 mutant cortical neurons ↔ 02_Analysis/revision/supplements/5b.highlighted_upset.R, lines 66–125 · score 0.62 · UpSet, maturation DEGs, maturation contrasts, intersects, G32A, R403C
  28. [28] § Methods › Immunofluorescence ↔ Calcium_Local Normalization_GitHub.ipynb, lines 1–114 · score 0.59 · intensity threshold, Single frame, imported, video, baseline, ROIs
  29. [29] § Results › A focused view on curated biological databases ↔ 02_Analysis/3.10.viz_syngo_running_sum_normalised.R, lines 38–96 · score 0.58 · postsynaptic density, synaptic compartments, SynGO, membranes, cytosol, synapse
  30. [30] § Methods › Downstream analysis ↔ 01_Scripts/R_scripts/read_count_matrix.R, the whole file · a weak match · score 0.57 · filterByExpr, expressed genes, TMM, Library, genotype, filtered
  31. [31] § Mutation-specific trajectory deviations (TrajDev, interaction term) › Gene set enrichment analysis ↔ 02_Analysis/3.7.viz_chord_diagrams.py, lines 250–317 · score 0.57 · WikiPathways, msigdbr, SynGO, CC, BP, Reactome
  32. [32] § Mutation-specific trajectory deviations (TrajDev, interaction term) ↔ 02_Analysis/revision/supplements/generate_DE_counts_FDR_0.1.R, the whole file · a weak match · score 0.56 · generate de, limma, expressed genes, BH, FDR, maturation
  33. [33] § Results › Disrupted synaptic development in DRP1 mutant cortical neurons ↔ 02_Analysis/.deprecated/viz_critical_period_trajectories.R, lines 511–583 · score 0.54 · 35–65, G32A mutant, R403C mutant, 15 %, seq, DIV
  34. [34] § Results › Calcium pathways resist pathway-level interpretation, but gene-level signals are coherent ↔ 02_Analysis/revision/supplements/5a.filtered_volcano_supplement.R, lines 1–71 · score 0.53 · AveExpr, ORAI1, STIM1, STIM2, CALB1, CACNG3
  35. [35] § Results › A focused view on curated biological databases ↔ 02_Analysis/1.6.gsva_analysis.R, lines 412–456 · score 0.53 · GSVA driver classification, ctrl_driven, rescuing, mutations
  36. [36] § Results › A focused view on curated biological databases ↔ 01_Scripts/Python/bump_dashboard/presentation/html_fragments.py, lines 1798–1854 · score 0.53 · GSVA driver verdict, enrichment scores, dashboard, genotype, trajectory
  37. [37] § Results › Abnormal mitochondrial trafficking in DRP1 mutant cortical neurons ↔ src/main/java/za/ac/sun/ee/MEL_Modules.java, lines 424–483 · score 0.52 · fusion events, fission events, MEL
  38. [38] § Results › Transcriptomic profiling of DRP1 mutant cortical neurons ↔ 01_Scripts/Python/config.py, lines 58–98 · score 0.51 · derived cortical neurons, iPSC, modulate, neuronal, trajectory
  39. [39] § Mutation-specific trajectory deviations (TrajDev, interaction term) ↔ 02_Analysis/revision/supplements/5b.maturation_euler.R, lines 1–39 · score 0.51 · threshold robustness, maturation contrast, de, FDR

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

R · 467 lines · 18 KB · MIT · 4 matches

  1. ###############################################################################
  2. ## Mitochondrial & Calcium Signaling Cascade Heatmap ##
  3. ## Focused visualization: Complex V, Calcium Genes, Mt Central Dogma ##
  4. ## ##
  5. ## Style: Matches Panel_C_Expression_Heatmap.pdf (synaptic ribosomes) ##
  6. ## - Hierarchical clustering within modules ##
  7. ## - Narrower logFC scale (-0.6 to 0.6) to reveal subtle patterns ##
  8. ## - Dendrogram showing gene co-regulation ##
  9. ###############################################################################
  10. library(here)
  11. library(dplyr)
  12. library(tidyr)
  13. library(ComplexHeatmap)
  14. library(circlize)
  15. library(grid)
  16. # Load unified color configuration
  17. source(here("01_Scripts/R_scripts/color_config.R"))
  18. message("📂 Loading checkpoints...")
  19. checkpoint_dir <- here("03_Results/02_Analysis/checkpoints")
  20. mitocarta_gsea_results <- readRDS(file.path(checkpoint_dir, "mitocarta_gsea_results.rds"))
  21. fit <- readRDS(file.path(checkpoint_dir, "fit_object.rds"))
  22. # Output directory
  23. out_dir <- here("03_Results/02_Analysis/Plots/Mito_translation_cascade")
  24. dir.create(out_dir, recursive = TRUE, showWarnings = FALSE)
  25. message("✓ Checkpoints loaded\n")
  26. ###############################################################################
  27. ## Configuration ##
  28. ###############################################################################
  29. # Trajectory framework contrasts (matching cross-database validation)
  30. all_contrasts <- c(
  31. "G32A_vs_Ctrl_D35", "Maturation_G32A_specific", "G32A_vs_Ctrl_D65",
  32. "R403C_vs_Ctrl_D35", "Maturation_R403C_specific", "R403C_vs_Ctrl_D65"
  33. )
  34. contrast_labels <- c(
  35. "Early", "TrajDev", "Late",
  36. "Early", "TrajDev", "Late"
  37. )
  38. # Calcium genes from main pipeline config - MUST include NNAT and PNPO
  39. # These are genes of specific interest for calcium signaling in the study
  40. CALCIUM_GENES_CONFIG <- c(
  41. "NNAT", # Neuronatin - key imprinted gene, calcium regulation
  42. "CACNG3", # Voltage-dependent calcium channel gamma-3
  43. "CACNA1S", # Voltage-dependent L-type calcium channel alpha-1S
  44. "ATP2A1", # Sarcoplasmic/endoplasmic reticulum calcium ATPase 1
  45. "RYR1", # Ryanodine receptor 1 (skeletal muscle type)
  46. "MYLK3", # Myosin light chain kinase 3
  47. "VDR", # Vitamin D receptor (regulates calcium homeostasis)
  48. "STIM1", # Stromal interaction molecule 1 (ER calcium sensor)
  49. "STIM2", # Stromal interaction molecule 2
  50. "ORAI1", # Calcium release-activated calcium modulator 1
  51. "CALB1", # Calbindin 1 (calcium-binding protein)
  52. "CALR", # Calreticulin (calcium-binding ER protein)
  53. "PNPO" # Pyridoxamine 5'-phosphate oxidase (B6 metabolism, affects calcium)
  54. )
  55. ###############################################################################
  56. ## Helper Functions ##
  57. ###############################################################################
  58. #' Extract core enrichment genes from a GSEA result
  59. #' @param gsea_result A gseaResult object
  60. #' @param pathway_name Pattern or exact name to match
  61. #' @param exact_match If TRUE, use exact string match
  62. #' @return Character vector of gene symbols
  63. extract_pathway_genes <- function(gsea_result, pathway_name, exact_match = FALSE) {
  64. if (is.null(gsea_result)) {
  65. message(sprintf(" WARNING: GSEA result is NULL for '%s'", pathway_name))
  66. return(character(0))
  67. }
  68. df <- gsea_result@result
  69. if (exact_match) {
  70. idx <- df$Description == pathway_name
  71. } else {
  72. idx <- grepl(pathway_name, df$Description, ignore.case = TRUE)
  73. }
  74. if (!any(idx)) {
  75. message(sprintf(" WARNING: No pathway matching '%s'", pathway_name))
  76. return(character(0))
  77. }
  78. # Get the most significant matching pathway
  79. matched <- df[idx, ]
  80. best <- matched[which.min(matched$p.adjust), ]
  81. message(sprintf(" Found: '%s' (NES=%.2f, p.adj=%.2e, n=%d)",
  82. best$Description, best$NES, best$p.adjust, best$setSize))
  83. # Extract core enrichment genes (forward-slash delimited)
  84. genes <- unlist(strsplit(best$core_enrichment, "/"))
  85. return(genes)
  86. }
  87. ###############################################################################
  88. ## Extract logFC Matrix for All Contrasts ##
  89. ###############################################################################
  90. message("📊 Extracting expression data for trajectory framework...\n")
  91. logfc_matrix <- sapply(all_contrasts, function(contrast) {
  92. coef_idx <- which(colnames(fit$coefficients) == contrast)
  93. if (length(coef_idx) == 0) {
  94. warning(sprintf("Contrast '%s' not found in fit object", contrast))
  95. return(rep(NA, nrow(fit$coefficients)))
  96. }
  97. logfc <- fit$coefficients[, coef_idx]
  98. names(logfc) <- rownames(fit$coefficients)
  99. return(logfc)
  100. })
  101. colnames(logfc_matrix) <- contrast_labels
  102. message(sprintf(" Extracted logFC for %d contrasts\n", ncol(logfc_matrix)))
  103. ###############################################################################
  104. ## Extract Gene Sets: 3 FOCUSED MODULES ##
  105. ## 1. ATP Synthase (Complex V) - ATP5* genes from KEGG OXPHOS pathway ##
  106. ## 2. Calcium Signaling - Config genes (NNAT, PNPO, etc.) ##
  107. ## 3. Mitochondrial Central Dogma - MitoCarta pathway ##
  108. ###############################################################################
  109. message("📊 Extracting gene sets for 3 focused modules...\n")
  110. ## MODULE 1: ATP Synthase (Complex V) - TRUE ATP5* genes
  111. ## The GOCC_ATPASE_COMPLEX contains chromatin remodeling ATPases (wrong!)
  112. ## We use curated ATP synthase subunit genes from KEGG OXPHOS pathway
  113. message(" Module 1: ATP Synthase (Complex V) - Curated ATP5* subunits...")
  114. # ATP synthase F1 subunits (catalytic core)
  115. atp_f1 <- c("ATP5F1A", "ATP5F1B", "ATP5F1C", "ATP5F1D", "ATP5F1E")
  116. # ATP synthase FO subunits (proton channel)
  117. atp_fo <- c("ATP5PB", "ATP5MC1", "ATP5MC2", "ATP5MC3", "ATP5PD", "ATP5PF",
  118. "ATP5MF", "ATP5MG", "ATP5PO", "ATP5ME", "ATP5MD")
  119. # ATP synthase peripheral stalk
  120. atp_stalk <- c("ATP5MJ", "ATP5MK", "ATP5ML", "ATP5MF")
  121. # Coupling factors and assembly factors
  122. atp_assembly <- c("ATPAF1", "ATPAF2", "TMEM70", "ATP5IF1")
  123. atp_synthase_genes_curated <- unique(c(atp_f1, atp_fo, atp_stalk, atp_assembly))
  124. atp_synthase_genes <- atp_synthase_genes_curated[atp_synthase_genes_curated %in% rownames(logfc_matrix)]
  125. message(sprintf(" ATP Synthase: %d/%d curated genes found in expression data",
  126. length(atp_synthase_genes), length(atp_synthase_genes_curated)))
  127. ## MODULE 2: Calcium Signaling - Config genes (prioritized, curated list)
  128. message(" Module 2: Calcium Signaling - Config genes (incl. NNAT, PNPO)...")
  129. calcium_genes <- CALCIUM_GENES_CONFIG[CALCIUM_GENES_CONFIG %in% rownames(logfc_matrix)]
  130. message(sprintf(" Calcium genes: %d/%d config genes found in expression data",
  131. length(calcium_genes), length(CALCIUM_GENES_CONFIG)))
  132. # Report which config genes are missing
  133. missing_calcium <- setdiff(CALCIUM_GENES_CONFIG, rownames(logfc_matrix))
  134. if (length(missing_calcium) > 0) {
  135. message(sprintf(" Missing: %s", paste(missing_calcium, collapse = ", ")))
  136. }
  137. ## MODULE 3: Mitochondrial Central Dogma (MitoCarta)
  138. ## Extract core enrichment genes, then limit to top 25 by mean |logFC| across TrajDev
  139. message(" Module 3: Mitochondrial Central Dogma (MitoCarta)...")
  140. central_dogma_genes_all <- extract_pathway_genes(
  141. mitocarta_gsea_results[["Maturation_G32A_specific"]],
  142. "Mitochondrial_central_dogma", exact_match = TRUE
  143. )
  144. central_dogma_genes_present <- central_dogma_genes_all[central_dogma_genes_all %in% rownames(logfc_matrix)]
  145. # Limit to top 25 by mean |logFC| across TrajDev contrasts (like Panel_C uses focused set)
  146. MAX_CENTRAL_DOGMA_GENES <- 25
  147. if (length(central_dogma_genes_present) > MAX_CENTRAL_DOGMA_GENES) {
  148. trajdev_cols <- grep("TrajDev", colnames(logfc_matrix))
  149. mean_abs_fc <- rowMeans(abs(logfc_matrix[central_dogma_genes_present, trajdev_cols, drop = FALSE]), na.rm = TRUE)
  150. central_dogma_genes <- names(sort(mean_abs_fc, decreasing = TRUE)[1:MAX_CENTRAL_DOGMA_GENES])
  151. message(sprintf(" Limiting to top %d genes by |logFC| (from %d total)",
  152. MAX_CENTRAL_DOGMA_GENES, length(central_dogma_genes_present)))
  153. } else {
  154. central_dogma_genes <- central_dogma_genes_present
  155. }
  156. ###############################################################################
  157. ## Combine Gene Sets into 3 Modules ##
  158. ###############################################################################
  159. message("\n📊 Building heatmap data matrix...\n")
  160. # Define modules with clear, descriptive names
  161. all_module_genes <- list(
  162. "ATP Synthase (Complex V)" = atp_synthase_genes,
  163. "Calcium Signaling" = calcium_genes,
  164. "Mt Central Dogma" = central_dogma_genes
  165. )
  166. # Report gene counts
  167. for (mod in names(all_module_genes)) {
  168. message(sprintf(" %s: %d genes", mod, length(all_module_genes[[mod]])))
  169. }
  170. # Build cascade data matrix with module annotation
  171. cascade_data <- data.frame()
  172. module_annotation <- c()
  173. for (module_name in names(all_module_genes)) {
  174. genes <- all_module_genes[[module_name]]
  175. genes_present <- genes[genes %in% rownames(logfc_matrix)]
  176. if (length(genes_present) > 0) {
  177. module_data <- logfc_matrix[genes_present, , drop = FALSE]
  178. cascade_data <- rbind(cascade_data, module_data)
  179. module_annotation <- c(module_annotation, rep(module_name, length(genes_present)))
  180. }
  181. }
  182. message(sprintf("\n Total genes for heatmap: %d\n", nrow(cascade_data)))
  183. ###############################################################################
  184. ## Create Cascade Heatmap (Panel_C style: clustering + dendrogram) ##
  185. ###############################################################################
  186. message("📊 Creating mechanistic cascade heatmap (Panel_C style)...\n")
  187. # Color scheme for logFC - NARROWER SCALE to reveal subtle patterns
  188. # Using -0.6 to 0.6 like Panel_C (synaptic ribosomes)
  189. col_fun <- colorRamp2(c(-0.6, 0, 0.6), c("#2166AC", "#F7F7F7", "#B35806"))
  190. # Module colors - simplified for 3 modules
  191. module_colors <- c(
  192. "ATP Synthase (Complex V)" = "#2E8B57", # Sea green
  193. "Calcium Signaling" = "#DC143C", # Crimson
  194. "Mt Central Dogma" = "#9467BD" # Purple
  195. )
  196. # Convert module annotation to factor with explicit order
  197. module_factor <- factor(module_annotation, levels = names(all_module_genes))
  198. # Row annotation (right side, like Panel_C)
  199. ha_module <- rowAnnotation(
  200. Module = module_factor,
  201. col = list(Module = module_colors),
  202. show_annotation_name = TRUE,
  203. annotation_name_side = "top",
  204. annotation_legend_param = list(
  205. Module = list(
  206. title = "Functional Module",
  207. title_gp = gpar(fontface = "bold", fontsize = 10),
  208. labels_gp = gpar(fontsize = 9)
  209. )
  210. )
  211. )
  212. # Column split for mutations
  213. column_split <- factor(rep(c("G32A", "R403C"), each = 3), levels = c("G32A", "R403C"))
  214. # Figure dimensions - taller to accommodate genes with clustering
  215. n_genes <- nrow(cascade_data)
  216. fig_height <- max(10, n_genes * 0.18 + 2) # Adjusted for better gene label visibility
  217. fig_width <- 6
  218. message(sprintf(" Figure dimensions: %.1f x %.1f inches (%d genes)\n",
  219. fig_width, fig_height, n_genes))
  220. # Create heatmap with CLUSTERING WITHIN MODULES (like Panel_C)
  221. pdf(file.path(out_dir, "Mechanistic_Cascade_Heatmap.pdf"),
  222. width = fig_width, height = fig_height)
  223. ht <- Heatmap(
  224. as.matrix(cascade_data),
  225. name = "logFC",
  226. col = col_fun,
  227. # Row settings - ENABLE CLUSTERING within each module (key difference from before!)
  228. row_names_side = "left",
  229. row_names_gp = gpar(fontsize = 8),
  230. cluster_rows = TRUE, # <-- ENABLE clustering within modules
  231. cluster_row_slices = FALSE, # Don't reorder module slices
  232. show_row_dend = TRUE, # <-- SHOW dendrogram
  233. row_dend_width = unit(10, "mm"), # Dendrogram width
  234. row_split = module_factor,
  235. row_title_gp = gpar(fontface = "bold", fontsize = 10),
  236. row_title_rot = 0,
  237. row_gap = unit(2, "mm"),
  238. # Column settings
  239. cluster_columns = FALSE,
  240. show_column_dend = FALSE,
  241. column_names_gp = gpar(fontsize = 9),
  242. column_split = column_split,
  243. column_title_gp = gpar(fontface = "bold", fontsize = 11),
  244. column_gap = unit(2, "mm"),
  245. # Annotations
  246. right_annotation = ha_module,
  247. # Appearance
  248. border = TRUE,
  249. rect_gp = gpar(col = "gray80", lwd = 0.5),
  250. # Legend
  251. heatmap_legend_param = list(
  252. title = "logFC",
  253. at = c(-0.6, -0.3, 0, 0.3, 0.6),
  254. labels = c("-0.6", "-0.3", "0", "0.3", "0.6"),
  255. legend_height = unit(4, "cm"),
  256. title_gp = gpar(fontface = "bold", fontsize = 10)
  257. )
  258. )
  259. draw(ht,
  260. heatmap_legend_side = "right",
  261. column_title = "Mitochondrial & Calcium Gene Expression Trajectories")
  262. dev.off()
  263. message("✓ Cascade heatmap complete\n")
  264. ###############################################################################
  265. ## Create Module Summary Heatmap ##
  266. ###############################################################################
  267. message("📊 Creating module summary heatmap...\n")
  268. # Calculate mean logFC for each module × contrast
  269. module_stats <- data.frame()
  270. for (module_name in names(all_module_genes)) {
  271. genes <- all_module_genes[[module_name]]
  272. genes_present <- genes[genes %in% rownames(logfc_matrix)]
  273. if (length(genes_present) > 0) {
  274. means <- colMeans(logfc_matrix[genes_present, , drop = FALSE], na.rm = TRUE)
  275. module_stats <- rbind(module_stats, data.frame(
  276. Module = module_name,
  277. Contrast = colnames(logfc_matrix),
  278. Mean_logFC = as.numeric(means),
  279. N_genes = length(genes_present)
  280. ))
  281. }
  282. }
  283. # Create wide format for heatmap - use unique column names
  284. # First, add mutation info to make columns unique
  285. module_stats$ColName <- paste0(
  286. rep(c("G32A", "R403C"), each = 3, times = length(unique(module_stats$Module))),
  287. "_",
  288. module_stats$Contrast
  289. )[1:nrow(module_stats)] # Handle potential length mismatch
  290. # Actually let's do this more carefully
  291. # The contrast names are "Early", "TrajDev", "Late" repeated twice
  292. # We need to make them unique before pivoting
  293. module_stats_unique <- module_stats %>%
  294. mutate(
  295. Mutation = rep(rep(c("G32A", "R403C"), each = 3), times = length(unique(Module))),
  296. ColName = paste0(Mutation, "\n", Contrast)
  297. ) %>%
  298. select(Module, ColName, Mean_logFC) %>%
  299. distinct()
  300. module_wide <- module_stats_unique %>%
  301. pivot_wider(names_from = ColName, values_from = Mean_logFC)
  302. module_mat <- as.matrix(module_wide[, -1])
  303. rownames(module_mat) <- module_wide$Module
  304. # Ensure correct column order
  305. expected_cols <- c("G32A\nEarly", "G32A\nTrajDev", "G32A\nLate",
  306. "R403C\nEarly", "R403C\nTrajDev", "R403C\nLate")
  307. module_mat <- module_mat[, expected_cols[expected_cols %in% colnames(module_mat)]]
  308. # Summary heatmap with same color scale
  309. col_fun_summary <- colorRamp2(c(-0.3, 0, 0.3), c("#2166AC", "#F7F7F7", "#B35806"))
  310. pdf(file.path(out_dir, "Module_Summary_Heatmap.pdf"), width = 7, height = 4)
  311. ht_summary <- Heatmap(
  312. module_mat,
  313. name = "Mean\nlogFC",
  314. col = col_fun_summary,
  315. row_names_side = "left",
  316. row_names_gp = gpar(fontsize = 10),
  317. cluster_rows = FALSE,
  318. cluster_columns = FALSE,
  319. column_names_gp = gpar(fontsize = 8),
  320. column_names_rot = 0,
  321. column_split = factor(rep(c("G32A", "R403C"), each = 3),
  322. levels = c("G32A", "R403C")),
  323. column_title = "Module-Level Summary (Mean logFC)",
  324. column_title_gp = gpar(fontface = "bold", fontsize = 11),
  325. cell_fun = function(j, i, x, y, width, height, fill) {
  326. grid.text(sprintf("%.2f", module_mat[i, j]),
  327. x, y, gp = gpar(fontsize = 8))
  328. },
  329. border = TRUE,
  330. heatmap_legend_param = list(
  331. title = "Mean\nlogFC",
  332. at = c(-0.3, -0.15, 0, 0.15, 0.3),
  333. legend_height = unit(2.5, "cm"),
  334. title_gp = gpar(fontface = "bold", fontsize = 9),
  335. labels_gp = gpar(fontsize = 8)
  336. )
  337. )
  338. draw(ht_summary)
  339. dev.off()
  340. message("✓ Module summary heatmap complete\n")
  341. ###############################################################################
  342. ## Summary Statistics ##
  343. ###############################################################################
  344. message("📝 Generating summary...\n")
  345. cat("\n=== Mitochondrial & Calcium Gene Expression Analysis ===\n\n")
  346. cat("THREE FOCUSED MODULES:\n")
  347. cat(" 1. ATP Synthase (Complex V): Curated ATP5* subunit genes from KEGG hsa00190\n")
  348. cat(" - F1 subunits (catalytic): ATP5F1A/B/C/D/E\n")
  349. cat(" - FO subunits (proton channel): ATP5PB, ATP5MC1-3, ATP5PD/PF/MF/MG/PO/ME/MD\n")
  350. cat(" - Assembly factors: ATPAF1/2, TMEM70\n\n")
  351. cat(" 2. Calcium Signaling: Study-prioritized genes\n")
  352. cat(" - Key targets: NNAT (neuronatin), PNPO\n")
  353. cat(" - Channels: CACNG3, CACNA1S, RYR1\n")
  354. cat(" - ER calcium sensors: STIM1, STIM2, CALR\n")
  355. cat(" - Other: ATP2A1, MYLK3, VDR, CALB1\n\n")
  356. cat(" 3. Mt Central Dogma: MitoCarta pathway (GSEA p.adj=2.14e-13)\n")
  357. cat(" - Top 25 genes by |logFC| from core enrichment\n\n")
  358. cat("Gene counts per module:\n")
  359. for (mod in names(all_module_genes)) {
  360. cat(sprintf(" %s: %d genes\n", mod, length(all_module_genes[[mod]])))
  361. }
  362. cat("\nModule Mean logFC Summary:\n\n")
  363. print(module_stats %>%
  364. select(Module, Contrast, Mean_logFC) %>%
  365. pivot_wider(names_from = Contrast, values_from = Mean_logFC) %>%
  366. as.data.frame(),
  367. row.names = FALSE)
  368. # List actual genes included
  369. cat("\n\nGenes included in each module:\n")
  370. for (mod in names(all_module_genes)) {
  371. genes <- all_module_genes[[mod]]
  372. cat(sprintf("\n%s (%d genes):\n", mod, length(genes)))
  373. cat(sprintf(" %s\n", paste(sort(genes), collapse = ", ")))
  374. }
  375. cat("\n")
  376. message("✅ Mitochondrial & Calcium visualization complete!")
  377. message(sprintf("📁 Output directory: %s", out_dir))
  378. message("\n🎯 KEY OUTPUTS:")
  379. message(" 1. Mechanistic_Cascade_Heatmap.pdf - Gene-level heatmap with clustering")
  380. message(" 2. Module_Summary_Heatmap.pdf - Module-level mean summary")
  381. message("\n🎯 STYLE NOTES:")
  382. message(" - Matches Panel_C_Expression_Heatmap.pdf (synaptic ribosomes)")
  383. message(" - Hierarchical clustering within modules shows co-regulated genes")
  384. message(" - Narrower logFC scale (-0.6 to 0.6) reveals subtle patterns")
  385. message(" - Dendrogram indicates gene co-regulation relationships")

2.2.viz_mito_translation_cascade.R at commit fb2628d, under MIT · at the source

Overview

Authors: T B Baum1, J Costanzo1, C Bodnya1, D P Boulton2, M C Caino2, D Mogilenko3, A Zhelonkin4, V Gama1
ORCID iDs: A Zhelonkin
  1. Vanderbilt University, Cell and Developmental Biology and Vanderbilt Center for Stem Cell Biology, Nashville, TN USA
  2. Department of Pharmacology, University of Colorado Anschutz Medical Campus, Aurora, CO USA
  3. Vanderbilt University Medical Center, Nashville, TN USA
  4. Ben May Department for Cancer Research, University of Chicago, Chicago, IL USA
Institutions: Vanderbilt University (United States); University of Colorado Anschutz (United States); Vanderbilt University Medical Center (United States); University of Chicago (United States)
Journal: Journal of neurodevelopmental disorders, volume 18, issue 1, article 52
Dates: received 9 September 2024; accepted 29 May 2026; published online 26 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1186/s11689-026-09713-0 · PMID 42350961 · PMCID PMC13563865 · OpenAlex W7165962070
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: human (organism), other condition (population)
Methods: fMRI & imaging
Keywords: DRP1, Mitochondria, Mitochondrial fission, Neurons
MeSH: Brain Diseases*, Cerebral Cortex*, Dynamins*, Neurons*, Cells, Cultured, Humans, Induced Pluripotent Stem Cells, Mitochondria, Mitochondrial Dynamics, Mutation, Neurodevelopment (* major topic)
Topic: Mitochondrial Function and Pathology (Molecular Biology, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Funding: National Institutes of Health (2R35GM128915-06, R35 GM142774, 1F31HD114431-01, 1F31NS129296-01); NIGMS NIH HHS (R35 GM128915, R35 GM142774); NINDS NIH HHS (F31 NS129296); NIH HHS (1F31HD114431-01, R35 GM142774, 1F31NS129296-01, 2R35GM128915-06); NICHD NIH HHS (P50 HD103537, F31 HD114431)
Citations: cited by 1 paper (Europe PMC); 88 references in the paper
Research resources: Mouse anti-mitochondria [113–1] RRID:AB_10562769, Alexa Fluor-568 anti-mouse IgG RRID:AB_11180865, Alexa Fluor-488 anti-mouse IgG RRID:AB_141607, Rabbit Anti-PNPO RRID:AB_2165814, Rabbit Anti-SYP [YE269] RRID:AB_2286949, Alexa Fluor-568 anti-rabbit IgG RRID:AB_2534017, Alexa Fluor-488 anti-rabbit IgG RRID:AB_2535792, Mouse Anti-PSD95 RRID:AB_2877189, Rabbit anti-TUBB3 RRID:AB_444319, Rabbit Anti-NNAT RRID:AB_776717, The GM23338 RRID:CVCL_F182

Abstract

With the advent of exome sequencing, a growing number of children are being identified with de novo loss-of-function mutations in the dynamin 1-like (DNM1L) gene, which encodes the large GTPase essential for mitochondrial fission, dynamin-related protein 1 (DRP1). Mutations in DRP1 result in severe neurodevelopmental phenotypes, such as developmental delay, optic atrophy, and epileptic encephalopathies. Though it is established that mitochondrial fission is an essential precursor to the rapidly changing metabolic needs of the developing cortex, it is not understood how identified mutations in different domains of DRP1 uniquely disrupt cortical development and synaptic maturation. We leveraged the power of human induced pluripotent stem cells (iPSCs) harboring DRP1 mutations in either the GTPase or stalk domains to model early stages of cortical development in vitro. High-resolution time-lapse imaging of transport in neuronal projections revealed mutation-specific changes in mitochondrial motility of severely hyperfused mitochondrial structures. Transcriptional profiling of mutant DRP1 cortical neurons during maturation also implicated mutation-dependent alterations in synaptic development and gene expression of calcium-regulatory genes. Disruptions in calcium dynamics were confirmed using live functional recordings of 65–200 days in vitro (DIV) mutant DRP1 cortical neurons. These findings strongly suggest that altered mitochondrial morphology in DRP1 mutant neurons leads to pathogenic dysregulation of synaptic development and activity.

Supplementary Information: The online version contains supplementary material available at https://doi.org/10.1186/s11689-026-09713-0.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repositories

Its files are read in the Code ↔ Paper reader above, with 39 matches between paragraphs and lines of code.

CostanzoJa/Neuronal-Analyses

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: a0807dd2a9aae63fdb6dd5bebb6a13be3807a808, 18 May 2026
Languages: Jupyter (2)
Size: 4 files, 2 scripts
Software Heritage: not archived
Found in: the text, “Immunofluorescence”
Holds: README, license file, 2 notebooks
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Matplotlib (2 files), NumPy (2 files), pandas (2 files), scikit-image (2 files), SciPy (2 files), tifffile (2 files), OpenCV (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
4 files

mogilenko-lab/gama_vivian_drp1_bulkrnaseq

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: fb2628d7ba521568ffda102a53da8184467564fa, 1 July 2026
Languages: Python (58), R (49), Shell (2)
Size: 1,645 files, 109 scripts
Software Heritage: not archived
Found in: “Reproducibility, compute environment and availab”
Holds: README, license file, CITATION.cff, environment (requirements.txt, .devcontainer/devcontainer.json, .devcontainer/docker-compose.yml, .devcontainer/scripts/poststart_sanity.sh), tests, documentation
Not found: continuous integration
Tools: tidyverse (32 files), pandas (31 files), NumPy (24 files), ggplot2 (20 files), Matplotlib (18 files), patchwork (11 files), limma (6 files), circlize (5 files), clusterProfiler (4 files), ComplexHeatmap (4 files), edgeR (4 files), Plotly (4 files), seaborn (3 files), reshape2 (2 files), DESeq2 (1 file), pheatmap (1 file), Scanpy (1 file), WGCNA (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
111 files

Zenodo 20213748

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Reproducibility, compute environment and availab”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
At the source:

rensutheart/MEL-Fiji-Plugin

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 11ba59cc1571dad3024df552510d26670236f6b2, 27 June 2023
Languages: Java (2)
Size: 17 files, 2 scripts
Software Heritage: not archived
Found in: the text, “Mitochondrial event localizer (MEL)”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
3 files

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 4 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 113 scripts, each with its path and the digest of its content;
  • 39 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

Datasets cited

Data availability

Data is provided within the manuscript or supplementary information files.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 4 keywords, 11 MeSH terms, 5 funders, 85 references, 11 RRIDs.

Cite

This paper

Baum, T. B., Costanzo, J., Bodnya, C., Boulton, D. P., Caino, M. C., Mogilenko, D., Zhelonkin, A., & Gama, V. (2026). DRP1 mutations associated with EMPF1 encephalopathy perturb the transcriptional profile and maturation of cortical neurons. Journal of neurodevelopmental disorders, 18(1), 52. https://doi.org/10.1186/s11689-026-09713-0

BibTeX

@article{baum2026drp1,
author = {Baum, T B and Costanzo, J and Bodnya, C and Boulton, D P and Caino, M C and Mogilenko, D and Zhelonkin, A and Gama, V},
title = {{DRP1 mutations associated with EMPF1 encephalopathy perturb the transcriptional profile and maturation of cortical neurons}},
journal = {Journal of neurodevelopmental disorders},
year = {2026},
month = jun,
volume = {18},
number = {1},
pages = {52},
publisher = {BMC},
issn = {1866-1947},
doi = {10.1186/s11689-026-09713-0},
url = {https://doi.org/10.1186/s11689-026-09713-0},
pmid = {42350961},
pmcid = {PMC13563865}
}

RIS

TY - JOUR
AU - Baum, T B
AU - Costanzo, J
AU - Bodnya, C
AU - Boulton, D P
AU - Caino, M C
AU - Mogilenko, D
AU - Zhelonkin, A
AU - Gama, V
TI - DRP1 mutations associated with EMPF1 encephalopathy perturb the transcriptional profile and maturation of cortical neurons
T2 - Journal of neurodevelopmental disorders
J2 - J Neurodev Disord
PY - 2026
DA - 2026/06/26
VL - 18
IS - 1
SP - 52
SN - 1866-1947
PB - BMC
DO - 10.1186/s11689-026-09713-0
UR - https://doi.org/10.1186/s11689-026-09713-0
LA - en
ER -

CSL-JSON

{
"id": "10.1186/s11689-026-09713-0",
"type": "article-journal",
"title": "DRP1 mutations associated with EMPF1 encephalopathy perturb the transcriptional profile and maturation of cortical neurons",
"container-title": "Journal of neurodevelopmental disorders",
"author": [
{
"family": "Baum",
"given": "T B"
},
{
"family": "Costanzo",
"given": "J"
},
{
"family": "Bodnya",
"given": "C"
},
{
"family": "Boulton",
"given": "D P"
},
{
"family": "Caino",
"given": "M C"
},
{
"family": "Mogilenko",
"given": "D"
},
{
"family": "Zhelonkin",
"given": "A"
},
{
"family": "Gama",
"given": "V"
}
],
"container-title-short": "J Neurodev Disord",
"volume": "18",
"issue": "1",
"page": "52",
"DOI": "10.1186/s11689-026-09713-0",
"PMID": "42350961",
"PMCID": "PMC13563865",
"ISSN": "1866-1947",
"publisher": "BMC",
"URL": "https://doi.org/10.1186/s11689-026-09713-0",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
26
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1016/j.xcrm.2026.102766 [code]
A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.
Journal: Cell reports. Medicine
In common: WGCNA, edgeR, tifffile, 19 other tools, other condition, 3 references
[2] doi:10.1002/imt2.70163 [code]
Spatial multi-omics unveils sphingolipid metabolic reprogramming within the retinal pathological niche.
Journal: iMeta
In common: edgeR, limma, circlize, 17 other tools, 1 reference
[3] doi:10.1093/bioinformatics/btag592 [code]
Network-based stratification of allele-specific expression reveals patient subgroups in Huntington's disease.
Journal: Bioinformatics (Oxford, England)
In common: WGCNA, edgeR, limma, 15 other tools, other condition, 3 references
[4] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: WGCNA, edgeR, limma, 17 other tools
[5] doi:10.1038/s41380-026-03629-w [code]
Maternal fasting during early gestation induces epigenetic alterations and schizophrenia-related phenotypes.
Journal: Molecular psychiatry
In common: WGCNA, limma, circlize, 12 other tools, 2 references
[6] doi:10.1038/s41593-026-02367-0 [code]
A reproducible three-dimensional model of human brain tissue to investigate physiological and disease-associated microglia phenotypes.
Journal: Nature neuroscience
In common: WGCNA, edgeR, limma, 9 other tools, 3 references
[7] doi:10.1073/pnas.2609132123 [code]
A human lysosomal storage disorder toolkit for decoding proteome landscapes in cortical-like and dopaminergic-like induced neurons.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: tifffile, limma, circlize, 14 other tools
[8] doi:10.1038/s41586-026-10214-2 [code]
Multidimensional profiling of heterogeneity in supratentorial ependymomas.
Journal: Nature
In common: edgeR, circlize, DESeq2, 13 other tools, other condition, 1 reference
[9] doi:10.1126/sciadv.aed2952 [code]
Activation of transposable elements is linked to a region- and cell type-specific interferon response in Parkinson's disease.
Journal: Science advances
In common: limma, DESeq2, clusterProfiler, 11 other tools, 5 references
[10] doi:10.1038/s41586-026-10512-9 [code]
Astrocyte glucocorticoid receptor signalling restricts neuronal plasticity.
Journal: Nature
In common: edgeR, circlize, DESeq2, 10 other tools, 5 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.