OSCR

Drug screen and machine learning predict neuroprotective agents in a preclinical human model of childhood dementia.

Code ↔ Paper

23 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 23 matches
  1. [1] § Methods › Single-nuclei data processing ↔ Rscripts/QualityControl_60D.Rmd, lines 247–290 · score 0.96 · generate cell clusters, ambientRNA, FindClusters, FindNeighbors, RunUMAP, SCTransform
  2. [2] § Methods › Single-nuclei data processing ↔ Rscripts/QualityControl_30D.Rmd, lines 416–450 · score 0.96 · generate cell clusters, ambientRNA, FindClusters, FindNeighbors, RunUMAP, SCTransform
  3. [3] § Methods › Cell type classification › scMayoMap cell annotations ↔ Rscripts/Neuronal_Glial_Types_Analysis_60D.Rmd, lines 347–435 · score 0.85 · FindConservedMarkers, cluster_type2, cluster_type1, scMayoMap, cell annotations, database
  4. [4] § Methods › Cell type classification › scMayoMap cell annotations ↔ Rscripts/Neuronal_Glial_Types_Analysis_30D.Rmd, lines 315–392 · score 0.85 · FindConservedMarkers, cluster_type2, cluster_type1, scMayoMap, cell annotations, database
  5. [5] § Methods › Identification of differentially expressed genes ↔ Rscripts/[Sanfilippo - 30D] Differential Expression Analysis.Rmd, lines 207–275 · score 0.80 · min.diff.pct, logfc.threshold, FindMarkers, identify genes, patients
  6. [6] § Methods › Integration with healthy, human cortical biopsies ↔ Rscripts/QualityControl_60D.Rmd, lines 247–290 · score 0.80 · RunPCA, SCT assay, variable features, SCTransform, Principal component, filtered
  7. [7] § Methods › Machine learning feature models ↔ feature models/sanfilipo_cls_machine_learning.ipynb, lines 35–56 · score 0.75 · models hyperparameters, sub model, recursive feature, cross validation, Hyperopt, MPS IIIA
  8. [8] § Methods › Classification of cycling cells ↔ Rscripts/Neuronal_Glial_Types_Analysis_30D.Rmd, lines 200–267 · score 0.73 · cell cycle scores, NonCycling, AddModuleScore, G1S, G2M, gene
  9. [9] § Methods › Cell type classification › UMAP and Seurat cluster-based cell classification ↔ Rscripts/Neuronal_Glial_Types_Analysis_30D.Rmd, lines 561–604 · score 0.72 · Seurat cluster, FindClusters, FindNeighbors, RunUMAP, harmony, cells
  10. [10] § Methods › Cell type classification › UMAP and Seurat cluster-based cell classification ↔ Rscripts/Neuronal_Glial_Types_Analysis_60D.Rmd, lines 607–644 · score 0.72 · Seurat cluster, FindClusters, FindNeighbors, RunUMAP, harmony, cells
  11. [11] § Methods › Machine learning image models ↔ Image_models/model/data.py, lines 12–34 · score 0.69 · vertical flips, random horizontal, PyTorch, split, batch, training
  12. [12] § Methods › Drug screen on iPSC-derived neural cultures ↔ feature models/sanfilipo_cls_machine_learning.ipynb, lines 924–989 · score 0.68 · Combined antioxidant, Naltrexone, Piracetam, Cannabidiol, Lithium, Carbamazepine
  13. [13] § Methods › Machine learning feature models ↔ feature models/utils/hyperopt.py, lines 26–62 · score 0.66 · cross validation, XGBoost, stratified, Hyperopt, split, fold
  14. [14] § Methods › Cell type classification › Calculation of cell type scores ↔ Rscripts/Neuronal_Glial_Types_Analysis_60D.Rmd, lines 168–228 · score 0.64 · Immature Neurons, AddModuleScore, Pericytes, Nowakowski, OPCs, neuronal
  15. [15] § Results › Machine learning and phenotypic analysis in high-throughput drug screen highlight drugs effective across multiple assays ↔ feature models/sanfilipo_cls_machine_learning.ipynb, lines 924–989 · score 0.63 · machine learning, huperzine, quercetin, resveratrol, dorsomorphin, desferrioxamine
  16. [16] § Results › Machine learning predicts neuroprotective agents effective in high-throughput drug screen ↔ pytorch_grad_cam/seg_eigen_cam.py, lines 12–62 · score 0.59 · Gradient weighted, Grad CAM, neural network, convolutional, exPlanations, Activation
  17. [17] § Methods › Machine learning image models ↔ Image_models/model/optimize.py, lines 15–73 · score 0.59 · Optuna, ADAM, PyTorch, dropout, loss, accuracy
  18. [18] § Results › Machine learning predicts neuroprotective agents effective in high-throughput drug screen ↔ feature models/sanfilipo_cls_machine_learning.ipynb, lines 382–485 · score 0.57 · log odds, Machine learning, feature models, Boxplots, median, boxes
  19. [19] § Methods › Cell type classification › Final cell type assignments ↔ Rscripts/Neuronal_Glial_Types_Analysis_30D.Rmd, lines 606–672 · score 0.55 · cluster_type1, scMayoMap, Seurat cluster, Excitatory, Inhibitory, neurons
  20. [20] § Results › Machine learning predicts neuroprotective agents effective in high-throughput drug screen ↔ feature models/utils/hyperopt.py, lines 26–62 · score 0.55 · cross validation, XGBoost, trees, split, fold, accuracy
  21. [21] § Methods › Cell type classification › Final cell type assignments ↔ Rscripts/Neuronal_Glial_Types_Analysis_60D.Rmd, lines 347–435 · score 0.54 · cluster_type1, scMayoMap, Seurat cluster, Excitatory, Inhibitory, cell
  22. [22] § Methods › Classification of reactive astrocytes ↔ Rscripts/Neuronal_Glial_Types_Analysis_30D.Rmd, lines 731–771 · score 0.51 · Reactive astrocyte cell, AddModuleScore, subset, scores, gene
  23. [23] § Methods › Classification of reactive astrocytes ↔ Rscripts/Neuronal_Glial_Types_Analysis_60D.Rmd, lines 757–798 · score 0.51 · Reactive astrocyte cell, AddModuleScore, subset, scores, gene

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 · 940 lines · 56 KB · no license · 5 matches

  1. ---
  2. title: "RNAseq analysis"
  3. author: "Inushi De Silva"
  4. date: '2022-07-12'
  5. output: github_document
  6. editor_options:
  7. chunk_output_type: console
  8. ---
  9. ```{r setup, include=FALSE}
  10. knitr::opts_chunk$set(echo = TRUE)
  11. options("yaml.eval.expr" = TRUE)
  12. ```
  13. 1. ***First we will load the required libraries and set workingdirectories, datadirectories and plotdirectories.***
  14. ```{r Load Libraries and Set Directory Paths}
  15. script_path <- rstudioapi::getActiveDocumentContext()$path
  16. script_dir <- dirname(script_path)
  17. workingdirectory <- dirname(script_dir)
  18. setwd(workingdirectory)
  19. datadirectory <- paste0(workingdirectory,"/data")
  20. resultsdirectory <- paste0(workingdirectory, "/results")
  21. RData_directory <- paste0(datadirectory,"/RData")
  22. ##dir.create(resultsdirectory)
  23. ## Load required libraries
  24. if(!require(dplyr)){
  25. install.packages("dplyr")
  26. library(dplyr)
  27. }
  28. if(!require(Seurat)){
  29. install.packages("Seurat")
  30. library(Seurat)
  31. }
  32. if(!require(ggplot2)){
  33. install.packages("ggplot2")
  34. library(ggplot2)
  35. }
  36. if(!require(sctransform)){
  37. install.packages("sctransform")
  38. library(sctransform)
  39. }
  40. if(!require(RColorBrewer)){
  41. install.packages("RColorBrewer")
  42. library(RColorBrewer)
  43. }
  44. if(!require(ggpointdensity)){
  45. install.packages("ggpointdensity")
  46. library(ggpointdensity)
  47. }
  48. if(!require(devtools)){
  49. install.packages("devtools")
  50. library(devtools)
  51. }
  52. if(!require(BiocManager)){
  53. install.packages("BiocManager")
  54. library(BiocManager)
  55. }
  56. source(file = paste0(script_dir,"/functions_for_sanfil.R"))
  57. ```
  58. 2. ***Load the required RData files that have previously been QC'd and submitted***
  59. ```{r Load RData files that have previously been QC'd and submitted}
  60. ## Load required datasets
  61. set.seed(1)
  62. file_names <- list.files(paste0(RData_directory,"/60D/Sanfil_submitted_versions"), pattern = "*RData",full.names = T)
  63. lapply(file_names[c(5,7)], load, .GlobalEnv)
  64. rm(file_names)
  65. ```
  66. 3. ***We now load in genes from the Nowakowski and Liddelow datasets***
  67. ```{r Load in neuronal gene lists and create colour scheme}
  68. # library(stringi)
  69. # neuronal_genes <- read.delim(file = paste0(datadirectory, "/reference_sheets/neuronal_genelist_new.txt"))
  70. #
  71. # neuronal_genes_ls <- list()
  72. # for(i in 1:ncol(neuronal_genes)){
  73. # neuronal_genes_ls[[i]] <- neuronal_genes[,i]
  74. # names(neuronal_genes_ls)[[i]] <- colnames(neuronal_genes[i])
  75. # }
  76. # neuronal_genes_ls <- rev(neuronal_genes_ls)
  77. #
  78. # neuronal_genes_ls <- lapply(neuronal_genes_ls, function(x){
  79. # stri_remove_empty(x, na_empty = FALSE)
  80. # })
  81. # names(neuronal_genes_ls)[which(names(neuronal_genes_ls) == "Astocyte")] <- "Astrocyte"
  82. ##load updated neuronal gene lists
  83. ##The gene names have been updated below.
  84. load(file = paste0(datadirectory, "/reference_sheets/updated_neuronal_genes_ls.RData"))
  85. neuronal_genes_ls <- updated_neuronal_genes_ls
  86. ## We also create a colour palette for each of the cell types
  87. library(colorspace)
  88. colour_palette <- data.frame(matrix(nrow = 44, ncol = 2))
  89. colour_palette$X1 <- c(names(neuronal_genes_ls)[1:43], "Other")
  90. colour_palette$X2[grepl("Astrocyte", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("salmon", "red"))(3)
  91. colour_palette$X2[grepl("eN", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("limegreen", "palegreen"))(18)
  92. colour_palette$X2[grepl("RG", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("chocolate", "tan"))(11)
  93. colour_palette$X2[grepl("MGE_newborn", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("seagreen", "seagreen1"))(5)
  94. colour_palette$X2[grepl("MGE_Ctx", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("olivedrab", "olivedrab3"))(2)
  95. colour_palette$X2[grepl("CGE_LGE", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("springgreen", "springgreen4"))(2)
  96. colour_palette$X2[grepl("OPC", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("royalblue", "royalblue"))(1)
  97. colour_palette$X2[grepl("Striatal", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("greenyellow", "green"))(1)
  98. colour_palette$X2[grepl("Microglia", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("aquamarine3", "aquamarine3"))(1)
  99. colour_palette$X2[grepl("Mural", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("khaki", "khaki"))(1)
  100. colour_palette$X2[grepl("Other", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("black", "black"))(1)
  101. ##convert to named vector
  102. colours <- as.vector(colour_palette$X2)
  103. names(colours) <- colour_palette$X1
  104. ```
  105. 4. ***Add genotyping information***
  106. ```{r Add genotyping information - BIAD_ids}
  107. demultiplex_doublet <- read.delim(file = paste0(workingdirectory, "/Cellranger_sheets/60D/Sanfilippo_novaseq/demuxafy/control_60D_combined_vireoSNP/control_60D_combined_results_w_combined_assignments.tsv"))
  108. rownames(demultiplex_doublet) <- demultiplex_doublet$Barcode
  109. cell_names <- rownames([email hidden])
  110. demultiplex_doublet <- demultiplex_doublet[cell_names,]
  111. Control_filtered_ambientRNA_60D <- AddMetaData(Control_filtered_ambientRNA_60D, demultiplex_doublet[,10:11], c("doublets_new","BIAD_id"))
  112. demultiplex_doublet <- read.delim(file = paste0(workingdirectory, "/Cellranger_sheets/60D/Sanfilippo_novaseq/demuxafy/MPSIIIA_60D_combined_vireoSNP/MPSIIIA_combined_results_vireoSNP_w_combined_assignments.tsv"))
  113. rownames(demultiplex_doublet) <- demultiplex_doublet$Barcode
  114. cell_names <- rownames([email hidden])
  115. demultiplex_doublet <- demultiplex_doublet[cell_names,]
  116. MPSIIIA_filtered_ambientRNA_60D <- AddMetaData(MPSIIIA_filtered_ambientRNA_60D, demultiplex_doublet[,10:11], c("doublets_new","BIAD_id"))
  117. DimPlot(Control_filtered_ambientRNA_60D, group.by = "BIAD_id", split.by = "BIAD_id")
  118. table(Control_filtered_ambientRNA_60D$BIAD_id)
  119. save(Control_filtered_ambientRNA_60D, file = paste0(datadirectory, "/RData/60D/revisions/Control_filtered_NOambientRNA_60D.RData"))
  120. save(MPSIIIA_filtered_ambientRNA_60D, file = paste0(datadirectory, "/RData/60D/revisions/MPSIIIA_filtered_NOambientRNA_60D.RData"))
  121. ```
  122. 5. ***Load in processed Lister datasets and markers***
  123. ```{r Load Lister files and markers}
  124. ## Load required datasets
  125. set.seed(1)
  126. file_names <- list.files(paste0(datadirectory,"/Lister_data"), pattern = "*RData",full.names = T)
  127. lapply(file_names[1:2], load, .GlobalEnv)
  128. rm(file_names)
  129. ```
  130. ```{r Prep Lister markers}
  131. # we use genes common between AB and Lister to RunPCA
  132. unique(Lister_markers$cluster) # Astro, OPC, Oligo, Micro,Vas, Inhib: VIP, ID2, PV, SST, PV_SCUBE3, LAMP5_NOS1. Excit: L5-6 THEMIS, L5-6 TLE4, L2-3 CUX2, L4_RORB.
  133. Lister_markers <- Lister_markers[!Lister_markers$cluster %in% "Poor-Quality",]
  134. Lister_markers$cluster <- as.character(Lister_markers$cluster)
  135. Lister_markers$cluster[grep("L4_RORB|L5-6_THEMIS|L2-3_CUX2|L5-6_TLE4",Lister_markers$cluster)] <- "Glutamatergic"
  136. Lister_markers$cluster[grep("LAMP5_NOS1|PV|SST|ID2|VIP",Lister_markers$cluster)] <- "GABAergic"
  137. Lister_markers$cluster[grep("Glut|GABA",Lister_markers$cluster, invert = T)] <- "Non-neuronal"
  138. Lister_markers <- Lister_markers[!Lister_markers$gene[grep("Glut", Lister_markers$cluster)] %in% Lister_markers$gene[grep("GABA", Lister_markers$cluster)],]
  139. Lister_markers <- Lister_markers[!Lister_markers$gene[grep("Glut|GABA", Lister_markers$cluster)] %in% Lister_markers$gene[grep("GABA|Glut", Lister_markers$cluster, invert = T)],]
  140. features_to_use <- process_de_genes(Lister_markers,500,log2FC = 1,p_val_adj = 0.05)
  141. ```
  142. XX. ***Load the required RData files that are being revised***
  143. ```{r Load RData files that have previously been QC'd}
  144. ## Load required datasets
  145. set.seed(1)
  146. file_names <- list.files(paste0(RData_directory,"/60D/revisions"), pattern = "*RData",full.names = T)
  147. lapply(file_names[c(4,5,6,7,8,9)], load, .GlobalEnv)
  148. rm(file_names)
  149. ```
  150. ## ----- ***Analyse the Healthy 60D neurons***
  151. 1. ***We use the Nowakowski and Liddelow dataset to determine cell types in the Control***
  152. ```{r Using the Nowakowski and Liddelow dataset to determine cell types - Control}
  153. Control_filtered_ambientRNA_60D <- AddModuleScore(
  154. object = Control_filtered_ambientRNA_60D,
  155. features = neuronal_genes_ls,
  156. name = names(neuronal_genes_ls),
  157. nbin = 30,
  158. ctrl = 100,
  159. seed = 1,
  160. search = TRUE
  161. )
  162. names([email hidden])[16:24] <- gsub('.{1}$', '', names([email hidden])[16:24])
  163. names([email hidden])[25:58] <- gsub('.{2}$', '', names([email hidden])[25:58])
  164. [email hidden]$maxscore_cell_types <- apply([email hidden][,16:58], 1, function(x)x[maxn(1)(x)])
  165. [email hidden]$cell_types <- apply([email hidden][,16:58], 1, function(x) names(x)[maxn(1)(x)])
  166. ## Add threshold to cell_types which have a low score
  167. Control_filtered_ambientRNA_60D$new_cell_types <- ifelse(Control_filtered_ambientRNA_60D$maxscore_cell_types < 0.1, "Other", Control_filtered_ambientRNA_60D$cell_types)
  168. [email hidden]$maxscore_celltypes_nowakowski <- apply([email hidden][,18:58], 1, function(x)x[maxn(1)(x)])
  169. [email hidden]$nowakowski_celltypes <- apply([email hidden][,18:58], 1, function(x) names(x)[maxn(1)(x)])
  170. ## Add threshold to cell_types which have a low score
  171. Control_filtered_ambientRNA_60D$nowakowski_other <- ifelse(Control_filtered_ambientRNA_60D$maxscore_celltypes_nowakowski < 0.1, "Other", Control_filtered_ambientRNA_60D$nowakowski_celltypes)
  172. Control_filtered_ambientRNA_60D$broad_cell_types <- "EMPTY"
  173. Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("CGE|MGE|iN|Striatal"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Inhibitory"
  174. Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("eN_"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Excitatory"
  175. Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("IPC_eN|MGE_progenitors|Newborn"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Immature Neurons"
  176. Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("astrocyte"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Astrocyte"
  177. Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("RG"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "RG"
  178. Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("OPC"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "OPC"
  179. Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("endothelial"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Vas"
  180. Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("OPC"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "OPC"
  181. Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("Pericyte","Other"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Other"
  182. ## We create a new metadata column to identify donors from Control and MPSIIIA
  183. Control_filtered_ambientRNA_60D$condition_donor <- paste(Control_filtered_ambientRNA_60D$orig.ident, Control_filtered_ambientRNA_60D$donor_id, sep = "_")
  184. Control_filtered_ambientRNA_60D$condition_broadtypes <- paste(Control_filtered_ambientRNA_60D$orig.ident, Control_filtered_ambientRNA_60D$broad_cell_types, sep = "_")
  185. tbl_Control <- [email hidden] %>%
  186. group_by(BIAD_id) %>%
  187. summarise(n = n()) %>%
  188. mutate(freq = (n / sum(n))*100)
  189. tbl_Control
  190. write.csv(tbl_Control, file = paste0(resultsdirectory, "/sheets/revisions_60D/celltype_proportions_60D/Healthy_BIAD_ID_prop.csv"))
  191. save(Control_filtered_ambientRNA_60D, file = paste0(RData_directory, "/60D/revision/Control_filtered_NOambientRNA_60D.RData"))
  192. ```
  193. 2. ***Use Tirosh dataset to determine the cell cycle***
  194. ```{r Using the Tirosh dataset to determine cell cycle - Control}
  195. cell_cycle <- read.table(file = paste0(datadirectory,"/reference_sheets/cellcycle_tirosh.tsv"), header = 1)
  196. cell_cycle <- list("G1S" = cell_cycle$G1.S, "G2M" = cell_cycle$G2.M)
  197. cell_cycle$G1S <- na.omit(cell_cycle$G1S)
  198. Control_filtered_ambientRNA_60D <- AddModuleScore(
  199. object = Control_filtered_ambientRNA_60D,
  200. features = cell_cycle,
  201. name = names(cell_cycle),
  202. nbin = 30,
  203. ctrl = 100,
  204. seed = 1,
  205. search = TRUE
  206. )
  207. names([email hidden])[72:73] <- c("G1S","G2M")
  208. [email hidden]$maxscore_cell_cycle <- apply([email hidden][,72:73], 1, function(x)x[maxn(1)(x)])
  209. [email hidden]$cell_cycle <- apply([email hidden][,72:73], 1, function(x) names(x)[maxn(1)(x)])
  210. Idents(Control_filtered_ambientRNA_60D) <- "broad_cell_types"
  211. DimPlot(Control_filtered_ambientRNA_60D, split.by = "cell_cycle", pt.size = 2)
  212. control_matrix <- as.matrix(Control_filtered_ambientRNA_60D@assays$SCT@data)
  213. control_matrix <- lapply(cell_cycle, function(x){
  214. data.frame(t(as.matrix(control_matrix[which(rownames(control_matrix) %in% x),])))})
  215. for(i in 1:length(control_matrix)){
  216. control_matrix[[i]]$Genes_expressed <- rowSums(control_matrix[[i]] > 0)
  217. }
  218. Control_filtered_ambientRNA_60D <- AddMetaData(Control_filtered_ambientRNA_60D,((control_matrix$G1S$Genes_expressed/43)*100),"G1S_percent_genes_expressed")
  219. Control_filtered_ambientRNA_60D <- AddMetaData(Control_filtered_ambientRNA_60D,((control_matrix$G2M$Genes_expressed/53)*100),"G2M_percent_genes_expressed")
  220. Control_filtered_ambientRNA_60D$percent_genes_expressed <- ifelse(Control_filtered_ambientRNA_60D$cell_cycle == "G1S", Control_filtered_ambientRNA_60D$G1S_percent_genes_expressed, Control_filtered_ambientRNA_60D$G2M_percent_genes_expressed)
  221. metadata <- [email hidden][,c(64,72:78)]
  222. metadata <- split(metadata, metadata$cell_cycle)
  223. library(scater)
  224. ggplot <- lapply(metadata, function(x){
  225. ggplot(x, aes(maxscore_cell_cycle,
  226. percent_genes_expressed, color=broad_cell_types)) +
  227. ##geom_point(aes(color = x$MaxScore_All), alpha = 0.5, size = 1) +
  228. geom_pointdensity(adjust = 0.2) +
  229. geom_point(alpha = 0.5, size = 1) +
  230. theme_minimal() +
  231. xlab("Cell cycle score") + ylab("Percent genes expressed") +
  232. # scale_color_manual(values = c("#80CDC1", ## LSpp
  233. # "#018571", ## LSppCVH
  234. # "#DFC27D", ## TLpp
  235. # "#A6611A")) +
  236. ##scale_colour_gradientn(colours = colorRampPalette(rev(brewer.pal(7,'RdBu')))(9)) +
  237. ##scale_colour_gradientn(colours = pals::coolwarm(7),limits = c(-0.1,0.1), na.value = "grey89") +
  238. geom_vline(xintercept = c(0,0.1), linetype = "dashed", col = "black", linewidth = 0.5) +
  239. geom_hline(yintercept = 30, linetype = "dashed", col = "black", linewidth = 0.5) +
  240. theme(legend.position = "bottom", axis.text.x = element_text(size = 12, hjust = 0.5, angle = 0, vjust = 0.5), axis.text.y = element_text(size = 12), axis.title.x = element_text(size = 12), axis.title.y = element_text(size = 12), panel.border = element_rect(fill=NA, colour = "black", size=1.5)) +
  241. scale_x_continuous(breaks = seq(-0.1,2, by = 0.5)) +
  242. scale_y_continuous(breaks = seq(0, 100 , by = 25)) +
  243. coord_cartesian(ylim = c(0, 100), xlim = c(-0.1,2))
  244. })
  245. gridExtra::grid.arrange(grobs = ggplot, ncol = 2)
  246. [email hidden]$cell_cycle <- ifelse(Control_filtered_ambientRNA_60D$cell_cycle == "G2M" & Control_filtered_ambientRNA_60D$maxscore_cell_cycle < 0.1 & Control_filtered_ambientRNA_60D$percent_genes_expressed <= 25, "NonCycling", ifelse(Control_filtered_ambientRNA_60D$cell_cycle == "G1S" & Control_filtered_ambientRNA_60D$maxscore_cell_cycle < 0.1 & Control_filtered_ambientRNA_60D$percent_genes_expressed <= 25, "NonCycling", Control_filtered_ambientRNA_60D$cell_cycle))
  247. Idents(Control_filtered_ambientRNA_60D) <- "broad_cell_types"
  248. DimPlot(Control_filtered_ambientRNA_60D, split.by = "cell_cycle", pt.size = 2)
  249. ```
  250. 3. ***Integrate with Lister biopsies***
  251. ```{r Integrate 120-day datasets with AB cortical datasets}
  252. genes_to_keep <- Reduce(intersect, list(rownames(Control_filtered_ambientRNA_60D@assays$RNA$counts), rownames(lister_seurat@assays$RNA$counts)))
  253. Combined_Lister_hiPSC_Control_60D <- merge(lister_seurat, c(Control_filtered_ambientRNA_60D))
  254. DefaultAssay(Combined_Lister_hiPSC_Control_60D) <- "RNA"
  255. Combined_Lister_hiPSC_Control_60D[["SCT"]] <- NULL
  256. Combined_Lister_hiPSC_Control_60D[["RNA"]]$data.2 <- NULL
  257. Combined_Lister_hiPSC_Control_60D <- subset(Combined_Lister_hiPSC_Control_60D, features = genes_to_keep)
  258. Combined_Lister_hiPSC_Control_60D$orig.ident[Combined_Lister_hiPSC_Control_60D$orig.ident == "Control"] <- "hiPSC"
  259. Combined_Lister_hiPSC_Control_60D$orig.ident[Combined_Lister_hiPSC_Control_60D$orig.ident == "SeuratProject"] <- "Lister"
  260. Combined_Lister_hiPSC_Control_60D <- SCTransform(Combined_Lister_hiPSC_Control_60D, assay = "RNA")
  261. pc_features <- rownames(Combined_Lister_hiPSC_Control_60D@assays$SCT$scale.data)[rownames(Combined_Lister_hiPSC_Control_60D@assays$SCT$scale.data) %in% unlist(unname(features_to_use))]
  262. Combined_Lister_hiPSC_Control_60D <- RunPCA(Combined_Lister_hiPSC_Control_60D, features = pc_features)
  263. min.pc <- significant_pcs(Combined_Lister_hiPSC_Control_60D,"pca")
  264. #load(file = paste0(datadirectory,"/RData/Biopsy_RData/multicortex_hiPSC_combined_qUMI.RData"))
  265. gc()
  266. library(harmony)
  267. Combined_Lister_hiPSC_Control_60D_int <- RunHarmony(Combined_Lister_hiPSC_Control_60D, "orig.ident", reduction.use = "pca", reduction.save = "harmony", early_stop =F, max_iter = 20, ncores = 4, plot_convergence = T)
  268. min.pc <- significant_pcs(Combined_Lister_hiPSC_Control_60D_int,"harmony")
  269. Combined_Lister_hiPSC_Control_60D_int <- FindNeighbors(Combined_Lister_hiPSC_Control_60D_int, dims = 1:min.pc, reduction = "harmony")
  270. Combined_Lister_hiPSC_Control_60D_int <- FindClusters(Combined_Lister_hiPSC_Control_60D_int, resolution = 0.1)
  271. Combined_Lister_hiPSC_Control_60D_int <- RunUMAP(Combined_Lister_hiPSC_Control_60D_int, dims = 1:min.pc, reduction = "harmony", reduction.name = "umap.int", return.model = T)
  272. #DimPlot(Combined_Lister_hiPSC_Control_60D_int, reduction = "umap.int", group.by = "orig.ident", pt.size = 1, order = F, label = T) +
  273. DimPlot(Combined_Lister_hiPSC_Control_60D_int, reduction = "umap.int", group.by = "new_cell_types", pt.size = 1, order = F, label = T) +
  274. DimPlot(Combined_Lister_hiPSC_Control_60D_int, reduction = "umap.int", group.by = "major_clust", pt.size = 1, order = F, label = T) #+
  275. #DimPlot(Combined_Lister_hiPSC_Control_60D_int, reduction = "umap.int", group.by = "BIAD_id", pt.size = 1, order = F, label = T) & NoLegend()
  276. tbl_Control <- [email hidden] %>%
  277. group_by(BIAD_id) %>%
  278. summarise(n = n()) %>%
  279. mutate(freq = (n / sum(n))*100)
  280. tbl_Control
  281. job::job({
  282. save(Combined_Lister_hiPSC_Control_60D,Combined_Lister_hiPSC_Control_60D_int, file = paste0(RData_directory,"/60D/revisions/Control_Lister_Integrated_60D.RData"))
  283. save(Control_filtered_ambientRNA_60D, file = paste0(RData_directory,"/60D/revisions/Control_filtered_NOambientRNA_60D.RData"))})
  284. ```
  285. 4. ***scMayoMap cell annotations and validation***
  286. ```{r scMayo Map cell annotations}
  287. # Find conserved markers across seurat clusters in AB and hiPSC genes
  288. # Put the conserved markers through scMayo
  289. Combined_Lister_hiPSC_Control_60D_int_2 <- PrepSCTFindMarkers(Combined_Lister_hiPSC_Control_60D_int, assay = "SCT")
  290. Idents(Combined_Lister_hiPSC_Control_60D_int_2) <- "seurat_clusters"
  291. conserved <- list()
  292. for(i in unique(Combined_Lister_hiPSC_Control_60D_int_2$seurat_clusters)){
  293. conserved[[i]] <- FindConservedMarkers(Combined_Lister_hiPSC_Control_60D_int_2, ident.1 = i, grouping.var = "orig.ident", min.pct = 0.25, logfc.threshold = 0.5, assay = "SCT", only.pos = T)
  294. }
  295. save(conserved, file = paste0(RData_directory,"/60D/revisions/conserved_markers_Lister_Control_60D.RData"))
  296. load(file = paste0(RData_directory,"/60D/revisions/conserved_markers_Lister_Control_60D.RData"))
  297. conserved_markers <- conserved
  298. for(i in seq_along(conserved_markers)){
  299. if (nrow(conserved_markers[[i]]) > 0) { # Only proceed if the dataframe is not empty
  300. conserved_markers[[i]]$cluster <- names(conserved_markers)[i]
  301. conserved_markers[[i]]$gene <- rownames(conserved_markers[[i]])
  302. }
  303. }
  304. for(i in 1:length(conserved_markers)){
  305. conserved_markers[[i]] <- conserved_markers[[i]] [,-c(grep("AB|Lister|max|min", colnames(conserved_markers[[i]] )))]
  306. colnames(conserved_markers[[i]] ) <- gsub("hiPSC_","", colnames(conserved_markers[[i]] ))
  307. }
  308. conserved_markers <- do.call("rbind", conserved_markers)
  309. library(scMayoMap)
  310. brain_db <- scMayoMapDatabase[grep("brain", scMayoMapDatabase$tissue), c(1:2,grep("brain", colnames(scMayoMapDatabase)))]
  311. brain_db <- brain_db[,colnames(brain_db)[c(1:2,5,7,10:11,16:17,19,21:22,26,29,31:33,39:40,45:46)]]
  312. rownames(brain_db) <- brain_db$gene
  313. brain_db <- as.data.frame(t(brain_db))
  314. brain_db$cell_type <- gsub("brain:","",rownames(brain_db))
  315. brain_db <- split(brain_db, brain)
  316. for(i in names(brain_db)){
  317. rownames(brain_db[[i]]) <- brain_db[[i]]$gene
  318. brain_db[[i]] <- brain_db[[i]][,names(brain_db[[i]]) %in% i, drop = F]
  319. }
  320. scMayo_cluster <- scMayoMap(conserved_markers, padj.cutoff = 0.05, database = brain_db, pct.cutoff = 0.25)
  321. scMayoplot <- scMayoMap.plot(scMayo_cluster) + scale_colour_gradient(low = "grey70", high = "red") + theme(axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5))
  322. ggsave(scMayoplot, filename = paste0(resultsdirectory,"/plots/revisions_60D/[DOTPLOT] Healthy_scMayo_predictions.pdf", sep = ""), height = 6.5, width = 12, dpi = 300, useDingbats = FALSE, limitsize = F)
  323. scMayoMap.plot(scMayo_cluster) + DimPlot(Combined_Lister_hiPSC_Control_60D_int, group.by = "seurat_clusters", pt.size = 0.5, label = T) + DimPlot(Combined_Lister_hiPSC_Control_60D_int, group.by = "major_clust", pt.size = 0.5, label = T) & NoLegend()
  324. scMayo.norm <- scMayo_cluster$annotation.norm[,grep("brain",colnames(scMayo_cluster$annotation.norm))]
  325. scMayo.norm <- scMayo.norm[,colSums(scMayo.norm) > 0]
  326. scMayo.norm$max <- apply(scMayo.norm, 1, function(x)names(x)[maxn(1)(x)]) # highest value
  327. scMayo.norm$max_2 <- apply(scMayo.norm[,1:17], 1, function(x)names(x)[maxn(2)(x)]) #second highest value
  328. scMayo.norm$max <- gsub("brain:","",scMayo.norm$max)
  329. scMayo.norm$max_2 <- gsub("brain:","",scMayo.norm$max_2)
  330. scMayo.norm$integrated_clusters <- rownames(scMayo.norm)
  331. Combined_Lister_hiPSC_Control_60D_int$cluster_type1 <- NA
  332. Combined_Lister_hiPSC_Control_60D_int$cluster_type2 <- NA
  333. Combined_Lister_hiPSC_Control_60D_int$cluster_type1[Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"] <- scMayo.norm$max[match(Combined_Lister_hiPSC_Control_60D_int$seurat_clusters[Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"], scMayo.norm$integrated_clusters)]
  334. Combined_Lister_hiPSC_Control_60D_int$cluster_type2[Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"] <- scMayo.norm$max_2[match(Combined_Lister_hiPSC_Control_60D_int$seurat_clusters[Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"], scMayo.norm$integrated_clusters)]
  335. Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("Glut",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "Excitatory"
  336. Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("Glut",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "Excitatory"
  337. Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("GABA|Interneuron|basket|Basket|Chandelier|Martinotti",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "Inhibitory"
  338. Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("GABA|Interneuron|basket|Basket|Chandelier|Martinotti",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "Inhibitory"
  339. Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("precursor",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "OPC"
  340. Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("precursor",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "OPC"
  341. Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("Oligodendrocyte",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "Oligo"
  342. Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("Oligodendrocyte",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "Oligo"
  343. Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("Radial",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "RG"
  344. Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("Radial",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "RG"
  345. Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("progenitor|stem|Neuroblast",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "RG"
  346. Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("progenitor|stem|Neuroblast",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "RG"
  347. Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("Micro",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "Micro"
  348. Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("Endo",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "Vas"
  349. DimPlot(Combined_Lister_hiPSC_Control_60D_int, group.by = "cluster_type1", label = T, order = T) + DimPlot(Combined_Lister_hiPSC_Control_60D_int, group.by = "cluster_type2", label = T, order = T) + DimPlot(Combined_Lister_hiPSC_Control_60D_int, group.by = "major_clust", label = T, order = T) #& NoLegend()
  350. job::job({
  351. save(Combined_Lister_hiPSC_Control_60D,Combined_Lister_hiPSC_Control_60D_int, file = paste0(RData_directory,"/60D/revisions/Control_Lister_Integrated_60D.RData"))})
  352. ```
  353. ```{r Match assignments between Nowakowski, Lister and scMayo}
  354. DimPlot(Combined_Lister_hiPSC_Control_60D_int, group.by = "major_clust", label = T, order = T) + DimPlot(Combined_Lister_hiPSC_Control_60D_int, group.by = "cluster_type1", label = T, order = T) +DimPlot(Combined_Lister_hiPSC_Control_60D_int, group.by = "seurat_clusters", label = T, order = T)#& NoLegend()
  355. tbl_Control <- [email hidden] %>%
  356. group_by(seurat_clusters, major_clust) %>%
  357. summarise(n = n()) %>%
  358. mutate(freq = (n / sum(n))*100)
  359. tbl_Control
  360. Combined_Lister_hiPSC_Control_60D_int$cell_type[Combined_Lister_hiPSC_Control_60D_int$seurat_clusters %in% c(4,6,7,8) & Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"] <- "Inhibitory"
  361. Combined_Lister_hiPSC_Control_60D_int$cell_type[Combined_Lister_hiPSC_Control_60D_int$seurat_clusters %in% c(2,10,14,12) & Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"] <- "Excitatory"
  362. Combined_Lister_hiPSC_Control_60D_int$cell_type[Combined_Lister_hiPSC_Control_60D_int$seurat_clusters %in% c(0,1,3,5,9,11,13) & Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"] <- "Non-neuronal"
  363. Combined_Lister_hiPSC_Control_60D_int$major_clust[Combined_Lister_hiPSC_Control_60D_int$seurat_clusters %in% c(4,6,7,8,12) & Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"] <- "Inhibitory"
  364. Combined_Lister_hiPSC_Control_60D_int$major_clust[Combined_Lister_hiPSC_Control_60D_int$seurat_clusters %in% c(2,10,14,12) & Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"] <- "Excitatory"
  365. Combined_Lister_hiPSC_Control_60D_int$major_clust[Combined_Lister_hiPSC_Control_60D_int$seurat_clusters %in% c(1,9) & Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"] <- "Astrocyte"
  366. Combined_Lister_hiPSC_Control_60D_int$major_clust[Combined_Lister_hiPSC_Control_60D_int$seurat_clusters %in% c(5) & Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"] <- "Micro"
  367. Combined_Lister_hiPSC_Control_60D_int$major_clust[Combined_Lister_hiPSC_Control_60D_int$seurat_clusters %in% c(0) & Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"] <- "Oligo"
  368. Combined_Lister_hiPSC_Control_60D_int$major_clust[Combined_Lister_hiPSC_Control_60D_int$seurat_clusters %in% c(3) & Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"] <- "OPC"
  369. Combined_Lister_hiPSC_Control_60D_int$major_clust[Combined_Lister_hiPSC_Control_60D_int$seurat_clusters %in% c(13,11) & Combined_Lister_hiPSC_Control_60D_int$orig.ident == "hiPSC"] <- "Vas"
  370. Combined_Lister_hiPSC_Control_60D_int$major_clust[Combined_Lister_hiPSC_Control_60D_int$major_clust == "Astro"] <- "Astrocyte"
  371. metadata <- [email hidden][[email hidden]$orig.ident == "hiPSC",c("major_clust", "cluster_type1","cluster_type2", "broad_cell_types")]
  372. matched_cells <- assign_final_cell_type(metadata,majority_cols = c("major_clust", "cluster_type1","cluster_type2", "broad_cell_types"),major_clust = "major_clust", tiebreaker_col = "major_clust", ignore_values = c("Vas","Oligo","Micro"), mix_col = "broad_cell_types")
  373. matched_cells$majority_match[is.na(matched_cells$majority_match)] <- ifelse(matched_cells$major_clust[is.na(matched_cells$majority_match)] == "Astrocyte" & matched_cells$cluster_type2[is.na(matched_cells$majority_match)] == "RG" & matched_cells$broad_cell_types[is.na(matched_cells$majority_match)] %in% c("RG","OPC","Other"), "RG","Immature Neurons")
  374. Control_filtered_ambientRNA_60D <- AddMetaData(Control_filtered_ambientRNA_60D, matched_cells[,6], c("final_cell_type"))
  375. DimPlot(Control_filtered_ambientRNA_60D, group.by = "final_cell_type",pt.size = 1)
  376. table(Control_filtered_ambientRNA_60D$final_cell_type)
  377. tbl_Control <- [email hidden]%>%
  378. group_by(BIAD_id,final_cell_type,cell_cycle) %>%
  379. summarise(n = n()) %>%
  380. mutate(freq = (n / sum(n))*100)
  381. tbl_Control
  382. write.csv(tbl_Control, file = paste0(resultsdirectory, "/sheets/revisions_60D/celltype_proportions_60D/Healthy_BIAD_ID_cell_type_cycling_prop.csv"))
  383. save(Control_filtered_ambientRNA_60D, file = paste0(RData_directory,"/60D/revisions/Control_filtered_NOambientRNA_60D.RData"))
  384. ```
  385. ## ----- ***Analyse the MPSIIIA 60D neurons***
  386. 1. ***We use the Nowakowski and Liddelow dataset to determine cell types in Sanfilippo***
  387. ```{r Using the Nowakowski and Liddelow dataset to determine cell types - Sanfilippo}
  388. MPSIIIA_filtered_ambientRNA_60D <- AddModuleScore(
  389. object = MPSIIIA_filtered_ambientRNA_60D,
  390. features = neuronal_genes_ls,
  391. name = names(neuronal_genes_ls),
  392. nbin = 30,
  393. ctrl = 100,
  394. seed = 1,
  395. search = TRUE
  396. )
  397. names([email hidden])[16:24] <- gsub('.{1}$', '', names([email hidden])[16:24])
  398. names([email hidden])[25:58] <- gsub('.{2}$', '', names([email hidden])[25:58])
  399. [email hidden]$maxscore_cell_types <- apply([email hidden][,16:58], 1, function(x)x[maxn(1)(x)])
  400. [email hidden]$cell_types <- apply([email hidden][,16:58], 1, function(x) names(x)[maxn(1)(x)])
  401. ## Add threshold to cell_types which have a low score
  402. MPSIIIA_filtered_ambientRNA_60D$new_cell_types <- ifelse(MPSIIIA_filtered_ambientRNA_60D$maxscore_cell_types < 0.1, "Other", MPSIIIA_filtered_ambientRNA_60D$cell_types)
  403. [email hidden]$maxscore_celltypes_nowakowski <- apply([email hidden][,18:58], 1, function(x)x[maxn(1)(x)])
  404. [email hidden]$nowakowski_celltypes <- apply([email hidden][,18:58], 1, function(x) names(x)[maxn(1)(x)])
  405. ## Add threshold to cell_types which have a low score
  406. MPSIIIA_filtered_ambientRNA_60D$nowakowski_other <- ifelse(MPSIIIA_filtered_ambientRNA_60D$maxscore_celltypes_nowakowski < 0.1, "Other", MPSIIIA_filtered_ambientRNA_60D$nowakowski_celltypes)
  407. MPSIIIA_filtered_ambientRNA_60D$broad_cell_types <- "EMPTY"
  408. MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("CGE|MGE|iN|Striatal"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Inhibitory"
  409. MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("eN_"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Excitatory"
  410. MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("IPC_eN|MGE_progenitors|Newborn"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Immature Neurons"
  411. MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("astrocyte"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Astrocyte"
  412. MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("RG"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "RG"
  413. MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("OPC"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "OPC"
  414. MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("endothelial"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Vas"
  415. MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("OPC"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "OPC"
  416. MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("Pericyte","Other"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Other"
  417. ## We create a new metadata column to identify donors from Control and MPSIIIA
  418. MPSIIIA_filtered_ambientRNA_60D$condition_donor <- paste(MPSIIIA_filtered_ambientRNA_60D$orig.ident, MPSIIIA_filtered_ambientRNA_60D$donor_id, sep = "_")
  419. MPSIIIA_filtered_ambientRNA_60D$condition_broadtypes <- paste(MPSIIIA_filtered_ambientRNA_60D$orig.ident, MPSIIIA_filtered_ambientRNA_60D$broad_cell_types, sep = "_")
  420. tbl_MPSIIIA <- [email hidden] %>%
  421. group_by(donor_id,BIAD_id) %>%
  422. summarise(n = n()) %>%
  423. mutate(freq = (n / sum(n))*100)
  424. tbl_MPSIIIA
  425. write.csv(tbl_MPSIIIA, file = paste0(resultsdirectory, "/sheets/revisions_60D/celltype_proportions_60D/MPSIIIA_BIAD_ID_w_old_donor_id_prop.csv"))
  426. save(MPSIIIA_filtered_ambientRNA_60D, file = paste0(datadirectory, "/RData/60D/revisions/MPSIIIA_filtered_NOambientRNA_60D.RData"))
  427. ```
  428. 2. ***Use Tirosh dataset to determine the cell cycle***
  429. ```{r Using the Tirosh dataset to determine cell cycle - MPSIIIA}
  430. cell_cycle <- read.table(file = paste0(datadirectory,"/reference_sheets/cellcycle_tirosh.tsv"), header = 1)
  431. cell_cycle <- list("G1S" = cell_cycle$G1.S, "G2M" = cell_cycle$G2.M)
  432. cell_cycle$G1S <- na.omit(cell_cycle$G1S)
  433. MPSIIIA_filtered_ambientRNA_60D <- AddModuleScore(
  434. object = MPSIIIA_filtered_ambientRNA_60D,
  435. features = cell_cycle,
  436. name = names(cell_cycle),
  437. nbin = 30,
  438. ctrl = 100,
  439. seed = 1,
  440. search = TRUE
  441. )
  442. names([email hidden])[72:73] <- c("G1S","G2M")
  443. [email hidden]$maxscore_cell_cycle <- apply([email hidden][,72:73], 1, function(x)x[maxn(1)(x)])
  444. [email hidden]$cell_cycle <- apply([email hidden][,72:73], 1, function(x) names(x)[maxn(1)(x)])
  445. MPSIIIA_matrix <- as.matrix(MPSIIIA_filtered_ambientRNA_60D@assays$SCT@data)
  446. MPSIIIA_matrix <- lapply(cell_cycle, function(x){
  447. data.frame(t(as.matrix(MPSIIIA_matrix[which(rownames(MPSIIIA_matrix) %in% x),])))})
  448. for(i in 1:length(MPSIIIA_matrix)){
  449. MPSIIIA_matrix[[i]]$Genes_expressed <- rowSums(MPSIIIA_matrix[[i]] > 0)
  450. }
  451. MPSIIIA_filtered_ambientRNA_60D <- AddMetaData(MPSIIIA_filtered_ambientRNA_60D,((MPSIIIA_matrix$G1S$Genes_expressed/43)*100),"G1S_percent_genes_expressed")
  452. MPSIIIA_filtered_ambientRNA_60D <- AddMetaData(MPSIIIA_filtered_ambientRNA_60D,((MPSIIIA_matrix$G2M$Genes_expressed/53)*100),"G2M_percent_genes_expressed")
  453. MPSIIIA_filtered_ambientRNA_60D$percent_genes_expressed <- ifelse(MPSIIIA_filtered_ambientRNA_60D$cell_cycle == "G1S", MPSIIIA_filtered_ambientRNA_60D$G1S_percent_genes_expressed, MPSIIIA_filtered_ambientRNA_60D$G2M_percent_genes_expressed)
  454. metadata <- [email hidden][,c(64,72:78)]
  455. metadata <- split(metadata, metadata$cell_cycle)
  456. library(scater)
  457. ggplot <- lapply(metadata, function(x){
  458. ggplot(x, aes(maxscore_cell_cycle,
  459. percent_genes_expressed, color=broad_cell_types)) +
  460. ##geom_point(aes(color = x$MaxScore_All), alpha = 0.5, size = 1) +
  461. geom_pointdensity(adjust = 0.2) +
  462. geom_point(alpha = 0.5, size = 1) +
  463. theme_minimal() +
  464. xlab("Cell cycle score") + ylab("Percent genes expressed") +
  465. # scale_color_manual(values = c("#80CDC1", ## LSpp
  466. # "#018571", ## LSppCVH
  467. # "#DFC27D", ## TLpp
  468. # "#A6611A")) +
  469. ##scale_colour_gradientn(colours = colorRampPalette(rev(brewer.pal(7,'RdBu')))(9)) +
  470. ##scale_colour_gradientn(colours = pals::coolwarm(7),limits = c(-0.1,0.1), na.value = "grey89") +
  471. geom_vline(xintercept = c(0,0.1), linetype = "dashed", col = "black", linewidth = 0.5) +
  472. geom_hline(yintercept = 30, linetype = "dashed", col = "black", linewidth = 0.5) +
  473. theme(legend.position = "bottom", axis.text.x = element_text(size = 12, hjust = 0.5, angle = 0, vjust = 0.5), axis.text.y = element_text(size = 12), axis.title.x = element_text(size = 12), axis.title.y = element_text(size = 12), panel.border = element_rect(fill=NA, colour = "black", size=1.5)) +
  474. scale_x_continuous(breaks = seq(-0.1,2, by = 0.5)) +
  475. scale_y_continuous(breaks = seq(0, 100 , by = 25)) +
  476. coord_cartesian(ylim = c(0, 100), xlim = c(-0.1,2))
  477. })
  478. gridExtra::grid.arrange(grobs = ggplot, ncol = 2)
  479. [email hidden]$cell_cycle <- ifelse(MPSIIIA_filtered_ambientRNA_60D$cell_cycle == "G2M" & MPSIIIA_filtered_ambientRNA_60D$maxscore_cell_cycle < 0.1 & MPSIIIA_filtered_ambientRNA_60D$percent_genes_expressed <= 25, "NonCycling", ifelse(MPSIIIA_filtered_ambientRNA_60D$cell_cycle == "G1S" & MPSIIIA_filtered_ambientRNA_60D$maxscore_cell_cycle < 0.1 & MPSIIIA_filtered_ambientRNA_60D$percent_genes_expressed <= 25, "NonCycling", MPSIIIA_filtered_ambientRNA_60D$cell_cycle))
  480. Idents(MPSIIIA_filtered_ambientRNA_60D) <- "broad_cell_types"
  481. DimPlot(MPSIIIA_filtered_ambientRNA_60D, split.by = "cell_cycle", pt.size = 2)
  482. ```
  483. 3. ***Integrate with Lister biopsies***
  484. ```{r Integrate 120-day datasets with AB cortical datasets}
  485. genes_to_keep <- Reduce(intersect, list(rownames(MPSIIIA_filtered_ambientRNA_60D@assays$RNA$counts), rownames(lister_seurat@assays$RNA$counts)))
  486. Combined_Lister_hiPSC_MPSIIIA_60D <- merge(lister_seurat, c(MPSIIIA_filtered_ambientRNA_60D))
  487. DefaultAssay(Combined_Lister_hiPSC_MPSIIIA_60D) <- "RNA"
  488. Combined_Lister_hiPSC_MPSIIIA_60D[["SCT"]] <- NULL
  489. Combined_Lister_hiPSC_MPSIIIA_60D[["RNA"]]$data.Sanfilippo_60D <- NULL
  490. Combined_Lister_hiPSC_MPSIIIA_60D <- subset(Combined_Lister_hiPSC_MPSIIIA_60D, features = genes_to_keep)
  491. Combined_Lister_hiPSC_MPSIIIA_60D$orig.ident[Combined_Lister_hiPSC_MPSIIIA_60D$orig.ident == "Sanfilippo"] <- "hiPSC"
  492. Combined_Lister_hiPSC_MPSIIIA_60D$orig.ident[Combined_Lister_hiPSC_MPSIIIA_60D$orig.ident == "SeuratProject"] <- "Lister"
  493. Combined_Lister_hiPSC_MPSIIIA_60D <- SCTransform(Combined_Lister_hiPSC_MPSIIIA_60D, assay = "RNA")
  494. pc_features <- rownames(Combined_Lister_hiPSC_MPSIIIA_60D@assays$SCT$scale.data)[rownames(Combined_Lister_hiPSC_MPSIIIA_60D@assays$SCT$scale.data) %in% unlist(unname(features_to_use))]
  495. Combined_Lister_hiPSC_MPSIIIA_60D <- RunPCA(Combined_Lister_hiPSC_MPSIIIA_60D, features = pc_features)
  496. min.pc <- significant_pcs(Combined_Lister_hiPSC_MPSIIIA_60D,"pca")
  497. #load(file = paste0(datadirectory,"/RData/Biopsy_RData/multicortex_hiPSC_combined_qUMI.RData"))
  498. gc()
  499. library(harmony)
  500. Combined_Lister_hiPSC_MPSIIIA_60D_int <- RunHarmony(Combined_Lister_hiPSC_MPSIIIA_60D, "orig.ident", reduction.use = "pca", reduction.save = "harmony", early_stop =F, max_iter = 20, ncores = 4, plot_convergence = T)
  501. min.pc <- significant_pcs(Combined_Lister_hiPSC_MPSIIIA_60D_int,"harmony")
  502. Combined_Lister_hiPSC_MPSIIIA_60D_int <- FindNeighbors(Combined_Lister_hiPSC_MPSIIIA_60D_int, dims = 1:min.pc, reduction = "harmony")
  503. Combined_Lister_hiPSC_MPSIIIA_60D_int <- FindClusters(Combined_Lister_hiPSC_MPSIIIA_60D_int, resolution = 0.1)
  504. Combined_Lister_hiPSC_MPSIIIA_60D_int <- RunUMAP(Combined_Lister_hiPSC_MPSIIIA_60D_int, dims = 1:min.pc, reduction = "harmony", reduction.name = "umap.int", return.model = T)
  505. DimPlot(Combined_Lister_hiPSC_MPSIIIA_60D_int, reduction = "umap.int", group.by = "orig.ident", pt.size = 1, order = F, label = T) + DimPlot(Combined_Lister_hiPSC_MPSIIIA_60D_int, reduction = "umap.int", group.by = "major_clust", pt.size = 1, order = F, label = T) + DimPlot(Combined_Lister_hiPSC_MPSIIIA_60D_int, reduction = "umap.int", group.by = "broad_cell_types", pt.size = 1, order = F, label = T) + DimPlot(Combined_Lister_hiPSC_MPSIIIA_60D_int, reduction = "umap.int", group.by = "seurat_clusters", pt.size = 1, order = F, label = T) & NoLegend()
  506. job::job({
  507. save(Combined_Lister_hiPSC_MPSIIIA_60D,Combined_Lister_hiPSC_MPSIIIA_60D_int, file = paste0(RData_directory,"/60D/revisions/MPSIIIA_Lister_Integrated_60D.RData"))
  508. save(MPSIIIA_filtered_ambientRNA_60D, file = paste0(RData_directory,"/60D/revisions/MPSIIIA_filtered_NOambientRNA_60D.RData"))})
  509. ```
  510. 4. ***scMayoMap cell annotations and validation***
  511. ```{r scMayo Map cell annotations}
  512. # Find conserved markers across seurat clusters in AB and hiPSC genes
  513. # Put the conserved markers through scMayo
  514. Combined_Lister_hiPSC_MPSIIIA_60D_int_2 <- PrepSCTFindMarkers(Combined_Lister_hiPSC_MPSIIIA_60D_int, assay = "SCT")
  515. Idents(Combined_Lister_hiPSC_MPSIIIA_60D_int_2) <- "seurat_clusters"
  516. conserved <- list()
  517. for(i in unique(Combined_Lister_hiPSC_MPSIIIA_60D_int_2$seurat_clusters)){
  518. conserved[[i]] <- FindConservedMarkers(Combined_Lister_hiPSC_MPSIIIA_60D_int_2, ident.1 = i, grouping.var = "orig.ident", min.pct = 0.25, logfc.threshold = 0.5, assay = "SCT", only.pos = T)
  519. }
  520. save(conserved, file = paste0(RData_directory,"/60D/revisions/conserved_markers_Lister_MPSIIIA_60D.RData"))
  521. load(file = paste0(RData_directory,"/60D/revisions/conserved_markers_Lister_MPSIIIA_60D.RData"))
  522. conserved_markers <- conserved
  523. for(i in seq_along(conserved_markers)){
  524. if (nrow(conserved_markers[[i]]) > 0) { # Only proceed if the dataframe is not empty
  525. conserved_markers[[i]]$cluster <- names(conserved_markers)[i]
  526. conserved_markers[[i]]$gene <- rownames(conserved_markers[[i]])
  527. }
  528. }
  529. for(i in 1:length(conserved_markers)){
  530. conserved_markers[[i]] <- conserved_markers[[i]] [,-c(grep("AB|Lister|max|min", colnames(conserved_markers[[i]] )))]
  531. colnames(conserved_markers[[i]] ) <- gsub("hiPSC_","", colnames(conserved_markers[[i]] ))
  532. }
  533. conserved_markers <- do.call("rbind", conserved_markers)
  534. library(scMayoMap)
  535. brain_db <- scMayoMapDatabase[grep("brain", scMayoMapDatabase$tissue), c(1:2,grep("brain", colnames(scMayoMapDatabase)))]
  536. brain_db <- brain_db[,colnames(brain_db)[c(1:2,5,7,10:11,16:17,19,21:22,26,29,31:33,35,39:40,45:46)]]
  537. scMayo_cluster <- scMayoMap(conserved_markers, padj.cutoff = 0.05, database = brain_db, pct.cutoff = 0.25)
  538. scMayoplot <- scMayoMap.plot(scMayo_cluster) + scale_colour_gradient(low = "grey70", high = "red") + theme(axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5))
  539. ggsave(scMayoplot, filename = paste0(resultsdirectory,"/plots/revisions_60D/[DOTPLOT] MPSIIIA_scMayo_predictions.pdf", sep = ""), height = 6.5, width = 12, dpi = 300, useDingbats = FALSE, limitsize = F)
  540. scMayoMap.plot(scMayo_cluster) + DimPlot(Combined_Lister_hiPSC_MPSIIIA_60D_int, group.by = "seurat_clusters", pt.size = 0.5, label = T) + DimPlot(Combined_Lister_hiPSC_MPSIIIA_60D_int, group.by = "major_clust", pt.size = 0.5, label = T) & NoLegend()
  541. scMayo.norm <- scMayo_cluster$annotation.norm[,grep("brain",colnames(scMayo_cluster$annotation.norm))]
  542. scMayo.norm <- scMayo.norm[,colSums(scMayo.norm) > 0]
  543. scMayo.norm$max <- apply(scMayo.norm, 1, function(x)names(x)[maxn(1)(x)]) # highest value
  544. scMayo.norm$max_2 <- apply(scMayo.norm[,1:18], 1, function(x)names(x)[maxn(2)(x)]) #second highest value
  545. scMayo.norm$max <- gsub("brain:","",scMayo.norm$max)
  546. scMayo.norm$max_2 <- gsub("brain:","",scMayo.norm$max_2)
  547. scMayo.norm$integrated_clusters <- rownames(scMayo.norm)
  548. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1 <- NA
  549. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2 <- NA
  550. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1[Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"] <- scMayo.norm$max[match(Combined_Lister_hiPSC_MPSIIIA_60D_int$seurat_clusters[Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"], scMayo.norm$integrated_clusters)]
  551. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2[Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"] <- scMayo.norm$max_2[match(Combined_Lister_hiPSC_MPSIIIA_60D_int$seurat_clusters[Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"], scMayo.norm$integrated_clusters)]
  552. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1[grep("Glut|Pyramidal",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1)] <- "Excitatory"
  553. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2[grep("Glut|Pyramidal",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2)] <- "Excitatory"
  554. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1[grep("GABA|Interneuron|Basket|Chandelier|Martinotti",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1)] <- "Inhibitory"
  555. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2[grep("GABA|Interneuron|Basket|Chandelier|Martinotti",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2)] <- "Inhibitory"
  556. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1[grep("precursor",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1)] <- "OPC"
  557. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2[grep("precursor",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2)] <- "OPC"
  558. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1[grep("Oligodendrocyte",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1)] <- "Oligo"
  559. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2[grep("Oligodendrocyte",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2)] <- "Oligo"
  560. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1[grep("Radial|stem",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1)] <- "RG"
  561. Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2[grep("Radial|stem",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2)] <- "RG"
  562. DimPlot(Combined_Lister_hiPSC_MPSIIIA_60D_int, group.by = "cluster_type1", label = T, order = T) + DimPlot(Combined_Lister_hiPSC_MPSIIIA_60D_int, group.by = "cluster_type2", label = T, order = T) + DimPlot(Combined_Lister_hiPSC_MPSIIIA_60D_int, group.by = "major_clust", label = T, order = T) & NoLegend()
  563. ```
  564. ```{r Match assignments between Nowakowski, Lister and scMayo}
  565. DimPlot(Combined_Lister_hiPSC_MPSIIIA_60D_int, group.by = "major_clust", label = T, order = T) + DimPlot(Combined_Lister_hiPSC_MPSIIIA_60D_int, group.by = "broad_cell_types", label = T, order = T) + DimPlot(Combined_Lister_hiPSC_MPSIIIA_60D_int, group.by = "cluster_type1", label = T, order = T) + DimPlot(Combined_Lister_hiPSC_MPSIIIA_60D_int, group.by = "seurat_clusters", label = T, order = T)& NoLegend()
  566. tbl_MPSIIIA<- [email hidden] %>%
  567. group_by(seurat_clusters, major_clust) %>%
  568. summarise(n = n()) %>%
  569. mutate(freq = (n / sum(n))*100)
  570. tbl_MPSIIIA
  571. Combined_Lister_hiPSC_MPSIIIA_60D_int$cell_type[Combined_Lister_hiPSC_MPSIIIA_60D_int$seurat_clusters %in% c(5,7,11) & Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"] <- "Inhibitory"
  572. Combined_Lister_hiPSC_MPSIIIA_60D_int$cell_type[Combined_Lister_hiPSC_MPSIIIA_60D_int$seurat_clusters %in% c(2,8) & Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"] <- "Excitatory"
  573. Combined_Lister_hiPSC_MPSIIIA_60D_int$cell_type[Combined_Lister_hiPSC_MPSIIIA_60D_int$seurat_clusters %in% c(0,1,3,4,6,9,10) & Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"] <- "Non-neuronal"
  574. Combined_Lister_hiPSC_MPSIIIA_60D_int$major_clust[Combined_Lister_hiPSC_MPSIIIA_60D_int$seurat_clusters %in% c(5,7,11) & Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"] <- "Inhibitory"
  575. Combined_Lister_hiPSC_MPSIIIA_60D_int$major_clust[Combined_Lister_hiPSC_MPSIIIA_60D_int$seurat_clusters %in% c(2,8) & Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"] <- "Excitatory"
  576. Combined_Lister_hiPSC_MPSIIIA_60D_int$major_clust[Combined_Lister_hiPSC_MPSIIIA_60D_int$seurat_clusters %in% c(1,6) & Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"] <- "Astrocyte"
  577. Combined_Lister_hiPSC_MPSIIIA_60D_int$major_clust[Combined_Lister_hiPSC_MPSIIIA_60D_int$seurat_clusters %in% c(4,9) & Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"] <- "Micro"
  578. Combined_Lister_hiPSC_MPSIIIA_60D_int$major_clust[Combined_Lister_hiPSC_MPSIIIA_60D_int$seurat_clusters %in% c(0) & Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"] <- "Oligo"
  579. Combined_Lister_hiPSC_MPSIIIA_60D_int$major_clust[Combined_Lister_hiPSC_MPSIIIA_60D_int$seurat_clusters %in% c(3) & Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"] <- "OPC"
  580. Combined_Lister_hiPSC_MPSIIIA_60D_int$major_clust[Combined_Lister_hiPSC_MPSIIIA_60D_int$seurat_clusters %in% c(10) & Combined_Lister_hiPSC_MPSIIIA_60D_int$orig.ident == "hiPSC"] <- "Vas"
  581. metadata <- [email hidden][[email hidden]$orig.ident == "hiPSC",c("major_clust", "cluster_type1","cluster_type2", "broad_cell_types")]
  582. matched_cells <- assign_final_cell_type(metadata,majority_cols = c("major_clust", "cluster_type1","cluster_type2", "broad_cell_types"),major_clust = "major_clust", tiebreaker_col = "major_clust", ignore_values = c("Vas","Oligo","Micro"), mix_col = "broad_cell_types")
  583. MPSIIIA_filtered_ambientRNA_60D <- AddMetaData(MPSIIIA_filtered_ambientRNA_60D, matched_cells[,6], c("final_cell_type"))
  584. DimPlot(MPSIIIA_filtered_ambientRNA_60D, group.by = "final_cell_type",pt.size = 1, split.by = "orig.ident")
  585. table(MPSIIIA_filtered_ambientRNA_60D$final_cell_type)
  586. tbl_MPSIIIA<- [email hidden] %>%
  587. group_by(BIAD_id,final_cell_type) %>%
  588. summarise(n = n()) %>%
  589. mutate(freq = (n / sum(n))*100)
  590. tbl_MPSIIIA
  591. write.csv(tbl_MPSIIIA, file = paste0(resultsdirectory, "/sheets/revisions_60D/celltype_proportions_60D/MPSIIIA_BIAD_ID_cell_type_prop.csv"))
  592. save(MPSIIIA_filtered_ambientRNA_60D, file = paste0(RData_directory,"/60D/revisions/MPSIIIA_filtered_NOambientRNA_60D.RData"))
  593. ```
  594. ## ----- **Analyse the proportion of reactive astrocytes**
  595. 1. ***Subset the datasets and calculate astrocyte scores for only the astrocyte cells - Control***
  596. ```{r Subset the datasets and calculate astrocyte scores for only the astrocyte cells - Control}
  597. Idents(Control_filtered_ambientRNA_60D) <- "final_cell_type"
  598. Control_ambientRNA_astro_60D <- subset(Control_filtered_ambientRNA_60D, idents = unique(Control_filtered_ambientRNA_60D$final_cell_type[grep("astrocyte", Control_filtered_ambientRNA_60D$final_cell_type,ignore.case = T)]))
  599. Control_ambientRNA_astro_60D <- SCTransform(Control_ambientRNA_astro_60D)
  600. [email hidden][,76:80] <- NULL
  601. load(file = paste0(datadirectory, "/reference_sheets/updated_neuronal_genes_ls.RData"))
  602. neuronal_genes_ls <- updated_neuronal_genes_ls
  603. Control_ambientRNA_astro_60D <- AddModuleScore(
  604. object = Control_ambientRNA_astro_60D,
  605. features = neuronal_genes_ls[1:2],
  606. name = names(neuronal_genes_ls)[1:2],
  607. nbin = 20, #15 #20
  608. ctrl = 100,
  609. seed = 1,
  610. search = TRUE
  611. )
  612. names([email hidden])[77:78] <- gsub('.{1}$', '', names([email hidden])[77:78])
  613. [email hidden]$maxscore_reactiveastro <- apply([email hidden][,77:78], 1, function(x)x[maxn(1)(x)])
  614. [email hidden]$reactive_astro_type <- apply([email hidden][,77:78], 1, function(x) names(x)[maxn(1)(x)])
  615. Control_ambientRNA_astro_60D$reactive_astro_type_2 <- ifelse(Control_ambientRNA_astro_60D$maxscore_reactiveastro < 0.1 & Control_ambientRNA_astro_60D$final_cell_type != "Astrocyte", "Not Astrocyte", ifelse(Control_ambientRNA_astro_60D$maxscore_reactiveastro < 0.1 & Control_ambientRNA_astro_60D$final_cell_type == "Astrocyte", "Astrocyte", Control_ambientRNA_astro_60D$reactive_astro_type))
  616. [email hidden][,76:80] <- NULL
  617. Control_filtered_ambientRNA_60D <- AddMetaData(Control_filtered_ambientRNA_60D, [email hidden][,77:81], names([email hidden])[77:81])
  618. tbl_Control <- [email hidden] %>%
  619. group_by(BIAD_id, reactive_astro_type_2) %>%
  620. summarise(n = n()) %>%
  621. mutate(freq = (n / sum(n))*100)
  622. tbl_Control
  623. write.csv(tbl_Control, file = paste0(resultsdirectory, "/sheets/revisions_60D/celltype_proportions_60D/Healthy_BIAD_id_reactive_astro_prop.csv"))
  624. save(Control_ambientRNA_astro_60D, file = paste0(datadirectory, "/RData/60D/revisions/Control_NOambientRNA_astro_60D.RData"))
  625. save(Control_filtered_ambientRNA_60D, file = paste0(datadirectory, "/RData/60D/revisions/Control_filtered_NOambientRNA_60D.RData"))
  626. ```
  627. 2. ***Subset the datasets and calculate astrocyte scores for only the astrocyte cells - Sanfilippo***
  628. ```{r Subset the datasets and calculate astrocyte scores for only the astrocyte cells - Sanfilippo}
  629. Idents(MPSIIIA_filtered_ambientRNA_60D) <- "final_cell_type"
  630. MPSIIIA_ambientRNA_astro_60D <- subset(MPSIIIA_filtered_ambientRNA_60D, idents = unique(MPSIIIA_filtered_ambientRNA_60D$final_cell_type[grep("astrocyte", MPSIIIA_filtered_ambientRNA_60D$final_cell_type, ignore.case = T)]))
  631. MPSIIIA_ambientRNA_astro_60D <- SCTransform(MPSIIIA_ambientRNA_astro_60D)
  632. [email hidden][,77:81] <- NULL
  633. MPSIIIA_ambientRNA_astro_60D <- AddModuleScore(
  634. object = MPSIIIA_ambientRNA_astro_60D,
  635. features = neuronal_genes_ls[1:2],
  636. name = names(neuronal_genes_ls)[1:2],
  637. nbin = 20,
  638. ctrl = 100,
  639. seed = 1,
  640. search = TRUE
  641. )
  642. names([email hidden])[77:78] <- gsub('.{1}$', '', names([email hidden])[77:78])
  643. [email hidden]$maxscore_reactiveastro <- apply([email hidden][,77:78], 1, function(x)x[maxn(1)(x)])
  644. [email hidden]$reactive_astro_type <- apply([email hidden][,77:78], 1, function(x) names(x)[maxn(1)(x)])
  645. MPSIIIA_ambientRNA_astro_60D$reactive_astro_type_2 <- ifelse(MPSIIIA_ambientRNA_astro_60D$maxscore_reactiveastro < 0.1 & MPSIIIA_ambientRNA_astro_60D$final_cell_type != "Astrocyte", "Not Astrocyte", ifelse(MPSIIIA_ambientRNA_astro_60D$maxscore_reactiveastro < 0.1 & MPSIIIA_ambientRNA_astro_60D$final_cell_type == "Astrocyte", "Astrocyte", MPSIIIA_ambientRNA_astro_60D$reactive_astro_type))
  646. [email hidden][,77:81] <- NULL
  647. MPSIIIA_filtered_ambientRNA_60D <- AddMetaData(MPSIIIA_filtered_ambientRNA_60D, [email hidden][,77:81], names([email hidden])[77:81])
  648. tbl_MPSIIIA <- [email hidden] %>%
  649. group_by(BIAD_id, reactive_astro_type_2) %>%
  650. summarise(n = n()) %>%
  651. mutate(freq = (n / sum(n))*100)
  652. tbl_MPSIIIA
  653. write.csv(tbl_MPSIIIA, file = paste0(resultsdirectory, "/sheets/revisions_60D/celltype_proportions_60D/MPSIIIA_BIAD_id_reactive_astro_prop.csv"))
  654. save(MPSIIIA_ambientRNA_astro_60D, file = paste0(datadirectory, "/RData/60D/revisions/MPSIIIA_NOambientRNA_astro_60D.RData"))
  655. save(MPSIIIA_filtered_ambientRNA_60D, file = paste0(datadirectory, "/RData/60D/revisions/MPSIIIA_filtered_NOambientRNA_60D.RData"))
  656. ```
  657. ```{r EXTRA - update gene names}
  658. library(openxlsx)
  659. ## Update the gene symbol list - ALL
  660. updated_neuronal_genes_ls <- lapply(neuronal_genes_ls, function(x){
  661. UpdateSymbolList(x,
  662. timeout = 20000)
  663. })
  664. ## reactive astrocytes
  665. updated_neuronal_genes_ls_liddelow <- lapply(neuronal_genes_ls[1:2], function(x){
  666. UpdateSymbolList(x,
  667. timeout = 20000)
  668. })
  669. ## MGE_progenitors
  670. updated_neuronal_genes_ls_nowakowski_MGE_progenitors <- lapply(neuronal_genes_ls[3:6], function(x){
  671. UpdateSymbolList(x,
  672. timeout = 20000)
  673. })
  674. ## MGE RG
  675. updated_neuronal_genes_ls_nowakowski_MGE_RG<- lapply(neuronal_genes_ls[7:8], function(x){
  676. UpdateSymbolList(x,
  677. timeout = 20000)
  678. })
  679. updated_neuronal_genes_ls_nowakowski_DivRG_S<- lapply(neuronal_genes_ls[9], function(x){
  680. UpdateSymbolList(x,
  681. timeout = 1000000)
  682. })
  683. updated_neuronal_genes_ls_nowakowski_DivRG<- lapply(neuronal_genes_ls[12], function(x){
  684. UpdateSymbolList(x,
  685. timeout = 100000)
  686. })
  687. ## Astro
  688. updated_neuronal_genes_ls_nowakowski_astro<- lapply(neuronal_genes_ls[10], function(x){
  689. UpdateSymbolList(x,
  690. timeout = 20000)
  691. })
  692. ##OPC
  693. updated_neuronal_genes_ls_nowakowski_opc<- lapply(neuronal_genes_ls[11], function(x){
  694. UpdateSymbolList(x,
  695. timeout = 20000)
  696. })
  697. ## Other RG
  698. updated_neuronal_genes_ls_nowakowski_otherRG<- lapply(neuronal_genes_ls[13:16], function(x){
  699. UpdateSymbolList(x,
  700. timeout = 20000)
  701. })
  702. ## Enodthelial, pericytes etc.
  703. updated_neuronal_genes_ls_nowakowski_Endothelial<- lapply(neuronal_genes_ls[17:19], function(x){
  704. UpdateSymbolList(x,
  705. timeout = 20000)
  706. })
  707. ## MGE_newborn
  708. updated_neuronal_genes_ls_nowakowski_MGE_newborn<- lapply(neuronal_genes_ls[20:24], function(x){
  709. UpdateSymbolList(x,
  710. timeout = 20000)
  711. })
  712. ## IPCs
  713. updated_neuronal_genes_ls_nowakowski_IPC<- lapply(neuronal_genes_ls[25:29], function(x){
  714. UpdateSymbolList(x,
  715. timeout = 20000)
  716. })
  717. ## iNs
  718. updated_neuronal_genes_ls_nowakowski_iN<- lapply(neuronal_genes_ls[30:33], function(x){
  719. UpdateSymbolList(x,
  720. timeout = 20000)
  721. })
  722. ## eNs
  723. updated_neuronal_genes_ls_nowakowski_eN <- lapply(neuronal_genes_ls[c(34:43)], function(x){
  724. UpdateSymbolList(x,
  725. timeout = 20000)
  726. })
  727. load(file = paste0(datadirectory, "/reference_sheets/updated_neuronal_genes_ls_2.RData"))
  728. updated_neuronal_genes_ls <- c(updated_neuronal_genes_ls_liddelow, updated_neuronal_genes_ls_nowakowski_astro, updated_neuronal_genes_ls_nowakowski_Endothelial, updated_neuronal_genes_ls_nowakowski_iN, updated_neuronal_genes_ls_nowakowski_IPC, updated_neuronal_genes_ls_nowakowski_MGE_newborn, updated_neuronal_genes_ls_nowakowski_MGE_progenitors, updated_neuronal_genes_ls_nowakowski_eN, updated_neuronal_genes_ls_2)
  729. ## Couldn't update these gene sets
  730. updated_neuronal_genes_ls[["Div_RG_Sphase"]] <- neuronal_genes_ls[["Div_RG_Sphase"]]
  731. updated_neuronal_genes_ls[["Div_RG"]] <- neuronal_genes_ls[["Div_RG"]]
  732. names(updated_neuronal_genes_ls)[which(names(updated_neuronal_genes_ls) == "Astocyte")] <- "Astrocyte"
  733. updated_neuronal_genes_ls <- updated_neuronal_genes_ls[order(match(neuronal_genes_ls, updated_neuronal_genes_ls))]
  734. save(updated_neuronal_genes_ls, file = paste0(datadirectory, "/reference_sheets/updated_neuronal_genes_ls.RData"))
  735. ```

Neuronal_Glial_Types_Analysis_60D.Rmd at commit 1e1b492, no license · at the source

Overview

  1. Laboratory for Human Neurophysiology and Genetics, South Australian Health and Medical Research Institute (SAHMRI), Adelaide, SA Australia
  2. Flinders Health and Medical Research Institute, College of Medicine and Public Health, Flinders University, Adelaide, SA Australia
  3. Translational Genomics, Garvan Institute of Medical Research, Darlinghurst, NSW Australia
  4. Centre for Population and Disease Genomics, Institute for Molecular Bioscience, The University of Queensland, Brisbane, QLD Australia
  5. Sanfilippo Children’s Foundation, Sydney, NSW Australia
  6. Childhood Dementia Initiative, Sydney, NSW Australia
  7. School of Pharmacy and Biomedical Science, Adelaide University, Adelaide, SA Australia
  8. Institute for Photonics and Advanced Sensing, Adelaide University, Adelaide, SA Australia
  9. Department of Neurology and Clinical Neurophysiology, Women’s and Children’s Health Network, Adelaide, SA Australia
  10. Paediatric Neurodegenerative Disease Research Group, Discipline of Paediatrics, College of Health, Adelaide University, Adelaide, SA Australia
  11. Brain Organoid Therapeutics, Adelaide, SA Australia
Journal: Nature communications, volume 17, issue 1, article 9980
Dates: received 12 September 2024; accepted 5 August 2026; published online 20 August 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-76837-1 · PMID 42764280 · PMCID PMC13590601 · OpenAlex W7203774183
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: human (organism), other condition (population), Alzheimer's / dementia (population)
Methods: Spectral & time-frequency, Statistics, Smoothing, state filtering, decompositions, Machine learning, Preprocessing, Evoked potentials, Single-unit activity, calcium imaging, Physiology & signal measures
Keywords: Cellular neuroscience, Phenotypic screening, Induced pluripotent stem cells, Neurodegenerative diseases, Paediatric neurological disorders
MeSH: Dementia*, Machine Learning*, Mucopolysaccharidosis III*, Neuroprotective Agents*, Child, Drug Evaluation, Preclinical, Drug Repositioning, Female, Heparan Sulfate, Humans, Induced Pluripotent Stem Cells, Lysosomes (* major topic)
Topic: Lysosomal Storage Disorders Research (Physiology, Medicine), according to OpenAlex
Funding: Department of Health | National Health and Medical Research Council (NHMRC) (EPCD000025, MRF2024419)
Citations: not cited yet (Europe PMC); 100 references in the paper

Abstract

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

Repositories

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

jacobgil/pytorch-grad-cam

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 704393448a7b0c620ee2c2b9597723f1d7f17b3d, 13 August 2026
Languages: Python (54), Jupyter (7)
Size: 135 files, 61 scripts
Software Heritage: archived
Found in: the text, “Machine learning image models”
Holds: README, license file, environment (pyproject.toml, requirements.txt, setup.cfg, setup.py), tests, continuous integration, 7 notebooks
Not found: CITATION.cff, documentation
Tools: NumPy (41 files), PyTorch (37 files), OpenCV (18 files), Pillow (8 files), scikit-learn (2 files), SciPy (2 files), Matplotlib (1 file), Hugging Face Transformers (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
60 files

bardylab/MPSIIIA_snRNAseq_DrugScreen_Paper_2026

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 1e1b49286e5cf3122cb3a5cb44b2f9737be4ea02, 22 July 2026
Languages: R (6)
Size: 19 files, 6 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, 6 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: ggplot2 (6 files), Seurat (6 files), tidyverse (6 files), clusterProfiler (2 files), ComplexHeatmap (2 files), data.table (2 files), Harmony (2 files)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
7 files

bardylab/MPSIIIA_Machine_Learning_DrugScreen_Paper_2026

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 2ba0e823f7d859fbef8e44829c8048a8b6e4c517, 20 August 2025
Languages: Python (14), Jupyter (2)
Size: 28 files, 16 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, 2 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: PyTorch (8 files), NumPy (7 files), pandas (6 files), Matplotlib (5 files), scikit-learn (5 files), seaborn (4 files), Pillow (3 files), XGBoost (3 files), SHAP (2 files), OpenCV (1 file), scikit-image (1 file), SciPy (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
17 files

bardylab/MPSIIIA_snRNA-seq_DrugScreen_Paper_2026

License: none: the authors keep all their rights
State: the link is dead, verified on 27 September 2026
Evidence: found in the paper
Software Heritage: not archived
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link is dead
  • 27 September 2026: the link is dead

Code availability statement

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

Read it in the paper: doi.org/10.1038/s41467-026-76837-1.

Tracing map

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

What the map holds:

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

No dataset and no data link were found in the paper.

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-76837-1.

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, 19 authors, 5 keywords, 12 MeSH terms, 1 funder, 99 references.

Cite

This paper

Greenberg, Z., McDonald, E., Noreña Puerta, A., De Silva, M. I., Christensen, C., Adams, R., Tran, J., Mazzachi, P., Loskarn, S., Mubarokah, S. N., Winner, L., Neavin, D., Maack, M., Elvidge, K. L., Melton, L., Hutchinson, M. R., Hemsley, K. M., Smith, N., & Bardy, C. (2026). Drug screen and machine learning predict neuroprotective agents in a preclinical human model of childhood dementia. Nature communications, 17(1), 9980. https://doi.org/10.1038/s41467-026-76837-1

BibTeX

@article{greenberg2026drug,
author = {Greenberg, Zarina and McDonald, Ella and Noreña Puerta, Alejandra and De Silva, Manam Inushi and Christensen, Cade and Adams, Robert and Tran, Jenne and Mazzachi, Paris and Loskarn, Sebastian and Mubarokah, Siti N and Winner, Leanne and Neavin, Drew and Maack, Megan and Elvidge, Kristina L and Melton, Lisa and Hutchinson, Mark R and Hemsley, Kim M and Smith, Nicholas and Bardy, Cedric},
title = {{Drug screen and machine learning predict neuroprotective agents in a preclinical human model of childhood dementia}},
journal = {Nature communications},
year = {2026},
month = aug,
volume = {17},
number = {1},
pages = {9980},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-76837-1},
url = {https://doi.org/10.1038/s41467-026-76837-1},
pmid = {42764280},
pmcid = {PMC13590601}
}

RIS

TY - JOUR
AU - Greenberg, Zarina
AU - McDonald, Ella
AU - Noreña Puerta, Alejandra
AU - De Silva, Manam Inushi
AU - Christensen, Cade
AU - Adams, Robert
AU - Tran, Jenne
AU - Mazzachi, Paris
AU - Loskarn, Sebastian
AU - Mubarokah, Siti N
AU - Winner, Leanne
AU - Neavin, Drew
AU - Maack, Megan
AU - Elvidge, Kristina L
AU - Melton, Lisa
AU - Hutchinson, Mark R
AU - Hemsley, Kim M
AU - Smith, Nicholas
AU - Bardy, Cedric
TI - Drug screen and machine learning predict neuroprotective agents in a preclinical human model of childhood dementia
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/08/20
VL - 17
IS - 1
SP - 9980
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-76837-1
UR - https://doi.org/10.1038/s41467-026-76837-1
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-76837-1",
"type": "article-journal",
"title": "Drug screen and machine learning predict neuroprotective agents in a preclinical human model of childhood dementia",
"container-title": "Nature communications",
"author": [
{
"family": "Greenberg",
"given": "Zarina"
},
{
"family": "McDonald",
"given": "Ella"
},
{
"family": "Noreña Puerta",
"given": "Alejandra"
},
{
"family": "De Silva",
"given": "Manam Inushi"
},
{
"family": "Christensen",
"given": "Cade"
},
{
"family": "Adams",
"given": "Robert"
},
{
"family": "Tran",
"given": "Jenne"
},
{
"family": "Mazzachi",
"given": "Paris"
},
{
"family": "Loskarn",
"given": "Sebastian"
},
{
"family": "Mubarokah",
"given": "Siti N"
},
{
"family": "Winner",
"given": "Leanne"
},
{
"family": "Neavin",
"given": "Drew"
},
{
"family": "Maack",
"given": "Megan"
},
{
"family": "Elvidge",
"given": "Kristina L"
},
{
"family": "Melton",
"given": "Lisa"
},
{
"family": "Hutchinson",
"given": "Mark R"
},
{
"family": "Hemsley",
"given": "Kim M"
},
{
"family": "Smith",
"given": "Nicholas"
},
{
"family": "Bardy",
"given": "Cedric"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "9980",
"DOI": "10.1038/s41467-026-76837-1",
"PMID": "42764280",
"PMCID": "PMC13590601",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-76837-1",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
20
]
]
}
}

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

Similar papers

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

[1] doi:10.1038/s41467-026-71112-9 [code]
Modelling synaptic dysfunction in childhood dementia using human iPSC-derived cortical networks.
Journal: Nature communications
In common: Harmony, clusterProfiler, Seurat, 3 other tools, Alzheimer's / dementia, 34 references, 13 authors
[2] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: SHAP, Hugging Face Transformers, XGBoost, 16 other tools
[3] 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, clusterProfiler, ComplexHeatmap, 13 other tools, other condition, 1 reference
[4] doi:10.1002/imt2.70163 [code]
Spatial multi-omics unveils sphingolipid metabolic reprogramming within the retinal pathological niche.
Journal: iMeta
In common: Harmony, clusterProfiler, ComplexHeatmap, 13 other tools
[5] doi:10.1186/s13073-026-01704-z [code]
Gene expression profiling enables refined parcellation of cortical layers in the heterogeneous human cerebral cortex.
Journal: Genome medicine
In common: Harmony, XGBoost, ComplexHeatmap, 12 other tools
[6] doi:10.1038/s41586-026-10214-2 [code]
Multidimensional profiling of heterogeneity in supratentorial ependymomas.
Journal: Nature
In common: Harmony, clusterProfiler, ComplexHeatmap, 10 other tools, other condition, 1 reference
[7] doi:10.1038/s41467-026-71595-6 [code]
A single-cell and spatial atlas of early human olfactory development.
Journal: Nature communications
In common: Harmony, ComplexHeatmap, Seurat, 6 other tools, 4 references
[8] doi:10.1038/s41514-026-00391-9 [code]
Region-specific transcriptional signatures of brain aging in the absence of neuropathology at the single-cell level.
Journal: npj aging
In common: Harmony, ComplexHeatmap, Seurat, 10 other tools, 1 reference
[9] doi:10.1016/j.xcrm.2026.102651 [code]
Integrative CSF profiling identifies disease-specific immune responses in leptomeningeal disease.
Journal: Cell reports. Medicine
In common: Harmony, ComplexHeatmap, Seurat, 10 other tools, other condition
[10] doi:10.1126/sciadv.aeg3223 [code]
The extreme diversity of retinal amacrine cells has deep evolutionary roots.
Journal: Science advances
In common: XGBoost, clusterProfiler, ComplexHeatmap, 10 other tools

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.