OSCR

Prenatal acoustic communication triggers adaptive vascular programming in the developing avian brain.

Code ↔ Paper

14 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 14 matches · 1 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
  1. [1] § MATERIALS AND METHODS › Isoform switch analysis ↔ scripts/splicing_isoform_switch_pipeline.R, lines 131–173 · score 0.89 · analyzeAlternativeSplicing, single isoform genes, isoform switching, splice isoform, DEXSeq, FASTA
  2. [2] § MATERIALS AND METHODS › Weighted gene co-expression network analysis ↔ scripts/WGCNA_Analysis.R, lines 389–440 · score 0.82 · adjacency matrix, Kamada Kawai, kWithin, hub genes, green module, ggraph
  3. [3] § MATERIALS AND METHODS › Weighted gene co-expression network analysis ↔ scripts/WGCNA_Analysis.R, lines 85–124 · score 0.78 · soft thresholding, scale free topology, Networking construction, fit, connectivity, power
  4. [4] § MATERIALS AND METHODS › Weighted gene co-expression network analysis ↔ scripts/WGCNA_Analysis.R, lines 196–260 · score 0.75 · module trait relationships, module assignments, module eigengenes, Student, heatmap, enrichment
  5. [5] § MATERIALS AND METHODS › RNA extraction, sequencing and statistical analysis ↔ scripts/WGCNA_Analysis.R, lines 42–83 · score 0.73 · variance stabilization transformed, Quality control, DESeq2, VST, Sex, genes
  6. [6] § RESULTS › Heat call exposure alters isoform usage in contractile genes ↔ scripts/splicing_isoform_switch_pipeline.R, lines 131–173 · score 0.68 · single isoform gene, isoform switch, alternative splice, gene expression, filtering, Seq
  7. [7] § RESULTS › Vascular gene expression changes localize to cerebrovascular cell types ↔ scripts/WGCNA_Analysis.R, lines 442–528 · score 0.67 · HYPOMAP cell, strong enrichment, FDR corrected, module genes, hypergeometric, Heatmap
  8. [8] § MATERIALS AND METHODS › RNA extraction, sequencing and statistical analysis ↔ scripts/WGCNA_Analysis.R, lines 442–528 · score 0.66 · background gene, gene symbols, hypergeometric, overlapping, FDR, enrichment
  9. [9] § RESULTS › Co-expression network analysis reveals coordinated vascular gene regulation ↔ scripts/WGCNA_Analysis.R, lines 287–331 · score 0.64 · intramodular connectivity, kWithin, hub genes, module genes, adjacency, WGCNA
  10. [10] § RESULTS › Co-expression network analysis reveals coordinated vascular gene regulation ↔ scripts/WGCNA_Analysis.R, lines 287–331 · score 0.62 · Intramodular connectivity, kWithin, hub genes, GO, adjacency, modules
  11. [11] § MATERIALS AND METHODS › RNA extraction, sequencing and statistical analysis ↔ scripts/global_rnaseq_deseq2_pipeline.R, lines 305–380 · score 0.61 · Principal component, RNA Seq, PCA, females, VST, variance
  12. [12] § MATERIALS AND METHODS › Deconvolution analysis ↔ scripts/hypomap_run_cibersortx_hires.sh, the whole file · a weak match · score 0.59 · custom signature matrix, CIBERSORTx, mixture, HYPOMAP
  13. [13] § MATERIALS AND METHODS › RNA extraction, sequencing and statistical analysis ↔ scripts/global_rnaseq_deseq2_pipeline.R, lines 159–223 · score 0.58 · likelihood ratio, DESeq2, shrinkage, apeglm, model, sex
  14. [14] § RESULTS › Co-expression network analysis reveals coordinated vascular gene regulation ↔ scripts/WGCNA_Analysis.R, lines 196–260 · score 0.54 · Module trait relationships, module eigengenes, Student, Heatmap, WGCNA, network

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 · 528 lines · 17 KB · MIT · 9 matches

  1. # Setup and Data Preparation
  2. # Set working directory (change as appropriate)
  3. setwd("your/working/directory")
  4. # Load required packages
  5. library(WGCNA)
  6. library(rtracklayer)
  7. library(dplyr)
  8. library(ggplot2)
  9. library(clusterProfiler)
  10. library(pheatmap)
  11. library(DESeq2) # For VST normalization
  12. # Avoid factor conversion issues
  13. options(stringsAsFactors = FALSE)
  14. # Increase memory limit for large datasets
  15. options(future.globals.maxSize = 250000 * 1024^2)
  16. # Step 1: Prepare gene length data from GFF annotation
  17. my_tags <- c("Name", "Dbxref", "gene")
  18. my_columns <- c("seqid", "start", "end", "strand", "type")
  19. my_filter <- list(type = "gene")
  20. dat <- readGFF("GCF_003957565.2_bTaeGut1.4.pri_genomic.gff",
  21. tags = my_tags,
  22. columns = my_columns,
  23. filter = my_filter)
  24. dat$gene_name <- dat$gene
  25. dat$interval_start <- dat$start
  26. dat$interval_stop <- dat$end
  27. dat_1 <- as.data.frame(dat)
  28. all_data_from_dat <- dplyr::select(dat_1, gene_name, start, end)
  29. # Calculate gene length as end - start - 1
  30. all_data_from_dat$geneLength <- (all_data_from_dat$end - all_data_from_dat$start) - 1
  31. gene_name_length <- dplyr::select(all_data_from_dat, gene_name, geneLength)
  32. # Step 2: Read and process raw gene counts data
  33. data0_csv <- read.csv("WGCNA_gene_count_7_June_2023.csv", header = TRUE)
  34. # Rename first column for merging
  35. colnames(data0_csv)[1] <- "gene_name"
  36. # Merge gene length data with counts (geneLength retained for reference)
  37. data0 <- merge(data0_csv, gene_name_length, by = "gene_name", all.x = TRUE)
  38. # Set rownames as gene names and remove gene_name column
  39. colnames(data0)[1] <- ""
  40. rownames(data0) <- data0[, 1]
  41. data0 <- data0[, -1]
  42. # Convert numeric columns to integer counts (raw counts)
  43. data0[] <- lapply(data0, function(x) if(is.numeric(x)) as.integer(x) else x)
  44. # Step 3: Load sample metadata
  45. sample_metadata <- read.csv(file = "WGCNA_Heat_Call_Experimental_Design.csv")
  46. colnames(sample_metadata) <- c('sample_ID', 'Sex', 'Condition')
  47. rownames(sample_metadata) <- sample_metadata$sample_ID
  48. # Normalization and Quality Control
  49. # Step 4: Normalize raw counts using DESeq2 VST (Variance Stabilizing Transformation)
  50. # Remove geneLength column before normalization
  51. counts_for_norm <- data0[, !colnames(data0) %in% "geneLength"]
  52. # Ensure sample names match exactly between counts and metadata
  53. stopifnot(setequal(colnames(counts_for_norm), rownames(sample_metadata)))
  54. # Create DESeq2 dataset (design ~1 for normalization only)
  55. dds <- DESeqDataSetFromMatrix(countData = counts_for_norm,
  56. colData = sample_metadata,
  57. design = ~ 1)
  58. # Apply variance stabilizing transformation (blind = TRUE)
  59. vsd <- vst(dds, blind = TRUE)
  60. # Extract normalized expression matrix and transpose for WGCNA
  61. datExpr <- assay(vsd)
  62. datExpr <- t(datExpr)
  63. # Step 5: Sample Quality Control with Outlier Detection
  64. sampleTree <- hclust(dist(datExpr), method = "average")
  65. pdf("sample_clustering_outliers.pdf", width = 12, height = 6)
  66. plot(sampleTree, main = "Sample Clustering for Outlier Detection")
  67. dev.off()
  68. # Optional: Remove outliers identified visually
  69. # outlier_samples <- c("Sample1", "Sample2")
  70. # datExpr <- datExpr[!rownames(datExpr) %in% outlier_samples, ]
  71. # Network Construction and Module Detection
  72. # Step 6: Soft Threshold Diagnostics for Network Construction
  73. powers <- c(1:20, seq(22, 30, 2))
  74. # Disable parallel processing to avoid forking issues
  75. disableWGCNAThreads()
  76. sft <- pickSoftThreshold(
  77. datExpr,
  78. powerVector = powers,
  79. verbose = 5,
  80. networkType = "signed",
  81. blockSize = ncol(datExpr)
  82. )
  83. pdf("soft_threshold_diagnostics.pdf", width = 10, height = 5)
  84. par(mfrow = c(1, 2))
  85. plot(sft$fitIndices[, 1], -sign(sft$fitIndices[, 3]) * sft$fitIndices[, 2],
  86. xlab = "Soft Threshold (power)", ylab = "Scale Free Topology Fit (R²)",
  87. main = "Scale Independence", type = "n")
  88. text(sft$fitIndices[, 1], -sign(sft$fitIndices[, 3]) * sft$fitIndices[, 2],
  89. labels = powers, col = "red")
  90. abline(h = 0.85, col = "red", lty = 2)
  91. plot(sft$fitIndices[, 1], sft$fitIndices[, 5],
  92. xlab = "Soft Threshold (power)", ylab = "Mean Connectivity",
  93. main = "Mean Connectivity", type = "n")
  94. text(sft$fitIndices[, 1], sft$fitIndices[, 5], labels = powers, col = "red")
  95. dev.off()
  96. # Select optimal power
  97. if (is.na(sft$powerEstimate)) {
  98. optimal_power <- sft$fitIndices$Power[which.max(sft$fitIndices$SFT.R.sq)]
  99. message("No power reached R² > 0.85. Using max R² at power: ", optimal_power)
  100. } else {
  101. optimal_power <- sft$powerEstimate
  102. }
  103. save.image("06_July_2025_Pre_Parameter.Rdata")
  104. # Step 7: Parameter Sensitivity Analysis for Module Detection
  105. parameter_grid <- expand.grid(
  106. minModuleSize = c(20, 30, 40),
  107. mergeCutHeight = c(0.15, 0.25, 0.35)
  108. )
  109. module_results <- list()
  110. for (i in 1:nrow(parameter_grid)) {
  111. params <- parameter_grid[i, ]
  112. assign("cor", WGCNA::cor, envir = .GlobalEnv)
  113. net <- blockwiseModules(
  114. datExpr,
  115. power = optimal_power,
  116. TOMType = "signed",
  117. minModuleSize = params$minModuleSize,
  118. mergeCutHeight = params$mergeCutHeight,
  119. numericLabels = TRUE,
  120. saveTOMs = FALSE,
  121. verbose = 3
  122. )
  123. assign("cor", stats::cor, envir = .GlobalEnv)
  124. module_results[[i]] <- list(
  125. params = params,
  126. n_modules = length(unique(net$colors)),
  127. module_sizes = table(net$colors)
  128. )
  129. mergedColors <- labels2colors(net$colors)
  130. pdf(paste0("module_dendrogram_minSize", params$minModuleSize,
  131. "_mergeCut", params$mergeCutHeight, ".pdf"),
  132. width = 10, height = 6)
  133. plotDendroAndColors(net$dendrograms[[1]], mergedColors[net$blockGenes[[1]]],
  134. "Module colors", dendroLabels = FALSE)
  135. dev.off()
  136. }
  137. parameter_summary <- do.call(rbind, lapply(module_results, function(x) {
  138. data.frame(
  139. minModuleSize = x$params$minModuleSize,
  140. mergeCutHeight = x$params$mergeCutHeight,
  141. n_modules = x$n_modules,
  142. min_module_size = min(x$module_sizes),
  143. max_module_size = max(x$module_sizes)
  144. )
  145. }))
  146. print(parameter_summary)
  147. final_params <- list(
  148. minModuleSize = 30,
  149. mergeCutHeight = 0.25
  150. )
  151. save.image("06_July_2025_pre_network_WGCNA.RData")
  152. # Step 8: Final Network Construction
  153. enableWGCNAThreads(nThreads = 20)
  154. assign("cor", WGCNA::cor, envir = .GlobalEnv)
  155. net <- blockwiseModules(
  156. datExpr,
  157. power = optimal_power,
  158. TOMType = "signed",
  159. minModuleSize = final_params$minModuleSize,
  160. mergeCutHeight = final_params$mergeCutHeight,
  161. numericLabels = TRUE,
  162. saveTOMs = TRUE,
  163. saveTOMFileBase = "network_TOM",
  164. verbose = 3,
  165. maxBlockSize = 10000
  166. )
  167. assign("cor", stats::cor, envir = .GlobalEnv)
  168. moduleColors <- labels2colors(net$colors)
  169. write.csv(data.frame(Gene = colnames(datExpr), Module = moduleColors),
  170. "final_module_assignments.csv", row.names = FALSE)
  171. pdf("final_module_dendrogram.pdf", width = 15, height = 10)
  172. plotDendroAndColors(net$dendrograms[[1]], moduleColors[net$blockGenes[[1]]],
  173. "Module colors", dendroLabels = FALSE)
  174. dev.off()
  175. save.image("06_July_2025_post_network_WGCNA.RData")
  176. #Module-Trait Relationships
  177. # Step 9: Module-Trait Relationships
  178. traits <- sample_metadata[rownames(datExpr), c("Sex", "Condition")]
  179. traits$Sex <- as.numeric(factor(traits$Sex))
  180. traits$Condition <- as.numeric(factor(traits$Condition))
  181. MEs <- moduleEigengenes(datExpr, moduleColors)$eigengenes
  182. moduleTraitCor <- cor(MEs, traits, use = "p")
  183. moduleTraitPvalue <- corPvalueStudent(moduleTraitCor, nrow(datExpr))
  184. pdf("module_trait_relationships.pdf", width = 10, height = 8)
  185. textMatrix <- paste(signif(moduleTraitCor, 2), "\n(",
  186. signif(moduleTraitPvalue, 1), ")", sep = "")
  187. dim(textMatrix) <- dim(moduleTraitCor)
  188. par(mar = c(6, 8.5, 3, 3))
  189. labeledHeatmap(Matrix = moduleTraitCor,
  190. xLabels = names(traits),
  191. yLabels = names(MEs),
  192. ySymbols = names(MEs),
  193. colorLabels = FALSE,
  194. colors = blueWhiteRed(50),
  195. textMatrix = textMatrix,
  196. setStdMargins = FALSE,
  197. cex.text = 0.5,
  198. zlim = c(-1, 1),
  199. main = "Module-Trait Relationships")
  200. dev.off()
  201. # Gene Ontology Enrichment
  202. library(org.Gg.eg.db, lib.loc = "/project/cugbf/software/R/4.4.1/library")
  203. module_genes <- split(colnames(datExpr), moduleColors)
  204. perform_GO_analysis <- function(module_name, genes) {
  205. if (length(genes) < 10) {
  206. message("Skipping GO for ", module_name, " (only ", length(genes), " genes)")
  207. return(NULL)
  208. }
  209. genes_entrez <- bitr(genes, fromType = "SYMBOL", toType = "ENTREZID",
  210. OrgDb = org.Gg.eg.db, drop = TRUE)
  211. if (nrow(genes_entrez) < 5) {
  212. message("Skipping GO for ", module_name, " (only ", nrow(genes_entrez), " ENTREZ IDs)")
  213. return(NULL)
  214. }
  215. enrichGO(
  216. gene = genes_entrez$ENTREZID,
  217. OrgDb = org.Gg.eg.db,
  218. keyType = "ENTREZID",
  219. ont = "BP",
  220. pAdjustMethod = "BH",
  221. pvalueCutoff = 0.05,
  222. qvalueCutoff = 0.2
  223. )
  224. }
  225. go_results <- lapply(names(module_genes), function(module) {
  226. result <- tryCatch({
  227. perform_GO_analysis(module, module_genes[[module]])
  228. }, error = function(e) {
  229. message("GO failed for ", module, ": ", conditionMessage(e))
  230. return(NULL)
  231. })
  232. if (!is.null(result) && nrow(result) > 0) {
  233. pdf(paste0("GO_enrichment_", module, ".pdf"), width = 10, height = 8)
  234. print(barplot(result, showCategory = 20, title = paste("GO Enrichment -", module)))
  235. dev.off()
  236. }
  237. return(result)
  238. })
  239. names(go_results) <- names(module_genes)
  240. saveRDS(go_results, "06_July_2025_go_enrichment_results.rds")
  241. # Hub Gene Identification and Validation
  242. ADJ <- adjacency(datExpr, power = optimal_power, type = "signed")
  243. kIN <- intramodularConnectivity(ADJ, moduleColors, scaleByMax = TRUE)
  244. hub_genes <- lapply(unique(moduleColors), function(mod) {
  245. modGenes <- (moduleColors == mod)
  246. kIN_mod <- kIN[modGenes, ]
  247. head(kIN_mod[order(kIN_mod$kWithin, decreasing = TRUE), ], 10)
  248. })
  249. names(hub_genes) <- unique(moduleColors)
  250. saveRDS(hub_genes, "hub_genes_per_module.rds")
  251. pdf("hub_gene_validation.pdf", width = 12, height = 8)
  252. for (mod in names(hub_genes)) {
  253. top_gene <- rownames(hub_genes[[mod]])[1]
  254. plot(datExpr[, top_gene],
  255. MEs[, paste0("ME", mod)],
  256. main = paste("Hub Gene Validation -", mod),
  257. xlab = top_gene,
  258. ylab = "Module Eigengene")
  259. }
  260. dev.off()
  261. save.image("07_july_2025_WGCNA_analysis_final.RData")
  262. # Network Visualization
  263. library(igraph)
  264. library(ggraph)
  265. library(tidygraph)
  266. library(dplyr)
  267. library(ggplot2)
  268. module_of_interest <- "green"
  269. module_genes <- colnames(datExpr)[moduleColors == module_of_interest]
  270. ADJ <- adjacency(datExpr, power = optimal_power, type = "signed")
  271. module_adj <- ADJ[module_genes, module_genes]
  272. edge_threshold <- 0.1
  273. module_adj[module_adj < edge_threshold] <- 0
  274. graph <- graph_from_adjacency_matrix(module_adj, mode = "undirected", weighted = TRUE, diag = FALSE)
  275. kIN_module <- kIN[moduleColors == module_of_interest, ]
  276. top_hubs <- rownames(kIN_module)[order(kIN_module$kWithin, decreasing = TRUE)[1:10]]
  277. V(graph)$hub <- V(graph)$name %in% top_hubs
  278. V(graph)$color <- ifelse(V(graph)$hub, "red", "green")
  279. V(graph)$size <- ifelse(V(graph)$hub, 8, 4)
  280. E(graph)$width <- E(graph)$weight * 5
  281. p <- ggraph(graph, layout = "fr") +
  282. geom_edge_link(aes(width = weight), alpha = 0.3, color = "grey50") +
  283. geom_node_point(aes(color = color, size = size)) +
  284. geom_node_text(aes(label = ifelse(hub, name, "")), repel = TRUE, size = 4, color = "black", fontface = "bold") +
  285. scale_color_identity() +
  286. scale_size_identity() +
  287. theme_void() +
  288. ggtitle("WGCNA Green Module Network with Hub Genes Highlighted") +
  289. theme(plot.title = element_text(hjust = 0.5, size = 18, face = "bold"))
  290. print(p)
  291. library(WGCNA)
  292. exportNetworkToCytoscape(
  293. adjMat = module_adj,
  294. edgeFile = "CytoscapeInput-edges-green.txt",
  295. nodeFile = "CytoscapeInput-nodes-green.txt",
  296. weighted = TRUE,
  297. threshold = 0.2,
  298. nodeNames = module_genes,
  299. nodeAttr = moduleColors[moduleColors == module_of_interest],
  300. includeColNames = TRUE
  301. )
  302. # Less busy plot with top 5 hubs and their neighbors
  303. top_hubs <- rownames(kIN_module)[order(kIN_module$kWithin, decreasing = TRUE)[1:5]]
  304. edge_threshold <- 0.4
  305. neighbors <- unique(unlist(lapply(top_hubs, function(hub) {
  306. hub_edges <- module_adj[hub, ]
  307. top_neighbors <- names(sort(hub_edges, decreasing = TRUE)[1:5])
  308. top_neighbors[hub_edges[top_neighbors] > edge_threshold]
  309. })))
  310. genes_to_plot <- unique(c(top_hubs, neighbors))
  311. sub_adj <- module_adj[genes_to_plot, genes_to_plot]
  312. sub_graph <- graph_from_adjacency_matrix(sub_adj, mode = "undirected", weighted = TRUE, diag = FALSE)
  313. V(sub_graph)$hub <- V(sub_graph)$name %in% top_hubs
  314. V(sub_graph)$color <- ifelse(V(sub_graph)$hub, "red", "green")
  315. V(sub_graph)$size <- ifelse(V(sub_graph)$hub, 8, 4)
  316. p_sub <- ggraph(sub_graph, layout = "fr", niter = 4000, area = 40000, repulserad = 20000) +
  317. geom_edge_link(aes(width = weight), alpha = 0.3, color = "grey50") +
  318. geom_node_point(aes(color = color, size = size)) +
  319. geom_node_text(aes(label = ifelse(hub, name, "")), repel = TRUE, size = 4, color = "black", fontface = "bold", max.overlaps = Inf) +
  320. scale_color_identity() +
  321. scale_size_identity() +
  322. theme_void() +
  323. ggtitle("Green Module: Hub Genes and Their Top Neighbors") +
  324. theme(plot.title = element_text(hjust = 0.5, size = 18, face = "bold"))
  325. print(p_sub)
  326. hub_color <- "#0072B2"
  327. neighbor_color <- "#D55E00"
  328. V(sub_graph)$color <- ifelse(V(sub_graph)$hub, hub_color, neighbor_color)
  329. V(sub_graph)$size <- ifelse(V(sub_graph)$hub, 10, 5)
  330. V(sub_graph)$frame.color <- "black"
  331. p_kk <- ggraph(sub_graph, layout = "kk") +
  332. geom_edge_link(aes(width = weight), alpha = 0.25, color = "grey70") +
  333. geom_node_point(aes(color = color, size = size), shape = 21, stroke = 1.2) +
  334. geom_node_text(aes(label = ifelse(hub, name, "")), repel = TRUE, size = 4, color = "black", fontface = "bold", bg.color = "white", bg.r = 0.15, max.overlaps = Inf) +
  335. scale_color_identity() +
  336. scale_size_identity() +
  337. theme_void() +
  338. ggtitle("Green Module: Hub Genes and Their Top Neighbors (Kamada-Kawai)") +
  339. theme(plot.title = element_text(hjust = 0.5, size = 18, face = "bold"), legend.position = "none")
  340. ggsave("green_module_hub_subnetwork_nature.pdf", p_kk, width = 12, height = 12, dpi = 600)
  341. ggsave("green_module_hub_subnetwork_nature.png", p_kk, width = 12, height = 12, dpi = 600)
  342. print(p_kk)
  343. # Cell-Type Enrichment Analysis
  344. library(dplyr)
  345. library(clusterProfiler)
  346. library(org.Hs.eg.db)
  347. library(pheatmap)
  348. library(RColorBrewer)
  349. # Load cell-type marker genes (converted to gene symbols)
  350. top_markers_converted <- read.csv("hypomap_cell_markers_gene_id.csv")
  351. # Create a named list of marker genes per cell type
  352. cell_markers_list <- split(top_markers_converted$gene, top_markers_converted$cluster)
  353. # Load module assignments
  354. module_gene_df <- read.csv("final_module_assignments.csv") # columns: Gene, Module
  355. # Create a named list of genes per module
  356. module_genes <- split(module_gene_df$Gene, module_gene_df$Module)
  357. # Define the background gene universe (all genes assigned to modules)
  358. all_genes <- unique(module_gene_df$Gene)
  359. # Perform hypergeometric enrichment test with FDR correction
  360. enrichment_pvals <- matrix(NA, nrow = length(module_genes), ncol = length(cell_markers_list))
  361. rownames(enrichment_pvals) <- names(module_genes)
  362. colnames(enrichment_pvals) <- names(cell_markers_list)
  363. for (mod in names(module_genes)) {
  364. for (ct in names(cell_markers_list)) {
  365. overlap <- intersect(module_genes[[mod]], cell_markers_list[[ct]])
  366. enrichment_pvals[mod, ct] <- phyper(
  367. length(overlap) - 1,
  368. length(cell_markers_list[[ct]]),
  369. length(all_genes) - length(cell_markers_list[[ct]]),
  370. length(module_genes[[mod]]),
  371. lower.tail = FALSE
  372. )
  373. }
  374. }
  375. # Multiple testing correction (FDR)
  376. enrichment_fdr <- matrix(
  377. p.adjust(as.vector(enrichment_pvals), method = "BH"),
  378. nrow = nrow(enrichment_pvals),
  379. dimnames = dimnames(enrichment_pvals)
  380. )
  381. # Annotate FDR values with asterisks for significance
  382. annotations <- matrix("", nrow = nrow(enrichment_fdr), ncol = ncol(enrichment_fdr))
  383. annotations[enrichment_fdr < 0.001] <- "***"
  384. annotations[enrichment_fdr < 0.01 & enrichment_fdr >= 0.001] <- "**"
  385. annotations[enrichment_fdr < 0.05 & enrichment_fdr >= 0.01] <- "*"
  386. display_numbers <- matrix("", nrow = nrow(enrichment_fdr), ncol = ncol(enrichment_fdr))
  387. for (i in seq_len(nrow(enrichment_fdr))) {
  388. for (j in seq_len(ncol(enrichment_fdr))) {
  389. if (enrichment_fdr[i, j] < 0.001) {
  390. display_numbers[i, j] <- paste0("<0.001", annotations[i, j])
  391. } else {
  392. display_numbers[i, j] <- paste0(sprintf("%.3f", enrichment_fdr[i, j]), annotations[i, j])
  393. }
  394. }
  395. }
  396. # Define color palette: low FDR (strong enrichment) = dark red, high FDR = white
  397. color_palette <- colorRampPalette(c("darkred", "white"))(100)
  398. # Plot publication-quality heatmap
  399. pheatmap(
  400. enrichment_fdr,
  401. color = color_palette,
  402. cluster_rows = TRUE,
  403. cluster_cols = TRUE,
  404. fontsize_row = 10,
  405. fontsize_col = 10,
  406. angle_col = 45,
  407. treeheight_row = 0,
  408. treeheight_col = 0,
  409. legend = TRUE,
  410. display_numbers = display_numbers,
  411. number_color = "black",
  412. main = "Module Enrichment in Cell Types (FDR)",
  413. legend_title = "FDR values",
  414. width = 12,
  415. height = 10,
  416. filename = "module_cell_type_enrichment_FDR_reversed.pdf"
  417. )

WGCNA_Analysis.R at commit e7f779e, under MIT · at the source

Overview

  1. Department of Biological Sciences, Clemson University, Clemson, SC 29634, USA
  2. Doñana Biological Station, EBD-CSIC, Seville 41092, Spain
  3. School of Life and Environmental Sciences, Deakin University, Waurn Ponds, VIC 3288, Australia
  4. School of Biological and Behavioral Sciences, Queen Mary University of London, London E1 4NS, UK
  5. Department of Genetics and Biochemistry, Clemson University, Clemson, SC 29634, USA
Institutions: Clemson University (United States); Deakin University (Australia); Estación Biológica de Doñana (Spain); Queen Mary University of London (United Kingdom)
Journal: The Journal of experimental biology, volume 229, issue 11, article jeb252287
Dates: received 1 February 2026; accepted 24 April 2026; published online 15 June 2026; in print June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1242/jeb.252287 · PMID 42276015 · PMCID PMC13327539 · OpenAlex W7164324788
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: other (organism), developmental (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Connectivity, Spectral & time-frequency
Keywords: Thermal physiology, Acoustic communication, Developmental plasticity, Developmental programming, Blood–brain barrier, Zebra finch
MeSH: Brain*, Finches*, Hypothalamus*, Vocalization, Animal*, Animals, Embryo, Nonmammalian, Female, Gene Expression Regulation, Developmental (* major topic)
Topic: Animal Vocal Communication and Behavior (Developmental Biology, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Funding: Australian Research Council (DP180101207, DE170100824, FT140100131, DP210101238); RCUK | Biotechnology and Biological Sciences Research Council (BBSRC) (BB/S003223/1); Ministerio de Ciencia e Innovación (RYC2019-028066-I, PID2021-128494NA-I00); Clemson University
Citations: not cited yet (Europe PMC); 107 references in the paper

Abstract

Developmental plasticity allows organisms to adjust their phenotypes to match environmental conditions, but how sensory cues program specific physiological systems remains poorly understood. In Australian zebra finches, incubating parents emit heat calls during extreme temperatures, and embryos exposed to these acoustic signals develop enhanced thermal tolerance and altered growth trajectories as adults, a striking example of anticipatory programming. We hypothesized that heat call exposure alters embryonic hypothalamic gene expression, given this brain region's central role in integrating environmental signals and regulating metabolism, thermoregulation and growth. We exposed zebra finch embryos to playback of parental heat calls or control calls during late incubation and used RNA-sequencing of hypothalamic tissue to identify transcriptional responses. Contrary to predictions of widespread neuroendocrine reprogramming, heat call exposure produced targeted changes: robust downregulation of genes regulating vascular smooth muscle contraction and cytoskeletal dynamics, with coordinated isoform switching. Cell-type analyses revealed these molecular changes localized to vascular endothelial cells, smooth muscle cells and ependymal cells, the cellular components that control cerebral blood flow and regulate the brain's vascular barrier. Gene expression patterns suggest increased vascular plasticity that may protect against heat-induced cellular damage. Remarkably, these adaptive modifications occurred in response to an acoustic signal alone, without thermal exposure. Our results provide transcriptional evidence that prenatal acoustic cues may program cerebrovascular function through cell type-specific gene regulation, providing a novel mechanism for sensory-mediated developmental plasticity. This targeted vascular programming may represent a conserved strategy for anticipatory adaptation to predictable thermal challenges across endothermic vertebrates.

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

Repository

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

praxsubba/Heat_Call_Reprogramming_Bulk_RNA_Seq

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: e7f779eab452a321a8016f665965747842a64171, 18 February 2026
Languages: R (4), Shell (1)
Size: 16 files, 5 scripts
Software Heritage: not archived
Found in: the end of the paper
Holds: README, license file, documentation
Not found: CITATION.cff, environment file, tests, continuous integration
Tools: DESeq2 (3 files), ggplot2 (3 files), tidyverse (3 files), clusterProfiler (1 file), igraph (1 file), pheatmap (1 file), WGCNA (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
7 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:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 5 scripts, each with its path and the digest of its content;
  • 14 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

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 2, 28 September 2026

  • Publisher: n/a → The Company of Biologists

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 6 keywords, 8 MeSH terms, 4 funders, 106 references.

Cite

This paper

Subba, P., Mariette, M. M., Palios, K. A., Emmerson, M. G., Versace, E., Buchanan, K. L., Clayton, D. F., & George, J. M. (2026). Prenatal acoustic communication triggers adaptive vascular programming in the developing avian brain. The Journal of experimental biology, 229(11), jeb252287. https://doi.org/10.1242/jeb.252287

BibTeX

@article{subba2026prenatal,
author = {Subba, Prakrit and Mariette, Mylene M. and Palios, Katerina A. and Emmerson, Michael G. and Versace, Elisabetta and Buchanan, Katherine L. and Clayton, David F. and George, Julia M.},
title = {{Prenatal acoustic communication triggers adaptive vascular programming in the developing avian brain}},
journal = {The Journal of experimental biology},
year = {2026},
month = jun,
volume = {229},
number = {11},
pages = {jeb252287},
publisher = {The Company of Biologists},
issn = {0022-0949},
doi = {10.1242/jeb.252287},
url = {https://doi.org/10.1242/jeb.252287},
pmid = {42276015},
pmcid = {PMC13327539}
}

RIS

TY - JOUR
AU - Subba, Prakrit
AU - Mariette, Mylene M.
AU - Palios, Katerina A.
AU - Emmerson, Michael G.
AU - Versace, Elisabetta
AU - Buchanan, Katherine L.
AU - Clayton, David F.
AU - George, Julia M.
TI - Prenatal acoustic communication triggers adaptive vascular programming in the developing avian brain
T2 - The Journal of experimental biology
J2 - J Exp Biol
PY - 2026
DA - 2026/06/11
VL - 229
IS - 11
SP - jeb252287
SN - 0022-0949
PB - The Company of Biologists
DO - 10.1242/jeb.252287
UR - https://doi.org/10.1242/jeb.252287
LA - en
ER -

CSL-JSON

{
"id": "10.1242/jeb.252287",
"type": "article-journal",
"title": "Prenatal acoustic communication triggers adaptive vascular programming in the developing avian brain",
"container-title": "The Journal of experimental biology",
"author": [
{
"family": "Subba",
"given": "Prakrit"
},
{
"family": "Mariette",
"given": "Mylene M."
},
{
"family": "Palios",
"given": "Katerina A."
},
{
"family": "Emmerson",
"given": "Michael G."
},
{
"family": "Versace",
"given": "Elisabetta"
},
{
"family": "Buchanan",
"given": "Katherine L."
},
{
"family": "Clayton",
"given": "David F."
},
{
"family": "George",
"given": "Julia M."
}
],
"container-title-short": "J Exp Biol",
"volume": "229",
"issue": "11",
"page": "jeb252287",
"DOI": "10.1242/jeb.252287",
"PMID": "42276015",
"PMCID": "PMC13327539",
"ISSN": "0022-0949",
"publisher": "The Company of Biologists",
"URL": "https://doi.org/10.1242/jeb.252287",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
11
]
]
}
}

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, igraph, DESeq2, 4 other tools, 3 references
[2] 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, igraph, DESeq2, 4 other tools, 3 references
[3] doi:10.1038/s41467-026-72598-z [code]
Functional impact of genetic background on variable expressivity in neurodevelopmental disorders.
Journal: Nature communications
In common: WGCNA, DESeq2, clusterProfiler, 3 other tools, 4 references
[4] doi:10.1038/s44318-026-00806-z [code]
Interspecific diversity in the neuronal composition of the mammalian cortex arises from heterochrony in neurogenesis.
Journal: The EMBO journal
In common: WGCNA, igraph, DESeq2, 4 other tools, developmental, 1 reference
[5] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: WGCNA, igraph, DESeq2, 4 other tools, 1 reference
[6] doi:10.1038/s41467-026-76675-1 [code]
Long-read proteogenomic atlas of human neuronal differentiation reveals isoform diversity informing neurodevelopmental risk mechanisms.
Journal: Nature communications
In common: WGCNA, igraph, DESeq2, 3 other tools, developmental, 2 references
[7] 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, igraph, DESeq2, 4 other tools, 1 reference
[8] 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, igraph, DESeq2, 4 other tools, 1 reference
[9] doi:10.1016/j.isci.2026.115196 [code]
Transcriptional and cellular maturation of the chick spinal cord in the context of distinct neuromuscular circuits.
Journal: iScience
In common: WGCNA, igraph, DESeq2, 3 other tools, other, 2 references
[10] doi:10.1038/s41586-026-10629-x [code]
Whole-genome duplication shaped cell-type evolution in the vertebrate brain.
Journal: Nature
In common: igraph, DESeq2, clusterProfiler, 3 other tools, other, 2 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.