OSCR

Semaglutide attenuates neuroinflammation in male mice.

Code ↔ Paper

20 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 20 matches
  1. [1] § Methods › Single-nucleus RNA-seq data analysis › Analysis of SEA-AD snRNA-seq dataset ↔ analysis/integration_with_published_atlases.Rmd, lines 283–306 · score 0.80 · dimensionality reduction, SCTransform, FindNeighbors, FindClusters, RunPCA, Seurat
  2. [2] § Methods › Bulk RNA-seq data analysis › WGCNA ↔ analysis/WGCNA.Rmd, lines 107–120 · score 0.78 · deep split, cutreeDynamic, pam stage, WGCNA, modules, clustering
  3. [3] § Methods › Single-nucleus RNA-seq data analysis › DVC cell population annotation ↔ analysis/clustering_DVC_neurons.Rmd, lines 147–184 · score 0.71 · Slc17a6, Slc32a1, neuronal populations, Gad2, Tph2, Chat
  4. [4] § Methods › Single-nucleus RNA-seq data analysis › Initial processing ↔ analysis/integration_with_published_atlases.Rmd, lines 283–306 · score 0.69 · SCTransform, FindNeighbors, FindClusters, RunPCA, Seurat, clustering
  5. [5] § Methods › Single-nucleus RNA-seq data analysis › Comparing treatment response between the hippocampus and DVC ↔ analysis/figure5.Rmd, lines 355–443 · score 0.65 · fold changes, semaglutide induced, LPS induced, Spearman, correlate, rho
  6. [6] § Methods › Single-nucleus RNA-seq data analysis › Cell-cell communication analysis ↔ analysis/figure3.Rmd, lines 158–192 · score 0.65 · log fold change, CellChat, ligand, veh PBS, sema LPS, veh LPS
  7. [7] § Methods › Bulk RNA-seq data analysis › WGCNA ↔ analysis/figure1.Rmd, lines 308–342 · score 0.63 · likelihood ratio, logistic regression, eigengene, Modules, treatment
  8. [8] § Methods › Statistics and reproducibility › Statistical analyses ↔ analysis/figure1.Rmd, lines 308–342 · score 0.62 · likelihood ratio, logistic regression, module, FDR, matrices, treatment
  9. [9] § Results › Semaglutide attenuates LPS-induced neuroinflammation ↔ analysis/figure1.Rmd, lines 201–247 · score 0.59 · fractional area, entire brain, sema PBS, veh PBS, sema LPS, veh LPS
  10. [10] § Methods › Single-nucleus RNA-seq data analysis › Hippocampal cell population annotation ↔ analysis/integration_with_published_atlases.Rmd, lines 237–266 · score 0.57 · TransferData, endothelial cells, pericytes2, Bcas1, oligodendrocytes, VLMCs
  11. [11] § Methods › Single-nucleus RNA-seq data analysis › Milo analysis ↔ analysis/figure2.Rmd, lines 151–269 · score 0.56 · testNhoods, abundant neighborhoods, veh PBS, sema LPS, veh LPS, Mixed
  12. [12] § Methods › Single-nucleus RNA-seq data analysis › Milo analysis ↔ analysis/figure5.Rmd, lines 105–223 · score 0.56 · testNhoods, abundant neighborhoods, veh PBS, sema LPS, veh LPS, Mixed
  13. [13] § Methods › Bulk RNA-seq data analysis › Functional gene set enrichment analysis (WGCNA) ↔ analysis/figure1.Rmd, lines 466–510 · score 0.55 · KEGG, gost, kME, intersecting, query, Module
  14. [14] § Results › Semaglutide activates neurons in the dorsal vagal complex that express inflammation-attenuating neurotransmitters ↔ analysis/merge_DVC_glia_and_neurons.Rmd, lines 15–54 · score 0.55 · cholinergic neurons, ependymal cells, tanycytes, DVC
  15. [15] § Methods › Single-nucleus RNA-seq data analysis › Hippocampal cell population annotation ↔ analysis/integration_with_published_atlases.Rmd, lines 156–203 · score 0.54 · silhouette score, FindClusters, optimal, resolution, clustering, hippocampal
  16. [16] § Methods › Single-nucleus RNA-seq data analysis › Integration with AD genome-wide association study data ↔ analysis/figure4.Rmd, lines 30–43 · score 0.53 · AD GWAS, scDRS, enrichment, score, cell
  17. [17] § Results › Semaglutide activates neurons in the dorsal vagal complex that express inflammation-attenuating neurotransmitters ↔ analysis/figure5.Rmd, lines 105–223 · score 0.52 · abundant neighborhoods, DA neighborhoods, cell population, neurons, Sema, PBS
  18. [18] § Methods › Statistics and reproducibility › Statistical analyses ↔ analysis/SCENIC_analysis.Rmd, lines 325–424 · score 0.51 · linear mixed, regression, SCENIC, lsmeans, regulon, FDR
  19. [19] § Methods › Single-nucleus RNA-seq data analysis › Integration with AD genome-wide association study data ↔ analysis/figure4.Rmd, lines 30–43 · score 0.51 · enrichment score, scDRS, AD, cell
  20. [20] § Results › Semaglutide-induced attenuation of neuroinflammation is accompanied by changes in microglia, endothelial cells and pericytes ↔ analysis/figure5.Rmd, lines 355–443 · score 0.50 · log2 fold changes, semaglutide induced, Spearman, correlation, genes, treatment

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 · 451 lines · 19 KB · no license · 4 matches

  1. ---
  2. title: "integration_with_published_atlases"
  3. author: "Mette Ludwig"
  4. date: "2022-10-14"
  5. output: workflowr::wflow_html
  6. editor_options:
  7. chunk_output_type: inline
  8. ---
  9. ```{r}
  10. library(anndata)
  11. library(Seurat)
  12. library(ggplot2)
  13. library(ggpubr)
  14. library(cluster)
  15. library(parallelDist)
  16. library(doMC)
  17. library(Seurat)
  18. source("/projects/mludwig/Ludwig-2021/Ludwig-2021/code/compute_sil.R")
  19. ```
  20. # Load Seurat objects
  21. ```{r}
  22. hippo.glia <- readRDS("/projects/mludwig/hippo_GLP1/output/Seurat_objs/hippo_glia_Seurat_obj.rds")
  23. hippo.neurons <- readRDS("/projects/mludwig/hippo_GLP1/output/Seurat_objs/hippo_neurons_Seurat_obj.rds")
  24. ```
  25. # Preprocess Duan et al. (Neuron, 2018)
  26. ```{r}
  27. # Load Seurat obj
  28. duan <- readRDS("/projects/mludwig/hippo_GLP1/output/Seurat_objs_publications/Duan_Seurat_obj.rds")
  29. # Normalize
  30. duan <- SCTransform(duan, verbose = FALSE)
  31. # Define major cell type identities
  32. duan$cell.type <- "Unknown"
  33. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(21))] <- "Pericytes"
  34. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(23))] <- "Pericytes"
  35. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(17))] <- "VLMCs"
  36. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(13))] <- "Microglia"
  37. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(3))] <- "Endothelial_cells"
  38. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(5))] <- "Endothelial_cells"
  39. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(0))] <- "Astrocytes"
  40. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(24))] <- "Astrocytes"
  41. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(18))] <- "Neurons"
  42. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(1))] <- "Neurons"
  43. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(4))] <- "Neurons"
  44. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(8))] <- "Neurons"
  45. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(10))] <- "Neurons"
  46. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(11))] <- "Neurons"
  47. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(20))] <- "Neurons"
  48. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(14))] <- "Neurons"
  49. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(15))] <- "Astrocytes"
  50. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(7))] <- "Oligodendrocytes"
  51. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(22))] <- "Oligodendrocytes"
  52. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(29))] <- "Oligodendrocytes"
  53. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(19))] <- "Oligodendrocytes"
  54. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(6))] <- "Oligodendrocytes"
  55. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(25))] <- "Oligodendrocytes"
  56. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(9))] <- "Oligodendrocytes"
  57. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(26))] <- "Ependymal_cells"
  58. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(2))] <- "Neurons"
  59. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(12))] <- "Neurons"
  60. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(16))] <- "Neurons"
  61. duan$cell.type[which(duan$RNA_snn_res.1 %in% c(28))] <- "Neurons"
  62. # Define minor cell type identities
  63. duan$cell.type2 <- "Unknown"
  64. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(21))] <- "Pericytes1"
  65. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(23))] <- "Pericytes2"
  66. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(17))] <- "VLMCs"
  67. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(13))] <- "Microglia"
  68. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(3))] <- "Endothelial_cells1"
  69. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(5))] <- "Endothelial_cells2"
  70. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(0))] <- "Astrocytes1"
  71. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(24))] <- "Astrocytes2"
  72. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(18))] <- "Spock1_neurons"
  73. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(1))] <- "Nrgn_neurons1"
  74. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(4))] <- "Nrgn_neurons2"
  75. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(8))] <- "Nrgn_neurons3"
  76. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(10))] <- "Nrgn_neurons4"
  77. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(11))] <- "Nrgn_neurons5"
  78. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(20))] <- "Nrgn_neurons6"
  79. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(14))] <- "Reln_neurons"
  80. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(15))] <- "Tfap2c_cells"
  81. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(7))] <- "Mobp_oligodendrocytes1"
  82. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(22))] <- "Mobp_oligodendrocytes2"
  83. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(29))] <- "Mobp_oligodendrocytes3"
  84. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(19))] <- "Bcas1_oligodendrocytes"
  85. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(6))] <- "C1ql1_oligodendrocytes1"
  86. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(25))] <- "C1ql1_oligodendrocytes2"
  87. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(9))] <- "Enpp2_oligodendrocytes"
  88. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(26))] <- "Ependymal_cells"
  89. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(2))] <- "Unknown_neurons1"
  90. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(12))] <- "Unknown_neurons2"
  91. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(16))] <- "Unknown_neurons3"
  92. duan$cell.type2[which(duan$RNA_snn_res.1 %in% c(28))] <- "Unknown_neurons4"
  93. # Save
  94. # saveRDS(duan, file = "/projects/mludwig/hippo_GLP1/output/Seurat_objs_publications/Duan_Seurat_obj_labels.rds")
  95. ```
  96. # Transfer labels from Duan atlas
  97. ```{r}
  98. duan <- readRDS("/projects/mludwig/hippo_GLP1/output/Seurat_objs_publications/Duan_Seurat_obj_labels.rds")
  99. # Subset Duan atlas to glial cells
  100. duan.glia <- subset(duan, cell.type != "Neurons")
  101. # Normalize
  102. duan.glia <- SCTransform(duan.glia, verbose = F, method = "qpoisson")
  103. # Run dimensionality reduction
  104. duan.glia <- RunPCA(duan.glia, verbose = F)
  105. ElbowPlot(duan.glia, ndims = 50)
  106. duan.glia <- RunUMAP(duan.glia, dims = 1:30, n.neighbors = 50)
  107. # Transfer labels to hippocampal glial atlas
  108. anchors <- FindTransferAnchors(reference = duan.glia, query = hippo.glia,
  109. dims = 1:30, normalization.method = "SCT")
  110. predictions <- TransferData(anchorset = anchors, refdata = duan.glia$cell.type2,
  111. dims = 1:30)
  112. hippo.glia$duan.predictions <- predictions$predicted.id
  113. hippo.glia$duan.score <- predictions$prediction.score.max
  114. DimPlot(hippo.glia, group.by = "duan.predictions", label = T)
  115. ```
  116. # Label cell type identities
  117. ```{r}
  118. hippo.glia$cell.type <- ""
  119. hippo.glia$cell.type[which(hippo.glia$SCT_snn_res.0.1 %in% c(0, 2, 8))] <- "Mobp_oligodendrocytes"
  120. hippo.glia$cell.type[which(hippo.glia$SCT_snn_res.0.1 %in% c(1))] <- "Astrocytes"
  121. hippo.glia$cell.type[which(hippo.glia$SCT_snn_res.0.1 %in% c(3))] <- "Microglia"
  122. hippo.glia$cell.type[which(hippo.glia$SCT_snn_res.0.1 == 7)] <- "Unknown_glia"
  123. hippo.glia$cell.type[which(hippo.glia$SCT_snn_res.1 == 21)] <- "Pericytes2"
  124. hippo.glia$cell.type[which(hippo.glia$SCT_snn_res.1 == 25)] <- "VLMCs"
  125. hippo.glia$cell.type[which(hippo.glia$SCT_snn_res.0.1 %in% c(5) &
  126. hippo.glia$SCT_snn_res.1 == "18")] <- "Pericytes1"
  127. hippo.glia$cell.type[which(hippo.glia$SCT_snn_res.0.1 %in% c(5) &
  128. hippo.glia$SCT_snn_res.1 != "18")] <- "Endothelial_cells"
  129. hippo.glia$cell.type[which(hippo.glia$SCT_snn_res.0.1 %in% c(4) &
  130. hippo.glia$SCT_snn_res.1 != 19)] <- "C1ql1_oligodendrocytes"
  131. hippo.glia$cell.type[which(hippo.glia$SCT_snn_res.0.1 %in% c(4) &
  132. hippo.glia$SCT_snn_res.1 == 19)] <- "Bcas1_oligodendrocytes"
  133. hippo.glia$cell.type <- factor(hippo.glia$cell.type, levels = c("Astrocytes", "Bcas1_oligodendrocytes",
  134. "C1ql1_oligodendrocytes", "Endothelial_cells",
  135. "Microglia", "Mobp_oligodendrocytes",
  136. "Pericytes1", "Pericytes2",
  137. "Unknown_glia", "VLMCs"))
  138. ```
  139. # Compute silhouette scores to identify optimal clustering resolution
  140. ```{r}
  141. resolution <- seq(0.1, 1, 0.1)
  142. pc <- hippo.glia@reductions$[email hidden][, 1:30]
  143. distance <- parDist(pc, method = "euclidean")
  144. cluster.id <- as.character([email hidden][, "cell.type"])
  145. silhouette.cell.type <- compute.sil(x = cluster.id, dist = distance)
  146. print(mean(silhouette.cell.tyoe))
  147. stability <- data.frame(matrix(NA, nrow = ncol(hippo.glia), ncol = length(resolution)))
  148. colnames(stability) <- resolution
  149. rownames(stability) <- colnames(hippo.glia)
  150. for(i in 1:length(resolution)) {
  151. print(i)
  152. hippo.glia <- FindClusters(object = hippo.glia, resolution = resolution[i],
  153. verbose = F)
  154. cluster.id <- as.numeric(as.character([email hidden][, paste0("SCT_snn_res.", resolution[i])]))
  155. silhouette <- compute.sil(x = cluster.id, dist = distance)
  156. print(mean(silhouette))
  157. stability[,i] <- silhouette
  158. }
  159. stability <- cbind(cell.type = silhouette.cell.type, stability)
  160. # Save
  161. # saveRDS(stability, file = "/projects/mludwig/hippo_GLP1/output/Seurat_objs/silhouette_glia.rds")
  162. stability <- readRDS("/projects/mludwig/hippo_GLP1/output/Seurat_objs/silhouette_glia.rds")
  163. # Plot
  164. stability$cell <- rownames(stability)
  165. stability.melt <- reshape2::melt(stability, id.vars = "cell")
  166. stability.melt$variable <- gsub("cell.type", "Duan labels", stability.melt$variable)
  167. ggplot(stability.melt) +
  168. geom_boxplot(aes(x = variable, y = value), outlier.shape = NA, fill = "darkcyan") +
  169. theme_pubr() +
  170. theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
  171. xlab("Resolution") + ylab("Silhouette score") +
  172. scale_y_continuous(limits = c(-1, 1), breaks = seq(-1, 1, 0.25))
  173. ```
  174. # Preprocess Posner et al. (Current Opinion in Immunology, 2022)
  175. ```{r}
  176. # # Load anndata obj
  177. # posner.h5ad <- read_h5ad("/scratch/mlf210/CNSbordercellatlas_Dec22.h5ad")
  178. #
  179. # # Convert anndata obj to Seurat obj
  180. # posner.counts <- rbind(as.matrix(posner.h5ad[["X"]][1:65000, ]),
  181. # as.matrix(posner.h5ad[["X"]][65001:nrow(posner.h5ad[["X"]]), ]))
  182. #
  183. # posner.counts <- t(posner.counts)
  184. #
  185. # posner <- CreateSeuratObject(posner.counts, meta.data = posner.h5ad[["obs"]])
  186. # rm(posner.counts)
  187. # rm(posner.h5ad)
  188. #
  189. # # Normalize
  190. # posner <- SCTransform(posner, verbose = F, method = "qpoisson")
  191. #
  192. # # Run dimensionality reduction
  193. # posner <- RunPCA(posner, verbose = F)
  194. # ElbowPlot(posner, ndims = 50)
  195. # posner <- RunUMAP(posner, dims = 1:30, n.neighbors = 50)
  196. #
  197. # # Run clustering
  198. # posner <- FindNeighbors(posner, dims = 1:30, k.param = 50)
  199. # posner <- FindClusters(posner, resolution = 0.1, verbose = F)
  200. #
  201. # # Save
  202. # saveRDS(posner, file = "projects/mludwig/hippo_GLP1/output/Seurat_objs_publications/Posner_Seurat_obj.rds")
  203. ```
  204. # Transfer labels from Posner atlas
  205. ```{r}
  206. posner <- readRDS("/projects/mludwig/hippo_GLP1/output/Seurat_objs_publications/Posner_Seurat_obj.rds")
  207. anchors <- FindTransferAnchors(reference = posner, query = hippo.glia,
  208. dims = 1:30, normalization.method = "SCT")
  209. predictions <- TransferData(anchorset = anchors, refdata = posner$celltype,
  210. dims = 1:30)
  211. saveRDS(predictions, file = "/projects/mludwig/hippo_GLP1/output/Seurat_objs/Posner_predictions.rds")
  212. hippo.glia$posner.predictions <- predictions$predicted.id
  213. hippo.glia$posner.score <- predictions$prediction.score.max
  214. DimPlot(hippo.glia, group.by = "posner.predictions", label = T)
  215. # Update the labels
  216. hippo.glia$cell.type2 <- hippo.glia$cell.type
  217. hippo.glia$cell.type2 <- gsub("Unknown_glia", "Neutrophils", hippo.glia$cell.type2)
  218. hippo.glia$cell.type2 <- factor(hippo.glia$cell.type2, levels = c("Astrocytes",
  219. "Bcas1_oligodendrocytes",
  220. "C1ql1_oligodendrocytes",
  221. "Endothelial_cells",
  222. "Microglia",
  223. "Mobp_oligodendrocytes",
  224. "Neutrophils",
  225. "Pericytes1",
  226. "Pericytes2",
  227. "VLMCs"))
  228. ```
  229. # Save
  230. ```{r}
  231. [email hidden] <- [email hidden][, c("nCount_RNA", "nFeature_RNA",
  232. "nCount_SCT", "nFeature_SCT",
  233. "percent.mt", "pool", "hash.ID",
  234. "treatment", "drug", "time", "run",
  235. "SCT_snn_res.0.1", "SCT_snn_res.1",
  236. "duan.predictions", "duan.score",
  237. "cell.type", "cell.type2")]
  238. # saveRDS(hippo.glia,
  239. # file = "/projects/mludwig/hippo_GLP1/output/Seurat_objs/hippo_glia_Seurat_obj_labels.rds")
  240. ```
  241. # Preprocess Smart-seq data Yao et al. (Cell, 2021)
  242. ```{r}
  243. # Load Seurat object
  244. load("/projects/mludwig/hippo_GLP1/data/2021_Yao/Seurat.ss.rda")
  245. # Subset yao atlas to hippocampal neurons
  246. yao <- subset(ss.seurat, region_label == "HIP" & class_label != "Non-Neuronal")
  247. # Normalize
  248. yao <- SCTransform(yao, verbose = F, method = "qpoisson")
  249. # Run dimensionality reduction
  250. yao <- RunPCA(yao, verbose = F)
  251. ElbowPlot(yao, ndims = 50)
  252. yao <- RunUMAP(yao, dims = 1:30, n.neighbors = 50)
  253. # Run clustering
  254. yao <- FindNeighbors(yao, dims = 1:30, k.param = 50)
  255. yao <- FindClusters(yao, resolution = 0.1, verbose = F)
  256. DimPlot(yao, group.by = "class_label")
  257. DimPlot(yao, group.by = "subclass_label", label = T)
  258. DimPlot(yao, group.by = "region_label", label = T)
  259. ```
  260. # Transfer labels from Yao data
  261. ```{r}
  262. anchors <- FindTransferAnchors(reference = yao, query = hippo.neurons,
  263. dims = 1:30, normalization.method = "SCT")
  264. predictions <- TransferData(anchorset = anchors, refdata = yao$subclass_label,
  265. dims = 1:30)
  266. hippo.neurons$yao.predictions <- predictions$predicted.id
  267. hippo.neurons$yao.score <- predictions$predicted.id
  268. DimPlot(hippo.neurons, group.by = "yao.predictions", label = T)
  269. DimPlot(hippo.neurons, group.by = "cell.type", label = T)
  270. DimPlot(hippo.neurons, group.by = "SCT_snn_res.1", label = T)
  271. ```
  272. # Label cell type identities
  273. ```{r}
  274. hippo.neurons$cell.type <- paste0("Neurons", hippo.neurons$SCT_snn_res.0.1)
  275. hippo.neurons$cell.type <- factor(hippo.neurons$cell.type,
  276. levels = paste0("Neurons", sort(unique(hippo.neurons$SCT_snn_res.0.1))))
  277. hippo.neurons$cell.type2 <- ""
  278. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.1 == 17)] <- "Vip"
  279. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.1 == 15)] <- "Sncg"
  280. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.1 %in% c(14, 22))] <- "Lamp5"
  281. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.1 == 12)] <- "Sst"
  282. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.1 == 16)] <- "Pvalb"
  283. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.1 %in% c(0, 1, 2, 4, 5,
  284. 9, 13, 21, 24))] <- "DG"
  285. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.1 %in% c(3, 6, 8))] <- "CA1"
  286. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.1 %in% c(7, 11, 18, 23))] <- "CA3"
  287. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.1 == 19)] <- "SUB"
  288. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.1 == 20)] <- "ProS"
  289. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.1 == 10)] <- "CA2/CA3"
  290. DimPlot(hippo.neurons, group.by = "cell.type2", label = T)
  291. ```
  292. # Compute silhouette scores to identify optimal clustering resolution
  293. ```{r}
  294. resolution <- seq(0.1, 1, 0.1)
  295. pc <- hippo.neurons@reductions$[email hidden][, 1:30]
  296. distance <- parDist(pc, method = "euclidean")
  297. cluster.id <- as.character([email hidden][, "cell.type2"])
  298. silhouette.cell.type <- compute.sil(x = cluster.id, dist = distance)
  299. stability <- data.frame(matrix(NA, nrow = ncol(hippo.neurons), ncol = length(resolution)))
  300. colnames(stability) <- resolution
  301. rownames(stability) <- colnames(hippo.neurons)
  302. for(i in 1:length(resolution)) {
  303. print(i)
  304. hippo.neurons <- FindClusters(object = hippo.neurons, resolution = resolution[i],
  305. verbose = F)
  306. cluster.id <- as.numeric(as.character([email hidden][, paste0("SCT_snn_res.", resolution[i])]))
  307. silhouette <- compute.sil(x = cluster.id, dist = distance)
  308. print(mean(silhouette))
  309. stability[,i] <- silhouette
  310. }
  311. stability <- cbind(cell.type = silhouette.cell.type, stability)
  312. # saveRDS(stability, file = "/projects/mludwig/hippo_GLP1/output/Seurat_objs/silhouette_neurons.rds")
  313. stability <- readRDS("/projects/mludwig/hippo_GLP1/output/Seurat_objs/silhouette_neurons.rds")
  314. stability$cell <- rownames(stability)
  315. stability.melt <- reshape2::melt(stability, id.vars = "cell")
  316. stability.melt$variable <- gsub("cell.type", "Yao labels", stability.melt$variable)
  317. ggplot(stability.melt) +
  318. geom_boxplot(aes(x = variable, y = value), outlier.shape = NA, fill = "darkcyan") +
  319. theme_pubr() +
  320. theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
  321. xlab("Resolution") + ylab("Silhouette score") +
  322. scale_y_continuous(limits = c(-1, 1), breaks = seq(-1, 1, 0.25))
  323. ```
  324. # Update cell type labels at optimal clustering resolution
  325. ```{r}
  326. cellex <- read.csv(gzfile("/projects/mludwig/hippo_GLP1/output/cellex/output/hippo_neurons_mm.esmu.csv.gz"), row.names = 1)
  327. neuron.markers <- data.frame(matrix(NA, nrow = length(levels(hippo.neurons$cell.type)), ncol = 4))
  328. colnames(neuron.markers) <- c("cell.type", "marker1", "marker2", "marker3")
  329. neuron.markers$cell.type <- levels(hippo.neurons$cell.type)
  330. # Plot marker gene expression
  331. for (i in 1:nrow(neuron.markers)) {
  332. neuron.cell.type <- neuron.markers$cell.type[i]
  333. idx <- which(hippo.neurons$cell.type == neuron.cell.type)
  334. genes.ordered <- rownames(cellex)[order(cellex[, neuron.cell.type], decreasing = T)]
  335. genes.ordered <- genes.ordered[!(grepl("^Gm[0-9]|^ENSMUS|[0-9]Rik$", genes.ordered))]
  336. z <- 2
  337. for (j in genes.ordered) {
  338. nonzero.counts <- which(hippo.neurons@assays$RNA@counts[j, idx] != 0)
  339. nonzero.pct <- length(nonzero.counts) / length(idx) * 100
  340. if (nonzero.pct >= 25) {
  341. neuron.markers[i, z] <- j
  342. z <- z + 1
  343. }
  344. if (z > 4) {
  345. break
  346. }
  347. }
  348. }
  349. neuron.markers
  350. hippo.neurons$cell.type2 <- ""
  351. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.0.1 == 0)] <- "Glis3_DG_neurons"
  352. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.0.1 == 1)] <- "Satb2_CA1_neurons"
  353. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.0.1 == 2)] <- "Cd109_CA3_neurons"
  354. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.0.1 == 3)] <- "Crhbp_MGE_neurons"
  355. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.0.1 == 4)] <- "Lhx1_CA2/CA3_neurons"
  356. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.0.1 == 5)] <- "Htr3a_CGE_neurons"
  357. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.0.1 == 6)] <- "Igfbpl1_DG_neurons"
  358. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.0.1 == 7)] <- "Sfta3-ps_CGE_neurons"
  359. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.0.1 == 8)] <- "Csf2rb2_CA3_neurons"
  360. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.0.1 == 9)] <- "Abca12_Subiculum_neurons"
  361. hippo.neurons$cell.type2[which(hippo.neurons$SCT_snn_res.0.1 == 10)] <- "Nts_Prosubiculum_neurons"
  362. ```
  363. # Save
  364. ```{r}
  365. # saveRDS(hippo.neurons,
  366. # file = "/projects/mludwig/hippo_GLP1/output/Seurat_objs/hippo_neurons_Seurat_obj_labels.rds")
  367. ```

integration_with_published_atlases.Rmd at commit 4901ebb, no license · at the source

Overview

Authors: Dylan M Belmont-Rausch1,2,3, Mette Q Ludwig1,3, Marie A Bentsen4, Stine N Hansen3, Anna Secher3, Dorte Holst3, Jaime Moreno3, Vivek Das4, Kristoffer L Egerod1, Anne-Mette Bjerregaard4, Kristoffer Niss3, Sarah Bau3, Charles Pyke3, Kevin Dalgaard3, Myrte Merkestein3, Franziska Wichern5, Charlotte Thim Hansen4, Joseph Polex-Wolf4, Lotte Bjerre Knudsen3, Tune H Pers1,2
  1. Novo Nordisk Foundation Center for Basic Metabolic Research, University of Copenhagen, Copenhagen, Denmark
  2. Novo Nordisk Foundation Center for Genomic Mechanisms of Disease, Broad Institute of MIT and Harvard, Cambridge, MA USA
  3. Research and Development, Novo Nordisk A/S, Måløv, Denmark
  4. Research and Development, Novo Nordisk A/S, Søborg, Denmark
  5. Gubra A/S, Hørsholm, Denmark
Journal: Nature communications, volume 17, issue 1, article 7328
Dates: received 25 April 2025; accepted 27 May 2026; published online 9 June 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-74038-4 · PMID 42265098 · PMCID PMC13402617 · OpenAlex W7164043252
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: human (organism), mouse (organism), Alzheimer's / dementia (population), cellular / molecular (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Machine learning, Connectivity, fMRI & imaging, Spectral & time-frequency
Keywords: Neurodegeneration, Alzheimer's disease, Diseases of the nervous system
MeSH: Glucagon-Like Peptides*, Neuroinflammatory Diseases*, Animals, Brain, Cytokines, Disease Models, Animal, Endothelial Cells, Glucagon-Like Peptide-1 Receptor, Glucagon-Like Peptide-1 Receptor Agonists, Humans, Lipopolysaccharides, Male, Mice, Mice, Inbred C57BL, Microglia, Neurons, Neutrophils, Semaglutide, Signal Transduction (* major topic)
Topic: Diabetes Treatment and Management (Endocrinology, Diabetes and Metabolism, Medicine), according to OpenAlex
Funding: Det Frie Forskningsråd (8045-00091B); Novo Nordisk Fonden (NNF18CC0034900); Lundbeckfonden (Lundbeck Foundation) (R190-2014-3904); NIDDK NIH HHS (R01 DK124238); Foundation for the National Institutes of Health (R01 DK124238)
Citations: not cited yet (Europe PMC); 80 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.

Repository

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

perslab/Rausch-Ludwig-Bentsen-2026

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 4901ebba0474462ba663b6b1f81635f99886ffb3, 8 May 2026
Languages: R (37)
Size: 48 files, 37 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, documentation, 36 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration
Tools: Seurat (28 files), ggplot2 (23 files), ggpubr (21 files), tidyverse (14 files), cowplot (13 files), reshape2 (8 files), emmeans (6 files), patchwork (5 files), lme4 (4 files), SingleCellExperiment (4 files), DESeq2 (3 files), WGCNA (2 files), anndata (1 file), data.table (1 file), mgcv (1 file), NumPy (1 file), pandas (1 file), Scanpy (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
38 files

Availability statements

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

Read them in the paper: doi.org/10.1038/s41467-026-74038-4.

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;
  • 37 scripts, each with its path and the digest of its content;
  • 20 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

Code and data availability statement

The paper has a code and 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-74038-4.

Versions

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

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 20 authors, 3 keywords, 19 MeSH terms, 5 funders, 76 references.

Cite

This paper

Belmont-Rausch, D. M., Ludwig, M. Q., Bentsen, M. A., Hansen, S. N., Secher, A., Holst, D., Moreno, J., Das, V., Egerod, K. L., Bjerregaard, A.-M., Niss, K., Bau, S., Pyke, C., Dalgaard, K., Merkestein, M., Wichern, F., Hansen, C. T., Polex-Wolf, J., Knudsen, L. B., & Pers, T. H. (2026). Semaglutide attenuates neuroinflammation in male mice. Nature communications, 17(1), 7328. https://doi.org/10.1038/s41467-026-74038-4

BibTeX

@article{belmontrausch2026semaglutide,
author = {Belmont-Rausch, Dylan M and Ludwig, Mette Q and Bentsen, Marie A and Hansen, Stine N and Secher, Anna and Holst, Dorte and Moreno, Jaime and Das, Vivek and Egerod, Kristoffer L and Bjerregaard, Anne-Mette and Niss, Kristoffer and Bau, Sarah and Pyke, Charles and Dalgaard, Kevin and Merkestein, Myrte and Wichern, Franziska and Hansen, Charlotte Thim and Polex-Wolf, Joseph and Knudsen, Lotte Bjerre and Pers, Tune H},
title = {{Semaglutide attenuates neuroinflammation in male mice}},
journal = {Nature communications},
year = {2026},
month = jun,
volume = {17},
number = {1},
pages = {7328},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-74038-4},
url = {https://doi.org/10.1038/s41467-026-74038-4},
pmid = {42265098},
pmcid = {PMC13402617}
}

RIS

TY - JOUR
AU - Belmont-Rausch, Dylan M
AU - Ludwig, Mette Q
AU - Bentsen, Marie A
AU - Hansen, Stine N
AU - Secher, Anna
AU - Holst, Dorte
AU - Moreno, Jaime
AU - Das, Vivek
AU - Egerod, Kristoffer L
AU - Bjerregaard, Anne-Mette
AU - Niss, Kristoffer
AU - Bau, Sarah
AU - Pyke, Charles
AU - Dalgaard, Kevin
AU - Merkestein, Myrte
AU - Wichern, Franziska
AU - Hansen, Charlotte Thim
AU - Polex-Wolf, Joseph
AU - Knudsen, Lotte Bjerre
AU - Pers, Tune H
TI - Semaglutide attenuates neuroinflammation in male mice
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/06/09
VL - 17
IS - 1
SP - 7328
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-74038-4
UR - https://doi.org/10.1038/s41467-026-74038-4
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-74038-4",
"type": "article-journal",
"title": "Semaglutide attenuates neuroinflammation in male mice",
"container-title": "Nature communications",
"author": [
{
"family": "Belmont-Rausch",
"given": "Dylan M"
},
{
"family": "Ludwig",
"given": "Mette Q"
},
{
"family": "Bentsen",
"given": "Marie A"
},
{
"family": "Hansen",
"given": "Stine N"
},
{
"family": "Secher",
"given": "Anna"
},
{
"family": "Holst",
"given": "Dorte"
},
{
"family": "Moreno",
"given": "Jaime"
},
{
"family": "Das",
"given": "Vivek"
},
{
"family": "Egerod",
"given": "Kristoffer L"
},
{
"family": "Bjerregaard",
"given": "Anne-Mette"
},
{
"family": "Niss",
"given": "Kristoffer"
},
{
"family": "Bau",
"given": "Sarah"
},
{
"family": "Pyke",
"given": "Charles"
},
{
"family": "Dalgaard",
"given": "Kevin"
},
{
"family": "Merkestein",
"given": "Myrte"
},
{
"family": "Wichern",
"given": "Franziska"
},
{
"family": "Hansen",
"given": "Charlotte Thim"
},
{
"family": "Polex-Wolf",
"given": "Joseph"
},
{
"family": "Knudsen",
"given": "Lotte Bjerre"
},
{
"family": "Pers",
"given": "Tune H"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "7328",
"DOI": "10.1038/s41467-026-74038-4",
"PMID": "42265098",
"PMCID": "PMC13402617",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-74038-4",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
9
]
]
}
}

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/s42255-026-01539-3 [code]
A cross-species atlas of the dorsal vagal complex reveals neural mediators of the effects of cagrilintide on energy balance.
Journal: Nature metabolism
In common: DESeq2, emmeans, Seurat, 6 other tools, mouse, 5 references, 5 authors
[2] 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, SingleCellExperiment, anndata, 13 other tools, cellular / molecular, 4 references
[3] doi:10.1038/s41398-026-04200-5 [code]
Postmortem brain single-nucleus and bulk gene expression analyses identify shared and distinct abnormalities in bipolar disorder and major depressive disorder.
Journal: Translational psychiatry
In common: WGCNA, SingleCellExperiment, anndata, 10 other tools, cellular / molecular, 4 references
[4] doi:10.1038/s41467-026-73305-8 [code]
Comparative analysis of the cellular landscape in mammalian striatum.
Journal: Nature communications
In common: WGCNA, SingleCellExperiment, anndata, 12 other tools, mouse, cellular / molecular, 1 reference
[5] doi:10.1016/j.stem.2026.05.005 [code]
Generation of human appetite-regulating neurons and tanycytes from pluripotent stem cells.
Journal: Cell stem cell
In common: SingleCellExperiment, anndata, Scanpy, 7 other tools, cellular / molecular, 2 references, author Tune H Pers
[6] doi:10.1038/s41467-026-71595-6 [code]
A single-cell and spatial atlas of early human olfactory development.
Journal: Nature communications
In common: mgcv, SingleCellExperiment, anndata, 11 other tools, 1 reference
[7] doi:10.1038/s41586-026-10629-x [code]
Whole-genome duplication shaped cell-type evolution in the vertebrate brain.
Journal: Nature
In common: anndata, DESeq2, Scanpy, 10 other tools, mouse, cellular / molecular, 2 references
[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: mgcv, WGCNA, DESeq2, 11 other tools
[9] doi:10.1002/imt2.70163 [code]
Spatial multi-omics unveils sphingolipid metabolic reprogramming within the retinal pathological niche.
Journal: iMeta
In common: SingleCellExperiment, anndata, DESeq2, 11 other tools, mouse, cellular / molecular
[10] doi:10.1038/s42003-026-10034-0 [code]
Region- and cell type-specific changes in gene expression in the cerebellum after classical fear conditioning.
Journal: Communications biology
In common: SingleCellExperiment, anndata, DESeq2, 10 other tools, mouse, cellular / molecular, 1 reference

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.