Postmortem brain single-nucleus and bulk gene expression analyses identify shared and distinct abnormalities in bipolar disorder and major depressive disorder.
7 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 7 matches
- [1] § Results › Consistency with results from snRNA-seq of the dlPFC ↔ HBCC_03_cellchat.R, lines 62 to 122 · score 0.95 · en l6 ct, EN_L6B, lamp5 lhx6, lamp5 reln, pvalb chc, en l2 · block
oscr:b:2548QAVXYZRVA-W· Report a mismatch - [2] § Results › Consistency with results from snRNA-seq of the dlPFC ↔ HBCC_01_preprocessing.R, lines 238 to 299 · score 0.95 · en l6 ct, EN_L6B, lamp5 lhx6, lamp5 reln, pvalb chc, en l2 · block
oscr:b:YCNH1KNT5386Q-U· Report a mismatch - [3] § Results › Single-nucleus transcriptomic profiling and cell population of case and controls in the OFC ↔ OFCsnRNA_01_preprocessing.R, lines 401 to 478 · score 0.95 · ExN.L5ET, ExN.L2, ExN.L3, ExN.L6CT, ExN.L6IT, InN.Lamp5 · block
oscr:b:FD4Z4Z15E0CH4-Z· Report a mismatch - [4] § Results › Transcription factor network analysis reveals key regulatory relationships ↔ OFCsnRNA_05_hdWGCNA_mdd_bd_ExN.R, lines 307 to 367 · score 0.83 · regulon score, BCL11A, POU6F2, CREM, ETS2, FOXP2 · block
oscr:b:NXCF86YKCX60H-H· Report a mismatch - [5] § Results › Co-expression modules associated with translation and mitochondrial ATP production in neurons contribute to BD ↔ OFCsnRNA_05_hdWGCNA_mdd_bd_ExN.R, lines 183 to 241 · score 0.63 · module trait correlation, biological processes, component, cellular, RNA, Classification · block
oscr:b:29K7AFSZ2TYQE-F· Report a mismatch - [6] § Materials and methods › Differential abundance (DA) analysis ↔ OFCsnRNA_02_subtype_milo.R, lines 1 to 82 · score 0.54 · sub clusters, single cell, DA, graphs · block
oscr:b:Z3V7PAB8XDYKV-D· Report a mismatch - [7] § Results › Dysfunction of parvalbumin interneurons and hyperactivity of excitatory neurons in BD and MDD ↔ OFCsnRNA_04_cellchat_bd_mdd.R, lines 61 to 118 · score 0.51 · ExN.L5, InN.Pvalb, Ch, Ba, signaling, pathways · block
oscr:b:94MB2YJ0FSB98-P· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
R · 605 lines · 18 KB · no license · 2 matches
- setwd("")
- library(Seurat)
- library(tidyverse)
- library(cowplot)
- library(patchwork)
- library(WGCNA)
- library(hdWGCNA)
- theme_set(theme_cowplot())
- set.seed(12345)
- enableWGCNAThreads(nThreads = 8)
- seurat_obj <- readRDS("")
- seurat_obj <- SetupForWGCNA(seurat_obj, gene_select = "fraction", fraction = 0.05, wgcna_name = "exp_sc")
- seurat_obj <- MetacellsByGroups(seurat_obj = seurat_obj, group.by = c("cell_type_1", "Donor"), k = 25, max_shared = 10, ident.group = "cell_type_1")
- seurat_obj <- NormalizeMetacells(seurat_obj)
- seurat_obj <- SetDatExpr(seurat_obj, group_name = "ExN", group.by = "cell_type_1", assay = 'RNA', layer = 'data')
- seurat_obj <- TestSoftPowers(seurat_obj, networkType = 'signed')
- plot_list <- PlotSoftPowers(seurat_obj)
- wrap_plots(plot_list, ncol=2)
- power_table <- GetPowerTable(seurat_obj)
- head(power_table)
- seurat_obj <- ConstructNetwork(seurat_obj, tom_name = "ExN")
- pdf()
- PlotDendrogram(seurat_obj, main = 'hdWGCNA Dendrogram')
- dev.off()
- seurat_obj <- ScaleData(seurat_obj, features = VariableFeatures(seurat_obj))
- seurat_obj <- ModuleEigengenes(seurat_obj, group.by.vars = "Donor")
- hMEs <- GetMEs(seurat_obj, harmonized = TRUE)
- seurat_obj <- ModuleConnectivity(seurat_obj , group.by = "cell_type_1", group_name = "ExN")
- seurat_obj <- ResetModuleNames(seurat_obj, new_name = "M")
- pdf()
- PlotKMEs(seurat_obj, text_size = 3, ncol = 3)
- dev.off()
- modules <- GetModules(seurat_obj) %>% subset(module != 'grey')
- head(modules[,1:6])
- hub_df <- GetHubGenes(seurat_obj, n_hubs = 10)
- head(hub_df)
- saveRDS(seurat_obj, file = "")
- library(UCell)
- seurat_obj <- ModuleExprScore(seurat_obj, n_genes = 20, method = 'UCell')
- plot_list <- ModuleFeaturePlot(seurat_obj, features = "hMEs", order = TRUE)
- pdf()
- wrap_plots(plot_list, ncol = 4)
- dev.off()
- plot_list <- ModuleFeaturePlot(seurat_obj, features = 'scores', order = 'shuffle', ucell = TRUE)
- pdf()
- wrap_plots(plot_list, ncol = 4)
- dev.off()
- pdf()
- ModuleCorrelogram(seurat_obj)
- dev.off()
- hMEs <- GetMEs(seurat_obj, harmonized = TRUE)
- modules <- GetModules(seurat_obj)
- mods <- levels(modules$module); mods <- mods[mods != 'grey']
- [email hidden] <- cbind([email hidden], hMEs)
- p <- DotPlot(seurat_obj, features = mods, group.by = "cell_type_2")
- p <- p +
- RotatedAxis() +
- scale_color_gradient2(high='red', mid='grey95', low='blue')
- print(p)
- ggsave()
- group1 <- [email hidden] %>% subset(cell_type_1 == "ExN" & Classification == "BD") %>% rownames
- group2 <- [email hidden] %>% subset(cell_type_1 == "ExN" & Classification == "MDD") %>% rownames
- DMEs <- FindDMEs(seurat_obj, barcodes1 = group1, barcodes2 = group2, test.use = 'wilcox', wgcna_name = "exp_sc")
- head(DMEs)
- PlotDMEsLollipop(seurat_obj, DMEs, wgcna_name = "exp_sc", pvalue = "p_val_adj")
- pdf()
- PlotDMEsLollipop(seurat_obj, DMEs, wgcna_name = "exp_sc", pvalue = "p_val_adj")
- dev.off()
- clusters <- c("ExN.L2-3IT", "ExN.L3-5IT", "ExN.L6IT", "ExN.L5-6NP", "ExN.L6CT", "ExN.L5ET",
- "InN.Lamp5", "InN.Sncg", "InN.Vip", "InN.Sst", "InN.Pvalb-Ba", "InN.Pvalb-Ch",
- "Ast", "Mic", "Oli", "OPC", "End")
- clusters <- factor(clusters,
- levels = c("ExN.L2-3IT", "ExN.L3-5IT", "ExN.L6IT", "ExN.L5-6NP", "ExN.L6CT", "ExN.L5ET",
- "InN.Lamp5", "InN.Sncg", "InN.Vip", "InN.Sst", "InN.Pvalb-Ba", "InN.Pvalb-Ch",
- "Ast", "Mic", "Oli", "OPC", "End"))
- DMEs <- data.frame()
- for(cur_cluster in clusters){
- group1 <- [email hidden] %>% subset(cell_type_2 == cur_cluster & Classification == "BD") %>% rownames
- group2 <- [email hidden] %>% subset(cell_type_2 == cur_cluster & Classification == "MDD") %>% rownames
- cur_DMEs <- FindDMEs(seurat_obj, barcodes1 = group1, barcodes2 = group2, test.use = 'wilcox', pseudocount.use = 0.01, wgcna_name = "exp_sc")
- cur_DMEs$cluster <- cur_cluster
- DMEs <- rbind(DMEs, cur_DMEs)
- }
- modules <- GetModules(seurat_obj)
- mods <- levels(modules$module); mods <- mods[mods != 'grey']
- plot_df <- DMEs
- plot_df$module <- factor(as.character(plot_df$module), levels=mods)
- plot_df$cluster <- factor(plot_df$cluster,
- levels = c("ExN.L2-3IT", "ExN.L3-5IT", "ExN.L6IT", "ExN.L5-6NP", "ExN.L6CT", "ExN.L5ET",
- "InN.Lamp5", "InN.Sncg", "InN.Vip", "InN.Sst", "InN.Pvalb-Ba", "InN.Pvalb-Ch",
- "Ast", "Mic", "Oli", "OPC", "End"))
- maxval <- 2; minval <- -2
- plot_df$avg_log2FC <- ifelse(plot_df$avg_log2FC > maxval, maxval, plot_df$avg_log2FC)
- plot_df$avg_log2FC <- ifelse(plot_df$avg_log2FC < minval, minval, plot_df$avg_log2FC)
- plot_df$Significance <- gtools::stars.pval(plot_df$p_val_adj)
- plot_df$textcolor <- ifelse(abs(plot_df$avg_log2FC) > 1, "white", "black")
- p <- plot_df %>%
- ggplot(aes(y=cluster, x=module, fill=avg_log2FC)) +
- geom_tile()
- p <- p +
- geom_text(label=plot_df$Significance, color=plot_df$textcolor)
- p <- p +
- scale_fill_gradient2(low = "dodgerblue4", mid = "gray90", high = "brown") +
- RotatedAxis() +
- theme(
- panel.border = element_rect(fill=NA, color='black', size=1),
- axis.line.x = element_blank(),
- axis.line.y = element_blank(),
- plot.margin = margin(0,0,0,0)
- ) + xlab('') + ylab('') +
- coord_equal()
- print(p)
- ggsave()
- cur_traits <- c("Classification", "Age", "Sex", "PMI", "Brain.pH", "RIN")
- seurat_obj <- ModuleTraitCorrelation(
- seurat_obj,
- traits = cur_traits,
- group.by = "cell_type_2"
- )
- mt_cor <- GetModuleTraitCorrelation(seurat_obj)
- pdf()
- PlotModuleTraitCorrelation(
- seurat_obj, label = 'fdr', label_symbol = 'stars',
- text_size = 2, text_digits = 2,
- text_color = "black", high_color = "gold3", mid_color = "gray90", low_color = "skyblue3",
- plot_max = 0.4, combine=TRUE)
- dev.off()
- library(enrichR)
- library(GeneOverlap)
- theme_set(theme_cowplot())
- set.seed(12345)
- dbs <- c('GO_Biological_Process_2023','GO_Cellular_Component_2023','GO_Molecular_Function_2023')
- seurat_obj <- RunEnrichr(seurat_obj, dbs=dbs, max_genes = Inf)
- enrich_df <- GetEnrichrTable(seurat_obj)
- head(enrich_df)
- EnrichrBarPlot(seurat_obj, outdir = "enrichr_plots", n_terms = 10, plot_size = c(5,7), logscale=TRUE)
- pdf()
- EnrichrDotPlot(seurat_obj,
- mods = "all", database = "GO_Biological_Process_2023", n_terms = 4, term_size = 8, p_adj = FALSE
- ) + scale_color_stepsn(colors=rev(viridis::magma(256)))
- dev.off()
- seurat_ref <- readRDS("")
- seurat_query <- readRDS("")
- seurat_query <- subset(seurat_query, Classification == "CTRL")
- seurat_query <- ProjectModules(seurat_obj = seurat_query, seurat_ref = seurat_ref, wgcna_name = "exp_sc", wgcna_name_proj = "projected", assay = "RNA")
- seurat_query <- MetacellsByGroups(seurat_obj = seurat_query, group.by = c("cell_type_1", "Donor"), k = 25, max_shared = 10, ident.group = "cell_type_1")
- seurat_query <- NormalizeMetacells(seurat_query)
- seurat_ref <- SetDatExpr(seurat_ref, group_name = "ExN", group.by = "cell_type_1")
- seurat_query <- SetDatExpr(seurat_query, group_name = "ExN", group.by = "cell_type_1")
- seurat_query <- ModulePreservation(seurat_query, seurat_ref = seurat_ref, name = "CTRL_ExN", verbose = 3, n_permutations = 200)
- saveRDS(seurat_query, file = "")
- plot_list <- PlotModulePreservation(seurat_query, name = "CTRL_ExN", statistics = "summary")
- pdf()
- wrap_plots(plot_list, ncol=2)
- dev.off()
- plot_list <- PlotModulePreservation(seurat_query, name = "CTRL_ExN", statistics = "rank")
- pdf()
- wrap_plots(plot_list, ncol=2)
- dev.off()
- library(Seurat)
- library(tidyverse)
- library(cowplot)
- library(patchwork)
- library(magrittr)
- library(WGCNA)
- library(hdWGCNA)
- library(igraph)
- library(motifmatchr)
- library(TFBSTools)
- library(EnsDb.Hsapiens.v86)
- library(BSgenome.Hsapiens.UCSC.hg38)
- library(GenomicRanges)
- library(xgboost)
- theme_set(theme_cowplot())
- set.seed(12345)
- seurat_obj <- readRDS("")
- library(JASPAR2024)
- library(RSQLite)
- library(EnsDb.Hsapiens.v86)
- JASPAR2024 <- JASPAR2024()
- sq24 <- RSQLite::dbConnect(RSQLite::SQLite(), db(JASPAR2024))
- pfm_core <- TFBSTools::getMatrixSet(x = sq24, opts = list(collection = "CORE", tax_group = 'vertebrates', all_versions = FALSE))
- seurat_obj <- MotifScan(seurat_obj, species_genome = 'hg38', pfm = pfm_core, EnsDb = EnsDb.Hsapiens.v86)
- motif_df <- GetMotifs(seurat_obj)
- tf_genes <- unique(motif_df$gene_name)
- modules <- GetModules(seurat_obj)
- nongrey_genes <- subset(modules, module != 'grey') %>% .$gene_name
- genes_use <- c(tf_genes, nongrey_genes)
- seurat_obj <- SetWGCNAGenes(seurat_obj, genes_use)
- seurat_obj <- SetDatExpr(seurat_obj, group_name = "ExN", group.by = "cell_type_1")
- model_params <- list(objective = 'reg:squarederror', max_depth = 1, eta = 0.1, nthread = 24, alpha = 0.5)
- seurat_obj <- ConstructTFNetwork(seurat_obj, model_params)
- seurat_obj <- AssignTFRegulons(seurat_obj, strategy = "A", reg_thresh = 0.01, n_tfs = 10)
- saveRDS(seurat_obj, file = "")
- tf_regulons <- GetTFRegulons(seurat_obj)
- hub_df <- GetHubGenes(seurat_obj, n_hubs = 10) %>%
- subset(gene_name %in% tf_regulons$tf)
- Idents(seurat_obj) <- seurat_obj$cell_type_1
- marker_tfs <- FindAllMarkers(
- seurat_obj,
- features = unique(tf_regulons$tf)
- )
- top_tfs <- marker_tfs %>% subset(cluster == "ExN") %>%
- slice_max(n = 80, order_by = avg_log2FC)
- intersect(top_tfs$gene, hub_df$gene_name)
- tf_for_plot <- c("FOXP2", "RORB", "CUX2", "POU6F2", "PKNOX2", "BCL11A",
- "BHLHE40", "ETS2", "CREM", "E2F3", "ZNF675", "PPARG")
- for (tf in tf_for_plot) {
- p <- RegulonBarPlot(seurat_obj, selected_tf = tf, cutoff = 0.25)
- print(p)
- ggsave()
- }
- seurat_obj <- RegulonScores(seurat_obj, target_type = 'positive', cor_thresh = 0.05, ncores = 16)
- seurat_obj <- RegulonScores(seurat_obj, target_type = 'negative', cor_thresh = -0.05, ncores = 16)
- pos_regulon_scores <- GetRegulonScores(seurat_obj, target_type='positive')
- neg_regulon_scores <- GetRegulonScores(seurat_obj, target_type='negative')
- tf_for_plot <- c("FOXP2", "RORB", "CUX2", "POU6F2", "PKNOX2", "BCL11A",
- "BHLHE40", "ETS2", "CREM", "E2F3", "ZNF675", "PPARG")
- for (tf in tf_for_plot) {
- cur_tf <- tf
- seurat_obj$pos_regulon_score <- pos_regulon_scores[,cur_tf]
- seurat_obj$neg_regulon_score <- neg_regulon_scores[,cur_tf]
- p1 <- FeaturePlot(seurat_obj, feature = cur_tf) + umap_theme()
- p2 <- FeaturePlot(seurat_obj, feature = 'pos_regulon_score', cols = c('lightgrey', 'red')) + umap_theme()
- p3 <- FeaturePlot(seurat_obj, feature = 'neg_regulon_score', cols = c('lightgrey', 'seagreen')) + umap_theme()
- p <- p1 | p2 | p3
- print(p)
- ggsave()
- }
- tf_for_plot <- c("FOXP2", "RORB", "CUX2", "POU6F2", "PKNOX2", "BCL11A",
- "BHLHE40", "ETS2", "CREM", "E2F3", "ZNF675", "PPARG")
- for (tf in tf_for_plot) {
- cur_tf <- tf
- p1 <- TFNetworkPlot(
- seurat_obj, selected_tfs = cur_tf,
- target_type = 'positive',
- label_TFs = 1, depth = 2, cutoff = 0.05
- ) + ggtitle(paste0("Positive targets of ", cur_tf)) +
- theme(plot.title = element_text(hjust = 0.5))
- p2 <- TFNetworkPlot(
- seurat_obj, selected_tfs = cur_tf,
- target_type = 'negative',
- label_TFs = 1, depth = 2, cutoff = 0.05
- ) + ggtitle(paste0("Negative targets of ", cur_tf)) +
- theme(plot.title = element_text(hjust = 0.5))
- p3 <- TFNetworkPlot(
- seurat_obj, selected_tfs = cur_tf,
- target_type = 'both',
- label_TFs = 1, depth = 2, cutoff = 0.05
- ) + ggtitle(paste0("Pos & Neg targets of ", cur_tf)) +
- theme(plot.title = element_text(hjust = 0.5))
- p <- p1 | p2 | p3
- print(p)
- ggsave()
- }
- group1 <- [email hidden] %>% subset(cell_type_1 == "ExN" & Classification == "BD") %>% rownames
- group2 <- [email hidden] %>% subset(cell_type_1 == "ExN" & Classification == "MDD") %>% rownames
- dregs <- FindDifferentialRegulons(seurat_obj, barcodes1 = group1, barcodes2 = group2)
- p <- PlotDifferentialRegulons(seurat_obj, dregs)
- print(p)
- ggsave()
- seurat_obj <- RunModuleUMAP(seurat_obj, n_hubs = 10, n_neighbors = 15, min_dist = 0.1)
- tf_for_plot <- c("FOXP2", "RORB", "CUX2", "POU6F2", "PKNOX2", "BCL11A",
- "BHLHE40", "ETS2", "CREM", "E2F3", "ZNF675", "PPARG")
- for (tf in tf_for_plot) {
- cur_tf <- tf
- modules <- GetModules(seurat_obj)
- umap_df <- GetModuleUMAP(seurat_obj)
- mods <- levels(modules$module)
- mod_colors <- dplyr::select(modules, c(module, color)) %>%
- distinct %>% arrange(module) %>% .$color
- cp <- mod_colors; names(cp) <- mods
- hub_df <- GetHubGenes(seurat_obj, n_hubs=10)
- tf_net <- GetTFNetwork(seurat_obj)
- tf_regulons <- GetTFRegulons(seurat_obj) %>%
- subset(gene %in% umap_df$gene & tf %in% umap_df$gene)
- all(tf_regulons$gene %in% umap_df$gene)
- cur_network <- GetTFTargetGenes(
- seurat_obj,
- selected_tfs=cur_tf,
- depth=2,
- target_type='both'
- ) %>% subset(gene %in% umap_df$gene & tf %in% umap_df$gene)
- gene_depths <- cur_network %>%
- group_by(gene) %>%
- slice_min(n=1, order_by=depth) %>%
- dplyr::select(gene, depth) %>% distinct()
- cur_network <- cur_network %>%
- dplyr::rename(c(source=tf, target=gene))
- cur_network <- subset(cur_network, target %in% unique(tf_net$tf) | target %in% hub_df$gene_name)
- graph <- tidygraph::as_tbl_graph(cur_network) %>%
- tidygraph::activate(nodes) %>%
- mutate(degree = centrality_degree())
- tf_degrees <- table(tf_regulons$tf)
- tmp <- tf_degrees[names(V(graph))]; tmp <- tmp[!is.na(tmp)]
- V(graph)[names(tmp)]$degree <- as.numeric(tmp)
- V(graph)$gene_type <- ifelse(names(V(graph)) %in% unique(tf_regulons$tf), 'TF', 'Gene')
- V(graph)$gene_type <- ifelse(names(V(graph)) == cur_tf, 'selected', V(graph)$gene_type)
- umap_layout <- umap_df[names(V(graph)),] %>% dplyr::rename(c(x=UMAP1, y = UMAP2, name=gene))
- rownames(umap_layout) <- 1:nrow(umap_layout)
- lay <- create_layout(graph, umap_layout)
- gene_depths <- subset(gene_depths, gene %in% lay$name)
- tmp <- dplyr::left_join(lay, gene_depths, by = c('name' = 'gene'))
- lay$depth <- tmp$depth
- lay$depth <- ifelse(lay$name %in% cur_tf, 0, lay$depth)
- lay$depth <- factor(lay$depth, levels=0:max(as.numeric(lay$depth)))
- cur_shapes <- c(23, 24, 25); names(cur_shapes) <- levels(lay$depth)
- label_tfs <- subset(cur_network, target %in% tf_regulons$tf) %>% .$target %>% unique
- lay$lab <- ifelse(lay$name %in% c(cur_tf, label_tfs), lay$name, NA)
- p <- ggraph(lay)
- p <- p + geom_point(inherit.aes=FALSE, data=umap_df, aes(x=UMAP1, y=UMAP2), color=umap_df$color, alpha=0.3, size=2)
- p <- p + geom_edge_fan(
- aes(color=Cor, alpha=abs(Cor)),
- arrow = arrow(length = unit(2, 'mm'), type='closed'),
- end_cap = circle(3, 'mm')
- )
- p <- p + geom_node_point(
- data=subset(lay, gene_type == 'Gene'), aes(fill=module), shape=21, color='black', size=2
- )
- p <- p + geom_node_point(
- data=subset(lay, gene_type == 'TF'),
- aes(fill=module, size=degree, shape=depth), color='black'
- )
- p <- p + geom_node_label(
- aes(label=lab), repel=TRUE, max.overlaps=Inf,
- fontface='italic', color='black'
- )
- p <- p + scale_edge_colour_gradient2(high='orange2', mid='white', low='dodgerblue') +
- scale_colour_manual(values=cp) +
- scale_fill_manual(values=cp) +
- scale_shape_manual(values=cur_shapes) +
- guides(
- edge_alpha = "none",
- size = "none",
- shape = "none",
- fill = "none"
- )
- print(p)
- ggsave()
- }
- library(enrichR)
- seurat_obj <- RunEnrichrRegulons(seurat_obj, wait_time=1)
- saveRDS(seurat_obj, file = "")
- enrich_df <- GetEnrichrRegulonTable(seurat_obj)
- tf_for_plot <- c("FOXP2", "RORB", "CUX2", "POU6F2", "PKNOX2", "BCL11A",
- "BHLHE40", "ETS2", "CREM", "E2F3", "ZNF675", "PPARG")
- for (tf in tf_for_plot) {
- cur_tf <- tf
- plot_df <- subset(enrich_df, tf == cur_tf & P.value < 0.05)
- table(plot_df$target_type)
- p1 <- plot_df %>%
- subset(target_type == 'negative') %>%
- slice_max(n=10, order_by=Combined.Score) %>%
- mutate(Term = stringr::str_replace(Term, " \\s*\\([^\\)]+\\)", "")) %>% head(10) %>%
- ggplot(aes(x=-log(Combined.Score), y=reorder(Term, Combined.Score)))+
- geom_bar(stat='identity', position='identity', fill = "dodgerblue", alpha = 0.5) +
- geom_text(aes(label=Term), x=-.1, color='black', size=3.5, hjust='right') +
- xlab('log(Enrichment)') +
- scale_x_continuous(expand = c(0, 0), limits = c(NA, 0)) +
- ggtitle('Negatively correlated target genes') +
- theme(
- panel.grid.major=element_blank(),
- panel.grid.minor=element_blank(),
- legend.title = element_blank(),
- axis.ticks.y=element_blank(),
- axis.text.y=element_blank(),
- axis.line.y=element_blank(),
- plot.title = element_text(hjust = 0.5),
- axis.title.y = element_blank()
- )
- p2 <- plot_df %>%
- subset(target_type == 'positive') %>%
- slice_max(n=10, order_by=Combined.Score) %>%
- mutate(Term = stringr::str_replace(Term, " \\s*\\([^\\)]+\\)", "")) %>% head(10) %>%
- ggplot(aes(x=log(Combined.Score), y=reorder(Term, Combined.Score)))+
- geom_bar(stat='identity', position='identity', fill = "orange2", alpha = 0.5) +
- geom_text(aes(label=Term), x=.1, color='black', size=3.5, hjust='left') +
- xlab('log(Enrichment)') +
- scale_x_continuous(expand = c(0, 0), limits = c(0, NA)) +
- ggtitle('Positively correlated target genes') +
- theme(
- panel.grid.major=element_blank(),
- panel.grid.minor=element_blank(),
- legend.title = element_blank(),
- axis.ticks.y=element_blank(),
- axis.text.y=element_blank(),
- axis.line.y=element_blank(),
- plot.title = element_text(hjust = 0.5),
- axis.title.y = element_blank()
- )
- p <- p1 | p2
- print(p)
- ggsave()
- }
- p1 <- ModuleRegulatoryHeatmap(
- seurat_obj, feature='delta', dendrogram=FALSE
- ) + ggtitle('TFs only')
- p2 <- ModuleRegulatoryHeatmap(
- seurat_obj, feature='delta', TFs_only=FALSE,
- max_val=5, dendrogram=FALSE
- ) + ggtitle('All target genes')
- p <- p1 | p2
- print(p)
- ggsave()
- p1 <- ModuleRegulatoryHeatmap(
- seurat_obj, feature = 'positive', TFs_only = TRUE,
- high_color='orange2')
- p2 <- ModuleRegulatoryHeatmap(
- seurat_obj, feature = 'negative', TFs_only = TRUE,
- high_color='dodgerblue')
- p <- p1 | p2
- print(p)
- ggsave()
- p1 <- ModuleRegulatoryHeatmap(
- seurat_obj, feature = 'positive', TFs_only = FALSE,
- high_color='orange2')
- p2 <- ModuleRegulatoryHeatmap(
- seurat_obj, feature = 'negative', TFs_only = FALSE,
- high_color='dodgerblue')
- p <- p1 | p2
- print(p)
- ggsave()
- p <- ModuleRegulatoryNetworkPlot(seurat_obj, cutoff=0.5, max_val=1.5)
- print(p)
- ggsave()
- p1 <- ModuleRegulatoryNetworkPlot(
- seurat_obj, feature='positive', high_color='orange2')
- p2 <- ModuleRegulatoryNetworkPlot(
- seurat_obj, feature='negative', high_color='dodgerblue')
- p <- p1 | p2
- print(p)
- ggsave()
OFCsnRNA_05_hdWGCNA_mdd_bd_ExN.R at commit 7f932c5, no license · at the source
Overview
- Department of Psychiatry, Kobe University Graduate School of Medicine,Kobe, Japan
- Kobe University Inclusive Campus & Healthcare Center,Kobe, Japan
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above, with 7 matches between paragraphs and lines of code.
PsychiatKobeUniv-singlecell/Code_brain_mood_disorders
7f932c51fa43710042e864e17a191cba550aa76a, 30 March 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
22 files
- HBCC_00_adata.py, Python, 49 lines
- HBCC_00_downsample_by_do
nor.py , Python, 138 lines - HBCC_01_preprocessing.R, R, 390 lines, 1 match
- HBCC_02_pseudobulk.R, R, 250 lines
- HBCC_03_cellchat.R, R, 157 lines, 1 match
- OFCsnRNA_00_adata.py, Python, 15 lines
- OFCsnRNA_00_metadata.R, R, 37 lines
- OFCsnRNA_01_preprocessin
g.R , R, 479 lines, 1 match - OFCsnRNA_02_sub_Ast.R, R, 49 lines
- OFCsnRNA_02_sub_Mic.R, R, 49 lines
- OFCsnRNA_02_subtype_milo
.R , R, 150 lines, 1 match - OFCsnRNA_03_pseudobulk_G
SEA_bd_ctrl.R , R, 249 lines - OFCsnRNA_03_pseudobulk_G
SEA_bd_mdd.R , R, 246 lines - OFCsnRNA_03_pseudobulk_G
SEA_case_ctrl.R , R, 249 lines - OFCsnRNA_03_pseudobulk_G
SEA_mdd_ctrl.R , R, 248 lines - OFCsnRNA_04_cellchat_bd_
ctrl.R , R, 145 lines - OFCsnRNA_04_cellchat_bd_
mdd.R , R, 165 lines, 1 match - OFCsnRNA_04_cellchat_cas
e_ctrl.R , R, 221 lines - OFCsnRNA_04_cellchat_mdd
_ctrl.R , R, 145 lines - OFCsnRNA_05_hdWGCNA_mdd_
bd_ExN.R , R, 605 lines, 2 matches - bulk_multi_region.R, R, 401 lines
- README.md, Text, 2 lines
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: PsychiatKobeUniv-singlec
ell/ Code_brain_mood_disorder s
Read it in the paper: doi.org/10.1038/s41398-026-04200-5.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 21 scripts, each with its path and the digest of its content;
- 7 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
- geo:GSE80655, at NCBI GEO; found in “Data availability”
Other data links
- ncbi.nlm.nih.gov/
geo , NCBI; found in “Data availability”
Data availability statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to 2 datasets: NCBI, NCBI GEO GSE80655
Read it in the paper: doi.org/10.1038/s41398-026-04200-5.
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, 10 authors, 3 keywords, 8 MeSH terms, 5 funders, 67 references, 1 RRID.
Cite
This paper
Gao, R., Otsuka, I., Shirai, T., Miyachi, M., Minami, K., Okada, S., Tsukamoto, R., Tanifuji, T., Okazaki, S., & Hishimoto, A. (2026). Postmortem brain single-nucleus and bulk gene expression analyses identify shared and distinct abnormalities in bipolar disorder and major depressive disorder. Translational psychiatry, 16(1), 442. https://
BibTeX
@article{gao2026postmort
author = {Gao, Rongwei and Otsuka, Ikuo and Shirai, Toshiyuki and Miyachi, Masao and Minami, Kiriko and Okada, Shohei and Tsukamoto, Ryo and Tanifuji, Takaki and Okazaki, Satoshi and Hishimoto, Akitoyo},
title = {{Postmortem brain single-nucleus and bulk gene expression analyses identify shared and distinct abnormalities in bipolar disorder and major depressive disorder}},
journal = {Translational psychiatry},
year = {2026},
month = jun,
volume = {16},
number = {1},
pages = {442},
publisher = {Nature Publishing Group},
issn = {2158-3188},
doi = {10.1038/
url = {https://
pmid = {42324251},
pmcid = {PMC13529797}
}
RIS
TY - JOUR
AU - Gao, Rongwei
AU - Otsuka, Ikuo
AU - Shirai, Toshiyuki
AU - Miyachi, Masao
AU - Minami, Kiriko
AU - Okada, Shohei
AU - Tsukamoto, Ryo
AU - Tanifuji, Takaki
AU - Okazaki, Satoshi
AU - Hishimoto, Akitoyo
TI - Postmortem brain single-nucleus and bulk gene expression analyses identify shared and distinct abnormalities in bipolar disorder and major depressive disorder
T2 - Translational psychiatry
J2 - Transl Psychiatry
PY - 2026
DA - 2026/
VL - 16
IS - 1
SP - 442
SN - 2158-3188
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Postmortem brain single-nucleus and bulk gene expression analyses identify shared and distinct abnormalities in bipolar disorder and major depressive disorder",
"container-title": "Translational psychiatry",
"author": [
{
"family": "Gao",
"given": "Rongwei"
},
{
"family": "Otsuka",
"given": "Ikuo"
},
{
"family": "Shirai",
"given": "Toshiyuki"
},
{
"family": "Miyachi",
"given": "Masao"
},
{
"family": "Minami",
"given": "Kiriko"
},
{
"family": "Okada",
"given": "Shohei"
},
{
"family": "Tsukamoto",
"given": "Ryo"
},
{
"family": "Tanifuji",
"given": "Takaki"
},
{
"family": "Okazaki",
"given": "Satoshi"
},
{
"family": "Hishimoto",
"given": "Akitoyo"
}
],
"container-title-short":
"volume": "16",
"issue": "1",
"page": "442",
"DOI": "10.1038/
"PMID": "42324251",
"PMCID": "PMC13529797",
"ISSN": "2158-3188",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
21
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1016/j.xcrm.2026.102766 [code]
- A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.Journal: Cell reports. MedicineIn common: WGCNA, Harmony, SingleCellExperiment, 16 other tools, genetics / omics, cellular / molecular, 5 references
- [2] doi:10.1038/s41588-024-01961-x [code]
- Spatial and single-nucleus transcriptomic analysis of genetic and sporadic forms of Alzheimer's disease.Journal: Nature geneticsIn common: WGCNA, Harmony, SingleCellExperiment, 13 other tools, genetics / omics, cellular / molecular, 6 references
- [3] doi:10.1016/j.cell.2026.05.026 [code]
- The critical role of the endogenous immune compartment after CAR T cell therapy in recurrent GBM.Journal: CellIn common: Harmony, SingleCellExperiment, edgeR, 13 other tools, genetics / omics, 5 references
- [4] doi:10.1038/s41467-025-59115-4 [code]
- Large-scale transcriptomic analyses of major depressive disorder reveal convergent dysregulation of synaptic pathways in excitatory neurons.Journal: Nature communicationsIn common: WGCNA, SingleCellExperiment, edgeR, 12 other tools, depression, genetics / omics, cellular / molecular, 3 references
- [5] doi:10.1038/s41593-026-02367-0 [code]
- A reproducible three-dimensional model of human brain tissue to investigate physiological and disease-associated microglia phenotypes.Journal: Nature neuroscienceIn common: WGCNA, Harmony, SingleCellExperiment, 12 other tools, cellular / molecular, 3 references
- [6] doi:10.1016/j.xgen.2025.101007 [code]
- Single-nucleus transcriptome atlas of orbitofrontal cortex in ALS with a deep learning-based decoding of alternative polyadenylation mechanisms.Journal: Cell genomicsIn common: Harmony, XGBoost, SingleCellExperiment, 12 other tools, genetics / omics, cellular / molecular, 4 references
- [7] doi:10.1038/s41398-024-03202-5 [code]
- Exploring PDE5A upregulation in bipolar disorder: insights from single-nucleus RNA sequencing of human basal ganglia.Journal: Translational psychiatryIn common: WGCNA, Harmony, SingleCellExperiment, 9 other tools, bipolar, genetics / omics, cellular / molecular, 3 references
- [8] doi:10.1126/sciadv.adq2290 [code]
- Contrasting genetic predisposition and diagnosis in psychiatric disorders: A multi-omic single-nucleus analysis of the human OFC.Journal: Science advancesIn common: edgeR, anndata, clusterProfiler, 11 other tools, bipolar, genetics / omics, 2 references
- [9] doi:10.1038/s41467-025-64136-0 [code]
- Integrated single-cell multiomic profiling of caudate nucleus suggests key mechanisms in alcohol use disorder.Journal: Nature communicationsIn common: SingleCellExperiment, edgeR, limma, 10 other tools, genetics / omics, cellular / molecular, 3 references
- [10] doi:10.1016/j.celrep.2025.116165 [code]
- Spatiotemporal profiling reveals the impact of caloric restriction in the aging mammalian brain.Journal: Cell reportsIn common: XGBoost, SingleCellExperiment, anndata, 10 other tools, genetics / omics, cellular / molecular, 3 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
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: 1 repository of the authors' code, each at its verified commit and with its license, 21 scripts, and 7 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:4030dea0a2607baf…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1038/s41398-026-04200-5)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41398-026-04200-5.svg
:target: https://openscicode.org/badge/doi/10.1038/s41398-026-04200-5
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41398-026-04200-5"><img src="https://openscicode.org/badge/doi/10.1038/s41398-026-04200-5.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
