OSCR

Suppression of astrocyte BMP signaling improves molecular signatures and functional deficits in a fragile X syndrome mouse model.

Code ↔ Paper

7 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 7 matches
  1. [1] § Methods › Method details › ER-TurboID proteomics › Proteomic analysis ↔ Proteomic_Analysis_Dengetal.Rmd, lines 324–459 · score 0.71 · TMT signal, l2fc, RRHO, hypergeometric, fold change, contaminants
  2. [2] § Methods › Method details › Glyoxal-fixed astrocyte nuclei transcriptomics › nRNAseq analysis ↔ RNAseq_Analysis_Dengetal.Rmd, lines 594–663 · score 0.63 · mouse MSigDB, fold change, Wikipathways, BioCarta, Reactome, ranking
  3. [3] § Methods › Method details › ER-TurboID proteomics › Proteomic analysis ↔ Proteomic_Analysis_Dengetal.Rmd, lines 194–256 · score 0.63 · Cellular compartment, smFP, Cytoscape, ontology, enriched, log10
  4. [4] § Results › Fmr1 KO astrocytes have a hypermetabolic transcriptional state in vivo ↔ RNAseq_Analysis_Dengetal.Rmd, lines 390–464 · score 0.63 · mRNA, FMRP targets, log2 fold change, enriched, astrocyte, FXS
  5. [5] § Results › Fmr1 KO astrocytes have a hypermetabolic transcriptional state in vivo ↔ RNAseq_Analysis_Dengetal.Rmd, lines 390–464 · score 0.62 · mRNA, FMRP targets, log2 fold change, Lab, Density, enriched
  6. [6] § Results › Fmr1 KO astrocytes downregulate extracellular matrix proteins and secretory machinery ↔ Proteomic_Analysis_Dengetal.Rmd, lines 324–459 · score 0.56 · TMT signal, log2 fold change, correlation, RNA, proteomics, DEGs
  7. [7] § Results › Interrogating in vivo astrocyte endoplasmic reticulum-passaged proteins ↔ Proteomic_Analysis_Dengetal.Rmd, lines 33–70 · score 0.51 · mass spectrometry, smFP, streptavidin, Turbo, TMT, FXS

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 Markdown · 1,188 lines · 52 KB · CC-BY-4.0 · 4 matches

  1. ---
  2. title: "Proteomic Analyses"
  3. output:
  4. pdf_document: default
  5. html_notebook: default
  6. html_document:
  7. df_print: paged
  8. ---
  9. ```{r setup, include=FALSE}
  10. knitr::opts_chunk$set(warning = FALSE, message = FALSE)
  11. ```
  12. Proteomic Analyses for Deng et al. 2024
  13. This R notebook contains the code used for creating the figures and tables related to proteomic data in Deng et al., 2024. The code uses output from mass spectrometry (Census, see Methods section) and can be run in RStudio. The code was tested with Windows 11 Pro; no non-standard hardware is required.
  14. Packages can be installed as below (for "example_package"). Estimated time for installing all packages and running all code on typical desktop computer: 2-4 hrs. Instructions are included as comments on relevant lines of code, and quantitative results that are used in the figures and listed in supplementary data tables can be reproduced by following the respective sections.
  15. ```{r}
  16. #install.packages("example_package")
  17. #OR
  18. #if (!require("BiocManager", quietly = TRUE))
  19. # install.packages("BiocManager")
  20. #BiocManager::install("example_package")
  21. ```
  22. Create Supplementary Table 6: TMT raw values
  23. ```{r}
  24. library(dplyr)
  25. library(tibble)
  26. library(writexl)
  27. library(ggplot2)
  28. library(ggrepel)
  29. data_genename <- read.csv("NAJD-1-16_v2_jd.csv") #output from mass spectrometry (Census)
  30. data_genename[,27] <- gsub(".*GN\\=", "", data_genename[,27])
  31. data_genename[,27] <- gsub(" PE.*", "", data_genename[,27])
  32. data_genename <- distinct(data_genename,DESCRIPTION, .keep_all=TRUE) #removes 22 out of 2177
  33. # preparing final version: no contaminants, streptavidin
  34. data_genename_final <- data_genename[!grepl("contaminant",data_genename$LOCUS),] #from 2155 to 2139
  35. data_genename_final <- data_genename_final[!grepl("Streptavidin",data_genename_final$DESCRIPTION),] #from 2139 to 2138
  36. data_genename_final <- data_genename_final[,c(1,27,65,28:47)]
  37. colnames(data_genename_final) <- c("Locus","Gene","Description",
  38. "WT1","WT2","WT3",
  39. "WT;Smad4cKO1","WT;Smad4cKO2","WT;Smad4cKO3",
  40. "FXS1","FXS2","FXS3",
  41. "FXS;Smad4cKO1","FXS;Smad4cKO2","FXS;Smad4cKO3",
  42. "WT smFP","WT;Smad4cKO smFP","FXS smFP","FXS;Smad4cKO smFP",
  43. "WT Avg","WT;Smad4cKO Avg","FXS Avg","FXS;Smad4cKO Avg"
  44. )
  45. data_genename_final <- data_genename_final[order(data_genename_final$Gene),]
  46. data_genename_final$AvgTurbo <- rowMeans(data_genename_final[,c(4:15)])
  47. data_genename_final$AvgsmFP <- rowMeans(data_genename_final[,c(16:19)])
  48. data_genename_final$Turbo_over_smFP <- data_genename_final$AvgTurbo/data_genename_final$AvgsmFP
  49. write_xlsx(data_genename_final, path = "Supplementary Table 6.xlsx")
  50. ```
  51. Create figure S8G (cell type verification)
  52. ```{r}
  53. # Heatmaps of cell type
  54. library(pheatmap)
  55. library(viridis)
  56. library(ggplot2)
  57. cell_type <- read.csv("Boisvert_cell type genes.csv")
  58. cell_type_astro <- data_genename[data_genename$DESCRIPTION %in% cell_type$Astrocyte,]
  59. cell_type_astro$type <- "astro"
  60. cell_type_endo <- data_genename[data_genename$DESCRIPTION %in% cell_type$Endo,]
  61. cell_type_endo$type <- "endo"
  62. cell_type_microglia <- data_genename[data_genename$DESCRIPTION %in% cell_type$Microglia,]
  63. cell_type_microglia$type <- "microglia"
  64. cell_type_neuron <- data_genename[data_genename$DESCRIPTION %in% cell_type$Neuron,]
  65. cell_type_neuron$type <- "neuron"
  66. cell_type_opc <- data_genename[data_genename$DESCRIPTION %in% cell_type$OPC,]
  67. cell_type_oligo <- data_genename[data_genename$DESCRIPTION %in% cell_type$Oligo,]
  68. cell_type_oligo$type <- "oligo"
  69. cell_type_combined <- rbind(cell_type_astro,cell_type_neuron,cell_type_oligo,cell_type_endo,cell_type_microglia,cell_type_opc)
  70. rownames(cell_type_combined) <- cell_type_combined[,27]
  71. cell_type_combined <- cell_type_combined[!(rownames(cell_type_combined) %in% c("Slc39a10","")),]
  72. cell_type_combined$"log2(Turbo/smFP)" <- log2(as.numeric(cell_type_combined[,51]))
  73. cell_type_average = data.frame(0,0,0,0,0)
  74. colnames(cell_type_average) <- c("Astrocyte","Neuron","Oligodendrocyte","Endothelial","Microglia")
  75. cell_type_average$Astrocyte <- mean(cell_type_combined[c(1:30), 72])
  76. cell_type_average$Endothelial <- mean(cell_type_combined[c(57:59), 72])
  77. cell_type_average$Microglia <- mean(cell_type_combined[c(60:61), 72])
  78. cell_type_average$Neuron <- mean(cell_type_combined[c(31:51), 72])
  79. cell_type_average$Oligodendrocyte <- mean(cell_type_combined[c(52:56), 72])
  80. #cell_type_combined <- cell_type_combined[-c(8, 10, 24, 28, 29, 34, 38),]
  81. rowInfo <- cell_type_combined[,c("DESCRIPTION", "type")]
  82. row.names(rowInfo) <- rowInfo$DESCRIPTION
  83. rowInfo <- dplyr::select(rowInfo, -c("DESCRIPTION"))
  84. data <- cell_type_combined[,c("DESCRIPTION", "log2(Turbo/smFP)")]
  85. row.names(data) <- data$DESCRIPTION
  86. data<- dplyr::select(data, -c("DESCRIPTION"))
  87. mybreaks <- c(seq(0,5, length =50))
  88. map <- pheatmap((data),
  89. annotation_row = rowInfo,
  90. annotation_col = NA,
  91. annotation_colors = NA,
  92. color = plasma(50),
  93. breaks = mybreaks,
  94. show_rownames = TRUE,
  95. show_colnames = TRUE,
  96. annotation_legend = TRUE,
  97. fontsize_row = 6,
  98. fontsize = 8,
  99. cluster_rows = FALSE,
  100. cluster_cols = FALSE,
  101. cellwidth = 20,
  102. cellheight = 5,
  103. width = 2,
  104. height = 2,
  105. gaps_row = c(30,51,56,59))
  106. ggsave("celltype proteomics.pdf", map, width = 2, height = 6, unit = "in")
  107. ```
  108. Create figure S8F (cell type verification)
  109. ```{r}
  110. library(pheatmap)
  111. rowInfo <- data.frame("type"=c("Astrocyte","Neuron","Oligodendrocyte","Endothelial","Microglia"),
  112. "Turbo_smFP_ratio" = c(cell_type_average$Astrocyte,
  113. cell_type_average$Neuron,
  114. cell_type_average$Oligodendrocyte,
  115. cell_type_average$Endothelial,
  116. cell_type_average$Microglia) )
  117. row.names(rowInfo) <- rowInfo$type
  118. rowInfo <- dplyr::select(rowInfo, -c("Turbo_smFP_ratio"))
  119. data <- data.frame("type"=c("Astrocyte","Neuron","Oligodendrocyte","Endothelial","Microglia"),
  120. "Turbo_smFP_ratio" = c(cell_type_average$Astrocyte,
  121. cell_type_average$Neuron,
  122. cell_type_average$Oligodendrocyte,
  123. cell_type_average$Endothelial,
  124. cell_type_average$Microglia) )
  125. row.names(data) <- data$type
  126. data<- dplyr::select(data, -c("type"))
  127. mybreaks <- c(seq(0,2, length =50))
  128. map <- pheatmap((data),
  129. annotation_row = NA,
  130. annotation_col = NA,
  131. annotation_colors = NA,
  132. color = plasma(50),
  133. breaks = mybreaks,
  134. show_rownames = TRUE,
  135. show_colnames = TRUE,
  136. annotation_legend = TRUE,
  137. fontsize_row = 10,
  138. fontsize = 10,
  139. cluster_rows = FALSE,
  140. cluster_cols = FALSE,
  141. cellwidth = 20,
  142. cellheight = 20,
  143. width = 7,
  144. height = 5,
  145. )
  146. ggsave("celltype_average.pdf", map, width = 2, height = 3, unit = "in")
  147. ```
  148. Create figure 4E (Overrepresentation analysis cellular compartment)
  149. ```{r}
  150. library(clusterProfiler)
  151. library(enrichplot)
  152. library(pathview)
  153. library(ggplot2)
  154. organism = "org.Mm.eg.db"
  155. library(organism, character.only = TRUE)
  156. #processing the cytoscape file (created in excel using top 200 proteins by Turbo/smFP ratio)
  157. cytoscape <- read.csv("cytoscape 200 proteins.csv")
  158. rownames(cytoscape) <- cytoscape[,2]
  159. cytoscape <- cytoscape[rownames(cytoscape)!=c("Q6PIU9"),]
  160. cytoscape <- cytoscape[rownames(cytoscape)!=c("Q8C3W1"),]
  161. cytoscape <- cytoscape[rownames(cytoscape)!=c("Q9D7E4"),]
  162. cytoscape <- cytoscape[c(1:200),]
  163. cytoscape_enrich <- enrichGO(gene = rownames(cytoscape),
  164. OrgDb = organism,
  165. keyType = 'SYMBOL',
  166. readable = T,
  167. ont = "ALL",
  168. pAdjustMethod = 'BH',
  169. pvalueCutoff = 0.05,
  170. qvalueCutoff = 0.10,
  171. minGSSize = 5)
  172. cytoscape_enrich_df <- as.data.frame(cytoscape_enrich)
  173. cytoscape_enrich_df_cc <- cytoscape_enrich_df[cytoscape_enrich_df$ONTOLOGY == "CC",]
  174. write.csv(cytoscape_enrich_df_cc, "./cytoscape_enrich_df_cc.csv")
  175. cytoscape_enrich_df_cc_forplot <- cytoscape_enrich_df_cc[c(1:10),]
  176. cytoscape_enrich_df_cc_forplot$logP <- -log(cytoscape_enrich_df_cc_forplot$pvalue,10)
  177. cytoscape_enrich_df_cc_forplot$Description <- c("ER lumen",
  178. "ER protein-containing complex",
  179. "chaperonin-containing T-complex",
  180. "ER-Golgi intermediate compartment",
  181. "integral component of ERM",
  182. "intrinsic component of ERM",
  183. "synapse-associated ECM",
  184. "chaperone complex",
  185. "ER chaperone complex",
  186. "perineuronal net")
  187. barplot_cc <- ggplot(cytoscape_enrich_df_cc_forplot, aes( x = logP, y = reorder(ID, logP), fill = Count))+
  188. geom_bar(stat = "identity") +
  189. labs(x="-log10(P-value)", y="") +
  190. geom_text(aes(label=Description),
  191. hjust=0, nudge_x = -10, ) +
  192. theme_classic() +
  193. scale_fill_gradient2(low="white",high="red")
  194. barplot_cc
  195. ggsave("barplot_cc.pdf", barplot_cc, height = 6, width = 4, unit = 'in')
  196. ```
  197. Loading transcriptomics data (copied from transcriptomics code)
  198. ```{r}
  199. ##requires loading the DESeq_results RData file
  200. library(dplyr)
  201. library(tibble)
  202. library(writexl)
  203. tpmData <- read.csv("tpm.csv") #TPM output file from Homer
  204. tpmFinal <- tpmData[,-(2:7)] #Remove extraneous annotation information
  205. tpmFinal <- tpmFinal[,c(1,2,14,16,19,21,12,13,15,17,18,20,3,4,7,9,10,5,6,8,11)]
  206. rownames(tpmFinal) <- sub("\\|.*", "", tpmFinal$Annotation)
  207. tpmFinal <- rownames_to_column(tpmFinal)
  208. ## DESeq2 with standard parameters was used to perform pairwise comparisons:
  209. ## (1) WT to FXS [termed "crenegonly"]
  210. ## (2) FXS to FXS;Smad4 cKO [termed "koonly"]
  211. ## (3) WT to WT;Smad4 cKO [termed "wtonly"]
  212. ## (4) WT to FXS;Smad4 cKO [termed "kokowtwt" or "comp5"]
  213. ##load the DESeq_results.RData workspace
  214. load("DESeq_results.Rdata")
  215. res_wtonly_frame <- rownames_to_column(as.data.frame(res_wtonly)) #DESeq output comparing WT to WT;Smad4 cKO
  216. res_wtonly_frame <- res_wtonly_frame[,-c(2,4,5,6)]
  217. tpmFinal <- full_join(tpmFinal, res_wtonly_frame, by='rowname')
  218. res_koonly_frame <- rownames_to_column(as.data.frame(res_koonly)) #DESeq output comparing FXS to FXS;Smad4 cKO
  219. res_koonly_frame <- res_koonly_frame[,-c(2,4,5,6)]
  220. tpmFinal <- full_join(tpmFinal, res_koonly_frame, by='rowname')
  221. res_crenegonly_frame <- rownames_to_column(as.data.frame(res_crenegonly)) #DESeq output comparing WT to FXS
  222. res_crenegonly_frame <- res_crenegonly_frame[,-c(2,4,5,6)]
  223. tpmFinal <- full_join(tpmFinal, res_crenegonly_frame, by='rowname')
  224. colnames(tpmFinal) <- c('Gene','Transcript','Annotation','WT1','WT2','WT3','WT4',
  225. 'WT;Smad4cKO1','WT;Smad4cKO2','WT;Smad4cKO3','WT;Smad4cKO4','WT;Smad4cKO5','WT;Smad4cKO6',
  226. 'FXS1','FXS2','FXS3','FXS4','FXS5',
  227. 'FXS;Smad4cKO1','FXS;Smad4cKO2','FXS;Smad4cKO3','FXS;Smad4cKO4',
  228. 'L2FC WT;Smad4cKO vs. WT', 'padj WT;Smad4cKO vs. WT',
  229. 'L2FC FXS;Smad4cKO vs. FXS', 'padj FXS;Smad4cKO vs. FXS',
  230. 'L2FC FXS vs WT', 'padj FXS vs. WT')
  231. tpmFinal$"WT AvgTPM" <- rowMeans(tpmFinal[4:7])
  232. tpmFinal$"WT;Smad4cKO AvgTPM" <- rowMeans(tpmFinal[8:13])
  233. tpmFinal$"FXS AvgTPM" <- rowMeans(tpmFinal[14:18])
  234. tpmFinal$"FXS;Smad4cKO AvgTPM" <- rowMeans(tpmFinal[19:22])
  235. tpmFinal <- tpmFinal[order(tpmFinal$Gene),]
  236. tpmFinal$all_above_1 <- rowMaxs(as.matrix(tpmFinal[,c(29:32)]))>1
  237. rownames(tpmFinal) <- tpmFinal[,1]
  238. res_crenegonly_up <- as.data.frame(subset(subset(res_crenegonly, log2FoldChange > 0.585), padj<0.05))
  239. res_crenegonly_up <- subset(res_crenegonly_up, tpmFinal[row.names(res_crenegonly_up),29]>1)
  240. res_crenegonly_up <- res_crenegonly_up[order(res_crenegonly_up$padj),]
  241. res_crenegonly_down <- as.data.frame(subset(subset(res_crenegonly, log2FoldChange < -0.585), padj<0.05))
  242. res_crenegonly_down <- subset(res_crenegonly_down, tpmFinal[row.names(res_crenegonly_down),29]>1)
  243. res_crenegonly_down <- res_crenegonly_down[order(res_crenegonly_down$padj),]
  244. ```
  245. Creating figure S9: Correlating in vivo transcriptomics and proteomics
  246. ```{r}
  247. data_genename_working <- read.csv("NAJD-1-16_v2_jd.csv")
  248. data_genename_working[,27] <- gsub(".*GN\\=", "", data_genename_working[,27])
  249. data_genename_working[,27] <- gsub(" PE.*", "", data_genename_working[,27])
  250. data_genename_working <- distinct(data_genename_working,DESCRIPTION, .keep_all=TRUE)
  251. data_genename_working <- data_genename_working[!grepl("contaminant",data_genename_working$LOCUS),]
  252. data_genename_working <- data_genename_working[!grepl("Streptavidin",data_genename_working$DESCRIPTION),]
  253. data_genename_working$AvgTurbo <- rowMeans(data_genename_working[,c(28:39)])
  254. data_genename_working$AvgsmFP <- rowMeans(data_genename_working[,c(40:43)])
  255. data_genename_working$Turbo_over_smFP <- data_genename_working$AvgTurbo/data_genename_working$AvgsmFP
  256. data_5_creneg_l2fc <- data_genename_working[,c(27,58)]
  257. data_5_creneg_l2fc[,2] <- log2(as.numeric(data_5_creneg_l2fc[,2]))
  258. rownames(data_5_creneg_l2fc) <- data_5_creneg_l2fc[,1]
  259. data_5_creneg_l2fc$rna <- res_crenegonly[rownames(data_5_creneg_l2fc), "log2FoldChange"]
  260. data_5_creneg_l2fc <- data_5_creneg_l2fc[,-c(1)]
  261. data_5_creneg_l2fc <- na.omit(data_5_creneg_l2fc)
  262. cor_data_5_creneg_l2fc <- cor(data_5_creneg_l2fc, method = 'pearson', use = "pairwise.complete.obs")
  263. #plot(data_5_creneg_l2fc$Cre...KO.WT.1,data_5_creneg_l2fc$rna)
  264. map <- ggplot(data_5_creneg_l2fc, aes(x=rna,y=Cre...KO.WT.1))+geom_point(size=0.2) +
  265. labs(x = "RNA log2FC", y = "Protein log2FC") +
  266. theme_bw() +
  267. theme(axis.text = element_text(size=12),
  268. axis.title = element_text(size=14),
  269. aspect.ratio=1) +
  270. stat_smooth(method=lm, se = FALSE)
  271. ggsave("l2fc protein rna all proteins.pdf", map, width = 3, height = 3, unit = "in")
  272. #count <- na.omit(data_5_creneg_l2fc)
  273. #only DEGs
  274. data_5_creneg_l2fc_DEGs <- data_5_creneg_l2fc[c(rownames(res_crenegonly_down),rownames(res_crenegonly_up)),]
  275. data_5_creneg_l2fc_DEGs <- na.omit(data_5_creneg_l2fc_DEGs)
  276. cor_data_5_creneg_l2fc_DEGs <- cor(data_5_creneg_l2fc_DEGs, method = 'pearson', use = "pairwise.complete.obs")
  277. #plot(data_5_creneg_l2fc_DEGs$Cre...KO.WT.1,data_5_creneg_l2fc_DEGs$rna)
  278. map <- ggplot(data_5_creneg_l2fc_DEGs, aes(x=rna,y=Cre...KO.WT.1))+geom_point(size=0.2) +
  279. labs(x = "RNA log2FC", y = "Protein log2FC") +
  280. theme_bw() +
  281. theme(axis.text = element_text(size=12),
  282. axis.title = element_text(size=14),
  283. aspect.ratio=1) +
  284. stat_smooth(method=lm, se=FALSE)
  285. ggsave("l2fc protein rna DEGs.pdf", map, width = 3, height = 3, unit = "in")
  286. #only DEPs
  287. rownames(data_genename_working) <- data_genename_working$DESCRIPTION
  288. data_5_creneg_l2fc_DEPs_list <- subset(data_genename_working, data_genename_working[,59]<0.05)
  289. data_5_creneg_l2fc_DEPs_list <- subset(data_5_creneg_l2fc_DEPs_list, data_5_creneg_l2fc_DEPs_list[,58]<0.8 | data_5_creneg_l2fc_DEPs_list[,58]>1.25)
  290. data_5_creneg_l2fc_DEPs <- data_5_creneg_l2fc[rownames(as.data.frame(data_5_creneg_l2fc_DEPs_list)),]
  291. data_5_creneg_l2fc_DEPs <- na.omit(data_5_creneg_l2fc_DEPs)
  292. cor_data_5_creneg_l2fc_DEPs <- cor(data_5_creneg_l2fc_DEPs, method = 'pearson', use = "pairwise.complete.obs")
  293. #plot(data_5_creneg_l2fc_DEPs$Cre...KO.WT.1,data_5_creneg_l2fc_DEPs$rna)
  294. map <- ggplot(data_5_creneg_l2fc_DEPs, aes(x=rna,y=Cre...KO.WT.1))+geom_point(size=0.2) +
  295. labs(x = "RNA log2FC", y = "Protein log2FC") +
  296. theme_bw() +
  297. theme(axis.text = element_text(size=12),
  298. axis.title = element_text(size=14),
  299. aspect.ratio=1) +
  300. stat_smooth(method=lm, se = FALSE)
  301. ggsave("l2fc protein rna DEPs.pdf", map, width = 3, height = 3, unit = "in")
  302. # TMT raw intensity vs. RNA TPM graph
  303. library(ggplot2)
  304. TMT_RNA <- subset(data_genename_working,data_genename_working$Turbo_over_smFP>1.5) #1105 proteins
  305. TMT_RNA <- TMT_RNA[,c(27,44)]
  306. TMT_RNA$TPM <- tpmFinal[rownames(TMT_RNA),29]
  307. colnames(TMT_RNA) <- c("Gene","TMT","TPM")
  308. TMT_RNA$log2_TMT <- log2(TMT_RNA$TMT)
  309. TMT_RNA$log2_TPM <- log2(TMT_RNA$TPM)
  310. TMT_RNA[sapply(TMT_RNA, is.infinite)] <- NA
  311. #TMT_RNA <- na.omit(TMT_RNA) #went from 1105 to 1003!
  312. map <- ggplot(TMT_RNA, aes(x=log2_TPM,y=log2_TMT))+geom_point(size=0.2) +
  313. labs(x = "log2(TPM)", y = "log2(TMT signal)") +
  314. theme_bw() +
  315. theme(axis.text = element_text(size=12),
  316. axis.title = element_text(size=14),
  317. aspect.ratio=1) +
  318. stat_smooth(method=lm)
  319. ggsave("TMT_TPM.pdf", map, width = 3, height = 3, unit = "in")
  320. cor_TMT_RNA <- cor(TMT_RNA[,c(4:5)], method = 'pearson', use = "pairwise.complete.obs") #correlation is 0.0999
  321. ##Rank rank proteomics and RNAseq
  322. TMT_RNA <- na.omit(TMT_RNA)
  323. TMT_RNA <- TMT_RNA[order(-TMT_RNA$TMT),]
  324. TMT_RNA$TMT_rank <- seq.int(nrow(TMT_RNA))
  325. TMT_RNA <- TMT_RNA[order(-TMT_RNA$TPM),]
  326. TMT_RNA$TPM_rank <- seq.int(nrow(TMT_RNA))
  327. map <- ggplot(TMT_RNA, aes(x=TPM_rank,y=TMT_rank))+geom_point(size=0.2) +
  328. labs(x = "RNA rank", y = "Protein rank") +
  329. theme_bw() +
  330. theme(axis.text = element_text(size=12),
  331. axis.title = element_text(size=14),
  332. aspect.ratio=1) +
  333. stat_smooth(method=lm)
  334. cor_TMT_RNA_rank <- cor(TMT_RNA[,c(6:7)], method = 'pearson', use = "pairwise.complete.obs") #correlation is 0.108
  335. ggsave("TMT_TPM rank rank.pdf", map, width = 3, height = 3, unit = "in")
  336. #Hypergeometric plot rank-rank
  337. #BiocManager::install("RRHO")
  338. library('RRHO')
  339. invisible(RRHO(TMT_RNA[,c(1,6)], TMT_RNA[,c(1,7)], stepsize =1, alternative = "two.sided", plots = TRUE, outputdir = getwd(), labels=c("Protein rank","RNA rank")))
  340. ```
  341. Fig S10 d/e: Comparison to Caldwell et al., 2022, for FXS
  342. ```{r}
  343. #comparison to Alie MS for FXS
  344. Alie_ACM_ND <- read.csv("Caldwell_s2 ACM protein ND.csv")
  345. Alie_ACM_ND <- Alie_ACM_ND[-c(481, 483,1138),]
  346. rownames(Alie_ACM_ND) <- Alie_ACM_ND[,2]
  347. Alie_ACM_ND$WTavg <- rowSums(Alie_ACM_ND[,c(4:9)])
  348. Alie_ACM_ND$FXSavg <- rowSums(Alie_ACM_ND[,c(10:15)])
  349. Alie_ACM_ND$L2FC <- log2(Alie_ACM_ND$FXSavg / Alie_ACM_ND$WTavg)
  350. data_5_creneg_l2fc <- data_genename_working[,c(27,58)]
  351. data_5_creneg_l2fc[,2] <- log2(as.numeric(data_5_creneg_l2fc[,2]))
  352. rownames(data_5_creneg_l2fc) <- data_5_creneg_l2fc[,1]
  353. data_5_creneg_l2fc$alie <-Alie_ACM_ND[rownames(data_5_creneg_l2fc), "L2FC"]
  354. data_5_creneg_l2fc <- data_5_creneg_l2fc[,-c(1)]
  355. colnames(data_5_creneg_l2fc) <- c("Turbo","alie")
  356. data_5_creneg_l2fc <- data_5_creneg_l2fc[!is.infinite(rowSums(data_5_creneg_l2fc)),]
  357. #cor(data_5_creneg_l2fc, method = 'pearson', use = "pairwise.complete.obs")
  358. #plot(data_5_creneg_l2fc$Turbo,data_5_creneg_l2fc$alie)
  359. #sum(!is.na(data_5_creneg_l2fc$alie))
  360. map <- ggplot(data_5_creneg_l2fc, aes(x=alie,y=Turbo))+geom_point(size=0.2) +
  361. geom_vline(xintercept=0, col="red") +
  362. geom_hline(yintercept=0, col="red") +
  363. labs(x = "FXS log2 FC (in vitro)", y = "FXS log2 FC (in vivo)") +
  364. theme_bw() +
  365. theme(axis.text = element_text(size=12),
  366. axis.title = element_text(size=14),
  367. aspect.ratio=1) +
  368. stat_smooth(method=lm, se=FALSE)
  369. ggsave("corr_Alie_FXS.pdf", map, width = 3, height = 3, unit = "in")
  370. #only DEGs
  371. #data_5_creneg_l2fc_DEGs <- data_5_creneg_l2fc[rownames(as.data.frame(subset(res_crenegonly, padj<0.05))),]
  372. #cor_data_5_creneg_l2fc_DEGs <- cor(data_5_creneg_l2fc_DEGs, method = 'pearson', use = "pairwise.complete.obs")
  373. #plot(data_5_creneg_l2fc_DEGs$Cre...KO.WT.1,data_5_creneg_l2fc_DEGs$rna)
  374. ####
  375. #only DEPs
  376. rownames(data_genename) <- data_genename$DESCRIPTION
  377. data_5_creneg_l2fc_DEPs_list <- subset(data_genename_working, data_genename_working[,59]<0.05)
  378. data_5_creneg_l2fc_DEPs_list <- subset(data_5_creneg_l2fc_DEPs_list, data_5_creneg_l2fc_DEPs_list[,58]<0.8 | data_5_creneg_l2fc_DEPs_list[,58]>1.25)
  379. data_5_creneg_l2fc_DEPs <- data_5_creneg_l2fc[rownames(as.data.frame(data_5_creneg_l2fc_DEPs_list)),]
  380. cor_data_5_creneg_l2fc_DEPs <- cor(data_5_creneg_l2fc_DEPs, method = 'pearson', use = "pairwise.complete.obs")
  381. #plot(data_5_creneg_l2fc_DEPs$Turbo,data_5_creneg_l2fc_DEPs$alie)
  382. #sum(!is.na(data_5_creneg_l2fc_DEPs$alie))
  383. data_5_creneg_l2fc_DEPs$Protein <- rownames(data_5_creneg_l2fc_DEPs)
  384. data_5_creneg_l2fc_DEPs$Protein <- rownames(data_5_creneg_l2fc_DEPs)
  385. map <- ggplot(data_5_creneg_l2fc_DEPs, aes(x=alie,y=Turbo, label = Protein))+geom_point(size=0.2) +
  386. geom_vline(xintercept=0, col="red") +
  387. geom_hline(yintercept=0, col="red") +
  388. labs(x = "FXS log2 FC (in vitro)", y = "FXS log2 FC (in vivo)") +
  389. theme_bw() +
  390. theme(axis.text = element_text(size=12),
  391. axis.title = element_text(size=14),
  392. aspect.ratio=1) +
  393. stat_smooth(method=lm) +
  394. geom_text_repel(size=2,max.overlaps=10)
  395. ggsave("corr_Alie_FXS_DEPs.pdf", map, width = 3, height = 3, unit = "in")
  396. ```
  397. Fig S10 f/g: comparison to Caldwell et al., 2022, for Smad4 cKO
  398. ```{r}
  399. Alie_ACM_BMP <- read.csv("Caldwell_s2 ACM protein BMP.csv")
  400. Alie_ACM_BMP <- Alie_ACM_BMP[-c(481, 483,1138),]
  401. rownames(Alie_ACM_BMP) <- Alie_ACM_BMP[,2]
  402. Alie_ACM_BMP$WTavg <- rowSums(Alie_ACM_BMP[,c(4:9)])
  403. Alie_ACM_BMP$BMPavg <- rowSums(Alie_ACM_BMP[,c(10:15)])
  404. Alie_ACM_BMP$L2FC <- log2(Alie_ACM_BMP$BMPavg / Alie_ACM_BMP$WTavg)
  405. data_5_wtonly_l2fc <- data_genename_working[,c(27,52)]
  406. data_5_wtonly_l2fc[,2] <- log2(as.numeric(data_5_wtonly_l2fc[,2]))
  407. rownames(data_5_wtonly_l2fc) <- data_5_wtonly_l2fc[,1]
  408. data_5_wtonly_l2fc$alie <-Alie_ACM_BMP[rownames(data_5_wtonly_l2fc), "L2FC"]
  409. data_5_wtonly_l2fc <- data_5_wtonly_l2fc[,-c(1)]
  410. colnames(data_5_wtonly_l2fc) <- c("Turbo","alie")
  411. data_5_wtonly_l2fc <- data_5_wtonly_l2fc[!is.infinite(rowSums(data_5_wtonly_l2fc)),]
  412. cor_data_5_wtonly_l2fc <- cor(data_5_wtonly_l2fc, method = 'pearson', use = "pairwise.complete.obs")
  413. #plot(data_5_wtonly_l2fc$Turbo,data_5_wtonly_l2fc$alie)
  414. #sum(!is.na(data_5_wtonly_l2fc$alie))
  415. map <- ggplot(data_5_wtonly_l2fc, aes(x=alie,y=Turbo))+geom_point(size=0.2) +
  416. geom_vline(xintercept=0, col="red") +
  417. geom_hline(yintercept=0, col="red") +
  418. labs(x = "+BMP6 log2 FC (in vitro)", y = "Smad4cKO log2 FC (in vivo)") +
  419. theme_bw() +
  420. theme(axis.text = element_text(size=12),
  421. axis.title = element_text(size=14),
  422. aspect.ratio=1) +
  423. stat_smooth(method=lm, se=FALSE)
  424. ggsave("corr_Alie_BMP.pdf", map, width = 3, height = 3, unit = "in")
  425. #only DEPs
  426. rownames(data_genename) <- data_genename$DESCRIPTION
  427. data_5_wtonly_l2fc_DEPs_list <- subset(data_genename_working, data_genename_working[,53]<0.05)
  428. data_5_wtonly_l2fc_DEPs_list <- subset(data_5_wtonly_l2fc_DEPs_list, data_5_wtonly_l2fc_DEPs_list[,52]<0.8 | data_5_wtonly_l2fc_DEPs_list[,52]>1.25)
  429. data_5_wtonly_l2fc_DEPs <- data_5_wtonly_l2fc[rownames(as.data.frame(data_5_wtonly_l2fc_DEPs_list)),]
  430. cor_data_5_wtonly_l2fc_DEPs <- cor(data_5_wtonly_l2fc_DEPs, method = 'pearson', use = "pairwise.complete.obs")
  431. #plot(data_5_wtonly_l2fc_DEPs$Turbo,data_5_wtonly_l2fc_DEPs$alie)
  432. #sum(!is.na(data_5_wtonly_l2fc_DEPs$alie))
  433. data_5_wtonly_l2fc_DEPs$Protein <- rownames(data_5_wtonly_l2fc_DEPs)
  434. map <- ggplot(data_5_wtonly_l2fc_DEPs, aes(x=alie,y=Turbo, label=Protein))+geom_point(size=0.2) +
  435. geom_vline(xintercept=0, col="red") +
  436. geom_hline(yintercept=0, col="red") +
  437. labs(x = "+BMP6 log2 FC (in vitro)", y = "Smad4cKO log2 FC (in vivo)") +
  438. theme_bw() +
  439. theme(axis.text = element_text(size=12),
  440. axis.title = element_text(size=14),
  441. aspect.ratio=1) +
  442. stat_smooth(method=lm) +
  443. geom_text_repel(size=2,max.overlaps=10)
  444. ggsave("corr_Alie_BMP_DEPs.pdf", map, width = 3, height = 3, unit = "in")
  445. ```
  446. Supp table 7: Filtering for DEPs
  447. ```{r}
  448. #List of genes up and down in FXS
  449. library(dplyr)
  450. data_genename_working <- read.csv("NAJD-1-16_v2_jd.csv")
  451. data_genename_working[,27] <- gsub(".*GN\\=", "", data_genename_working[,27])
  452. data_genename_working[,27] <- gsub(" PE.*", "", data_genename_working[,27])
  453. data_genename_working <- distinct(data_genename_working,DESCRIPTION, .keep_all=TRUE)
  454. data_genename_working <- data_genename_working[!grepl("contaminant",data_genename_working$LOCUS),]
  455. data_genename_working <- data_genename_working[!grepl("Streptavidin",data_genename_working$DESCRIPTION),]
  456. data_genename_working$AvgTurbo <- rowMeans(data_genename_working[,c(28:39)])
  457. data_genename_working$AvgsmFP <- rowMeans(data_genename_working[,c(40:43)])
  458. data_genename_working$Turbo_over_smFP <- data_genename_working$AvgTurbo/data_genename_working$AvgsmFP
  459. data_fxs_genes <- data_genename_working[data_genename_working[,c(59)]<0.05,]
  460. data_fxs_genes <- data_fxs_genes[,c(27,1,58,59)]
  461. data_fxs_genes <- data_fxs_genes[order(data_fxs_genes$Cre...KO.WT.pvalue.1),]
  462. colnames(data_fxs_genes) <- c( "Protein", "Locus","Fold Change","p-value")
  463. data_fxs_genes[,c(3)] <- round(as.numeric(data_fxs_genes[,c(3)]), digits=3)
  464. data_fxs_genes_up <- data_fxs_genes[data_fxs_genes[,c(3)]>1,]
  465. data_fxs_genes_up <- subset(data_fxs_genes_up, data_fxs_genes_up$`Fold Change` > 1.25)
  466. data_fxs_genes_down <- data_fxs_genes[data_fxs_genes[,c(3)]<1,]
  467. data_fxs_genes_down <- subset(data_fxs_genes_down, data_fxs_genes_down$`Fold Change` < 0.80)
  468. #List of genes up and down in Smad4cKO WT
  469. data_Smad4cKO_genes <- data_genename_working[data_genename_working[,c(53)]<0.05,]
  470. data_Smad4cKO_genes <- data_Smad4cKO_genes[,c(27,1,52,53)]
  471. data_Smad4cKO_genes <- data_Smad4cKO_genes[order(data_Smad4cKO_genes$WT.Cre.....pvalue),]
  472. colnames(data_Smad4cKO_genes) <- c( "Protein", "Locus","Fold Change","p-value")
  473. data_Smad4cKO_genes <- data_Smad4cKO_genes[-c(1),]
  474. data_Smad4cKO_genes[,c(3)] <- round(as.numeric(data_Smad4cKO_genes[,c(3)]), digits=3)
  475. data_Smad4cKO_genes_up <- data_Smad4cKO_genes[data_Smad4cKO_genes[,c(3)]>1,]
  476. data_Smad4cKO_genes_up <- subset(data_Smad4cKO_genes_up, data_Smad4cKO_genes_up$`Fold Change` > 1.25)
  477. data_Smad4cKO_genes_down <- data_Smad4cKO_genes[data_Smad4cKO_genes[,c(3)]<1,]
  478. data_Smad4cKO_genes_down <- subset(data_Smad4cKO_genes_down, data_Smad4cKO_genes_down$`Fold Change` < 0.80)
  479. #List of genes up and down in Smad4cKO KO
  480. data_Smad4cKO_in_KO_genes <- data_genename_working[data_genename_working[,c(55)]<0.05,]
  481. data_Smad4cKO_in_KO_genes <- data_Smad4cKO_in_KO_genes[,c(27,1,54,55)]
  482. data_Smad4cKO_in_KO_genes <- data_Smad4cKO_in_KO_genes[order(data_Smad4cKO_in_KO_genes$KO.Cre.....pvalue),]
  483. colnames(data_Smad4cKO_in_KO_genes) <- c( "Protein", "Locus","Fold Change","p-value")
  484. data_Smad4cKO_in_KO_genes[,c(3)] <- round(as.numeric(data_Smad4cKO_in_KO_genes[,c(3)]), digits=3)
  485. data_Smad4cKO_in_KO_genes_up <- data_Smad4cKO_in_KO_genes[data_Smad4cKO_in_KO_genes[,c(3)]>1,]
  486. data_Smad4cKO_in_KO_genes_up <- subset(data_Smad4cKO_in_KO_genes_up, data_Smad4cKO_in_KO_genes_up$`Fold Change` > 1.25)
  487. data_Smad4cKO_in_KO_genes_down <- data_Smad4cKO_in_KO_genes[data_Smad4cKO_in_KO_genes[,c(3)]<1,]
  488. data_Smad4cKO_in_KO_genes_down <- subset(data_Smad4cKO_in_KO_genes_down, data_Smad4cKO_in_KO_genes_down$`Fold Change` < 0.80)
  489. #List of genes up and down in KOKO over WTWT
  490. data_kokowtwt_genes <- data_genename_working[data_genename_working[,c(61)]<0.05,]
  491. data_kokowtwt_genes <- data_kokowtwt_genes[,c(27,1,60,61)]
  492. data_kokowtwt_genes <- data_kokowtwt_genes[order(data_kokowtwt_genes$Cre.KO.Cre.WT.p.value),]
  493. colnames(data_kokowtwt_genes) <- c( "Protein", "Locus","Fold Change","p-value")
  494. data_kokowtwt_genes[,c(3)] <- round(as.numeric(data_kokowtwt_genes[,c(3)]), digits=3)
  495. data_kokowtwt_genes_up <- data_kokowtwt_genes[data_kokowtwt_genes[,c(3)]>1,]
  496. data_kokowtwt_genes_up <- subset(data_kokowtwt_genes_up, data_kokowtwt_genes_up$`Fold Change` > 1.25)
  497. data_kokowtwt_genes_down <- data_kokowtwt_genes[data_kokowtwt_genes[,c(3)]<1,]
  498. data_kokowtwt_genes_down <- subset(data_kokowtwt_genes_down, data_kokowtwt_genes_down$`Fold Change` < 0.80)
  499. # Making excel of all DEPs
  500. library(writexl)
  501. list_of_DEPs <- list(Comparison_1_UP = data_fxs_genes_up ,
  502. Comparison_1_DOWN = data_fxs_genes_down,
  503. Comparison_2_UP = data_Smad4cKO_in_KO_genes_up,
  504. Comparison_2_DOWN = data_Smad4cKO_in_KO_genes_down,
  505. Comparison_3_UP = data_Smad4cKO_genes_up,
  506. Comparison_3_DOWN = data_Smad4cKO_genes_down,
  507. Comparison_4_UP = data_kokowtwt_genes_up,
  508. Comparison_4_DOWN = data_kokowtwt_genes_down)
  509. write_xlsx(list_of_DEPs, path = "Supplementary Table 7.xlsx")
  510. ```
  511. Fig 5b (plotting heatmaps of DEPs in FXS)
  512. ```{r}
  513. library(pheatmap)
  514. library(matrixStats)
  515. library(viridis)
  516. rownames(data_genename_working) <- data_genename_working$DESCRIPTION
  517. FXS_up20 <- data_genename_working[data_genename_working$Cre...KO.WT.1>1.25,]
  518. FXS_up20 <- FXS_up20[order(FXS_up20$Cre...KO.WT.pvalue.1),]
  519. FXS_up20 <- FXS_up20[c(1:6),]
  520. FXS_up20_TMT <- FXS_up20[,c(28:30,34:36,66:68)]
  521. FXS_down20 <- data_genename_working[data_genename_working$Cre...KO.WT.1<0.8,]
  522. FXS_down20 <- FXS_down20[order(FXS_down20$Cre...KO.WT.pvalue.1),]
  523. FXS_down20 <- FXS_down20[c(1:20),]
  524. FXS_down20_TMT <- FXS_down20[,c(28:30,34:36,66:68)]
  525. FXS_up20_TMT$average <- rowMeans(FXS_up20_TMT[,(1:6)])
  526. FXS_up20_TMT$std <- rowSds(as.matrix(FXS_up20_TMT[,(1:6)]))
  527. FXS_up20_TMT[,(1:6)] <- (FXS_up20_TMT[,(1:6)]-FXS_up20_TMT$average)/FXS_up20_TMT$std
  528. FXS_up20_TMT_forgraph <- FXS_up20_TMT[,(1:6)]
  529. FXS_down20_TMT$average <- rowMeans(FXS_down20_TMT[,(1:6)])
  530. FXS_down20_TMT$std <- rowSds(as.matrix(FXS_down20_TMT[,(1:6)]))
  531. FXS_down20_TMT[,(1:6)] <- (FXS_down20_TMT[,(1:6)]-FXS_down20_TMT$average)/FXS_down20_TMT$std
  532. FXS_down20_TMT_forgraph <- FXS_down20_TMT[,(1:6)]
  533. ###
  534. genotype <- c("WT","WT","WT","Fmr1 KO","Fmr1 KO","Fmr1 KO")
  535. colInfo <- as.data.frame(genotype)
  536. rownames(colInfo) <- colnames(FXS_down20_TMT_forgraph)
  537. mybreaks <- c(seq(-2,2, length =30))
  538. map <- pheatmap((FXS_up20_TMT_forgraph),
  539. annotation_row = NA,
  540. annotation_col = colInfo,
  541. annotation_colors = NA,
  542. color = inferno(30),
  543. breaks = mybreaks,
  544. show_rownames = TRUE,
  545. show_colnames = FALSE,
  546. annotation_legend = TRUE,
  547. border_color = NA,
  548. fontsize_row = 6,
  549. fontsize = 8,
  550. cluster_rows = FALSE,
  551. cluster_cols = FALSE,
  552. cellwidth = 6,
  553. cellheight = 6,
  554. width = 4,
  555. height = 4,
  556. #gaps_row = c(110,205,231,247,277)
  557. )
  558. ggsave("FXS_up_20.pdf", map, width = 4, height = 4, unit = "in")
  559. map <- pheatmap((FXS_down20_TMT_forgraph),
  560. annotation_row = NA,
  561. annotation_col = colInfo,
  562. annotation_colors = NA,
  563. color = inferno(30),
  564. breaks = mybreaks,
  565. show_rownames = TRUE,
  566. show_colnames = FALSE,
  567. annotation_legend = TRUE,
  568. border_color = NA,
  569. fontsize_row = 6,
  570. fontsize = 8,
  571. cluster_rows = FALSE,
  572. cluster_cols = FALSE,
  573. cellwidth = 6,
  574. cellheight = 6,
  575. width = 4,
  576. height = 4,
  577. #gaps_row = c(110,205,231,247,277)
  578. )
  579. ggsave("FXS_down_20.pdf", map, width = 4, height = 4, unit = "in")
  580. ```
  581. Fig 5d (volcano map of DEPs in FXS)
  582. ```{r}
  583. data_forvolcano_fxs <- data_genename_working[,c(68,69,27)]
  584. colnames(data_forvolcano_fxs) <- c("L2FC","L10pvalue","Name")
  585. data_forvolcano_fxs$L2FC <- as.numeric(data_forvolcano_fxs$L2FC)
  586. data_forvolcano_fxs$L10pvalue <- as.numeric(data_forvolcano_fxs$L10pvalue)
  587. data_forvolcano_fxs$diffexpressed <- "NO"
  588. data_forvolcano_fxs$diffexpressed[data_forvolcano_fxs[,1] > 0.322 & data_forvolcano_fxs[,2] > 1.301] <- "UP"
  589. data_forvolcano_fxs$diffexpressed[data_forvolcano_fxs[,1] < -0.322 & data_forvolcano_fxs[,2] > 1.301] <- "DOWN"
  590. updowncolors <- c("blue", "red", "grey80")
  591. names(updowncolors) <- c("DOWN", "UP", "NO")
  592. data_forvolcano_fxs$label <- NA
  593. data_forvolcano_fxs$label[data_forvolcano_fxs$diffexpressed != "NO"] <- data_forvolcano_fxs$Name[data_forvolcano_fxs$diffexpressed != "NO"]
  594. map <- ggplot(data=data_forvolcano_fxs %>% arrange(label), aes(x=L2FC, y=L10pvalue, col=diffexpressed, label=label)) +
  595. geom_point(size=1) +
  596. theme_minimal() +
  597. scale_color_manual(values=updowncolors) +
  598. #geom_vline(xintercept=c(-0.32, 0.32), col="red") +
  599. geom_vline(xintercept=c(0), col="black") +
  600. geom_vline(xintercept=c(0.322), col="black", linetype='dotted') +
  601. geom_vline(xintercept=c(-0.322), col="black", linetype='dotted') +
  602. geom_hline(yintercept=c(0), col="black") +
  603. geom_hline(yintercept=-log10(0.05), col="black", linetype='dotted') +
  604. coord_cartesian(xlim=c(-2.5,2.5),ylim=c(0,3.5)) +
  605. xlab("log2 Fold Change") +
  606. ylab("log10 p value") +
  607. theme(axis.title=element_text(size=12))+
  608. guides(color=FALSE) +
  609. theme_classic()+
  610. geom_text_repel(size=2.5,max.overlaps=15)
  611. ggsave("Volcano_FXS_proteomics.pdf", map, width = 4.5, height = 3, unit = "in")
  612. ```
  613. Fig 6c: Z scores for FXS to FXS;Smad4 cKO DEPs for plotting in Prism
  614. ```{r}
  615. library(matrixStats)
  616. rownames(data_genename_working) <- data_genename_working$DESCRIPTION
  617. rownames(data_Smad4cKO_in_KO_genes_up) <- data_Smad4cKO_in_KO_genes_up$Protein
  618. Smad4cKO_in_KO_up_heatmap <- data_genename_working[rownames(data_Smad4cKO_in_KO_genes_up),]
  619. Smad4cKO_in_KO_up_heatmap$"mean" <- rowMeans(Smad4cKO_in_KO_up_heatmap[,c(9:20)])
  620. Smad4cKO_in_KO_up_heatmap$"sd" <- rowSds(as.matrix(Smad4cKO_in_KO_up_heatmap[,(9:20)]))
  621. Smad4cKO_in_KO_up_heatmap[,(28:43)] <- (Smad4cKO_in_KO_up_heatmap[,(28:43)]-Smad4cKO_in_KO_up_heatmap$mean)/Smad4cKO_in_KO_up_heatmap$sd
  622. Smad4cKO_in_KO_up_heatmap$Fmr1WTSmad4WTavg <- rowMeans(Smad4cKO_in_KO_up_heatmap[,c(28:30)])
  623. Smad4cKO_in_KO_up_heatmap$Fmr1WTSmad4cKOavg <- rowMeans(Smad4cKO_in_KO_up_heatmap[,c(31:33)])
  624. Smad4cKO_in_KO_up_heatmap$Fmr1KOSmad4WTavg <- rowMeans(Smad4cKO_in_KO_up_heatmap[,c(34:36)])
  625. Smad4cKO_in_KO_up_heatmap$Fmr1KOSmad4cKOavg <- rowMeans(Smad4cKO_in_KO_up_heatmap[,c(37:39)])
  626. write.csv(Smad4cKO_in_KO_up_heatmap, "./Smad4cKO_in_KO_up_heatmap_zscore.csv")
  627. rownames(data_Smad4cKO_in_KO_genes_down) <- data_Smad4cKO_in_KO_genes_down$Protein
  628. Smad4cKO_in_KO_down_heatmap <- data_genename_working[rownames(data_Smad4cKO_in_KO_genes_down),]
  629. Smad4cKO_in_KO_down_heatmap$"mean" <- rowMeans(Smad4cKO_in_KO_down_heatmap[,c(9:20)])
  630. Smad4cKO_in_KO_down_heatmap$"sd" <- rowSds(as.matrix(Smad4cKO_in_KO_down_heatmap[,(9:20)]))
  631. Smad4cKO_in_KO_down_heatmap[,(28:43)] <- (Smad4cKO_in_KO_down_heatmap[,(28:43)]-Smad4cKO_in_KO_down_heatmap$mean)/Smad4cKO_in_KO_down_heatmap$sd
  632. Smad4cKO_in_KO_down_heatmap$Fmr1WTSmad4WTavg <- rowMeans(Smad4cKO_in_KO_down_heatmap[,c(28:30)])
  633. Smad4cKO_in_KO_down_heatmap$Fmr1WTSmad4cKOavg <- rowMeans(Smad4cKO_in_KO_down_heatmap[,c(31:33)])
  634. Smad4cKO_in_KO_down_heatmap$Fmr1KOSmad4WTavg <- rowMeans(Smad4cKO_in_KO_down_heatmap[,c(34:36)])
  635. Smad4cKO_in_KO_down_heatmap$Fmr1KOSmad4cKOavg <- rowMeans(Smad4cKO_in_KO_down_heatmap[,c(37:39)])
  636. write.csv(Smad4cKO_in_KO_down_heatmap, "./Smad4cKO_in_KO_down_heatmap_zscore.csv")
  637. ```
  638. Supp table 8: GSEA analysis
  639. ```{r}
  640. library(msigdbr)
  641. library(enrichplot)
  642. library(ggridges)
  643. library(DOSE)
  644. library(ggplot2)
  645. library(clusterProfiler)
  646. data_genename_working <- read.csv("NAJD-1-16_v2_jd.csv")
  647. data_genename_working[,27] <- gsub(".*GN\\=", "", data_genename_working[,27])
  648. data_genename_working[,27] <- gsub(" PE.*", "", data_genename_working[,27])
  649. data_genename_working <- distinct(data_genename_working,DESCRIPTION, .keep_all=TRUE)
  650. data_genename_working <- data_genename_working[!grepl("contaminant",data_genename_working$LOCUS),]
  651. data_genename_working <- data_genename_working[!grepl("Streptavidin",data_genename_working$DESCRIPTION),]
  652. data_genename_working$AvgTurbo <- rowMeans(data_genename_working[,c(28:39)])
  653. data_genename_working$AvgsmFP <- rowMeans(data_genename_working[,c(40:43)])
  654. data_genename_working$Turbo_over_smFP <- data_genename_working$AvgTurbo/data_genename_working$AvgsmFP
  655. data_genename_working <- distinct(data_genename_working,AvgTurbo, .keep_all=TRUE) #goes from 2138 to 2012 (removes 126 proteins)
  656. GSEA_wtonly <- subset(data_genename_working,data_genename_working$Turbo_over_smFP>1.75)
  657. GSEA_wtonly$rank <- sign(as.numeric(GSEA_wtonly[,c(52)])-1) * -log10(as.numeric(GSEA_wtonly[,c(53)]))
  658. GSEA_wtonly <- GSEA_wtonly[,c(27,74)]
  659. GSEA_wtonly <- na.omit(GSEA_wtonly[order(-GSEA_wtonly$rank),])
  660. write.table(GSEA_wtonly, "./GSEA_wtonly.rnk", col.name=TRUE, sep="\t",row.names=FALSE,quote=FALSE)
  661. GSEA_koonly <- subset(data_genename_working,data_genename_working$Turbo_over_smFP>1.75)
  662. GSEA_koonly$rank <- sign(as.numeric(GSEA_koonly[,c(54)])-1) * -log10(as.numeric(GSEA_koonly[,c(55)]))
  663. GSEA_koonly <- GSEA_koonly[,c(27,74)]
  664. GSEA_koonly <- na.omit(GSEA_koonly[order(-GSEA_koonly$rank),])
  665. write.table(GSEA_koonly, "./GSEA_koonly.rnk", col.name=TRUE, sep="\t",row.names=FALSE,quote=FALSE)
  666. GSEA_crenegonly <- subset(data_genename_working,data_genename_working$Turbo_over_smFP>1.75)
  667. GSEA_crenegonly$rank <- sign(as.numeric(GSEA_crenegonly[,c(58)])-1) * -log10(as.numeric(GSEA_crenegonly[,c(59)]))
  668. GSEA_crenegonly <- GSEA_crenegonly[,c(27,74)]
  669. GSEA_crenegonly <- na.omit(GSEA_crenegonly[order(-GSEA_crenegonly$rank),])
  670. write.table(GSEA_crenegonly, "./GSEA_crenegonly.rnk", col.name=TRUE, sep="\t",row.names=FALSE,quote=FALSE)
  671. GSEA_kokowtwt <- subset(data_genename_working,data_genename_working$Turbo_over_smFP>1.75)
  672. GSEA_kokowtwt$rank <- sign(as.numeric(GSEA_kokowtwt[,c(60)])-1) * -log10(as.numeric(GSEA_kokowtwt[,c(61)]))
  673. GSEA_kokowtwt <- GSEA_kokowtwt[,c(27,74)]
  674. GSEA_comp5 <- na.omit(GSEA_kokowtwt[order(-GSEA_kokowtwt$rank),])
  675. write.table(GSEA_kokowtwt, "./GSEA_kokowtwt.rnk", col.name=TRUE, sep="\t",row.names=FALSE,quote=FALSE)
  676. GSEA_wtonly_forR <- GSEA_wtonly$rank
  677. names(GSEA_wtonly_forR) <- GSEA_wtonly$DESCRIPTION
  678. GSEA_koonly_forR <- GSEA_koonly$rank
  679. names(GSEA_koonly_forR) <- GSEA_koonly$DESCRIPTION
  680. GSEA_crenegonly_forR <- GSEA_crenegonly$rank
  681. names(GSEA_crenegonly_forR) <- GSEA_crenegonly$DESCRIPTION
  682. GSEA_comp5_forR <- GSEA_comp5$rank
  683. names(GSEA_comp5_forR) <- GSEA_comp5$DESCRIPTION
  684. gene_sets_h = msigdbr(species = "mouse", category = "H") #hallmark
  685. gene_sets_cp = msigdbr(species = "mouse", category = "C2") #canonical pathways including biocarta, reactome, wikipathways
  686. gene_sets_go = msigdbr(species = "mouse", category = "C5") #go including mf, cc, bp
  687. msigdbr_t2g_h = gene_sets_h %>% dplyr::distinct(gs_name, gene_symbol) %>% as.data.frame()
  688. msigdbr_t2g_cp = gene_sets_cp %>% dplyr::distinct(gs_name, gene_symbol) %>% as.data.frame()
  689. msigdbr_t2g_go = gene_sets_go %>% dplyr::distinct(gs_name, gene_symbol) %>% as.data.frame()
  690. GSEA_wtonly_h <- GSEA(gene = GSEA_wtonly_forR, pAdjustMethod = "BH", pvalueCutoff = 1, TERM2GENE = msigdbr_t2g_h)
  691. GSEA_koonly_h <- GSEA(gene = GSEA_koonly_forR, pAdjustMethod = "BH", pvalueCutoff = 1, TERM2GENE = msigdbr_t2g_h)
  692. GSEA_crenegonly_h <- GSEA(gene = GSEA_crenegonly_forR, pAdjustMethod = "BH", pvalueCutoff = 1,TERM2GENE = msigdbr_t2g_h)
  693. GSEA_comp5_h <- GSEA(gene = GSEA_comp5_forR, pAdjustMethod = "BH", pvalueCutoff = 1,TERM2GENE = msigdbr_t2g_h)
  694. GSEA_wtonly_h_df <- as.data.frame(GSEA_wtonly_h)
  695. GSEA_wtonly_h_df[,c(4,5)] <- round(GSEA_wtonly_h_df[,c(4,5)], digits=3)
  696. GSEA_koonly_h_df <- as.data.frame(GSEA_koonly_h)
  697. GSEA_koonly_h_df[,c(4,5)] <- round(GSEA_koonly_h_df[,c(4,5)], digits=3)
  698. GSEA_crenegonly_h_df <- as.data.frame(GSEA_crenegonly_h)
  699. GSEA_crenegonly_h_df[,c(4,5)] <- round(GSEA_crenegonly_h_df[,c(4,5)], digits=3)
  700. GSEA_comp5_h_df <- as.data.frame(GSEA_comp5_h)
  701. GSEA_comp5_h_df[,c(4,5)] <- round(GSEA_comp5_h_df[,c(4,5)], digits=3)
  702. GSEA_wtonly_h_df_up <- GSEA_wtonly_h_df[GSEA_wtonly_h_df$NES>0,-c(1)]
  703. GSEA_wtonly_h_df_down <- GSEA_wtonly_h_df[GSEA_wtonly_h_df$NES<0,-c(1)]
  704. GSEA_koonly_h_df_up <- GSEA_koonly_h_df[GSEA_koonly_h_df$NES>0,-c(1)]
  705. GSEA_koonly_h_df_down <- GSEA_koonly_h_df[GSEA_koonly_h_df$NES<0,-c(1)]
  706. GSEA_crenegonly_h_df_up <- GSEA_crenegonly_h_df[GSEA_crenegonly_h_df$NES>0,-c(1)]
  707. GSEA_crenegonly_h_df_down <- GSEA_crenegonly_h_df[GSEA_crenegonly_h_df$NES<0,-c(1)]
  708. GSEA_comp5_h_df_up <- GSEA_comp5_h_df[GSEA_comp5_h_df$NES>0,-c(1)]
  709. GSEA_comp5_h_df_down <- GSEA_comp5_h_df[GSEA_comp5_h_df$NES<0,-c(1)]
  710. GSEA_wtonly_cp <- GSEA(gene = GSEA_wtonly_forR, pAdjustMethod = "BH", pvalueCutoff = 1, TERM2GENE = msigdbr_t2g_cp)
  711. GSEA_koonly_cp <- GSEA(gene = GSEA_koonly_forR, pAdjustMethod = "BH", pvalueCutoff = 1, TERM2GENE = msigdbr_t2g_cp)
  712. GSEA_crenegonly_cp <- GSEA(gene = GSEA_crenegonly_forR, pAdjustMethod = "BH", pvalueCutoff = 1,TERM2GENE = msigdbr_t2g_cp)
  713. GSEA_comp5_cp <- GSEA(gene = GSEA_comp5_forR, pAdjustMethod = "BH", pvalueCutoff = 1,TERM2GENE = msigdbr_t2g_cp)
  714. GSEA_wtonly_cp_df <- as.data.frame(GSEA_wtonly_cp)
  715. GSEA_wtonly_cp_df[,c(4,5)] <- round(GSEA_wtonly_cp_df[,c(4,5)], digits=3)
  716. GSEA_koonly_cp_df <- as.data.frame(GSEA_koonly_cp)
  717. GSEA_koonly_cp_df[,c(4,5)] <- round(GSEA_koonly_cp_df[,c(4,5)], digits=3)
  718. GSEA_crenegonly_cp_df <- as.data.frame(GSEA_crenegonly_cp)
  719. GSEA_crenegonly_cp_df[,c(4,5)] <- round(GSEA_crenegonly_cp_df[,c(4,5)], digits=3)
  720. GSEA_comp5_cp_df <- as.data.frame(GSEA_comp5_cp)
  721. GSEA_comp5_cp_df[,c(4,5)] <- round(GSEA_comp5_cp_df[,c(4,5)], digits=3)
  722. library(tidyverse)
  723. strings <- c("KEGG_","REACTOME_","WP_","BIOCARTA_")
  724. GSEA_wtonly_cp_df_up <- GSEA_wtonly_cp_df[GSEA_wtonly_cp_df$NES>0,-c(1)]
  725. GSEA_wtonly_cp_df_up <- GSEA_wtonly_cp_df_up %>%
  726. filter(str_detect(GSEA_wtonly_cp_df_up$Description, paste(strings,collapse= "|")))
  727. GSEA_wtonly_cp_df_down <- GSEA_wtonly_cp_df[GSEA_wtonly_cp_df$NES<0,-c(1)]
  728. GSEA_wtonly_cp_df_down <- GSEA_wtonly_cp_df_down %>%
  729. filter(str_detect(GSEA_wtonly_cp_df_down$Description, paste(strings,collapse= "|")))
  730. GSEA_koonly_cp_df_up <- GSEA_koonly_cp_df[GSEA_koonly_cp_df$NES>0,-c(1)]
  731. GSEA_koonly_cp_df_up <- GSEA_koonly_cp_df_up %>%
  732. filter(str_detect(GSEA_koonly_cp_df_up$Description, paste(strings,collapse= "|")))
  733. GSEA_koonly_cp_df_down <- GSEA_koonly_cp_df[GSEA_koonly_cp_df$NES<0,-c(1)]
  734. GSEA_koonly_cp_df_down <- GSEA_koonly_cp_df_down %>%
  735. filter(str_detect(GSEA_koonly_cp_df_down$Description, paste(strings,collapse= "|")))
  736. GSEA_crenegonly_cp_df_up <- GSEA_crenegonly_cp_df[GSEA_crenegonly_cp_df$NES>0,-c(1)]
  737. GSEA_crenegonly_cp_df_up <- GSEA_crenegonly_cp_df_up %>%
  738. filter(str_detect(GSEA_crenegonly_cp_df_up$Description, paste(strings,collapse= "|")))
  739. GSEA_crenegonly_cp_df_down <- GSEA_crenegonly_cp_df[GSEA_crenegonly_cp_df$NES<0,-c(1)]
  740. GSEA_crenegonly_cp_df_down <- GSEA_crenegonly_cp_df_down %>%
  741. filter(str_detect(GSEA_crenegonly_cp_df_down$Description, paste(strings,collapse= "|")))
  742. GSEA_comp5_cp_df_up <- GSEA_comp5_cp_df[GSEA_comp5_cp_df$NES>0,-c(1)]
  743. GSEA_comp5_cp_df_up <- GSEA_comp5_cp_df_up %>%
  744. filter(str_detect(GSEA_comp5_cp_df_up$Description, paste(strings,collapse= "|")))
  745. GSEA_comp5_cp_df_down <- GSEA_comp5_cp_df[GSEA_comp5_cp_df$NES<0,-c(1)]
  746. GSEA_comp5_cp_df_down <- GSEA_comp5_cp_df_down %>%
  747. filter(str_detect(GSEA_comp5_cp_df_down$Description, paste(strings,collapse= "|")))
  748. GSEA_wtonly_go <- GSEA(gene = GSEA_wtonly_forR, pAdjustMethod = "BH", pvalueCutoff = 1, TERM2GENE = msigdbr_t2g_go)
  749. GSEA_koonly_go <- GSEA(gene = GSEA_koonly_forR, pAdjustMethod = "BH", pvalueCutoff = 1, TERM2GENE = msigdbr_t2g_go)
  750. GSEA_crenegonly_go <- GSEA(gene = GSEA_crenegonly_forR, pAdjustMethod = "BH", pvalueCutoff = 1,TERM2GENE = msigdbr_t2g_go)
  751. GSEA_comp5_go <- GSEA(gene = GSEA_comp5_forR, pAdjustMethod = "BH", pvalueCutoff = 1,TERM2GENE = msigdbr_t2g_go)
  752. GSEA_wtonly_go_df <- as.data.frame(GSEA_wtonly_go)
  753. GSEA_wtonly_go_df[,c(4,5)] <- round(GSEA_wtonly_go_df[,c(4,5)], digits=3)
  754. GSEA_koonly_go_df <- as.data.frame(GSEA_koonly_go)
  755. GSEA_koonly_go_df[,c(4,5)] <- round(GSEA_koonly_go_df[,c(4,5)], digits=3)
  756. GSEA_crenegonly_go_df <- as.data.frame(GSEA_crenegonly_go)
  757. GSEA_crenegonly_go_df[,c(4,5)] <- round(GSEA_crenegonly_go_df[,c(4,5)], digits=3)
  758. GSEA_comp5_go_df <- as.data.frame(GSEA_comp5_go)
  759. GSEA_comp5_go_df[,c(4,5)] <- round(GSEA_comp5_go_df[,c(4,5)], digits=3)
  760. GSEA_wtonly_go_df_up <- GSEA_wtonly_go_df[GSEA_wtonly_go_df$NES>0,-c(1)]
  761. GSEA_wtonly_go_df_down <- GSEA_wtonly_go_df[GSEA_wtonly_go_df$NES<0,-c(1)]
  762. GSEA_koonly_go_df_up <- GSEA_koonly_go_df[GSEA_koonly_go_df$NES>0,-c(1)]
  763. GSEA_koonly_go_df_down <- GSEA_koonly_go_df[GSEA_koonly_go_df$NES<0,-c(1)]
  764. GSEA_crenegonly_go_df_up <- GSEA_crenegonly_go_df[GSEA_crenegonly_go_df$NES>0,-c(1)]
  765. GSEA_crenegonly_go_df_down <- GSEA_crenegonly_go_df[GSEA_crenegonly_go_df$NES<0,-c(1)]
  766. GSEA_comp5_go_df_up <- GSEA_wtonly_go_df[GSEA_comp5_go_df$NES>0,-c(1)]
  767. GSEA_comp5_go_df_down <- GSEA_wtonly_go_df[GSEA_comp5_go_df$NES<0,-c(1)]
  768. library(writexl)
  769. list_of_gsea <- list(Comparison_1_Hallmark_UP = GSEA_crenegonly_h_df_up,
  770. Comparison_1_Hallmark_DOWN = GSEA_crenegonly_h_df_down,
  771. Comparison_2_Hallmark_UP = GSEA_koonly_h_df_up,
  772. Comparison_2_Hallmark_DOWN = GSEA_koonly_h_df_down,
  773. Comparison_3_Hallmark_UP = GSEA_wtonly_h_df_up,
  774. Comparison_3_Hallmark_DOWN = GSEA_wtonly_h_df_down,
  775. Comparison_4_Hallmark_UP = GSEA_comp5_h_df_up,
  776. Comparison_4_Hallmark_DOWN = GSEA_comp5_h_df_down,
  777. Comparison_1_CP_UP = GSEA_crenegonly_cp_df_up,
  778. Comparison_1_CP_DOWN = GSEA_crenegonly_cp_df_down,
  779. Comparison_2_CP_UP = GSEA_koonly_cp_df_up,
  780. Comparison_2_CP_DOWN = GSEA_koonly_cp_df_down,
  781. Comparison_3_CP_UP = GSEA_wtonly_cp_df_up,
  782. Comparison_3_CP_DOWN = GSEA_wtonly_cp_df_down,
  783. Comparison_4_CP_UP = GSEA_comp5_cp_df_up,
  784. Comparison_4_CP_DOWN = GSEA_comp5_cp_df_down,
  785. Comparison_1_GO_UP = GSEA_crenegonly_go_df_up,
  786. Comparison_1_GO_DOWN = GSEA_crenegonly_go_df_down,
  787. Comparison_2_GO_UP = GSEA_koonly_go_df_up,
  788. Comparison_2_GO_DOWN = GSEA_koonly_go_df_down,
  789. Comparison_3_GO_UP = GSEA_wtonly_go_df_up,
  790. Comparison_3_GO_DOWN = GSEA_wtonly_go_df_down,
  791. Comparison_4_GO_UP = GSEA_comp5_go_df_up,
  792. Comparison_4_GO_DOWN = GSEA_comp5_go_df_down
  793. )
  794. write_xlsx(list_of_gsea, path = "Supplementary Table 8.xlsx")
  795. ```
  796. Fig 6d: Plot of top hallmark pathways from GSEA analysis
  797. ```{r}
  798. library('dplyr')
  799. library('stringr')
  800. library('ggplot2')
  801. GSEA_crenegonly_h_df$Comparison <- 1
  802. GSEA_koonly_h_df$Comparison <- 2
  803. GSEA_comp5_h_df$Comparison <- 4
  804. hallmark_all <- rbind(GSEA_crenegonly_h_df,GSEA_koonly_h_df,GSEA_comp5_h_df)
  805. hallmark_all <- hallmark_all %>%
  806. group_by(Comparison,sign(NES)) %>%
  807. arrange((-sign(NES)*NES), .by_group=TRUE) %>%
  808. dplyr::slice(1:3)
  809. hallmark_all$Description <- str_wrap(hallmark_all$Description, width = 40)
  810. hallmark_all <- hallmark_all[order(hallmark_all$NES),]
  811. hallmark_all$Comparison <- factor(hallmark_all$Comparison,levels=c(1,2,4))
  812. hallmark_all$Description <- gsub("^.*?_","",hallmark_all$Description)
  813. labels <- c('Comparison 1', 'Comparison 2', 'Comparison 4')
  814. names(labels) <- c(1,2,4)
  815. hallmark_all %>%
  816. mutate(ordering = as.numeric(Comparison) + NES,
  817. Description = fct_reorder(Description, ordering)) %>%
  818. mutate(Description = factor(Description),
  819. Description = factor(Description, levels = rev(levels(Description))))%>%
  820. ggplot(aes(x=NES, y=Description, fill = NES)) +
  821. geom_bar(stat = 'identity') +
  822. ggtitle("")+
  823. facet_grid(~Comparison, labeller = labeller(Comparison = labels))+
  824. xlab("Normalized Enrichment Score") + ylab("Hallmark Pathways")+
  825. scale_fill_gradient2(low = "blue",midpoint = 0, mid = "white", high ="red") +
  826. #theme_base(base_size = 16) +
  827. coord_cartesian(xlim = c(-3,3))+
  828. theme(axis.text.x = element_text(size = 12),
  829. axis.title.y = element_text(size = 18)) +
  830. geom_vline(xintercept = 0, color = "black", linetype = "dashed", linewidth = .5)
  831. ggsave("Hallmark_TopInAll.pdf", height = 3, width = 8)
  832. ```
  833. Fig 6F: Z-scores for proteins in the protein secretion pathway (output used to create plots in Prism)
  834. ```{r}
  835. secretion_proteins <- as.data.frame(gene_sets_h[gene_sets_h$gs_name=="HALLMARK_PROTEIN_SECRETION",])
  836. secretion_Alie_BMP <- Alie_ACM_BMP[secretion_proteins$gene_symbol,]
  837. secretion_Alie_BMP <- na.omit(secretion_Alie_BMP) #96 to 25
  838. secretion_Alie_BMP <- secretion_Alie_BMP[order(secretion_Alie_BMP[,2]),]
  839. secretion_Alie_BMP$"mean" <- rowMeans(secretion_Alie_BMP[,c(4:15)])
  840. secretion_Alie_BMP$"sd" <- rowSds(as.matrix(secretion_Alie_BMP[,(4:15)]))
  841. secretion_Alie_BMP[,(4:15)] <- (secretion_Alie_BMP[,(4:15)]-secretion_Alie_BMP$mean)/secretion_Alie_BMP$sd
  842. secretion_Alie_BMP$WT <- rowMeans(secretion_Alie_BMP[,c(4:9)])
  843. secretion_Alie_BMP$BMP6 <- rowMeans(secretion_Alie_BMP[,c(10:15)])
  844. secretion_Alie_BMP$up_down <- (secretion_Alie_BMP[,21]-secretion_Alie_BMP[,22])>0
  845. secretion_Alie_BMP <- secretion_Alie_BMP[order(-secretion_Alie_BMP[,22]),]
  846. write.csv(secretion_Alie_BMP, "./secretion_Alie_BMP.csv")
  847. ```
  848. Fig S12 and 6E: average Z-scores of secretory proteins (output used to create plots in Prism)
  849. ```{r}
  850. #Heatmap of secretory pathway proteins
  851. secretory_creneg <- read.csv("secretion proteomics creneg.csv") #from MSigDB MM3876
  852. rownames(secretory_creneg) <- secretory_creneg[,2]
  853. secretory_heatmap <- data_genename[rownames(secretory_creneg),]
  854. secretory_heatmap <- secretory_heatmap[order(as.numeric(secretory_heatmap[,55])),]
  855. secretory_heatmap$"mean" <- rowMeans(secretory_heatmap[,c(9:20)])
  856. secretory_heatmap$"sd" <- rowSds(as.matrix(secretory_heatmap[,(9:20)]))
  857. secretory_heatmap[,(28:43)] <- (secretory_heatmap[,(28:43)]-secretory_heatmap$mean)/secretory_heatmap$sd
  858. secretory_heatmap$Fmr1WTSmad4WTavg <- rowMeans(secretory_heatmap[,c(28:30)])
  859. secretory_heatmap$Fmr1WTSmad4cKOavg <- rowMeans(secretory_heatmap[,c(31:33)])
  860. secretory_heatmap$Fmr1KOSmad4WTavg <- rowMeans(secretory_heatmap[,c(34:36)])
  861. secretory_heatmap$Fmr1KOSmad4cKOavg <- rowMeans(secretory_heatmap[,c(37:39)])
  862. write.csv(secretory_heatmap, "./secretory_heatmap_zscore.csv")
  863. ```
  864. Session Info: packages and versions
  865. ```{r}
  866. sessionInfo()
  867. ```
  868. This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code.
  869. Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Ctrl+Shift+Enter*.
  870. Add a new chunk by clicking the *Insert Chunk* button on the toolbar or by pressing *Ctrl+Alt+I*.
  871. When you save the notebook, an HTML file containing the code and output will be saved alongside it (click the *Preview* button or press *Ctrl+Shift+K* to preview the HTML file).
  872. The preview shows you a rendered HTML copy of the contents of the editor. Consequently, unlike *Knit*, *Preview* does not run any R code chunks. Instead, the output of the chunk when it was last run in the editor is displayed.

Proteomic_Analysis_Dengetal.Rmd, under CC-BY-4.0 · at the source

Overview

  1. Molecular Neurobiology Laboratory, Salk Institute for Biological Studies, La Jolla, CA USA
  2. Medical Scientist Training Program, University of California, San Diego, La Jolla, CA USA
  3. Neurosciences Graduate Program, University of California, San Diego, La Jolla, CA USA
  4. In Vivo Scientific Services, Salk Institute for Biological Studies, La Jolla, CA USA
  5. Department of Biology, University of California, San Diego, La Jolla, CA USA
  6. Mass Spectrometry Core for Proteomics and Metabolomics, Salk Institute for Biological Studies, La Jolla, CA USA
  7. Multi-Omics Core, The Scripps Research Institute, La Jolla, CA USA
Institutions: Salk Institute for Biological Studies (United States); University of California San Diego (United States); Scripps Research Institute (United States)
Journal: Nature communications, volume 17, issue 1, article 5603
Dates: received 2 June 2024; accepted 31 March 2026; published online 23 April 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-71919-6 · PMID 42020399 · PMCID PMC13314986 · OpenAlex W7155183094
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: genetics / omics (modality), mouse (organism), other condition (population), autism (population), cellular / molecular (subfield)
Methods: Preprocessing, Statistics, Evoked potentials, Connectivity, Smoothing, state filtering, decompositions
Keywords: Astrocyte, Autism spectrum disorders
MeSH: Astrocytes*, Bone Morphogenetic Proteins*, Fragile X Syndrome*, Animals, Auditory Cortex, Disease Models, Animal, Fragile X Messenger Ribonucleoprotein 1, Male, Mice, Mice, Inbred C57BL, Mice, Knockout, Proteomics, Signal Transduction, Smad4 Protein (* major topic)
Topic: Genetics and Neurodevelopmental Disorders (Genetics, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Funding: NICHD NIH HHS (F30 HD106699); NINDS NIH HHS (R21 NS137659)
Citations: not cited yet (Europe PMC); 135 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repositories

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

Zenodo 18826425

License: CC-BY-4.0
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Languages: R (2)
Size: 7 files, 2 scripts
Software Heritage: not checked
Found in: “Code availability”
Holds: README, 2 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: clusterProfiler (2 files), ggplot2 (2 files), pheatmap (2 files), tidyverse (2 files), DESeq2 (1 file), STAR (1 file)
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
  • 29 September 2026: the link answers (HTTP 200)
5 files

Zenodo 18180000

License: CC-BY-4.0
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Languages: R (2)
Size: 7 files, 2 scripts
Software Heritage: not checked
Found in: DataCite
Holds: README, 2 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: clusterProfiler (2 files), ggplot2 (2 files), pheatmap (2 files), tidyverse (2 files), DESeq2 (1 file), STAR (1 file)
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
  • 29 September 2026: the link answers (HTTP 200)
5 files

Code availability statement

The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41467-026-71919-6.

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:

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

The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41467-026-71919-6.

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, 29 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 11 authors, 2 keywords, 14 MeSH terms, 2 funders, 133 references.

Cite

This paper

Deng, J., Paumier, A., Labarta-Bajo, L., Brandebura, A. N., Andrews, N. A., Kahn, S. B., Bassil, R., Tao, T., Pinto, A. F. M., Diedrich, J. K., & Allen, N. J. (2026). Suppression of astrocyte BMP signaling improves molecular signatures and functional deficits in a fragile X syndrome mouse model. Nature communications, 17(1), 5603. https://doi.org/10.1038/s41467-026-71919-6

BibTeX

@article{deng2026suppression,
author = {Deng, James and Paumier, Adrien and Labarta-Bajo, Lara and Brandebura, Ashley N and Andrews, Nick A and Kahn, Samuel B and Bassil, Reina and Tao, Tao and Pinto, Antonio F M and Diedrich, Jolene K and Allen, Nicola J},
title = {{Suppression of astrocyte BMP signaling improves molecular signatures and functional deficits in a fragile X syndrome mouse model}},
journal = {Nature communications},
year = {2026},
month = apr,
volume = {17},
number = {1},
pages = {5603},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-71919-6},
url = {https://doi.org/10.1038/s41467-026-71919-6},
pmid = {42020399},
pmcid = {PMC13314986}
}

RIS

TY - JOUR
AU - Deng, James
AU - Paumier, Adrien
AU - Labarta-Bajo, Lara
AU - Brandebura, Ashley N
AU - Andrews, Nick A
AU - Kahn, Samuel B
AU - Bassil, Reina
AU - Tao, Tao
AU - Pinto, Antonio F M
AU - Diedrich, Jolene K
AU - Allen, Nicola J
TI - Suppression of astrocyte BMP signaling improves molecular signatures and functional deficits in a fragile X syndrome mouse model
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/04/23
VL - 17
IS - 1
SP - 5603
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-71919-6
UR - https://doi.org/10.1038/s41467-026-71919-6
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-71919-6",
"type": "article-journal",
"title": "Suppression of astrocyte BMP signaling improves molecular signatures and functional deficits in a fragile X syndrome mouse model",
"container-title": "Nature communications",
"author": [
{
"family": "Deng",
"given": "James"
},
{
"family": "Paumier",
"given": "Adrien"
},
{
"family": "Labarta-Bajo",
"given": "Lara"
},
{
"family": "Brandebura",
"given": "Ashley N"
},
{
"family": "Andrews",
"given": "Nick A"
},
{
"family": "Kahn",
"given": "Samuel B"
},
{
"family": "Bassil",
"given": "Reina"
},
{
"family": "Tao",
"given": "Tao"
},
{
"family": "Pinto",
"given": "Antonio F M"
},
{
"family": "Diedrich",
"given": "Jolene K"
},
{
"family": "Allen",
"given": "Nicola J"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "5603",
"DOI": "10.1038/s41467-026-71919-6",
"PMID": "42020399",
"PMCID": "PMC13314986",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-71919-6",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
23
]
]
}
}

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.1038/s41467-026-71736-x
CK2 inhibition suppresses glial inflammation in models of neuroinflammation and neurodegeneration.
Journal: Nature communications
In common: other condition, mouse, cellular / molecular, 9 references, author Nicola J Allen
[2] doi:10.1016/j.xhgg.2026.100652 [code]
CRISPR-engineered deletion of POGZ alters transcription factor binding at promoters of genes involved in synaptic signaling.
Journal: HGG advances
In common: STAR, DESeq2, pheatmap, 2 other tools, autism, cellular / molecular, 6 references
[3] doi:10.1038/s41467-026-76132-z [code]
ATP13A4 gates extracellular polyamine levels to control excitatory synaptogenesis.
Journal: Nature communications
In common: pheatmap, ggplot2, tidyverse, mouse, 7 references
[4] doi:10.1186/s11689-026-09713-0 [code]
DRP1 mutations associated with EMPF1 encephalopathy perturb the transcriptional profile and maturation of cortical neurons.
Journal: Journal of neurodevelopmental disorders
In common: DESeq2, clusterProfiler, pheatmap, 2 other tools, other condition, 6 references
[5] doi:10.1038/s41386-026-02406-1 [code]
Functional genomic profiling of schizophrenia-associated genes reveals key microglial regulators.
Journal: Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology
In common: STAR, DESeq2, clusterProfiler, 3 other tools, genetics / omics, cellular / molecular, 4 references
[6] doi:10.7554/elife.107393 [code]
Chromosome-scale genome assembly of the European common cuttlefish &lt;i&gt;Sepia officinalis&lt;/i&gt;.
Journal: eLife
In common: STAR, DESeq2, clusterProfiler, 3 other tools, cellular / molecular, 4 references
[7] doi:10.1038/s44400-026-00075-x [code]
Common pathogenic mechanisms in the hippocampus across neurodegenerative dementias: Alzheimer's disease, Down syndrome, and Parkinson's disease.
Journal: NPJ dementia
In common: DESeq2, clusterProfiler, pheatmap, 2 other tools, other condition, 6 references
[8] doi:10.1093/narmme/ugag028 [code]
MCVAE-based multi-omic anomaly detection in Fragile X Syndrome.
Journal: NAR molecular medicine
In common: DESeq2, clusterProfiler, ggplot2, 1 other tool, genetics / omics, other condition, cellular / molecular, 4 references
[9] doi:10.1038/s41586-026-10512-9 [code]
Astrocyte glucocorticoid receptor signalling restricts neuronal plasticity.
Journal: Nature
In common: STAR, DESeq2, clusterProfiler, 3 other tools, mouse, cellular / molecular, 3 references
[10] 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: STAR, DESeq2, clusterProfiler, 3 other tools, genetics / omics, other condition, 3 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.