Postmortem brain single-nucleus and bulk gene expression analyses identify shared and distinct abnormalities in bipolar disorder and major depressive disorder.
The 7 matches
- [1] § Results › Consistency with results from snRNA-seq of the dlPFC ↔ HBCC_03_cellchat.R, lines 62–122 · score 0.95 · en l6 ct, EN_L6B, lamp5 lhx6, lamp5 reln, pvalb chc, en l2
- [2] § Results › Consistency with results from snRNA-seq of the dlPFC ↔ HBCC_01_preprocessing.R, lines 238–299 · score 0.95 · en l6 ct, EN_L6B, lamp5 lhx6, lamp5 reln, pvalb chc, en l2
- [3] § Results › Single-nucleus transcriptomic profiling and cell population of case and controls in the OFC ↔ OFCsnRNA_01_preprocessing.R, lines 401–478 · score 0.95 · ExN.L5ET, ExN.L2, ExN.L3, ExN.L6CT, ExN.L6IT, InN.Lamp5
- [4] § Results › Transcription factor network analysis reveals key regulatory relationships ↔ OFCsnRNA_05_hdWGCNA_mdd_bd_ExN.R, lines 307–367 · score 0.83 · regulon score, BCL11A, POU6F2, CREM, ETS2, FOXP2
- [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–241 · score 0.63 · module trait correlation, biological processes, component, cellular, RNA, Classification
- [6] § Materials and methods › Differential abundance (DA) analysis ↔ OFCsnRNA_02_subtype_milo.R, lines 1–82 · score 0.54 · sub clusters, single cell, DA, graphs
- [7] § Results › Dysfunction of parvalbumin interneurons and hyperactivity of excitatory neurons in BD and MDD ↔ OFCsnRNA_04_cellchat_bd_mdd.R, lines 61–118 · score 0.51 · ExN.L5, InN.Pvalb, Ch, Ba, signaling, pathways
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 · 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.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
- [3] doi:10.1002/imt2.70163 [code]
- Spatial multi-omics unveils sphingolipid metabolic reprogramming within the retinal pathological niche.Journal: iMetaIn common: Harmony, SingleCellExperiment, edgeR, 16 other tools, genetics / omics, cellular / molecular
- [4] doi:10.1038/s41467-026-73305-8 [code]
- Comparative analysis of the cellular landscape in mammalian striatum.Journal: Nature communicationsIn common: WGCNA, Harmony, SingleCellExperiment, 14 other tools, genetics / omics, cellular / molecular, 2 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.1038/s41380-026-03629-w [code]
- Maternal fasting during early gestation induces epigenetic alterations and schizophrenia-related phenotypes.Journal: Molecular psychiatryIn common: WGCNA, Harmony, limma, 12 other tools, genetics / omics, cellular / molecular, 4 references
- [7] doi:10.1016/j.celrep.2026.117500 [code]
- Spatio-molecular gene expression reflects dorsal anterior cingulate cortex structure and function in the human brain.Journal: Cell reportsIn common: Harmony, SingleCellExperiment, edgeR, 12 other tools, histology / microscopy, genetics / omics, cellular / molecular, 3 references
- [8] doi:10.1038/s41586-026-10214-2 [code]
- Multidimensional profiling of heterogeneity in supratentorial ependymomas.Journal: NatureIn common: Harmony, SingleCellExperiment, edgeR, 14 other tools, genetics / omics
- [9] doi:10.1126/sciadv.aeg3223 [code]
- The extreme diversity of retinal amacrine cells has deep evolutionary roots.Journal: Science advancesIn common: WGCNA, XGBoost, rstatix, 13 other tools, genetics / omics, cellular / molecular, 1 reference
- [10] 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, edgeR, anndata, 11 other tools, histology / microscopy, genetics / omics, cellular / molecular, 2 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:199a8af26951e733…
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.
