Drug screen and machine learning predict neuroprotective agents in a preclinical human model of childhood dementia.
The 23 matches
- [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] § Methods › Single-nuclei data processing ↔ Rscripts/QualityControl_30D.Rmd, lines 416–450 · score 0.96 · generate cell clusters, ambientRNA, FindClusters, FindNeighbors, RunUMAP, SCTransform
- [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] § 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] § 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] § 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] § 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] § 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] § 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] § 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] § 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] § 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] § Methods › Machine learning feature models ↔ feature models/utils/hyperopt.py, lines 26–62 · score 0.66 · cross validation, XGBoost, stratified, Hyperopt, split, fold
- [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] § 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] § 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] § Methods › Machine learning image models ↔ Image_models/model/optimize.py, lines 15–73 · score 0.59 · Optuna, ADAM, PyTorch, dropout, loss, accuracy
- [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] § 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] § 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] § 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] § 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] § 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
- ---
- title: "RNAseq analysis"
- author: "Inushi De Silva"
- date: '2022-07-12'
- output: github_document
- editor_options:
- chunk_output_type: console
- ---
- ```{r setup, include=FALSE}
- knitr::opts_chunk$set(echo = TRUE)
- options("yaml.eval.expr" = TRUE)
- ```
- 1. ***First we will load the required libraries and set workingdirectories, datadirectories and plotdirectories.***
- ```{r Load Libraries and Set Directory Paths}
- script_path <- rstudioapi::getActiveDocumentContext()$path
- script_dir <- dirname(script_path)
- workingdirectory <- dirname(script_dir)
- setwd(workingdirectory)
- datadirectory <- paste0(workingdirectory,"/data")
- resultsdirectory <- paste0(workingdirectory, "/results")
- RData_directory <- paste0(datadirectory,"/RData")
- ##dir.create(resultsdirectory)
- ## Load required libraries
- if(!require(dplyr)){
- install.packages("dplyr")
- library(dplyr)
- }
- if(!require(Seurat)){
- install.packages("Seurat")
- library(Seurat)
- }
- if(!require(ggplot2)){
- install.packages("ggplot2")
- library(ggplot2)
- }
- if(!require(sctransform)){
- install.packages("sctransform")
- library(sctransform)
- }
- if(!require(RColorBrewer)){
- install.packages("RColorBrewer")
- library(RColorBrewer)
- }
- if(!require(ggpointdensity)){
- install.packages("ggpointdensity")
- library(ggpointdensity)
- }
- if(!require(devtools)){
- install.packages("devtools")
- library(devtools)
- }
- if(!require(BiocManager)){
- install.packages("BiocManager")
- library(BiocManager)
- }
- source(file = paste0(script_dir,"/functions_for_sanfil.R"))
- ```
- 2. ***Load the required RData files that have previously been QC'd and submitted***
- ```{r Load RData files that have previously been QC'd and submitted}
- ## Load required datasets
- set.seed(1)
- file_names <- list.files(paste0(RData_directory,"/60D/Sanfil_submitted_versions"), pattern = "*RData",full.names = T)
- lapply(file_names[c(5,7)], load, .GlobalEnv)
- rm(file_names)
- ```
- 3. ***We now load in genes from the Nowakowski and Liddelow datasets***
- ```{r Load in neuronal gene lists and create colour scheme}
- # library(stringi)
- # neuronal_genes <- read.delim(file = paste0(datadirectory, "/reference_sheets/neuronal_genelist_new.txt"))
- #
- # neuronal_genes_ls <- list()
- # for(i in 1:ncol(neuronal_genes)){
- # neuronal_genes_ls[[i]] <- neuronal_genes[,i]
- # names(neuronal_genes_ls)[[i]] <- colnames(neuronal_genes[i])
- # }
- # neuronal_genes_ls <- rev(neuronal_genes_ls)
- #
- # neuronal_genes_ls <- lapply(neuronal_genes_ls, function(x){
- # stri_remove_empty(x, na_empty = FALSE)
- # })
- # names(neuronal_genes_ls)[which(names(neuronal_genes_ls) == "Astocyte")] <- "Astrocyte"
- ##load updated neuronal gene lists
- ##The gene names have been updated below.
- load(file = paste0(datadirectory, "/reference_sheets/updated_neuronal_genes_ls.RData"))
- neuronal_genes_ls <- updated_neuronal_genes_ls
- ## We also create a colour palette for each of the cell types
- library(colorspace)
- colour_palette <- data.frame(matrix(nrow = 44, ncol = 2))
- colour_palette$X1 <- c(names(neuronal_genes_ls)[1:43], "Other")
- colour_palette$X2[grepl("Astrocyte", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("salmon", "red"))(3)
- colour_palette$X2[grepl("eN", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("limegreen", "palegreen"))(18)
- colour_palette$X2[grepl("RG", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("chocolate", "tan"))(11)
- colour_palette$X2[grepl("MGE_newborn", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("seagreen", "seagreen1"))(5)
- colour_palette$X2[grepl("MGE_Ctx", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("olivedrab", "olivedrab3"))(2)
- colour_palette$X2[grepl("CGE_LGE", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("springgreen", "springgreen4"))(2)
- colour_palette$X2[grepl("OPC", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("royalblue", "royalblue"))(1)
- colour_palette$X2[grepl("Striatal", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("greenyellow", "green"))(1)
- colour_palette$X2[grepl("Microglia", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("aquamarine3", "aquamarine3"))(1)
- colour_palette$X2[grepl("Mural", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("khaki", "khaki"))(1)
- colour_palette$X2[grepl("Other", colour_palette$X1, ignore.case = T)] <- colorRampPalette(c("black", "black"))(1)
- ##convert to named vector
- colours <- as.vector(colour_palette$X2)
- names(colours) <- colour_palette$X1
- ```
- 4. ***Add genotyping information***
- ```{r Add genotyping information - BIAD_ids}
- 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"))
- rownames(demultiplex_doublet) <- demultiplex_doublet$Barcode
- cell_names <- rownames([email hidden])
- demultiplex_doublet <- demultiplex_doublet[cell_names,]
- Control_filtered_ambientRNA_60D <- AddMetaData(Control_filtered_ambientRNA_60D, demultiplex_doublet[,10:11], c("doublets_new","BIAD_id"))
- 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"))
- rownames(demultiplex_doublet) <- demultiplex_doublet$Barcode
- cell_names <- rownames([email hidden])
- demultiplex_doublet <- demultiplex_doublet[cell_names,]
- MPSIIIA_filtered_ambientRNA_60D <- AddMetaData(MPSIIIA_filtered_ambientRNA_60D, demultiplex_doublet[,10:11], c("doublets_new","BIAD_id"))
- DimPlot(Control_filtered_ambientRNA_60D, group.by = "BIAD_id", split.by = "BIAD_id")
- table(Control_filtered_ambientRNA_60D$BIAD_id)
- save(Control_filtered_ambientRNA_60D, file = paste0(datadirectory, "/RData/60D/revisions/Control_filtered_NOambientRNA_60D.RData"))
- save(MPSIIIA_filtered_ambientRNA_60D, file = paste0(datadirectory, "/RData/60D/revisions/MPSIIIA_filtered_NOambientRNA_60D.RData"))
- ```
- 5. ***Load in processed Lister datasets and markers***
- ```{r Load Lister files and markers}
- ## Load required datasets
- set.seed(1)
- file_names <- list.files(paste0(datadirectory,"/Lister_data"), pattern = "*RData",full.names = T)
- lapply(file_names[1:2], load, .GlobalEnv)
- rm(file_names)
- ```
- ```{r Prep Lister markers}
- # we use genes common between AB and Lister to RunPCA
- 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.
- Lister_markers <- Lister_markers[!Lister_markers$cluster %in% "Poor-Quality",]
- Lister_markers$cluster <- as.character(Lister_markers$cluster)
- Lister_markers$cluster[grep("L4_RORB|L5-6_THEMIS|L2-3_CUX2|L5-6_TLE4",Lister_markers$cluster)] <- "Glutamatergic"
- Lister_markers$cluster[grep("LAMP5_NOS1|PV|SST|ID2|VIP",Lister_markers$cluster)] <- "GABAergic"
- Lister_markers$cluster[grep("Glut|GABA",Lister_markers$cluster, invert = T)] <- "Non-neuronal"
- Lister_markers <- Lister_markers[!Lister_markers$gene[grep("Glut", Lister_markers$cluster)] %in% Lister_markers$gene[grep("GABA", Lister_markers$cluster)],]
- 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)],]
- features_to_use <- process_de_genes(Lister_markers,500,log2FC = 1,p_val_adj = 0.05)
- ```
- XX. ***Load the required RData files that are being revised***
- ```{r Load RData files that have previously been QC'd}
- ## Load required datasets
- set.seed(1)
- file_names <- list.files(paste0(RData_directory,"/60D/revisions"), pattern = "*RData",full.names = T)
- lapply(file_names[c(4,5,6,7,8,9)], load, .GlobalEnv)
- rm(file_names)
- ```
- ## ----- ***Analyse the Healthy 60D neurons***
- 1. ***We use the Nowakowski and Liddelow dataset to determine cell types in the Control***
- ```{r Using the Nowakowski and Liddelow dataset to determine cell types - Control}
- Control_filtered_ambientRNA_60D <- AddModuleScore(
- object = Control_filtered_ambientRNA_60D,
- features = neuronal_genes_ls,
- name = names(neuronal_genes_ls),
- nbin = 30,
- ctrl = 100,
- seed = 1,
- search = TRUE
- )
- names([email hidden])[16:24] <- gsub('.{1}$', '', names([email hidden])[16:24])
- names([email hidden])[25:58] <- gsub('.{2}$', '', names([email hidden])[25:58])
- [email hidden]$maxscore_cell_types <- apply([email hidden][,16:58], 1, function(x)x[maxn(1)(x)])
- [email hidden]$cell_types <- apply([email hidden][,16:58], 1, function(x) names(x)[maxn(1)(x)])
- ## Add threshold to cell_types which have a low score
- Control_filtered_ambientRNA_60D$new_cell_types <- ifelse(Control_filtered_ambientRNA_60D$maxscore_cell_types < 0.1, "Other", Control_filtered_ambientRNA_60D$cell_types)
- [email hidden]$maxscore_celltypes_nowakowski <- apply([email hidden][,18:58], 1, function(x)x[maxn(1)(x)])
- [email hidden]$nowakowski_celltypes <- apply([email hidden][,18:58], 1, function(x) names(x)[maxn(1)(x)])
- ## Add threshold to cell_types which have a low score
- Control_filtered_ambientRNA_60D$nowakowski_other <- ifelse(Control_filtered_ambientRNA_60D$maxscore_celltypes_nowakowski < 0.1, "Other", Control_filtered_ambientRNA_60D$nowakowski_celltypes)
- Control_filtered_ambientRNA_60D$broad_cell_types <- "EMPTY"
- 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"
- Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("eN_"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Excitatory"
- 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"
- Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("astrocyte"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Astrocyte"
- Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("RG"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "RG"
- Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("OPC"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "OPC"
- Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("endothelial"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Vas"
- Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("OPC"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "OPC"
- Control_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("Pericyte","Other"), collapse = "|"), Control_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Other"
- ## We create a new metadata column to identify donors from Control and MPSIIIA
- Control_filtered_ambientRNA_60D$condition_donor <- paste(Control_filtered_ambientRNA_60D$orig.ident, Control_filtered_ambientRNA_60D$donor_id, sep = "_")
- Control_filtered_ambientRNA_60D$condition_broadtypes <- paste(Control_filtered_ambientRNA_60D$orig.ident, Control_filtered_ambientRNA_60D$broad_cell_types, sep = "_")
- tbl_Control <- [email hidden] %>%
- group_by(BIAD_id) %>%
- summarise(n = n()) %>%
- mutate(freq = (n / sum(n))*100)
- tbl_Control
- write.csv(tbl_Control, file = paste0(resultsdirectory, "/sheets/revisions_60D/celltype_proportions_60D/Healthy_BIAD_ID_prop.csv"))
- save(Control_filtered_ambientRNA_60D, file = paste0(RData_directory, "/60D/revision/Control_filtered_NOambientRNA_60D.RData"))
- ```
- 2. ***Use Tirosh dataset to determine the cell cycle***
- ```{r Using the Tirosh dataset to determine cell cycle - Control}
- cell_cycle <- read.table(file = paste0(datadirectory,"/reference_sheets/cellcycle_tirosh.tsv"), header = 1)
- cell_cycle <- list("G1S" = cell_cycle$G1.S, "G2M" = cell_cycle$G2.M)
- cell_cycle$G1S <- na.omit(cell_cycle$G1S)
- Control_filtered_ambientRNA_60D <- AddModuleScore(
- object = Control_filtered_ambientRNA_60D,
- features = cell_cycle,
- name = names(cell_cycle),
- nbin = 30,
- ctrl = 100,
- seed = 1,
- search = TRUE
- )
- names([email hidden])[72:73] <- c("G1S","G2M")
- [email hidden]$maxscore_cell_cycle <- apply([email hidden][,72:73], 1, function(x)x[maxn(1)(x)])
- [email hidden]$cell_cycle <- apply([email hidden][,72:73], 1, function(x) names(x)[maxn(1)(x)])
- Idents(Control_filtered_ambientRNA_60D) <- "broad_cell_types"
- DimPlot(Control_filtered_ambientRNA_60D, split.by = "cell_cycle", pt.size = 2)
- control_matrix <- as.matrix(Control_filtered_ambientRNA_60D@assays$SCT@data)
- control_matrix <- lapply(cell_cycle, function(x){
- data.frame(t(as.matrix(control_matrix[which(rownames(control_matrix) %in% x),])))})
- for(i in 1:length(control_matrix)){
- control_matrix[[i]]$Genes_expressed <- rowSums(control_matrix[[i]] > 0)
- }
- Control_filtered_ambientRNA_60D <- AddMetaData(Control_filtered_ambientRNA_60D,((control_matrix$G1S$Genes_expressed/43)*100),"G1S_percent_genes_expressed")
- Control_filtered_ambientRNA_60D <- AddMetaData(Control_filtered_ambientRNA_60D,((control_matrix$G2M$Genes_expressed/53)*100),"G2M_percent_genes_expressed")
- 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)
- metadata <- [email hidden][,c(64,72:78)]
- metadata <- split(metadata, metadata$cell_cycle)
- library(scater)
- ggplot <- lapply(metadata, function(x){
- ggplot(x, aes(maxscore_cell_cycle,
- percent_genes_expressed, color=broad_cell_types)) +
- ##geom_point(aes(color = x$MaxScore_All), alpha = 0.5, size = 1) +
- geom_pointdensity(adjust = 0.2) +
- geom_point(alpha = 0.5, size = 1) +
- theme_minimal() +
- xlab("Cell cycle score") + ylab("Percent genes expressed") +
- # scale_color_manual(values = c("#80CDC1", ## LSpp
- # "#018571", ## LSppCVH
- # "#DFC27D", ## TLpp
- # "#A6611A")) +
- ##scale_colour_gradientn(colours = colorRampPalette(rev(brewer.pal(7,'RdBu')))(9)) +
- ##scale_colour_gradientn(colours = pals::coolwarm(7),limits = c(-0.1,0.1), na.value = "grey89") +
- geom_vline(xintercept = c(0,0.1), linetype = "dashed", col = "black", linewidth = 0.5) +
- geom_hline(yintercept = 30, linetype = "dashed", col = "black", linewidth = 0.5) +
- 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)) +
- scale_x_continuous(breaks = seq(-0.1,2, by = 0.5)) +
- scale_y_continuous(breaks = seq(0, 100 , by = 25)) +
- coord_cartesian(ylim = c(0, 100), xlim = c(-0.1,2))
- })
- gridExtra::grid.arrange(grobs = ggplot, ncol = 2)
- [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))
- Idents(Control_filtered_ambientRNA_60D) <- "broad_cell_types"
- DimPlot(Control_filtered_ambientRNA_60D, split.by = "cell_cycle", pt.size = 2)
- ```
- 3. ***Integrate with Lister biopsies***
- ```{r Integrate 120-day datasets with AB cortical datasets}
- genes_to_keep <- Reduce(intersect, list(rownames(Control_filtered_ambientRNA_60D@assays$RNA$counts), rownames(lister_seurat@assays$RNA$counts)))
- Combined_Lister_hiPSC_Control_60D <- merge(lister_seurat, c(Control_filtered_ambientRNA_60D))
- DefaultAssay(Combined_Lister_hiPSC_Control_60D) <- "RNA"
- Combined_Lister_hiPSC_Control_60D[["SCT"]] <- NULL
- Combined_Lister_hiPSC_Control_60D[["RNA"]]$data.2 <- NULL
- Combined_Lister_hiPSC_Control_60D <- subset(Combined_Lister_hiPSC_Control_60D, features = genes_to_keep)
- Combined_Lister_hiPSC_Control_60D$orig.ident[Combined_Lister_hiPSC_Control_60D$orig.ident == "Control"] <- "hiPSC"
- Combined_Lister_hiPSC_Control_60D$orig.ident[Combined_Lister_hiPSC_Control_60D$orig.ident == "SeuratProject"] <- "Lister"
- Combined_Lister_hiPSC_Control_60D <- SCTransform(Combined_Lister_hiPSC_Control_60D, assay = "RNA")
- 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))]
- Combined_Lister_hiPSC_Control_60D <- RunPCA(Combined_Lister_hiPSC_Control_60D, features = pc_features)
- min.pc <- significant_pcs(Combined_Lister_hiPSC_Control_60D,"pca")
- #load(file = paste0(datadirectory,"/RData/Biopsy_RData/multicortex_hiPSC_combined_qUMI.RData"))
- gc()
- library(harmony)
- 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)
- min.pc <- significant_pcs(Combined_Lister_hiPSC_Control_60D_int,"harmony")
- Combined_Lister_hiPSC_Control_60D_int <- FindNeighbors(Combined_Lister_hiPSC_Control_60D_int, dims = 1:min.pc, reduction = "harmony")
- Combined_Lister_hiPSC_Control_60D_int <- FindClusters(Combined_Lister_hiPSC_Control_60D_int, resolution = 0.1)
- 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)
- #DimPlot(Combined_Lister_hiPSC_Control_60D_int, reduction = "umap.int", group.by = "orig.ident", pt.size = 1, order = F, label = T) +
- DimPlot(Combined_Lister_hiPSC_Control_60D_int, reduction = "umap.int", group.by = "new_cell_types", pt.size = 1, order = F, label = T) +
- DimPlot(Combined_Lister_hiPSC_Control_60D_int, reduction = "umap.int", group.by = "major_clust", pt.size = 1, order = F, label = T) #+
- #DimPlot(Combined_Lister_hiPSC_Control_60D_int, reduction = "umap.int", group.by = "BIAD_id", pt.size = 1, order = F, label = T) & NoLegend()
- tbl_Control <- [email hidden] %>%
- group_by(BIAD_id) %>%
- summarise(n = n()) %>%
- mutate(freq = (n / sum(n))*100)
- tbl_Control
- job::job({
- save(Combined_Lister_hiPSC_Control_60D,Combined_Lister_hiPSC_Control_60D_int, file = paste0(RData_directory,"/60D/revisions/Control_Lister_Integrated_60D.RData"))
- save(Control_filtered_ambientRNA_60D, file = paste0(RData_directory,"/60D/revisions/Control_filtered_NOambientRNA_60D.RData"))})
- ```
- 4. ***scMayoMap cell annotations and validation***
- ```{r scMayo Map cell annotations}
- # Find conserved markers across seurat clusters in AB and hiPSC genes
- # Put the conserved markers through scMayo
- Combined_Lister_hiPSC_Control_60D_int_2 <- PrepSCTFindMarkers(Combined_Lister_hiPSC_Control_60D_int, assay = "SCT")
- Idents(Combined_Lister_hiPSC_Control_60D_int_2) <- "seurat_clusters"
- conserved <- list()
- for(i in unique(Combined_Lister_hiPSC_Control_60D_int_2$seurat_clusters)){
- 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)
- }
- save(conserved, file = paste0(RData_directory,"/60D/revisions/conserved_markers_Lister_Control_60D.RData"))
- load(file = paste0(RData_directory,"/60D/revisions/conserved_markers_Lister_Control_60D.RData"))
- conserved_markers <- conserved
- for(i in seq_along(conserved_markers)){
- if (nrow(conserved_markers[[i]]) > 0) { # Only proceed if the dataframe is not empty
- conserved_markers[[i]]$cluster <- names(conserved_markers)[i]
- conserved_markers[[i]]$gene <- rownames(conserved_markers[[i]])
- }
- }
- for(i in 1:length(conserved_markers)){
- conserved_markers[[i]] <- conserved_markers[[i]] [,-c(grep("AB|Lister|max|min", colnames(conserved_markers[[i]] )))]
- colnames(conserved_markers[[i]] ) <- gsub("hiPSC_","", colnames(conserved_markers[[i]] ))
- }
- conserved_markers <- do.call("rbind", conserved_markers)
- library(scMayoMap)
- brain_db <- scMayoMapDatabase[grep("brain", scMayoMapDatabase$tissue), c(1:2,grep("brain", colnames(scMayoMapDatabase)))]
- 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)]]
- rownames(brain_db) <- brain_db$gene
- brain_db <- as.data.frame(t(brain_db))
- brain_db$cell_type <- gsub("brain:","",rownames(brain_db))
- brain_db <- split(brain_db, brain)
- for(i in names(brain_db)){
- rownames(brain_db[[i]]) <- brain_db[[i]]$gene
- brain_db[[i]] <- brain_db[[i]][,names(brain_db[[i]]) %in% i, drop = F]
- }
- scMayo_cluster <- scMayoMap(conserved_markers, padj.cutoff = 0.05, database = brain_db, pct.cutoff = 0.25)
- 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))
- 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)
- 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()
- scMayo.norm <- scMayo_cluster$annotation.norm[,grep("brain",colnames(scMayo_cluster$annotation.norm))]
- scMayo.norm <- scMayo.norm[,colSums(scMayo.norm) > 0]
- scMayo.norm$max <- apply(scMayo.norm, 1, function(x)names(x)[maxn(1)(x)]) # highest value
- scMayo.norm$max_2 <- apply(scMayo.norm[,1:17], 1, function(x)names(x)[maxn(2)(x)]) #second highest value
- scMayo.norm$max <- gsub("brain:","",scMayo.norm$max)
- scMayo.norm$max_2 <- gsub("brain:","",scMayo.norm$max_2)
- scMayo.norm$integrated_clusters <- rownames(scMayo.norm)
- Combined_Lister_hiPSC_Control_60D_int$cluster_type1 <- NA
- Combined_Lister_hiPSC_Control_60D_int$cluster_type2 <- NA
- 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)]
- 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)]
- Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("Glut",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "Excitatory"
- Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("Glut",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "Excitatory"
- Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("GABA|Interneuron|basket|Basket|Chandelier|Martinotti",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "Inhibitory"
- Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("GABA|Interneuron|basket|Basket|Chandelier|Martinotti",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "Inhibitory"
- Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("precursor",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "OPC"
- Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("precursor",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "OPC"
- Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("Oligodendrocyte",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "Oligo"
- Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("Oligodendrocyte",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "Oligo"
- Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("Radial",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "RG"
- Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("Radial",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "RG"
- Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("progenitor|stem|Neuroblast",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "RG"
- Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("progenitor|stem|Neuroblast",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "RG"
- Combined_Lister_hiPSC_Control_60D_int$cluster_type1[grep("Micro",Combined_Lister_hiPSC_Control_60D_int$cluster_type1)] <- "Micro"
- Combined_Lister_hiPSC_Control_60D_int$cluster_type2[grep("Endo",Combined_Lister_hiPSC_Control_60D_int$cluster_type2)] <- "Vas"
- 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()
- job::job({
- save(Combined_Lister_hiPSC_Control_60D,Combined_Lister_hiPSC_Control_60D_int, file = paste0(RData_directory,"/60D/revisions/Control_Lister_Integrated_60D.RData"))})
- ```
- ```{r Match assignments between Nowakowski, Lister and scMayo}
- 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()
- tbl_Control <- [email hidden] %>%
- group_by(seurat_clusters, major_clust) %>%
- summarise(n = n()) %>%
- mutate(freq = (n / sum(n))*100)
- tbl_Control
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- Combined_Lister_hiPSC_Control_60D_int$major_clust[Combined_Lister_hiPSC_Control_60D_int$major_clust == "Astro"] <- "Astrocyte"
- metadata <- [email hidden][[email hidden]$orig.ident == "hiPSC",c("major_clust", "cluster_type1","cluster_type2", "broad_cell_types")]
- 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")
- 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")
- Control_filtered_ambientRNA_60D <- AddMetaData(Control_filtered_ambientRNA_60D, matched_cells[,6], c("final_cell_type"))
- DimPlot(Control_filtered_ambientRNA_60D, group.by = "final_cell_type",pt.size = 1)
- table(Control_filtered_ambientRNA_60D$final_cell_type)
- tbl_Control <- [email hidden]%>%
- group_by(BIAD_id,final_cell_type,cell_cycle) %>%
- summarise(n = n()) %>%
- mutate(freq = (n / sum(n))*100)
- tbl_Control
- write.csv(tbl_Control, file = paste0(resultsdirectory, "/sheets/revisions_60D/celltype_proportions_60D/Healthy_BIAD_ID_cell_type_cycling_prop.csv"))
- save(Control_filtered_ambientRNA_60D, file = paste0(RData_directory,"/60D/revisions/Control_filtered_NOambientRNA_60D.RData"))
- ```
- ## ----- ***Analyse the MPSIIIA 60D neurons***
- 1. ***We use the Nowakowski and Liddelow dataset to determine cell types in Sanfilippo***
- ```{r Using the Nowakowski and Liddelow dataset to determine cell types - Sanfilippo}
- MPSIIIA_filtered_ambientRNA_60D <- AddModuleScore(
- object = MPSIIIA_filtered_ambientRNA_60D,
- features = neuronal_genes_ls,
- name = names(neuronal_genes_ls),
- nbin = 30,
- ctrl = 100,
- seed = 1,
- search = TRUE
- )
- names([email hidden])[16:24] <- gsub('.{1}$', '', names([email hidden])[16:24])
- names([email hidden])[25:58] <- gsub('.{2}$', '', names([email hidden])[25:58])
- [email hidden]$maxscore_cell_types <- apply([email hidden][,16:58], 1, function(x)x[maxn(1)(x)])
- [email hidden]$cell_types <- apply([email hidden][,16:58], 1, function(x) names(x)[maxn(1)(x)])
- ## Add threshold to cell_types which have a low score
- MPSIIIA_filtered_ambientRNA_60D$new_cell_types <- ifelse(MPSIIIA_filtered_ambientRNA_60D$maxscore_cell_types < 0.1, "Other", MPSIIIA_filtered_ambientRNA_60D$cell_types)
- [email hidden]$maxscore_celltypes_nowakowski <- apply([email hidden][,18:58], 1, function(x)x[maxn(1)(x)])
- [email hidden]$nowakowski_celltypes <- apply([email hidden][,18:58], 1, function(x) names(x)[maxn(1)(x)])
- ## Add threshold to cell_types which have a low score
- MPSIIIA_filtered_ambientRNA_60D$nowakowski_other <- ifelse(MPSIIIA_filtered_ambientRNA_60D$maxscore_celltypes_nowakowski < 0.1, "Other", MPSIIIA_filtered_ambientRNA_60D$nowakowski_celltypes)
- MPSIIIA_filtered_ambientRNA_60D$broad_cell_types <- "EMPTY"
- 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"
- MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("eN_"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Excitatory"
- 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"
- MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("astrocyte"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Astrocyte"
- MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("RG"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "RG"
- MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("OPC"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "OPC"
- MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("endothelial"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Vas"
- MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("OPC"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "OPC"
- MPSIIIA_filtered_ambientRNA_60D$broad_cell_types[grep(paste(c("Pericyte","Other"), collapse = "|"), MPSIIIA_filtered_ambientRNA_60D$new_cell_types, ignore.case = T)] <- "Other"
- ## We create a new metadata column to identify donors from Control and MPSIIIA
- MPSIIIA_filtered_ambientRNA_60D$condition_donor <- paste(MPSIIIA_filtered_ambientRNA_60D$orig.ident, MPSIIIA_filtered_ambientRNA_60D$donor_id, sep = "_")
- MPSIIIA_filtered_ambientRNA_60D$condition_broadtypes <- paste(MPSIIIA_filtered_ambientRNA_60D$orig.ident, MPSIIIA_filtered_ambientRNA_60D$broad_cell_types, sep = "_")
- tbl_MPSIIIA <- [email hidden] %>%
- group_by(donor_id,BIAD_id) %>%
- summarise(n = n()) %>%
- mutate(freq = (n / sum(n))*100)
- tbl_MPSIIIA
- write.csv(tbl_MPSIIIA, file = paste0(resultsdirectory, "/sheets/revisions_60D/celltype_proportions_60D/MPSIIIA_BIAD_ID_w_old_donor_id_prop.csv"))
- save(MPSIIIA_filtered_ambientRNA_60D, file = paste0(datadirectory, "/RData/60D/revisions/MPSIIIA_filtered_NOambientRNA_60D.RData"))
- ```
- 2. ***Use Tirosh dataset to determine the cell cycle***
- ```{r Using the Tirosh dataset to determine cell cycle - MPSIIIA}
- cell_cycle <- read.table(file = paste0(datadirectory,"/reference_sheets/cellcycle_tirosh.tsv"), header = 1)
- cell_cycle <- list("G1S" = cell_cycle$G1.S, "G2M" = cell_cycle$G2.M)
- cell_cycle$G1S <- na.omit(cell_cycle$G1S)
- MPSIIIA_filtered_ambientRNA_60D <- AddModuleScore(
- object = MPSIIIA_filtered_ambientRNA_60D,
- features = cell_cycle,
- name = names(cell_cycle),
- nbin = 30,
- ctrl = 100,
- seed = 1,
- search = TRUE
- )
- names([email hidden])[72:73] <- c("G1S","G2M")
- [email hidden]$maxscore_cell_cycle <- apply([email hidden][,72:73], 1, function(x)x[maxn(1)(x)])
- [email hidden]$cell_cycle <- apply([email hidden][,72:73], 1, function(x) names(x)[maxn(1)(x)])
- MPSIIIA_matrix <- as.matrix(MPSIIIA_filtered_ambientRNA_60D@assays$SCT@data)
- MPSIIIA_matrix <- lapply(cell_cycle, function(x){
- data.frame(t(as.matrix(MPSIIIA_matrix[which(rownames(MPSIIIA_matrix) %in% x),])))})
- for(i in 1:length(MPSIIIA_matrix)){
- MPSIIIA_matrix[[i]]$Genes_expressed <- rowSums(MPSIIIA_matrix[[i]] > 0)
- }
- MPSIIIA_filtered_ambientRNA_60D <- AddMetaData(MPSIIIA_filtered_ambientRNA_60D,((MPSIIIA_matrix$G1S$Genes_expressed/43)*100),"G1S_percent_genes_expressed")
- MPSIIIA_filtered_ambientRNA_60D <- AddMetaData(MPSIIIA_filtered_ambientRNA_60D,((MPSIIIA_matrix$G2M$Genes_expressed/53)*100),"G2M_percent_genes_expressed")
- 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)
- metadata <- [email hidden][,c(64,72:78)]
- metadata <- split(metadata, metadata$cell_cycle)
- library(scater)
- ggplot <- lapply(metadata, function(x){
- ggplot(x, aes(maxscore_cell_cycle,
- percent_genes_expressed, color=broad_cell_types)) +
- ##geom_point(aes(color = x$MaxScore_All), alpha = 0.5, size = 1) +
- geom_pointdensity(adjust = 0.2) +
- geom_point(alpha = 0.5, size = 1) +
- theme_minimal() +
- xlab("Cell cycle score") + ylab("Percent genes expressed") +
- # scale_color_manual(values = c("#80CDC1", ## LSpp
- # "#018571", ## LSppCVH
- # "#DFC27D", ## TLpp
- # "#A6611A")) +
- ##scale_colour_gradientn(colours = colorRampPalette(rev(brewer.pal(7,'RdBu')))(9)) +
- ##scale_colour_gradientn(colours = pals::coolwarm(7),limits = c(-0.1,0.1), na.value = "grey89") +
- geom_vline(xintercept = c(0,0.1), linetype = "dashed", col = "black", linewidth = 0.5) +
- geom_hline(yintercept = 30, linetype = "dashed", col = "black", linewidth = 0.5) +
- 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)) +
- scale_x_continuous(breaks = seq(-0.1,2, by = 0.5)) +
- scale_y_continuous(breaks = seq(0, 100 , by = 25)) +
- coord_cartesian(ylim = c(0, 100), xlim = c(-0.1,2))
- })
- gridExtra::grid.arrange(grobs = ggplot, ncol = 2)
- [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))
- Idents(MPSIIIA_filtered_ambientRNA_60D) <- "broad_cell_types"
- DimPlot(MPSIIIA_filtered_ambientRNA_60D, split.by = "cell_cycle", pt.size = 2)
- ```
- 3. ***Integrate with Lister biopsies***
- ```{r Integrate 120-day datasets with AB cortical datasets}
- genes_to_keep <- Reduce(intersect, list(rownames(MPSIIIA_filtered_ambientRNA_60D@assays$RNA$counts), rownames(lister_seurat@assays$RNA$counts)))
- Combined_Lister_hiPSC_MPSIIIA_60D <- merge(lister_seurat, c(MPSIIIA_filtered_ambientRNA_60D))
- DefaultAssay(Combined_Lister_hiPSC_MPSIIIA_60D) <- "RNA"
- Combined_Lister_hiPSC_MPSIIIA_60D[["SCT"]] <- NULL
- Combined_Lister_hiPSC_MPSIIIA_60D[["RNA"]]$data.Sanfilippo_60D <- NULL
- Combined_Lister_hiPSC_MPSIIIA_60D <- subset(Combined_Lister_hiPSC_MPSIIIA_60D, features = genes_to_keep)
- Combined_Lister_hiPSC_MPSIIIA_60D$orig.ident[Combined_Lister_hiPSC_MPSIIIA_60D$orig.ident == "Sanfilippo"] <- "hiPSC"
- Combined_Lister_hiPSC_MPSIIIA_60D$orig.ident[Combined_Lister_hiPSC_MPSIIIA_60D$orig.ident == "SeuratProject"] <- "Lister"
- Combined_Lister_hiPSC_MPSIIIA_60D <- SCTransform(Combined_Lister_hiPSC_MPSIIIA_60D, assay = "RNA")
- 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))]
- Combined_Lister_hiPSC_MPSIIIA_60D <- RunPCA(Combined_Lister_hiPSC_MPSIIIA_60D, features = pc_features)
- min.pc <- significant_pcs(Combined_Lister_hiPSC_MPSIIIA_60D,"pca")
- #load(file = paste0(datadirectory,"/RData/Biopsy_RData/multicortex_hiPSC_combined_qUMI.RData"))
- gc()
- library(harmony)
- 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)
- min.pc <- significant_pcs(Combined_Lister_hiPSC_MPSIIIA_60D_int,"harmony")
- Combined_Lister_hiPSC_MPSIIIA_60D_int <- FindNeighbors(Combined_Lister_hiPSC_MPSIIIA_60D_int, dims = 1:min.pc, reduction = "harmony")
- Combined_Lister_hiPSC_MPSIIIA_60D_int <- FindClusters(Combined_Lister_hiPSC_MPSIIIA_60D_int, resolution = 0.1)
- 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)
- 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()
- job::job({
- save(Combined_Lister_hiPSC_MPSIIIA_60D,Combined_Lister_hiPSC_MPSIIIA_60D_int, file = paste0(RData_directory,"/60D/revisions/MPSIIIA_Lister_Integrated_60D.RData"))
- save(MPSIIIA_filtered_ambientRNA_60D, file = paste0(RData_directory,"/60D/revisions/MPSIIIA_filtered_NOambientRNA_60D.RData"))})
- ```
- 4. ***scMayoMap cell annotations and validation***
- ```{r scMayo Map cell annotations}
- # Find conserved markers across seurat clusters in AB and hiPSC genes
- # Put the conserved markers through scMayo
- Combined_Lister_hiPSC_MPSIIIA_60D_int_2 <- PrepSCTFindMarkers(Combined_Lister_hiPSC_MPSIIIA_60D_int, assay = "SCT")
- Idents(Combined_Lister_hiPSC_MPSIIIA_60D_int_2) <- "seurat_clusters"
- conserved <- list()
- for(i in unique(Combined_Lister_hiPSC_MPSIIIA_60D_int_2$seurat_clusters)){
- 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)
- }
- save(conserved, file = paste0(RData_directory,"/60D/revisions/conserved_markers_Lister_MPSIIIA_60D.RData"))
- load(file = paste0(RData_directory,"/60D/revisions/conserved_markers_Lister_MPSIIIA_60D.RData"))
- conserved_markers <- conserved
- for(i in seq_along(conserved_markers)){
- if (nrow(conserved_markers[[i]]) > 0) { # Only proceed if the dataframe is not empty
- conserved_markers[[i]]$cluster <- names(conserved_markers)[i]
- conserved_markers[[i]]$gene <- rownames(conserved_markers[[i]])
- }
- }
- for(i in 1:length(conserved_markers)){
- conserved_markers[[i]] <- conserved_markers[[i]] [,-c(grep("AB|Lister|max|min", colnames(conserved_markers[[i]] )))]
- colnames(conserved_markers[[i]] ) <- gsub("hiPSC_","", colnames(conserved_markers[[i]] ))
- }
- conserved_markers <- do.call("rbind", conserved_markers)
- library(scMayoMap)
- brain_db <- scMayoMapDatabase[grep("brain", scMayoMapDatabase$tissue), c(1:2,grep("brain", colnames(scMayoMapDatabase)))]
- 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)]]
- scMayo_cluster <- scMayoMap(conserved_markers, padj.cutoff = 0.05, database = brain_db, pct.cutoff = 0.25)
- 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))
- 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)
- 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()
- scMayo.norm <- scMayo_cluster$annotation.norm[,grep("brain",colnames(scMayo_cluster$annotation.norm))]
- scMayo.norm <- scMayo.norm[,colSums(scMayo.norm) > 0]
- scMayo.norm$max <- apply(scMayo.norm, 1, function(x)names(x)[maxn(1)(x)]) # highest value
- scMayo.norm$max_2 <- apply(scMayo.norm[,1:18], 1, function(x)names(x)[maxn(2)(x)]) #second highest value
- scMayo.norm$max <- gsub("brain:","",scMayo.norm$max)
- scMayo.norm$max_2 <- gsub("brain:","",scMayo.norm$max_2)
- scMayo.norm$integrated_clusters <- rownames(scMayo.norm)
- Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1 <- NA
- Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2 <- NA
- 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)]
- 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)]
- Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1[grep("Glut|Pyramidal",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1)] <- "Excitatory"
- Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2[grep("Glut|Pyramidal",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2)] <- "Excitatory"
- Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1[grep("GABA|Interneuron|Basket|Chandelier|Martinotti",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1)] <- "Inhibitory"
- Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2[grep("GABA|Interneuron|Basket|Chandelier|Martinotti",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2)] <- "Inhibitory"
- Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1[grep("precursor",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1)] <- "OPC"
- Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2[grep("precursor",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2)] <- "OPC"
- Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1[grep("Oligodendrocyte",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1)] <- "Oligo"
- Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2[grep("Oligodendrocyte",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2)] <- "Oligo"
- Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1[grep("Radial|stem",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type1)] <- "RG"
- Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2[grep("Radial|stem",Combined_Lister_hiPSC_MPSIIIA_60D_int$cluster_type2)] <- "RG"
- 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()
- ```
- ```{r Match assignments between Nowakowski, Lister and scMayo}
- 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()
- tbl_MPSIIIA<- [email hidden] %>%
- group_by(seurat_clusters, major_clust) %>%
- summarise(n = n()) %>%
- mutate(freq = (n / sum(n))*100)
- tbl_MPSIIIA
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- metadata <- [email hidden][[email hidden]$orig.ident == "hiPSC",c("major_clust", "cluster_type1","cluster_type2", "broad_cell_types")]
- 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")
- MPSIIIA_filtered_ambientRNA_60D <- AddMetaData(MPSIIIA_filtered_ambientRNA_60D, matched_cells[,6], c("final_cell_type"))
- DimPlot(MPSIIIA_filtered_ambientRNA_60D, group.by = "final_cell_type",pt.size = 1, split.by = "orig.ident")
- table(MPSIIIA_filtered_ambientRNA_60D$final_cell_type)
- tbl_MPSIIIA<- [email hidden] %>%
- group_by(BIAD_id,final_cell_type) %>%
- summarise(n = n()) %>%
- mutate(freq = (n / sum(n))*100)
- tbl_MPSIIIA
- write.csv(tbl_MPSIIIA, file = paste0(resultsdirectory, "/sheets/revisions_60D/celltype_proportions_60D/MPSIIIA_BIAD_ID_cell_type_prop.csv"))
- save(MPSIIIA_filtered_ambientRNA_60D, file = paste0(RData_directory,"/60D/revisions/MPSIIIA_filtered_NOambientRNA_60D.RData"))
- ```
- ## ----- **Analyse the proportion of reactive astrocytes**
- 1. ***Subset the datasets and calculate astrocyte scores for only the astrocyte cells - Control***
- ```{r Subset the datasets and calculate astrocyte scores for only the astrocyte cells - Control}
- Idents(Control_filtered_ambientRNA_60D) <- "final_cell_type"
- 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)]))
- Control_ambientRNA_astro_60D <- SCTransform(Control_ambientRNA_astro_60D)
- [email hidden][,76:80] <- NULL
- load(file = paste0(datadirectory, "/reference_sheets/updated_neuronal_genes_ls.RData"))
- neuronal_genes_ls <- updated_neuronal_genes_ls
- Control_ambientRNA_astro_60D <- AddModuleScore(
- object = Control_ambientRNA_astro_60D,
- features = neuronal_genes_ls[1:2],
- name = names(neuronal_genes_ls)[1:2],
- nbin = 20, #15 #20
- ctrl = 100,
- seed = 1,
- search = TRUE
- )
- names([email hidden])[77:78] <- gsub('.{1}$', '', names([email hidden])[77:78])
- [email hidden]$maxscore_reactiveastro <- apply([email hidden][,77:78], 1, function(x)x[maxn(1)(x)])
- [email hidden]$reactive_astro_type <- apply([email hidden][,77:78], 1, function(x) names(x)[maxn(1)(x)])
- 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))
- [email hidden][,76:80] <- NULL
- Control_filtered_ambientRNA_60D <- AddMetaData(Control_filtered_ambientRNA_60D, [email hidden][,77:81], names([email hidden])[77:81])
- tbl_Control <- [email hidden] %>%
- group_by(BIAD_id, reactive_astro_type_2) %>%
- summarise(n = n()) %>%
- mutate(freq = (n / sum(n))*100)
- tbl_Control
- write.csv(tbl_Control, file = paste0(resultsdirectory, "/sheets/revisions_60D/celltype_proportions_60D/Healthy_BIAD_id_reactive_astro_prop.csv"))
- save(Control_ambientRNA_astro_60D, file = paste0(datadirectory, "/RData/60D/revisions/Control_NOambientRNA_astro_60D.RData"))
- save(Control_filtered_ambientRNA_60D, file = paste0(datadirectory, "/RData/60D/revisions/Control_filtered_NOambientRNA_60D.RData"))
- ```
- 2. ***Subset the datasets and calculate astrocyte scores for only the astrocyte cells - Sanfilippo***
- ```{r Subset the datasets and calculate astrocyte scores for only the astrocyte cells - Sanfilippo}
- Idents(MPSIIIA_filtered_ambientRNA_60D) <- "final_cell_type"
- 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)]))
- MPSIIIA_ambientRNA_astro_60D <- SCTransform(MPSIIIA_ambientRNA_astro_60D)
- [email hidden][,77:81] <- NULL
- MPSIIIA_ambientRNA_astro_60D <- AddModuleScore(
- object = MPSIIIA_ambientRNA_astro_60D,
- features = neuronal_genes_ls[1:2],
- name = names(neuronal_genes_ls)[1:2],
- nbin = 20,
- ctrl = 100,
- seed = 1,
- search = TRUE
- )
- names([email hidden])[77:78] <- gsub('.{1}$', '', names([email hidden])[77:78])
- [email hidden]$maxscore_reactiveastro <- apply([email hidden][,77:78], 1, function(x)x[maxn(1)(x)])
- [email hidden]$reactive_astro_type <- apply([email hidden][,77:78], 1, function(x) names(x)[maxn(1)(x)])
- 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))
- [email hidden][,77:81] <- NULL
- MPSIIIA_filtered_ambientRNA_60D <- AddMetaData(MPSIIIA_filtered_ambientRNA_60D, [email hidden][,77:81], names([email hidden])[77:81])
- tbl_MPSIIIA <- [email hidden] %>%
- group_by(BIAD_id, reactive_astro_type_2) %>%
- summarise(n = n()) %>%
- mutate(freq = (n / sum(n))*100)
- tbl_MPSIIIA
- write.csv(tbl_MPSIIIA, file = paste0(resultsdirectory, "/sheets/revisions_60D/celltype_proportions_60D/MPSIIIA_BIAD_id_reactive_astro_prop.csv"))
- save(MPSIIIA_ambientRNA_astro_60D, file = paste0(datadirectory, "/RData/60D/revisions/MPSIIIA_NOambientRNA_astro_60D.RData"))
- save(MPSIIIA_filtered_ambientRNA_60D, file = paste0(datadirectory, "/RData/60D/revisions/MPSIIIA_filtered_NOambientRNA_60D.RData"))
- ```
- ```{r EXTRA - update gene names}
- library(openxlsx)
- ## Update the gene symbol list - ALL
- updated_neuronal_genes_ls <- lapply(neuronal_genes_ls, function(x){
- UpdateSymbolList(x,
- timeout = 20000)
- })
- ## reactive astrocytes
- updated_neuronal_genes_ls_liddelow <- lapply(neuronal_genes_ls[1:2], function(x){
- UpdateSymbolList(x,
- timeout = 20000)
- })
- ## MGE_progenitors
- updated_neuronal_genes_ls_nowakowski_MGE_progenitors <- lapply(neuronal_genes_ls[3:6], function(x){
- UpdateSymbolList(x,
- timeout = 20000)
- })
- ## MGE RG
- updated_neuronal_genes_ls_nowakowski_MGE_RG<- lapply(neuronal_genes_ls[7:8], function(x){
- UpdateSymbolList(x,
- timeout = 20000)
- })
- updated_neuronal_genes_ls_nowakowski_DivRG_S<- lapply(neuronal_genes_ls[9], function(x){
- UpdateSymbolList(x,
- timeout = 1000000)
- })
- updated_neuronal_genes_ls_nowakowski_DivRG<- lapply(neuronal_genes_ls[12], function(x){
- UpdateSymbolList(x,
- timeout = 100000)
- })
- ## Astro
- updated_neuronal_genes_ls_nowakowski_astro<- lapply(neuronal_genes_ls[10], function(x){
- UpdateSymbolList(x,
- timeout = 20000)
- })
- ##OPC
- updated_neuronal_genes_ls_nowakowski_opc<- lapply(neuronal_genes_ls[11], function(x){
- UpdateSymbolList(x,
- timeout = 20000)
- })
- ## Other RG
- updated_neuronal_genes_ls_nowakowski_otherRG<- lapply(neuronal_genes_ls[13:16], function(x){
- UpdateSymbolList(x,
- timeout = 20000)
- })
- ## Enodthelial, pericytes etc.
- updated_neuronal_genes_ls_nowakowski_Endothelial<- lapply(neuronal_genes_ls[17:19], function(x){
- UpdateSymbolList(x,
- timeout = 20000)
- })
- ## MGE_newborn
- updated_neuronal_genes_ls_nowakowski_MGE_newborn<- lapply(neuronal_genes_ls[20:24], function(x){
- UpdateSymbolList(x,
- timeout = 20000)
- })
- ## IPCs
- updated_neuronal_genes_ls_nowakowski_IPC<- lapply(neuronal_genes_ls[25:29], function(x){
- UpdateSymbolList(x,
- timeout = 20000)
- })
- ## iNs
- updated_neuronal_genes_ls_nowakowski_iN<- lapply(neuronal_genes_ls[30:33], function(x){
- UpdateSymbolList(x,
- timeout = 20000)
- })
- ## eNs
- updated_neuronal_genes_ls_nowakowski_eN <- lapply(neuronal_genes_ls[c(34:43)], function(x){
- UpdateSymbolList(x,
- timeout = 20000)
- })
- load(file = paste0(datadirectory, "/reference_sheets/updated_neuronal_genes_ls_2.RData"))
- 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)
- ## Couldn't update these gene sets
- updated_neuronal_genes_ls[["Div_RG_Sphase"]] <- neuronal_genes_ls[["Div_RG_Sphase"]]
- updated_neuronal_genes_ls[["Div_RG"]] <- neuronal_genes_ls[["Div_RG"]]
- names(updated_neuronal_genes_ls)[which(names(updated_neuronal_genes_ls) == "Astocyte")] <- "Astrocyte"
- updated_neuronal_genes_ls <- updated_neuronal_genes_ls[order(match(neuronal_genes_ls, updated_neuronal_genes_ls))]
- save(updated_neuronal_genes_ls, file = paste0(datadirectory, "/reference_sheets/updated_neuronal_genes_ls.RData"))
- ```
Neuronal_Glial_Types_Analysis_60D.Rmd at commit 1e1b492, no license · at the source
Overview
- Laboratory for Human Neurophysiology and Genetics, South Australian Health and Medical Research Institute (SAHMRI), Adelaide, SA Australia
- Flinders Health and Medical Research Institute, College of Medicine and Public Health, Flinders University, Adelaide, SA Australia
- Translational Genomics, Garvan Institute of Medical Research, Darlinghurst, NSW Australia
- Centre for Population and Disease Genomics, Institute for Molecular Bioscience, The University of Queensland, Brisbane, QLD Australia
- Sanfilippo Children’s Foundation, Sydney, NSW Australia
- Childhood Dementia Initiative, Sydney, NSW Australia
- School of Pharmacy and Biomedical Science, Adelaide University, Adelaide, SA Australia
- Institute for Photonics and Advanced Sensing, Adelaide University, Adelaide, SA Australia
- Department of Neurology and Clinical Neurophysiology, Women’s and Children’s Health Network, Adelaide, SA Australia
- Paediatric Neurodegenerative Disease Research Group, Discipline of Paediatrics, College of Health, Adelaide University, Adelaide, SA Australia
- Brain Organoid Therapeutics, Adelaide, SA Australia
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
704393448a7b0c620ee2c2b9597723f1d7f17b3d, 13 August 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
60 files
- cam.py, Python, 154 lines
- pytorch_grad_cam/
__init__.py , Python, 27 lines - pytorch_grad_cam/
ablation_cam.py , Python, 150 lines - pytorch_grad_cam/
ablation_cam_multilayer. , Python, 136 linespy - pytorch_grad_cam/
ablation_layer.py , Python, 155 lines - pytorch_grad_cam/
activations_and_gradient , Python, 67 liness.py - pytorch_grad_cam/
base_cam.py , Python, 231 lines - pytorch_grad_cam/
eigen_cam.py , Python, 22 lines - pytorch_grad_cam/
eigen_grad_cam.py , Python, 21 lines - pytorch_grad_cam/
feature_factorization/ , Python, 1 line__init__.py - pytorch_grad_cam/
feature_factorization/ , Python, 134 linesdeep_feature_factorizati on.py - pytorch_grad_cam/
fem.py , Python, 45 lines - pytorch_grad_cam/
finer_cam.py , Python, 117 lines - pytorch_grad_cam/
fullgrad_cam.py , Python, 94 lines - pytorch_grad_cam/
grad_cam.py , Python, 32 lines - pytorch_grad_cam/
grad_cam_elementwise.py , Python, 29 lines - pytorch_grad_cam/
grad_cam_plusplus.py , Python, 35 lines - pytorch_grad_cam/
guided_backprop.py , Python, 100 lines - pytorch_grad_cam/
hirescam.py , Python, 31 lines - pytorch_grad_cam/
kpca_cam.py , Python, 21 lines - pytorch_grad_cam/
layer_cam.py , Python, 34 lines - pytorch_grad_cam/
metrics/ , Python, 1 line__init__.py - pytorch_grad_cam/
metrics/ , Python, 107 linesarcc.py - pytorch_grad_cam/
metrics/ , Python, 37 linescam_mult_image.py - pytorch_grad_cam/
metrics/ , Python, 109 linesperturbation_confidence. py - pytorch_grad_cam/
metrics/ , Python, 181 linesroad.py - pytorch_grad_cam/
random_cam.py , Python, 21 lines - pytorch_grad_cam/
refine_cam.py , Python, 47 lines - pytorch_grad_cam/
score_cam.py , Python, 57 lines - pytorch_grad_cam/
seg_eigen_cam.py , Python, 62 lines, 1 match - pytorch_grad_cam/
sess.py , Python, 279 lines - pytorch_grad_cam/
shapley_cam.py , Python, 60 lines - pytorch_grad_cam/
sobel_cam.py , Python, 11 lines - pytorch_grad_cam/
utils/ , Python, 4 lines__init__.py - pytorch_grad_cam/
utils/ , Python, 30 linesfind_layers.py - pytorch_grad_cam/
utils/ , Python, 189 linesimage.py - pytorch_grad_cam/
utils/ , Python, 142 linesmodel_targets.py - pytorch_grad_cam/
utils/ , Python, 34 linesreshape_transforms.py - pytorch_grad_cam/
utils/ , Python, 81 linessvd_on_activations.py - pytorch_grad_cam/
xgrad_cam.py , Python, 32 lines - setup.py, Python, 29 lines
- tests/
test_3d_cam_weights.py , Python, 51 lines - tests/
test_context_release.py , Python, 69 lines - tests/
test_context_release_cud , Python, 76 linesa.py - tests/
test_fasterrcnn_target_d , Python, 52 linesevice.py - tests/
test_finer_cam_correctne , Python, 61 linesss.py - tests/
test_one_channel.py , Python, 47 lines - tests/
test_refine_cam.py , Python, 75 lines - tests/
test_run_all_models.py , Python, 85 lines - tests/
test_sess.py , Python, 136 lines - tests/
test_svd_no_side_effect. , Python, 44 linespy - tutorials/
CAM Metrics And Tuning Tutorial.ipynb , Jupyter, 433 lines - tutorials/
Class Activation Maps for Object Detection With Faster RCNN.ipynb , Jupyter, 435 lines - tutorials/
Class Activation Maps for Semantic Segmentation.ipynb , Jupyter, 135 lines - tutorials/
Deep Feature Factorizations.ipynb , Jupyter, 230 lines - tutorials/
EigenCAM for YOLO5.ipynb , Jupyter, 154 lines - tutorials/
HuggingFace.ipynb , Jupyter, 550 lines - tutorials/
Pixel Attribution for embeddings.ipynb , Jupyter, 194 lines - repository limit reached (2,000 files or 30 MB): the rest is at the source (3 files)
- LICENSE, License, 21 lines
- README.md, Text, 434 lines
bardylab/MPSIIIA_snRNAseq_DrugScreen_Paper_2026
1e1b49286e5cf3122cb3a5cb44b2f9737be4ea02, 22 July 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
7 files
- Rscripts/
Neuronal_Glial_Types_Ana , R, 843 lines, 5 matcheslysis_30D.Rmd - Rscripts/
Neuronal_Glial_Types_Ana , R, 940 lines, 5 matcheslysis_60D.Rmd - Rscripts/
QualityControl_30D.Rmd , R, 558 lines, 1 match - Rscripts/
QualityControl_60D.Rmd , R, 325 lines, 2 matches - Rscripts/
[Sanfilippo - 30D] Differential Expression Analysis.Rmd , R, 687 lines, 1 match - Rscripts/
[Sanfilippo - 60D] Differential Expression Analysis.Rmd , R, 498 lines - README.md, Text, 95 lines
bardylab/MPSIIIA_Machine_Learning_DrugScreen_Paper_2026
2ba0e823f7d859fbef8e44829c8048a8b6e4c517, 20 August 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
17 files
- Image_models/
image_classifier_dev.ipy , Jupyter, 525 linesnb - Image_models/
model/ , Python, 1 line__init__.py - Image_models/
model/ , Python, 121 lines, 1 matchdata.py - Image_models/
model/ , Python, 89 linesmain.py - Image_models/
model/ , Python, 64 linesmodel.py - Image_models/
model/ , Python, 81 lines, 1 matchoptimize.py - Image_models/
model/ , Python, 77 linesutils.py - Image_models/
model_evaluation/ , Python, 1 line__init__.py - Image_models/
model_evaluation/ , Python, 102 linesdata.py - Image_models/
model_evaluation/ , Python, 240 linesevaluations.py - feature models/
sanfilipo_cls_machine_le , Jupyter, 1,316 lines, 4 matchesarning.ipynb - feature models/
utils/ , Python, 255 linesanalysis.py - feature models/
utils/ , Python, 161 linesdata.py - feature models/
utils/ , Python, 585 linesfeature_list.py - feature models/
utils/ , Python, 62 lines, 2 matcheshyperopt.py - feature models/
utils/ , Python, 125 linespipe.py - README.md, Text, 44 lines
bardylab/MPSIIIA_snRNA-seq_DrugScreen_Paper_2026
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:
- it points to the authors' code: bardylab/
MPSIIIA_Machine_Learning , bardylab/_DrugScreen_Paper_2026 MPSIIIA_snRNA-seq_DrugSc , bardylab/reen_Paper_2026 MPSIIIA_snRNAseq_DrugScr een_Paper_2026
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:
- it points to the authors' code: bardylab/
MPSIIIA_Machine_Learning , bardylab/_DrugScreen_Paper_2026 MPSIIIA_snRNA-seq_DrugSc , bardylab/reen_Paper_2026 MPSIIIA_snRNAseq_DrugScr een_Paper_2026 - it says that the data are available on request
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://
BibTeX
@article{greenberg2026dr
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/
url = {https://
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/
VL - 17
IS - 1
SP - 9980
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"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":
"volume": "17",
"issue": "1",
"page": "9980",
"DOI": "10.1038/
"PMID": "42764280",
"PMCID": "PMC13590601",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"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 communicationsIn 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 biologyIn 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. MedicineIn 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: iMetaIn 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 medicineIn common: Harmony, XGBoost, ComplexHeatmap, 12 other tools
- [6] doi:10.1038/s41586-026-10214-2 [code]
- Multidimensional profiling of heterogeneity in supratentorial ependymomas.Journal: NatureIn 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 communicationsIn 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 agingIn 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. MedicineIn 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 advancesIn 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 4 repositories of the authors' code, each at its verified commit and with its license, 80 scripts, and 23 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:42ba7147780e70a1…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
