OSCR

A Systems-Level Transcriptomic Framework Identifies Shared Cellular Hubs in Osteoarthritis and Alzheimer's Disease.

Code ↔ Paper

19 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 19 matches
  1. [1] § Results › Single-cell transcriptomic analysis of OA cartilage highlights Fibrochondrocyte_1 as a putative sender-like hub within inferred intratissue networks ↔ singlecell code OA.R, lines 173–239 · score 0.95 · reparative chondrocytes, proliferation chondrocytes, homeostatic chondrocytes, ProC, HomC_1, HomC_2
  2. [2] § Materials and Methods › Single-cell data analysis ↔ singlecell code OA.R, lines 84–170 · score 0.94 · FindVariableFeatures, NormalizeData, RunPCA, ScaleData, novelty score, Seurat
  3. [3] § Materials and Methods › Single-cell data analysis ↔ singlecell codeAD.R, lines 115–162 · score 0.88 · FindVariableFeatures, NormalizeData, RunPCA, ScaleData, batch, resolution
  4. [4] § Results › Neurovascular- and endothelial-associated pathway activity in OA and AD ↔ singlecell codeAD.R, lines 699–705 · score 0.85 · leukocyte transendothelial migration, VEGF signaling pathway, Wnt signaling pathway, ECM receptor interaction, adherens junction, cell
  5. [5] § Results › Neurovascular- and endothelial-associated pathway activity in OA and AD ↔ singlecell code OA.R, lines 662–667 · score 0.84 · leukocyte transendothelial migration, VEGF signaling pathway, Wnt signaling pathway, ECM receptor interaction, adherens junction, OA
  6. [6] § Results › Single-cell transcriptomic analysis of OA cartilage highlights Fibrochondrocyte_1 as a putative sender-like hub within inferred intratissue networks ↔ singlecell code OA.R, lines 361–420 · score 0.84 · quantitative centrality metrics, preHTC_2, RepC_1, preInfC_1, cell communication, preHTC_1
  7. [7] § Results › Neurovascular- and endothelial-associated pathway activity in OA and AD ↔ singlecell code OA.R, lines 662–667 · score 0.80 · leukocyte transendothelial migration, ECM receptor interaction, adherens junction, preHTC_1, InfC_1, pathway
  8. [8] § Materials and Methods › Differential expression analysis ↔ DIFF code.R, lines 137–193 · score 0.79 · log2 fold change, cor.test, phyper, Spearman, concordance, hypergeometric
  9. [9] § Results › Single-cell transcriptomic analysis of AD cortex highlights Oligodendrocyte_3 as a putative receiver-like hub within inferred intratissue networks ↔ singlecell codeAD.R, lines 241–304 · score 0.77 · microglia_1, excitatory_neuron_5, oligodendrocyte_1, endothelial_cell_1, astrocytes_1, oligodendrocyte_3
  10. [10] § Results › Neurovascular- and endothelial-associated pathway activity in OA and AD ↔ singlecell codeAD.R, lines 699–705 · score 0.77 · adherens junction, VEGF signaling, Wnt signaling, endothelial_cell_1, astrocytes_1, box
  11. [11] § Results › Single-cell transcriptomic analysis of OA cartilage highlights Fibrochondrocyte_1 as a putative sender-like hub within inferred intratissue networks ↔ singlecell code OA.R, lines 173–239 · score 0.74 · ABI3BP, COL1A1, preHTC_1, InfC_1, CRTAC1, MMP2
  12. [12] § Results › Single-cell transcriptomic analysis of AD cortex highlights Oligodendrocyte_3 as a putative receiver-like hub within inferred intratissue networks ↔ singlecell codeAD.R, lines 241–304 · score 0.73 · microglia_1, excitatory_neuron_5, oligodendrocyte_1, endothelial_cell_1, astrocytes_1, oligodendrocyte_3
  13. [13] § Materials and Methods › Single-cell data analysis ↔ singlecell codeAD.R, lines 76–113 · score 0.65 · AD13, AD19, AD6, AD8, NC11, NC16
  14. [14] § Results › Single-cell transcriptomic analysis of AD cortex highlights Oligodendrocyte_3 as a putative receiver-like hub within inferred intratissue networks ↔ singlecell codeAD.R, lines 368–438 · score 0.64 · quantitative centrality metrics, oligodendrocyte_1, astrocytes_1, oligodendrocyte_3, interaction, networks
  15. [15] § Results › Single-cell transcriptomic analysis of OA cartilage highlights Fibrochondrocyte_1 as a putative sender-like hub within inferred intratissue networks ↔ singlecell code OA.R, lines 304–346 · score 0.59 · ProC_1, preInfC_1, preHTC_1, expansion, OA, RNA
  16. [16] § Results › Single-cell transcriptomic analysis of AD cortex highlights Oligodendrocyte_3 as a putative receiver-like hub within inferred intratissue networks ↔ singlecell codeAD.R, lines 306–352 · score 0.59 · donor aware, microglia_1, oligodendrocyte_3, expanded, abundance, AD
  17. [17] § Results › Single-cell transcriptomic analysis of AD cortex highlights Oligodendrocyte_3 as a putative receiver-like hub within inferred intratissue networks ↔ singlecell codeAD.R, lines 495–541 · score 0.56 · excitatory_neuron_5, oligodendrocyte_3, endothelial cells, subtypes, receiver, Astrocytes
  18. [18] § Materials and Methods › Single-cell data analysis ↔ singlecell code OA.R, lines 361–420 · score 0.51 · CellChat, cell communication, databases, interactions, networks, Seurat
  19. [19] § Materials and Methods › Single-cell data analysis ↔ singlecell codeAD.R, lines 368–438 · score 0.51 · CellChat, cell communication, databases, interactions, networks, Seurat

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 · 705 lines · 33 KB · no license · 10 matches

  1. ########Data Processing, Filtering, and Integration#########
  2. #load packages#
  3. library(Seurat)
  4. library(multtest)
  5. library(dplyr)
  6. library(ggplot2)
  7. library(patchwork)
  8. library(SeuratData)
  9. library(stringr)
  10. ###load_data###
  11. #load_data+creat_seurat#
  12. rm(list = ls())
  13. AD1 <- Read10X(data.dir = "GSE157827/AD1/")
  14. AD1 <- CreateSeuratObject(counts = AD1, project = "AD1", min.cells = 3, min.features = 200)
  15. AD2 <- Read10X(data.dir = "GSE157827/AD2/")
  16. AD2 <- CreateSeuratObject(counts = AD2, project = "AD2", min.cells = 3, min.features = 200)
  17. AD4 <- Read10X(data.dir = "GSE157827/AD4/")
  18. AD4 <- CreateSeuratObject(counts = AD4, project = "AD4", min.cells = 3, min.features = 200)
  19. AD5 <- Read10X(data.dir = "GSE157827/AD5/")
  20. AD5 <- CreateSeuratObject(counts = AD5, project = "AD5", min.cells = 3, min.features = 200)
  21. AD9 <- Read10X(data.dir = "GSE157827/AD9/")
  22. AD9 <- CreateSeuratObject(counts = AD9, project = "AD9", min.cells = 3, min.features = 200)
  23. AD10 <- Read10X(data.dir = "GSE157827/AD10/")
  24. AD10 <- CreateSeuratObject(counts = AD10, project = "AD10", min.cells = 3, min.features = 200)
  25. AD20 <- Read10X(data.dir = "GSE157827/AD20/")
  26. AD20 <- CreateSeuratObject(counts = AD20, project = "AD20", min.cells = 3, min.features = 200)
  27. AD21 <- Read10X(data.dir = "GSE157827/AD21/")
  28. AD21 <- CreateSeuratObject(counts = AD21, project = "AD21", min.cells = 3, min.features = 200)
  29. NC3 <- Read10X(data.dir = "GSE157827/NC3/")
  30. NC3 <- CreateSeuratObject(counts = NC3, project = "NC3", min.cells = 3, min.features = 200)
  31. NC7 <- Read10X(data.dir = "GSE157827/NC7/")
  32. NC7 <- CreateSeuratObject(counts = NC7, project = "NC7", min.cells = 3, min.features = 200)
  33. NC12 <- Read10X(data.dir = "GSE157827/NC12/")
  34. NC12 <- CreateSeuratObject(counts = NC12, project = "NC12", min.cells = 3, min.features = 200)
  35. NC14 <- Read10X(data.dir = "GSE157827/NC14/")
  36. NC14 <- CreateSeuratObject(counts = NC14, project = "NC14", min.cells = 3, min.features = 200)
  37. NC15 <- Read10X(data.dir = "GSE157827/NC15/")
  38. NC15 <- CreateSeuratObject(counts = NC15, project = "NC15", min.cells = 3, min.features = 200)
  39. NC17 <- Read10X(data.dir = "GSE157827/NC17/")
  40. NC17 <- CreateSeuratObject(counts = NC17, project = "NC17", min.cells = 3, min.features = 200)
  41. NC18 <- Read10X(data.dir = "GSE157827/NC18/")
  42. NC18 <- CreateSeuratObject(counts = NC18, project = "NC18", min.cells = 3, min.features = 200)
  43. #merge_data#
  44. merged_seurat <- merge(AD1, y = c(AD2,AD4,AD5,AD9,AD10,AD20,AD21,
  45. NC3,NC7,NC12,NC14,NC15,NC17,NC18),
  46. add.cell.ids = c("AD1","AD2","AD4","AD5","AD9","AD10","AD20","AD21",
  47. "NC3","NC7","NC12","NC14","NC15","NC17","NC18"))
  48. #count_UMI_MT#
  49. merged_seurat$mitoRatio <- PercentageFeatureSet(object = merged_seurat, pattern = "^MT-")
  50. merged_seurat$mitoRatio <- [email hidden]$mitoRatio / 100
  51. #creat_metadata_include_base&sample&group_information#
  52. metadata <- [email hidden]
  53. metadata$cells <- rownames(metadata)
  54. metadata <- metadata %>%
  55. dplyr::rename(seq_folder = orig.ident,
  56. nUMI = nCount_RNA,
  57. nGene = nFeature_RNA)
  58. metadata$sample <- NA
  59. metadata$sample[which(str_detect(metadata$cells, "AD1"))] <- 'AD1'
  60. metadata$sample[which(str_detect(metadata$cells, "AD2"))] <- 'AD2'
  61. metadata$sample[which(str_detect(metadata$cells, "AD4"))] <- 'AD4'
  62. metadata$sample[which(str_detect(metadata$cells, "AD5"))] <- 'AD5'
  63. metadata$sample[which(str_detect(metadata$cells, "AD9"))] <- 'AD9'
  64. metadata$sample[which(str_detect(metadata$cells, "AD10"))] <- 'AD10'
  65. metadata$sample[which(str_detect(metadata$cells, "AD20"))] <- 'AD20'
  66. metadata$sample[which(str_detect(metadata$cells, "AD21"))] <- 'AD21'
  67. metadata$sample[which(str_detect(metadata$cells, "NC3"))] <- 'NC3'
  68. metadata$sample[which(str_detect(metadata$cells, "NC7"))] <- 'NC7'
  69. metadata$sample[which(str_detect(metadata$cells, "NC12"))] <- 'NC12'
  70. metadata$sample[which(str_detect(metadata$cells, "NC14"))] <- 'NC14'
  71. metadata$sample[which(str_detect(metadata$cells, "NC15"))] <- 'NC15'
  72. metadata$sample[which(str_detect(metadata$cells, "NC17"))] <- 'NC17'
  73. metadata$sample[which(str_detect(metadata$cells, "NC18"))] <- 'NC18'
  74. metadata <- metadata %>% mutate(disease = case_when(
  75. sample %in% c("AD1","AD2","AD4","AD5","AD9","AD10",
  76. "AD20","AD21") ~ 'AD',
  77. sample %in% c("NC3","NC7","NC12","NC14","NC15","NC17","NC18") ~ 'NC'))
  78. [email hidden] <- metadata
  79. ###QC###
  80. filtered_seurat <- subset(x = merged_seurat,
  81. subset= (nUMI < 20000) &
  82. (nGene > 200) &
  83. (mitoRatio < 0.20))
  84. filtered_seurat_QC <- JoinLayers(filtered_seurat)
  85. counts <- LayerData(object = filtered_seurat_QC, layer = "counts")
  86. nonzero <- counts > 0
  87. keep_genes <- Matrix::rowSums(nonzero) >= 10
  88. filtered_counts <- counts[keep_genes, ]
  89. matched_meta <- [email hidden][colnames(filtered_counts), ]
  90. filtered_seurat <- CreateSeuratObject(counts = filtered_counts,meta.data = matched_meta)
  91. #Filter_out_samples_that_contain_fewer_than_4,000 cells#
  92. #remove(AD6,AD8,AD13,AD19,NC11)#
  93. table(filtered_seurat$sample)
  94. metadata <- [email hidden]
  95. #QC_Visualize#
  96. metadata %>% ggplot(aes(x=sample, fill=sample)) + geom_bar() +
  97. theme_classic() +theme(axis.text.x = element_text(angle = 45, vjust = 1, hjust=1)) +
  98. theme(plot.title = element_text(hjust=0.5, face="bold")) +
  99. ggtitle("NCells")
  100. metadata %>% ggplot(aes(color=sample, x=nUMI, fill= sample)) +
  101. geom_density(alpha = 0.2) + scale_x_log10() + theme_classic() +
  102. ylab("Cell density") +geom_vline(xintercept = 500)
  103. #(because_shift_remove_NC16)⬇#
  104. metadata %>% ggplot(aes(color=sample, x=nGene, fill= sample)) + geom_density(alpha = 0.2) +
  105. theme_classic() +scale_x_log10() + geom_vline(xintercept = 300)
  106. metadata %>% ggplot(aes(x=sample, y=log10(nGene), fill=sample)) + geom_boxplot() +
  107. theme_classic() +theme(axis.text.x = element_text(angle = 45, vjust = 1, hjust=1)) +
  108. theme(plot.title = element_text(hjust=0.5, face="bold")) +ggtitle("NCells vs NGenes")
  109. metadata %>%
  110. ggplot(aes(x=nUMI, y=nGene, color=mitoRatio)) + geom_point() +
  111. scale_colour_gradient(low = "gray90", high = "black") +stat_smooth(method=lm) +
  112. scale_x_log10() + scale_y_log10() + theme_classic() +geom_vline(xintercept = 500) +
  113. geom_hline(yintercept = 250) +facet_wrap(~sample)
  114. #Memory_optimization##
  115. rm(AD1,AD2,AD4,AD5,AD9,AD10,AD20,AD21,NC3,NC7,NC12,NC14,NC15,NC17,NC18,
  116. filtered_seurat_QC,counts,filtered_counts,nonzero,merged_seurat)
  117. gc()
  118. #normalize data#
  119. scRNAlist_merge <- NormalizeData(filtered_seurat)
  120. scRNAlist_merge <- FindVariableFeatures(scRNAlist_merge,nfeatures = 2000)
  121. scRNAlist_merge <- ScaleData(scRNAlist_merge,vars.to.regress = c('mitoRatio'))
  122. #run_PCA#
  123. scRNAlist_merge <- RunPCA(scRNAlist_merge,npcs = 50)
  124. print(scRNAlist_merge[["pca"]], dims = 1:5, nfeatures = 5)
  125. #visualize_check_data#
  126. VizDimLoadings(scRNAlist_merge, dims = 1:2, reduction = "pca")
  127. DimPlot(scRNAlist_merge, reduction = "pca")
  128. DimHeatmap(scRNAlist_merge, dims = 1:20, cells = 500, balanced = TRUE)
  129. #remove_Batch_effect_by_harmony#
  130. library(harmony)
  131. scRNA_harmony <- RunHarmony(object = scRNAlist_merge,
  132. group.by.vars = "orig.ident",
  133. reduction = "pca",
  134. dims.use = 1:20,
  135. reduction.save = "harmony")
  136. #joinLayers#
  137. scRNA_harmony[['RNA']] <- JoinLayers(scRNA_harmony[['RNA']])
  138. # chose_0.4_resolution#
  139. scRNA_harmony <- FindNeighbors(scRNA_harmony,reduction = 'harmony',dims = 1:20)
  140. scRNA_harmony <- FindClusters(scRNA_harmony,resolution = seq(from = 0.1,to = 1.0, by = 0.1))
  141. scRNA_harmony <- RunUMAP(scRNA_harmony,dims = 1:20,reduction = 'harmony')
  142. scRNA_harmony <- RunTSNE(scRNA_harmony,dims = 1:20,reduction = 'harmony')
  143. scRNA_harmony$RNA_snn_res.0.4
  144. Idents(scRNA_harmony) <- 'RNA_snn_res.0.4'
  145. DimPlot(scRNA_harmony,reduction = 'umap')
  146. #UMAP_and_TSNE#
  147. umap_integrated_1 <- DimPlot(scRNA_harmony,reduction = 'umap',group.by = 'orig.ident',label = T)
  148. umap_integrated_2 <- DimPlot(scRNA_harmony,reduction = 'tsne', label = T)
  149. umap_integrated_3 <- DimPlot(scRNA_harmony,reduction = 'umap', label = T)
  150. umap_integrated_4 <- DimPlot(scRNA_harmony,reduction = 'umap',group.by = 'disease',label = T)
  151. umap_integrated_1
  152. umap_integrated_2
  153. umap_integrated_3
  154. umap_integrated_4
  155. # save data
  156. save(scRNA_harmony,file = 'scRNA_harmony.Rdata')
  157. ########Run analysis#########
  158. rm(list = ls())
  159. gc()
  160. #load packages#
  161. library(Seurat)
  162. library(multtest)
  163. library(dplyr)
  164. library(ggplot2)
  165. library(patchwork)
  166. library(SeuratData)
  167. library(dplyr)
  168. ###load_data###
  169. load('scRNA_harmony.Rdata')
  170. scRNA_harmony$RNA_snn_res.0.4
  171. Idents(scRNA_harmony) <- 'RNA_snn_res.0.4'
  172. DimPlot(scRNA_harmony,reduction = 'umap')
  173. ###Annotation_was_based_on_marker_genes_reported_in_the_original_publication###
  174. current_levels <- levels(scRNA_harmony)
  175. sorted_levels <- as.character(sort(as.numeric(current_levels)))
  176. Idents(scRNA_harmony) <- factor(Idents(scRNA_harmony), levels = sorted_levels)
  177. levels(scRNA_harmony)
  178. new.cluster.ids <- c("oligodendrocyte_1", # "MBP"0
  179. "astrocytes_1", # "AQP4"1
  180. "excitatory_neuron_1", # "CAMK2A"2
  181. "excitatory_neuron_2", # "CAMK2A"3
  182. "inhibitory_neuron_1", # "GAD1"
  183. "inhibitory_neuron_2", # "GAD1"8
  184. "excitatory_neuron_3", # "CAMK2A"6
  185. "microglia_1", # "C3" 7
  186. "inhibitory_neuron_3", # "GAD1"8
  187. "excitatory_neuron_4", # "CAMK2A"9
  188. "excitatory_neuron_5", # "CAMK2A"10
  189. "inhibitory_neuron_4", # "GAD1"11
  190. "excitatory_neuron_6", # "CAMK2A"12
  191. "inhibitory_neuron_5", # "GAD1"
  192. "excitatory_neuron_7", # "CAMK2A"
  193. "excitatory_neuron_8", # "CAMK2A"
  194. "excitatory_neuron_9", # "CAMK2A"
  195. "endothelial_cell_1", # "CLDN5"
  196. "astrocytes_2", # "AQP4"
  197. "excitatory_neuron_10", # "CAMK2A"
  198. "excitatory_neuron_11", # "CAMK2A"
  199. "oligodendrocyte_2", # "MBP"
  200. "excitatory_neuron_12", # "CAMK2A"
  201. "excitatory_neuron_13", # "CAMK2A"
  202. "inhibitory_neuron_6", # "GAD1"
  203. "oligodendrocyte_3", # "MBP"
  204. "astrocytes_3") # "AQP4"
  205. names(new.cluster.ids) <- levels(scRNA_harmony)
  206. scRNA_harmony <- RenameIdents(scRNA_harmony, new.cluster.ids)
  207. scRNA_harmony<- AddMetaData(object = scRNA_harmony,
  208. metadata = [email hidden],
  209. col.name = "celltype")
  210. #visualize_Annotation_marker_genes#
  211. cell_mark <- c("ADGRV1","GPC5","RYR3", "AQP4", # astrocytes
  212. "ABCB1","EBF1", "CLDN5", # endothelial_cell
  213. "CBLN2","LDB2", "CAMK2A", # excitatory_neuron
  214. "LHFPL3","PCDH15","GAD1", # inhibitory_neuron
  215. "LRMDA","DOCK8","C3", # microglia
  216. "PLP1","ST18","MBP") # oligodendrocyte
  217. DotPlot(scRNA_harmony,
  218. features = cell_mark,
  219. assay = "RNA",
  220. cluster.idents = TRUE,
  221. scale.by = "size",
  222. scale = TRUE,
  223. col.min = -2,
  224. col.max = 2) +
  225. coord_flip() +theme_bw() + labs(x = "Genes", y = "Cell Types") +
  226. theme(axis.text.x = element_text(angle = 45, hjust=1, vjust=1, size=8),
  227. axis.text.y = element_text(size=8)) +
  228. scale_color_gradient2(low = "#2166AC",mid = "white",high = "#B2182B")
  229. ###AUC###
  230. seurat_integrated<-scRNA_harmony
  231. DefaultAssay(seurat_integrated) <- "RNA"
  232. library(readxl)
  233. library("Matrix")
  234. library("AUCell")
  235. terms<- read_excel("list.xlsx")
  236. print(terms)
  237. geneset<- terms[['comorbidity_associated_upregulated_genes']]
  238. geneset <- geneset[!is.na(geneset)]
  239. valid_genes <- intersect(geneset, rownames(seurat_integrated))
  240. if (length(valid_genes) < 5) stop("Too few valid genes).")
  241. gene_sets <- list("comorbidity_associated_upregulated_genes" = valid_genes)
  242. seurat_integrated <- JoinLayers(seurat_integrated)
  243. expr_matrix <- LayerData(seurat_integrated, layer = "data")
  244. expr_matrix <- as(expr_matrix, "dgCMatrix")
  245. class(expr_matrix)
  246. cells_rankings <- AUCell_buildRankings(expr_matrix,plotStats = FALSE, splitByBlocks = TRUE)
  247. cells_AUC <- AUCell_calcAUC(gene_sets,cells_rankings,
  248. aucMaxRank = ceiling(0.05 * nrow(cells_rankings)),nCores = 4)
  249. seurat_integrated$upregulated <- as.numeric(getAUC(cells_AUC)["comorbidity_associated_upregulated_genes", ])
  250. ##visualize_AUC_umap##
  251. umap_df <- FetchData(seurat_integrated, vars = c("umap_1", "umap_2", "upregulated"))
  252. ggplot(umap_df, aes(x = umap_1, y = umap_2, color = upregulated)) +
  253. geom_point(size = 0.8, alpha = 0.8) +
  254. scale_color_viridis_c(option = "viridis",name = "AUC Score" ) +
  255. labs(x = "UMAP1", y = "UMAP2",
  256. title = "" ) +
  257. theme_classic()
  258. ##visualize_AUC_Bubble_Plot##
  259. auc_df <- [email hidden] %>%group_by(celltype) %>%
  260. summarise(auc_mean = mean(upregulated),n_cells = n())
  261. ggplot(auc_df, aes(x = celltype, y = 1,size = n_cells,color = auc_mean)) +
  262. geom_point(alpha = 0.9) +
  263. scale_size(range = c(3, 15)) +
  264. scale_color_gradientn(colors = c("#2166AC", "white", "#B2182B")) +
  265. theme_bw() +
  266. theme(axis.title.y = element_blank(),axis.text.y = element_blank(),
  267. axis.ticks.y = element_blank(),axis.text.x = element_text(angle =90, hjust = 1, size = 10)) +
  268. labs(x = "Cell Type",color = "AUC Score",size = "Number of Cells",
  269. title = "AUC Activity Across Cell Types")
  270. ##visualize_AUC_BOX_plot##
  271. #chose_cell_type#
  272. target_cells <- c('astrocytes_1',"microglia_1","oligodendrocyte_1","oligodendrocyte_3",
  273. "excitatory_neuron_5","endothelial_cell_1")
  274. seurat_subset <- subset(seurat_integrated, subset = celltype %in% target_cells)
  275. plot_data <- FetchData(seurat_subset, vars = c("upregulated","disease","celltype"))
  276. #disease_group_in_order#
  277. plot_data$disease <- factor(plot_data$disease, levels = c("AD", "NC"))
  278. #cell_type_in_order#
  279. plot_data$cell_type <- factor(plot_data$celltype,
  280. levels = c('astrocytes_1',"microglia_1","oligodendrocyte_1",
  281. "oligodendrocyte_3","excitatory_neuron_5","endothelial_cell_1"))
  282. #visualize#
  283. ggplot(plot_data, aes(x = cell_type,y = upregulated,fill = disease)) +
  284. geom_boxplot(position = position_dodge(0.8),width = 0.7,outlier.size = 0.5)+
  285. scale_fill_manual(values = c("NC" = "#1f77b4", "AD" = "#ff7f0e"),name = " ")+
  286. labs(x = "Cell Type",y = "AUC Score",title = " ",subtitle = " ") +
  287. theme_classic() +
  288. theme(legend.position = "top",legend.title = element_text(size = 16, face = "bold"),
  289. legend.text = element_text(size = 16), axis.text.x = element_text(angle = 45, hjust = 1, size = 14),
  290. axis.text.y = element_text(size = 16), axis.title.x = element_text(size = 16, face = "bold"),
  291. axis.title.y = element_text(size = 16, face = "bold"),plot.title = element_text(size = 16, face = "bold", hjust = 0.5),
  292. plot.subtitle = element_text(size = 16, hjust = 0.5))
  293. ###visualize_proportions_Bar_plot###
  294. library(forcats)
  295. library(scales)
  296. metadata <- [email hidden]
  297. #chose_cell_type#
  298. selected_celltypes <- c('astrocytes_1',"microglia_1","oligodendrocyte_1", "oligodendrocyte_3",
  299. "excitatory_neuron_5","endothelial_cell_1")
  300. #Calculate_cell-type_proportions#
  301. total_per_disease <- metadata %>%group_by(disease) %>%summarise(total_cells = n(), .groups = "drop")
  302. celltype_percent <- metadata %>%filter(celltype %in% selected_celltypes) %>%
  303. group_by(disease, celltype) %>%summarise(n = n(), .groups = "drop") %>%
  304. left_join(total_per_disease, by = "disease") %>%mutate(percent = 100 * n / total_cells)
  305. #cell_type_in_order#
  306. celltype_percent <- celltype_percent %>%mutate(celltype = factor(celltype, levels = selected_celltypes))
  307. #disease_group_in_order#
  308. celltype_percent <- celltype_percent %>%mutate(disease = factor(disease, levels = c("NC", "AD")))
  309. #visualize#
  310. p <- ggplot(celltype_percent, aes(x = celltype, y = percent, fill = disease)) +
  311. geom_bar(stat = "identity",position = position_dodge(width = 0.8),color = "black",width = 0.7)+
  312. geom_text(aes(label = sprintf("%.1f", percent)),position = position_dodge(width = 0.8),
  313. vjust = -0.4, size = 4.5, color = "black")+
  314. scale_fill_manual(name = " ",values = c("NC" = "#1f77b4", "AD" ="#ff7f0e")) +
  315. labs(x = "",y = "Proportion of cells (%)",title = " "
  316. ) +theme_classic() +
  317. theme(axis.text.x = element_text(size = 12, angle = 45, hjust = 1),
  318. axis.text.y = element_text(size = 12),
  319. axis.title = element_text(size = 12, face = "bold"),
  320. legend.position = "top",legend.text = element_text(size = 14),
  321. legend.title = element_text(size = 15),legend.key.size = unit(0.9, "cm"),
  322. panel.grid.major.y = element_line(color = "gray90", linewidth = 0.2))+
  323. scale_y_continuous(limits = c(0, max(celltype_percent$percent, na.rm = TRUE) * 1.15),
  324. expand = expansion(mult = c(0, 0.05)))
  325. p
  326. ###donor-aware differential abundance testing###
  327. #chose_cell_type#
  328. target_celltypes <- c("oligodendrocyte_1", "astrocytes_1","excitatory_neuron_1","excitatory_neuron_2",
  329. "inhibitory_neuron_1", "inhibitory_neuron_2","excitatory_neuron_3",
  330. "microglia_1","inhibitory_neuron_3","excitatory_neuron_4", "excitatory_neuron_5",
  331. "inhibitory_neuron_4", "excitatory_neuron_6", "inhibitory_neuron_5",
  332. "excitatory_neuron_7", "excitatory_neuron_8", "excitatory_neuron_9","endothelial_cell_1",
  333. "astrocytes_2", "excitatory_neuron_10", "excitatory_neuron_11", "oligodendrocyte_2",
  334. "excitatory_neuron_12", "excitatory_neuron_13","inhibitory_neuron_6",
  335. "oligodendrocyte_3","astrocytes_3")
  336. #check_data#
  337. md <- [email hidden]
  338. donor_group <- tapply(md$disease, md$sample, function(x) unique(x)[1])
  339. #run#
  340. one_ct <- function(ct) { n_ct<- tapply(md$celltype == ct, md$sample, sum)
  341. n_total <- tapply(rep(1, nrow(md)), md$sample, sum)
  342. prop_ct <- n_ct / n_total
  343. g <- donor_group[names(prop_ct)]
  344. grp_levels <- unique(md$disease)
  345. if (length(grp_levels) < 2) return(NULL)
  346. g1 <- prop_ct[g == grp_levels[1]]
  347. g2 <- prop_ct[g == grp_levels[2]]
  348. if (sum(!is.na(g1)) < 2 || sum(!is.na(g2)) < 2) {p <- NA_real_}
  349. else {p <- suppressWarnings(wilcox.test(g1, g2, exact=FALSE)$p.value)}
  350. data.frame(celltype = ct,n_donors_group1 = sum(!is.na(g1)),
  351. n_donors_group2 = sum(!is.na(g2)),median_group1=median(g1, na.rm = TRUE),
  352. median_group2= median(g2, na.rm = TRUE),p.value = p,
  353. stringsAsFactors = FALSE)}
  354. res_list <- lapply(target_celltypes, one_ct)
  355. res_DA <- do.call(rbind, res_list)
  356. res_DA$FDR <- p.adjust(res_DA$p.value, method = "BH")
  357. write.csv(res_DA, "DA_donor_wilcoxon_SELECTED_celltypes.csv", row.names = FALSE)
  358. print(res_DA)
  359. ###CellChat ####
  360. library(CellChat)
  361. library(ggalluvial)
  362. library(patchwork)
  363. library(RColorBrewer)
  364. options(stringsAsFactors = FALSE)
  365. #Prepare_the_data_for_CellChat#
  366. seurat_integrated[["RNA"]] <- JoinLayers(seurat_integrated[["RNA"]])
  367. data.input <- LayerData(seurat_integrated, assay = "RNA", layer = "data")
  368. metadata <- data.frame(cell_type = Idents(seurat_integrated),
  369. disease = seurat_integrated$disease,
  370. row.names = colnames(seurat_integrated))
  371. print(unique(metadata$disease))
  372. #Cell–cell_communication_is_shown_for_AD_only#
  373. selected_diseases <- c('AD')
  374. disease_cells <- rownames(metadata)[metadata$disease %in% selected_diseases]
  375. #chose_cell_type#
  376. selected_celltypes <- c('astrocytes_1',"microglia_1","oligodendrocyte_1", "oligodendrocyte_3",
  377. "excitatory_neuron_5","endothelial_cell_1")
  378. celltype_cells <- rownames(metadata)[metadata$cell_type %in% selected_celltypes]
  379. selected_cells <- intersect(disease_cells, celltype_cells)
  380. data.input.subset <- data.input[, selected_cells]
  381. metadata.subset <- metadata[selected_cells, , drop = FALSE]
  382. cellchat <- createCellChat(object = data.input.subset)
  383. cell_type_df <- data.frame(cell_type = metadata.subset$cell_type,
  384. row.names = rownames(metadata.subset))
  385. full_meta_df <- data.frame(cell_type = metadata.subset$cell_type,
  386. disease = metadata.subset$disease,
  387. row.names = rownames(metadata.subset))
  388. cellchat <- addMeta(cellchat, meta = full_meta_df)
  389. cellchat <- setIdent(cellchat, ident.use = "cell_type")
  390. cellchat@idents <- factor(as.character(cellchat@meta$cell_type),
  391. levels = selected_celltypes)
  392. print(levels(cellchat@idents))
  393. groupSize <- as.numeric(table(cellchat@idents))
  394. print(groupSize)
  395. print(table(cellchat@meta$disease))
  396. #Set_database#
  397. CellChatDB <- CellChatDB.human
  398. cellchat@DB <- CellChatDB
  399. cellchat <- subsetData(cellchat)
  400. #run_analysis#
  401. cellchat <- identifyOverExpressedGenes(cellchat)
  402. cellchat <- identifyOverExpressedInteractions(cellchat)
  403. cellchat <- projectData(cellchat, PPI.human)
  404. cellchat <- computeCommunProb(cellchat)
  405. cellchat <- computeCommunProbPathway(cellchat)
  406. cellchat <- aggregateNet(cellchat)
  407. #quantitative_centrality_metrics#
  408. library(igraph)
  409. W <- cellchat@net$weight
  410. if (is.null(W) || all(W == 0)) stop("CellChat no network")
  411. g <- graph_from_adjacency_matrix(W, mode = "directed", weighted = TRUE, diag = FALSE)
  412. outgoing <- strength(g, mode = "out", weights = E(g)$weight)
  413. incoming <- strength(g, mode = "in", weights = E(g)$weight)
  414. bet <- betweenness(g, directed = TRUE, weights = 1/E(g)$weight)
  415. clo <- closeness(g, mode = "all", weights = 1/E(g)$weight)
  416. centrality <- data.frame(celltype = rownames(W),
  417. outgoing = outgoing,
  418. incoming = incoming,
  419. betweenness = bet,
  420. closeness = clo)
  421. write.csv(centrality, "CellChat_global_centrality.csv", row.names = FALSE)
  422. centrality
  423. #visualize#
  424. cellchat <- netAnalysis_computeCentrality(cellchat, slot.name = "netP")
  425. print("pathways")
  426. pathways <- cellchat@netP$pathways
  427. print(pathways)
  428. #visualize#
  429. cellchat <- netAnalysis_computeCentrality(cellchat, slot.name = "netP")
  430. colors <- RColorBrewer::brewer.pal(length(selected_celltypes), "Set1")
  431. names(colors) <- selected_celltypes
  432. #visualize_communication_weight _matrix_plot#
  433. par(mar = c(0, 0, 2.5, 0)) #
  434. netVisual_circle(cellchat@net$weight,
  435. color.use=colors,
  436. vertex.weight=groupSize,
  437. weight.scale=TRUE,
  438. edge.weight.max=max(cellchat@net$weight),
  439. title.name="Communication Weight Matrix",
  440. vertex.label.cex = 1.4)
  441. #visualize_communication_weight _heatmap_plot#
  442. netVisual_heatmap(cellchat,
  443. signaling = NULL,
  444. measure = "weight",
  445. color.heatmap = "Reds",
  446. title.name = "Communication Weight Heatmap",
  447. font.size = 14,
  448. font.size.title = 16)
  449. #Prioritization_of_sender_and_receiver_signals_of_interest#
  450. sender_cell <- "astrocytes_1"
  451. receiver_cell <- "oligodendrocyte_3"
  452. pathway_comm <- subsetCommunication(cellchat, slot.name = "netP",
  453. sources.use = sender_cell,
  454. targets.use = receiver_cell)
  455. pathway_comm_sorted <- pathway_comm[order(-pathway_comm$prob), ]
  456. print("Top 10 signaling pathways:")
  457. print(head(pathway_comm_sorted, 10))
  458. #Visualize_specific_pathways#
  459. colors <- brewer.pal(length(selected_celltypes), "Dark2")
  460. names(colors) <- selected_celltypes
  461. pathways.show<-'NRXN'
  462. netVisual_aggregate(cellchat,
  463. signaling = pathways.show,
  464. layout = "chord",
  465. vertex.size = groupSize,
  466. color.use = colors,
  467. title.name = paste(pathway, "Signaling"),
  468. arrow.size = 0.02,
  469. edge.width.max = 15)
  470. ###overlap_between_SUGS_and_ligand–receptor###
  471. caup_genes <- unique(valid_genes)
  472. caup_genes <- caup_genes[!is.na(caup_genes)]
  473. UP <- function(x) unique(toupper(na.omit(x)))
  474. split_genes <- function(x) {if (is.null(x)) return(character(0))
  475. x <- na.omit(x)
  476. unlist(strsplit(x, "\\s*[+|_,/; ]\\s*"))}
  477. #check_overlap_in_Global#
  478. comm_all <- subsetCommunication(cellchat, slot.name = "netP")
  479. lr_all <- unique(c(split_genes(comm_all$ligand), split_genes(comm_all$receptor)))
  480. overlap_global <- intersect(UP(caup_genes), UP(lr_all))
  481. cat("Global overlap size =", length(overlap_global), "\n")
  482. print(sort(overlap_global))
  483. #check_overlap_in_one_sender#
  484. sender_only <- "astrocytes_1"
  485. comm_sender <- subsetCommunication(cellchat, slot.name = "netP", sources.use = sender_only)
  486. lr_sender <- unique(c(split_genes(comm_sender$ligand), split_genes(comm_sender$receptor)))
  487. overlap_sender <- intersect(UP(caup_genes), UP(lr_sender))
  488. cat(sprintf("Overlap (sender=%s) size = %d\n", sender_only, length(overlap_sender)))
  489. print(sort(overlap_sender))
  490. #check_overlap_in_one_receiver#
  491. receiver_only <- "oligodendrocyte_1"
  492. comm_receiver <- subsetCommunication(cellchat, slot.name = "netP", targets.use = receiver_only)
  493. lr_receiver <- unique(c(split_genes(comm_receiver$ligand), split_genes(comm_receiver$receptor)))
  494. overlap_receiver <- intersect(UP(caup_genes), UP(lr_receiver))
  495. cat(sprintf("Overlap (receiver=%s) size = %d\n", receiver_only, length(overlap_receiver)))
  496. print(sort(overlap_receiver))
  497. #check_overlap_in_one_receiver#
  498. receiver_only <- "oligodendrocyte_3"
  499. comm_receiver <- subsetCommunication(cellchat, slot.name = "netP", targets.use = receiver_only)
  500. lr_receiver <- unique(c(split_genes(comm_receiver$ligand), split_genes(comm_receiver$receptor)))
  501. overlap_receiver <- intersect(UP(caup_genes), UP(lr_receiver))
  502. cat(sprintf("Overlap (receiver=%s) size = %d\n", receiver_only, length(overlap_receiver)))
  503. print(sort(overlap_receiver))
  504. ###Find_top10_Markers_for_every_cell-subtype###
  505. pbmc.markers <- FindAllMarkers(scRNA_harmony, only.pos = TRUE, min.pct = 0.25, logfc.threshold = 0.25)
  506. topmaker<-pbmc.markers %>% group_by(cluster) %>% top_n(n = 10, wt = avg_log2FC)
  507. write.csv(topmaker, file = "topmaker.csv", row.names = FALSE)
  508. ###pseudobulk###
  509. target_celltypes <-c("oligodendrocyte_1", "astrocytes_1","excitatory_neuron_1","excitatory_neuron_2",
  510. "inhibitory_neuron_1", "inhibitory_neuron_2","excitatory_neuron_3",
  511. "microglia_1","inhibitory_neuron_3","excitatory_neuron_4", "excitatory_neuron_5",
  512. "inhibitory_neuron_4", "excitatory_neuron_6", "inhibitory_neuron_5",
  513. "excitatory_neuron_7", "excitatory_neuron_8", "excitatory_neuron_9","endothelial_cell_1",
  514. "astrocytes_2", "excitatory_neuron_10", "excitatory_neuron_11", "oligodendrocyte_2",
  515. "excitatory_neuron_12", "excitatory_neuron_13","inhibitory_neuron_6",
  516. "oligodendrocyte_3","astrocytes_3")
  517. suppressWarnings(suppressMessages({
  518. edgeR_ok <- requireNamespace("edgeR", quietly = TRUE)
  519. library(Matrix)}))
  520. .assay <- DefaultAssay(scRNA_harmony)
  521. get_counts <- function(obj, assay) {
  522. lyr_names <- tryCatch(SeuratObject::Layers(obj[[assay]]), error = function(e) character(0))
  523. if ("counts" %in% lyr_names) {
  524. return(SeuratObject::GetAssayData(obj, assay = assay, layer = "counts"))}
  525. if ("data" %in% lyr_names) {
  526. m <- SeuratObject::GetAssayData(obj, assay = assay, layer = "data")
  527. m <- as(m, "dgCMatrix")
  528. return(m)}
  529. m <- tryCatch(SeuratObject::GetAssayData(obj, assay = assay), error = function(e) NULL)
  530. if (!is.null(m)) return(as(m, "dgCMatrix"))
  531. stop("Seurat v5 no counts/data")}
  532. cm <- get_counts(scRNA_harmony, .assay)
  533. md <- [email hidden]
  534. out_dir <- "PB_validation_SELECTED"
  535. dir.create(out_dir, showWarnings = FALSE)
  536. run_one_ct <- function(ct) {
  537. cells_ct <- rownames(md)[md$celltype == ct]
  538. if (length(cells_ct) == 0) { message("jump over:", ct, "nocells"); return(invisible(NULL)) }
  539. donors <- unique(md$sample[md$celltype == ct])
  540. grp_by_donor <- tapply(md$disease, md$sample, function(x) unique(x)[1])[donors]
  541. grp_levels <- unique(md$disease)
  542. if (length(grp_levels) < 2) { message("jump over:", ct, "groupproblem"); return(invisible(NULL)) }
  543. donors_g1 <- donors[grp_by_donor == grp_levels[1]]
  544. donors_g2 <- donors[grp_by_donor == grp_levels[2]]
  545. if (length(donors_g1) < 2 || length(donors_g2) < 2) {
  546. message("jump over:", ct, "sample<2 per group"); return(invisible(NULL))}
  547. pb_cols <- lapply(donors, function(dn) {
  548. cs <- rownames(md)[md$celltype == ct & md$sample == dn]
  549. if (length(cs) == 0) return(Matrix(0, nrow = nrow(cm), ncol = 1, sparse = TRUE))
  550. Matrix::rowSums(cm[, cs, drop = FALSE])
  551. })
  552. pb <- do.call(cbind, pb_cols)
  553. colnames(pb) <- donors
  554. if (edgeR_ok) {y <- edgeR::DGEList(counts = pb,
  555. samples = data.frame(sample = donors,
  556. group = grp_by_donor[donors],
  557. row.names = donors))
  558. keep <- rowSums(y$counts) > 0
  559. if (sum(keep) < 10) { message("jump over", ct, "genes < 10"); return(invisible(NULL)) }
  560. y <- y[keep, , keep.lib.sizes = FALSE]
  561. y <- edgeR::calcNormFactors(y)
  562. design <- model.matrix(~ y$samples$group)
  563. y <- edgeR::estimateDisp(y, design)
  564. fit <- edgeR::glmQLFit(y, design)
  565. qlf <- edgeR::glmQLFTest(fit, coef = 2)
  566. tt <- edgeR::topTags(qlf, n = Inf)$table
  567. tt$gene <- rownames(tt)
  568. out <- file.path(out_dir, paste0("PB_edgeR_DEGs_", make.names(ct), ".csv"))
  569. write.csv(tt, out, row.names = FALSE)
  570. message("[edgeR]:", out)}
  571. invisible(TRUE)}
  572. invisible(lapply(target_celltypes, run_one_ct))
  573. ###BBB_related_pathway_check###
  574. library(readxl)
  575. library(dplyr)
  576. library(Matrix)
  577. library(AUCell)
  578. library(ggplot2)
  579. library(tidyr)
  580. seurat_integrated <- scRNA_harmony
  581. terms <- read_excel("Blood–Brain Barrier (BBB)-related signaling pathways.xlsx")
  582. seurat_integrated <- JoinLayers(seurat_integrated)
  583. expr_matrix <- LayerData(seurat_integrated, layer = "data")
  584. expr_matrix <- as(expr_matrix, "dgCMatrix")
  585. cells_rankings <- AUCell_buildRankings(
  586. expr_matrix,
  587. plotStats = FALSE,
  588. splitByBlocks = TRUE
  589. )
  590. bubble_list <- list()
  591. for (col_name in colnames(terms)) {
  592. geneset <- terms[[col_name]]
  593. geneset <- geneset[!is.na(geneset)]
  594. valid_genes <- intersect(geneset, rownames(expr_matrix))
  595. if (length(valid_genes) < 5) {
  596. cat("Skipping:", col_name, "(too few genes)\n")
  597. next
  598. }
  599. gene_sets <- list(current_set = valid_genes)
  600. cells_AUC <- AUCell_calcAUC(
  601. gene_sets,
  602. cells_rankings,
  603. aucMaxRank = ceiling(0.05 * nrow(cells_rankings))
  604. )
  605. auc_scores <- as.numeric(getAUC(cells_AUC)["current_set", ])
  606. auc_col_name <- paste0("AUC_", col_name)
  607. [email hidden][[auc_col_name]] <- auc_scores
  608. tmp <- [email hidden] %>%
  609. group_by(celltype) %>%
  610. summarise(
  611. auc_mean = mean(.data[[auc_col_name]], na.rm = TRUE),
  612. n_cells = n(),
  613. .groups = "drop"
  614. ) %>%
  615. mutate(pathway = col_name)
  616. bubble_list[[col_name]] <- tmp
  617. }
  618. bubble_df <- bind_rows(bubble_list)
  619. p <- ggplot(bubble_df,aes(x = celltype, y = pathway,
  620. size = n_cells, color = auc_mean)) +
  621. geom_point(alpha = 0.9) +
  622. scale_size(range = c(2, 12)) +
  623. scale_color_gradientn(colors = c("#2166AC", "white", "#B2182B")) +
  624. theme_bw() +
  625. theme(axis.text.x = element_text(angle = 45, hjust = 1, size = 10),
  626. axis.text.y = element_text(size = 10)) +
  627. labs(x = "Cell Types",y = "",
  628. color = "AUC Score",
  629. size = "Number of Cells",
  630. title = "")
  631. print(p)
  632. #AUC_box#
  633. plot_AUC_box <- function(
  634. seurat_obj,
  635. pathways,
  636. celltypes,
  637. disease_col = "disease",
  638. celltype_col = "celltype"
  639. ){
  640. library(ggplot2)
  641. library(dplyr)
  642. df <- [email hidden] %>%
  643. filter(.data[[celltype_col]] %in% celltypes)
  644. auc_cols <- paste0("AUC_", pathways)
  645. plot_df <- df %>%
  646. select(all_of(c(celltype_col, disease_col, auc_cols))) %>%
  647. pivot_longer(
  648. cols = all_of(auc_cols),
  649. names_to = "pathway",
  650. values_to = "AUC"
  651. ) %>%
  652. mutate(
  653. pathway = gsub("AUC_", "", pathway),
  654. celltype = factor(.data[[celltype_col]], levels = celltypes),
  655. disease = factor(.data[[disease_col]], levels = c("AD","NC"))
  656. )
  657. p <- ggplot(plot_df, aes(x = celltype, y = AUC, fill = disease)) +
  658. geom_boxplot(position = position_dodge(0.8), width = 0.7, outlier.size = 0.5) +
  659. facet_wrap(~ pathway, scales = "free_y") +
  660. scale_fill_manual(values = c("NC" = "#1f77b4", "AD" = "#ff7f0e"),name = " ") +
  661. theme_classic() +
  662. labs(
  663. x = "Cell Type",
  664. y = "AUC Score",
  665. title = " "
  666. ) +
  667. theme(
  668. legend.position = "top",
  669. legend.text = element_text(size = 14),
  670. axis.text.x = element_text(angle = 45, hjust = 1, size = 12),
  671. axis.title.x = element_text(size = 14, face = "bold"),
  672. axis.text.y = element_text(size = 12),
  673. axis.title.y = element_text(size = 14, face = "bold"),
  674. strip.text = element_text(size = 12, face = "bold")
  675. )
  676. print(p)}
  677. plot_AUC_box(
  678. seurat_obj = seurat_integrated,
  679. pathways = c("Tight junction", "Adherens junction", "Leukocyte transendothelial migration",
  680. "VEGF signaling pathway", "Wnt signaling pathway", "ECM-receptor interaction"),
  681. celltypes = c('astrocytes_1',"microglia_1","oligodendrocyte_1", "oligodendrocyte_3",
  682. "excitatory_neuron_5","endothelial_cell_1")
  683. )

singlecell codeAD.R at commit c3be27e, no license · at the source

Overview

  1. Department of Anatomy, Histology and Embryology, Faculty of Medicine, University of Debrecen, H-4032 Debrecen, Hungary
  2. Department of Biomedical Materials Science, Graduate School of JABA, Wonkwang University, Iksan, Republic of Korea
  3. Integrated Omics Institute, Wonkwang University, Iksan, Republic of Korea
Institutions: University of Debrecen (Hungary); Wonkwang University (South Korea)
Journal: Computational and structural biotechnology journal, volume 35, issue 1, article 0085
Dates: received 5 December 2025; accepted 10 April 2026; published online 13 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.34133/csbj.0085 · PMID 42137879 · PMCID PMC13168759 · OpenAlex W7153734934
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: genetics / omics (modality), human (organism), Alzheimer's / dementia (population), cellular / molecular (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Connectivity, Machine learning
Topic: Bone Metabolism and Diseases (Molecular Biology, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Funding: Nemzeti Kutatási Fejlesztési és Innovációs Hivatal (grant no. 2025-1.2.3-TÉT-IPARI-KR-2025-00002, 152166); Nemzeti Kutatási, Fejlesztési és Innovaciós Alap (EKÖP-25-4-II-DE-249); Általános Orvostudományi Kar, Debreceni Egyetem (8XEABK00PUBT/320)
Citations: not cited yet (Europe PMC); 69 references in the paper

Abstract

Osteoarthritis (OA) and Alzheimer’s disease (AD) are prevalent age-associated disorders that frequently co-occur, yet the molecular basis of their comorbidity remains incompletely understood. To explore potential shared cellular programs, we performed an integrative analysis of publicly available bulk and single-cell transcriptomic datasets derived from human OA cartilage and AD cortex. Cross-disease comparison identified 60 overlapping differentially expressed genes, including 18 consistently up-regulated genes, which we defined as a shared up-regulated gene set (SUGS). Functional enrichment analyses indicated convergence on extracellular matrix remodeling, inflammatory signaling, metabolic stress responses, and immune regulation. Single-cell analysis of OA cartilage revealed expansion of a fibrochondrocyte subpopulation enriched for SUGS activity and extracellular-matrix-associated ligands. In AD cortex, a disease-associated oligodendrocyte subcluster displayed elevated SUGS activity and stress-response gene expression and occupied a prominent-receiver-like position within inferred neuronal–glial communication networks. Ligand–receptor analysis performed independently within each tissue identified collagen-related signaling in OA and neurexin-associated signaling in AD as dominant intratissue pathways. Because the OA and AD datasets are cross-sectional and were derived from independent cohorts and distinct tissues, these analyses do not establish direct inter-organ communication, temporal sequence, or causal directionality. In addition, CellChat-based ligand–receptor inference was performed independently within each tissue and does not itself infer cross-organ communication. The identification of sender-like and receiver-like cellular hubs should therefore be interpreted as a hypothesis-generating, systems-level conceptual framework that may help organize future experimental studies investigating potential links between joint inflammation and neurodegeneration in aging.

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

Repository

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

znGer-cel/Sender-and-Receiver-Cellular-Hubs-as-Potential-Therapeutic-Targets-in-OA-AD-Comorbidity

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: c3be27eff489e84ed63238cd68276760e43cf07b, 3 April 2026
Languages: R (3)
Size: 5 files, 3 scripts
Software Heritage: not archived
Found in: “Data Availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: edgeR (3 files), ggplot2 (3 files), tidyverse (3 files), Harmony (2 files), igraph (2 files), patchwork (2 files), Seurat (2 files), data.table (1 file), DESeq2 (1 file), limma (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
4 files

The paper's code and data availability statement is in the Data section.

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

All raw and processed datasets utilized in this study are publicly accessible through the Gene Expression Omnibus under the following accession numbers: OA bulk RNA-seq (GSE114007 (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE114007)), AD bulk microarray (GSE122063 (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE122063)), OA scRNA-seq (GSE255460 (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE255460)), and AD scRNA-seq (GSE157827 (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE157827)). Processed data matrices and related analysis scripts will be made available from the corresponding author upon reasonable request. The full analysis pipeline and R scripts are available on GitHub (https://github.com/znGer-cel/Sender-and-Receiver-Cellular-Hubs-as-Potential-Therapeutic-Targets-in-OA-AD-Comorbidity).

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

Versions

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

Version 2, 28 September 2026

  • Funding: added Nemzeti Kutatási Fejlesztési és Innovációs Hivatal: grant no. 2025-1.2.3-TÉT-IPARI-KR-2025-00002, 152166; Nemzeti Kutatási, Fejlesztési és Innovaciós Alap: EKÖP-25-4-II-DE-249; Általános Orvostudományi Kar, Debreceni Egyetem: 8XEABK00PUBT/320

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 69 references.

Cite

This paper

Wang, Z., Zoltán, K. J., Matta, C., Paluska, L., Al-Mnaseer, A., Takács, R., & Ducza, L. (2026). A Systems-Level Transcriptomic Framework Identifies Shared Cellular Hubs in Osteoarthritis and Alzheimer's Disease. Computational and structural biotechnology journal, 35(1), 0085. https://doi.org/10.34133/csbj.0085

BibTeX

@article{wang2026systems,
author = {Wang, Zhangzheng and Zoltán, Krisztián Juhász and Matta, Csaba and Paluska, Luca and Al-Mnaseer, Ahmed and Takács, Roland and Ducza, László},
title = {{A Systems-Level Transcriptomic Framework Identifies Shared Cellular Hubs in Osteoarthritis and Alzheimer's Disease}},
journal = {Computational and structural biotechnology journal},
year = {2026},
month = may,
volume = {35},
number = {1},
pages = {0085},
publisher = {AAAS Science Partner Journal Program},
issn = {2001-0370},
doi = {10.34133/csbj.0085},
url = {https://doi.org/10.34133/csbj.0085},
pmid = {42137879},
pmcid = {PMC13168759}
}

RIS

TY - JOUR
AU - Wang, Zhangzheng
AU - Zoltán, Krisztián Juhász
AU - Matta, Csaba
AU - Paluska, Luca
AU - Al-Mnaseer, Ahmed
AU - Takács, Roland
AU - Ducza, László
TI - A Systems-Level Transcriptomic Framework Identifies Shared Cellular Hubs in Osteoarthritis and Alzheimer's Disease
T2 - Computational and structural biotechnology journal
J2 - Comput Struct Biotechnol J
PY - 2026
DA - 2026/05/13
VL - 35
IS - 1
SP - 0085
SN - 2001-0370
PB - AAAS Science Partner Journal Program
DO - 10.34133/csbj.0085
UR - https://doi.org/10.34133/csbj.0085
LA - en
ER -

CSL-JSON

{
"id": "10.34133/csbj.0085",
"type": "article-journal",
"title": "A Systems-Level Transcriptomic Framework Identifies Shared Cellular Hubs in Osteoarthritis and Alzheimer's Disease",
"container-title": "Computational and structural biotechnology journal",
"author": [
{
"family": "Wang",
"given": "Zhangzheng"
},
{
"family": "Zoltán",
"given": "Krisztián Juhász"
},
{
"family": "Matta",
"given": "Csaba"
},
{
"family": "Paluska",
"given": "Luca"
},
{
"family": "Al-Mnaseer",
"given": "Ahmed"
},
{
"family": "Takács",
"given": "Roland"
},
{
"family": "Ducza",
"given": "László"
}
],
"container-title-short": "Comput Struct Biotechnol J",
"volume": "35",
"issue": "1",
"page": "0085",
"DOI": "10.34133/csbj.0085",
"PMID": "42137879",
"PMCID": "PMC13168759",
"ISSN": "2001-0370",
"publisher": "AAAS Science Partner Journal Program",
"URL": "https://doi.org/10.34133/csbj.0085",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
13
]
]
}
}

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

Similar papers

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

[1] doi:10.1016/j.xcrm.2026.102766 [code]
A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.
Journal: Cell reports. Medicine
In common: Harmony, edgeR, limma, 7 other tools, genetics / omics, cellular / molecular, 5 references
[2] doi:10.1038/s41593-026-02367-0 [code]
A reproducible three-dimensional model of human brain tissue to investigate physiological and disease-associated microglia phenotypes.
Journal: Nature neuroscience
In common: Harmony, edgeR, limma, 7 other tools, Alzheimer's / dementia, cellular / molecular, 2 references
[3] doi:10.1002/imt2.70163 [code]
Spatial multi-omics unveils sphingolipid metabolic reprogramming within the retinal pathological niche.
Journal: iMeta
In common: Harmony, edgeR, limma, 7 other tools, genetics / omics, cellular / molecular
[4] doi:10.1016/j.isci.2026.115657 [code]
Integration of machine learning to develop a disulfidptosis model for predicting glioma prognosis, immunotherapy response, and drug.
Journal: iScience
In common: Harmony, edgeR, limma, 7 other tools
[5] doi:10.1038/s41467-026-71542-5 [code]
Astrocyte fatty acid metabolism as a driver of risk for major depressive disorder.
Journal: Nature communications
In common: edgeR, limma, igraph, 5 other tools, genetics / omics, cellular / molecular, 3 references
[6] doi:10.1186/s12974-026-03838-8 [code]
Acarbose modulates microglial Pkm2 acetylation to reshape immunometabolism and preserve retinal neurons after ischemia-reperfusion.
Journal: Journal of neuroinflammation
In common: Harmony, limma, DESeq2, 6 other tools, genetics / omics, cellular / molecular, 1 reference
[7] 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: Harmony, edgeR, limma, 5 other tools, genetics / omics, cellular / molecular, 2 references
[8] doi:10.1186/s13059-026-04152-5 [code]
CroCoNet: a framework for the quantitative comparison of gene regulatory networks across species.
Journal: Genome biology
In common: Harmony, limma, DESeq2, 6 other tools, 1 reference
[9] doi:10.1038/s41467-026-73305-8 [code]
Comparative analysis of the cellular landscape in mammalian striatum.
Journal: Nature communications
In common: Harmony, edgeR, DESeq2, 5 other tools, genetics / omics, cellular / molecular, 2 references
[10] doi:10.1038/s41467-026-76675-1 [code]
Long-read proteogenomic atlas of human neuronal differentiation reveals isoform diversity informing neurodevelopmental risk mechanisms.
Journal: Nature communications
In common: edgeR, limma, DESeq2, 6 other tools, genetics / omics, 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.