OSCR

Single-nucleus epigenomic dysregulation unmasks genetic risk-associated neurodegenerative glia states.

Code ↔ Paper

28 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

23 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 28 matches · 12 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
  1. [1] § Methods › cisTopic modeling of variant-linked CRE modules ↔ code/90_topic_modeling_variant_linked_CREs_microglia/93.run_cisTopic.R, the whole file · a weak match · score 0.82 · cisTopic, frVar, eQTL, variant linked, binarized, derivatives · block oscr:b:FGGYJCDT1R7RM-V · Report a mismatch
  2. [2] § Methods › snATAC-seq data processing ↔ code/20_dar_dgs/24.DifferentialGeneScores.R, lines 183 to 238 · score 0.82 · mid insula, getMarkerFeatures, PreCG, TSS enrichment, Log2FC, gene scores · block oscr:b:SB3T61BJ97993-W · Report a mismatch
  3. [3] § Methods › TF enrichment ↔ code/90_topic_modeling_variant_linked_CREs_microglia/94.topics_plot_TF_enrichR.R, lines 198 to 278 · score 0.80 · runAme, Homo sapiens, motif database, JASPAR, redundant, MEME · block oscr:b:HM4T883YJ7345-2 · Report a mismatch
  4. [4] § Methods › MPRA and single-nucleus eQTL enrichment analysis ↔ code/90_topic_modeling_variant_linked_CREs_microglia/92.extract_CREset_w_SNPs.R, lines 1 to 72 · score 0.78 · 2step fdr, eGene, MPRA variants, eQTL, Yes, matched · block oscr:b:EEJJSQ7AHCY3D-L · Report a mismatch
  5. [5] § Methods › Dynamic CREs associated with GWAS variants ↔ code/30_dynamicpeaks/32.dynamic_peaks_w_PSPGWASsnps_3types.R, lines 1 to 43 · score 0.77 · linkage disequilibrium, dynamic CREs associated, GWAS SNP, kb, LD, Genes · block oscr:b:SZZE9MR5ZEBMX-M · Report a mismatch
  6. [6] § Results › Enrichment of MPRA-validated functional variants within dynamic peaks ↔ code/90_topic_modeling_variant_linked_CREs_microglia/94.topics_plot_TF_enrichR.R, lines 338 to 397 · score 0.76 · MEF2A, metabolic regulation, TFs enriched, SPIC, TFE3, homeostasis · block oscr:b:C0JR9GJS6AQD6-S · Report a mismatch
  7. [7] § Methods › cisTopic modeling of variant-linked CRE modules ↔ code/90_topic_modeling_variant_linked_CREs_microglia/96.topics_refine_by_frVar.R, the whole file · a weak match · score 0.75 · cisTopic, frVar, eQTL, variant linked, ArchR, motif · block oscr:b:4DK909ZT4VXE1-8 · Report a mismatch
  8. [8] § Results › Convergent gene regulatory modules regulated by MPRA frVar and eQTLs ↔ code/90_topic_modeling_variant_linked_CREs_microglia/94.topics_plot_TF_enrichR.R, lines 338 to 397 · score 0.75 · MEF2D, MEF2C, Topic modeling, RHOXF2, JUNB, SPI1 · block oscr:b:C0JR9GJS6AQD6-S · Report a mismatch
  9. [9] § Methods › Detection of the CRE module linked with frVars or eQTLs ↔ code/50_MPRA_eQTL/55.CREs_w_frVar_Module-subC.R, lines 1 to 40 · score 0.74 · depth normalized, quantile normalized, chromatin accessibility, ArchR, pseudobulked, modules · block oscr:b:BRW7N2J8C4J50-M · Report a mismatch
  10. [10] § Methods › Subcluster identification ↔ code/10_regulatory_element/11.subC_cA.R, the whole file · a weak match · score 0.72 · ast.C6, mg.C10, mg.C15, mg c8, resolutions, clustering · block oscr:b:JYVNFMJRK24J3-R · Report a mismatch
  11. [11] § Methods › Subcluster identification ↔ code/10_regulatory_element/12.subC_peak2gene.R, the whole file · a weak match · score 0.72 · ast.C6, mg.C10, mg.C15, mg c8, resolutions, clustering · block oscr:b:XEYSX4XGPYHD7-K · Report a mismatch
  12. [12] § Results › Disease dynamic peaks improve the explanation of disease genetic variants ↔ code/50_MPRA_eQTL/55.CREs_w_frVar_Module-subC.R, lines 1 to 40 · score 0.72 · depth normalization, quantile normalized, defining module, Peak accessibility, pseudobulked, meta · block oscr:b:BRW7N2J8C4J50-M · Report a mismatch
  13. [13] § Methods › Subcluster annotation ↔ code/30_dynamicpeaks/31.dynamic_peaks_disease.R, the whole file · a weak match · score 0.68 · neu.C6, neu.C7, neu.C8, DNA, odc, OPC · block oscr:b:HA5VQNW51C7Q5-D · Report a mismatch
  14. [14] § Methods › Subcluster identification ↔ code/20_dar_dgs/24.DifferentialGeneScores.R, lines 183 to 238 · score 0.66 · getMarkerFeatures, TSS enrichment, Log2FC, gene scores, FDR, clusters · block oscr:b:SB3T61BJ97993-W · Report a mismatch
  15. [15] § Methods › Cell-cell interactions analysis ↔ code/80_cellphoneDB/81.DEG_seurat.R, lines 103 to 150 · score 0.66 · FindMarkers, CellPhoneDB, Seurat, DEG, downsampled, Log2FC · block oscr:b:P0AH34J4EVXZT-N · Report a mismatch
  16. [16] § Methods › Subcluster annotation ↔ code/20_dar_dgs/24.DifferentialGeneScores.R, lines 1 to 81 · score 0.65 · neu.C6, neu.C7, neu.C8, odc, OPC, neurons · block oscr:b:KVT6QZEX0043T-S · Report a mismatch
  17. [17] § Methods › Identification of differentially accessible regions ↔ code/00_archrproject/03.umap_callpeak.R, the whole file · a weak match · score 0.64 · addGroupCoverages, addReproduciblePeakSet, MACS2, iterative, cells · block oscr:b:7TF3GCMX3A5Y1-5 · Report a mismatch
  18. [18] § Results › Convergent gene regulatory modules regulated by MPRA frVar and eQTLs ↔ code/90_topic_modeling_variant_linked_CREs_microglia/96.topics_refine_by_frVar.R, the whole file · a weak match · score 0.61 · MEF2C, frVar, Topic modeling, JUNB, motifs, sn · block oscr:b:4DK909ZT4VXE1-8 · Report a mismatch
  19. [19] § Methods › Prediction of TF binding sites in subcluster regulatory elements (in ast.C1 and mg.C4) ↔ code/60_TFBS_TOBIAS/05.TOBIAS_footprint.sh, the whole file · a weak match · score 0.60 · FootprintScores, TOBIAS, Tn5, ATAC, ast, mg · block oscr:b:85MSJQ3Q80QCF-D · Report a mismatch
  20. [20] § Results › Genetic heritability enriched in disorder-divergent cell states in PSP and PiD ↔ code/60_TFBS_TOBIAS/00.get_subc_barcodes.R, the whole file · a weak match · score 0.59 · neu.C9, neu.C8, ast.C1, mg c4, sub, neuron · block oscr:b:6R7SXKDRCXAVT-R · Report a mismatch
  21. [21] § Methods › TF enrichment ↔ code/50_MPRA_eQTL/04.CREs_TFBS_FIMO.R, the whole file · a weak match · score 0.59 · Homo sapiens, motif database, MEME, TFs, peaks · block oscr:b:52PW28K1JXSV0-H · Report a mismatch
  22. [22] § Results › Convergent gene regulatory modules regulated by MPRA frVar and eQTLs ↔ code/90_topic_modeling_variant_linked_CREs_microglia/95.sum_topicst_snps-ADgwas.R, lines 112 to 167 · score 0.59 · AD GWAS, eQTL, functional variants, smaller, MPRA, microglial · block oscr:b:G9DZWXPTEH1QG-N · Report a mismatch
  23. [23] § Methods › Prediction of TF binding sites in subcluster regulatory elements (in ast.C1 and mg.C4) ↔ code/60_TFBS_TOBIAS/06.TOBIAS_BINDetect.sh, the whole file · a weak match · score 0.58 · BINDetect, TOBIAS, FootprintScores, Tn5, motif, ATAC · block oscr:b:JRV52JQ506F4R-C · Report a mismatch
  24. [24] § Results › Disease dynamic peaks improve the explanation of disease genetic variants ↔ code/90_topic_modeling_variant_linked_CREs_microglia/95.sum_topicst_snps-ADgwas.R, lines 41 to 110 · score 0.58 · odds ratio, MEF2C, frVar, log10, sn, GWAS · block oscr:b:F7AHYQAG431K7-Q · Report a mismatch
  25. [25] § Results › Cell type-specific CREs define cell type identity ↔ code/10_regulatory_element/16.ValidateCRE.R, lines 312 to 378 · score 0.55 · EnhBiv, EnhWk, ENCODE, CREs, brain, overlapped · block oscr:b:HHHR2JG3FZTQN-G · Report a mismatch
  26. [26] § Methods › CRE identification and validation ↔ code/10_regulatory_element/11.subC_cA.R, the whole file · a weak match · score 0.54 · addCoAccessibility, regulatory elements, Genomes, CREs, peak, cell · block oscr:b:JYVNFMJRK24J3-R · Report a mismatch
  27. [27] § Methods › Analysis of single-nucleus RNA-seq-derived subclusters ↔ code/10_regulatory_element/15.classify.PEG.R, lines 185 to 265 · score 0.52 · snRNA, Seurat, pre, sum, insula, seq · block oscr:b:4A025S146B9CZ-W · Report a mismatch
  28. [28] § Methods › Identification of regulatory TFs and their target genes ↔ code/20_dar_dgs/24.DifferentialGeneScores.R, lines 83 to 129 · score 0.52 · gene score matrix, getMarkerFeatures, Wilcoxon, FDR, PSP · block oscr:b:WHQ9QJ4CEK1AE-A · 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 · 287 lines · 10 KB · MIT · 4 matches

  1. library(rhdf5)
  2. library(data.table)
  3. library(dplyr)
  4. library(ArchR)
  5. library(parallel)
  6. library(preprocessCore)
  7. addArchRThreads(threads = 20)
  8. addArchRGenome("hg38")
  9. library(BSgenome.Hsapiens.UCSC.hg38)
  10. projdir <- "projrmSubset_subPeak"
  11. projmeta <- readRDS("projATAC_50subC_meta_584904.rds")
  12. finalSubCs <- sort(unique(projmeta$subClusters))
  13. proj <- loadArchRProject(projdir)
  14. dropSubCs <- c("undefined","ast.C6","mg.C8","mg.C10","mg.C15",
  15. "mg.C1", "mg.C5", "neu.C3", "neu.C4", "odc.C2", "neu.C2", "mg.C2")
  16. proj$subClusters[proj$subClusters %like% "neuron"] <- gsub("neuron","neu",
  17. proj$subClusters[proj$subClusters %like% "neuron"])
  18. projclean <- proj[!proj$subClusters %in% dropSubCs,]
  19. projclean$new_majorC <- projclean$subClusters
  20. projclean$new_majorC[projclean$new_majorC %in%
  21. c("neu.C6","neu.C7","neu.C8","neu.C9")] <- "IN"
  22. projclean$new_majorC[projclean$new_majorC %like% "neu"] <- "EX"
  23. projclean$new_majorC <- gsub("\\..*","", projclean$new_majorC)
  24. rm(proj)
  25. majorCs <- sort(unique(projclean$new_majorC))
  26. majorCs
  27. #subC :
  28. #"DEGtest_atacScore_subCs.rds"
  29. #"df_dxDEG_fdr0.1_subCs.rds
  30. #"df_dxDEG_Pval0.1_subCs.rds"
  31. if(T){
  32. #subCs
  33. DEGtest <- list()
  34. for (ct in c("ast","mg", "EX","IN","odc","opc")){
  35. subCs <- unique(projclean[projclean$new_majorC %like% ct,]$subClusters) %>% sort()
  36. for (subC in subCs){
  37. projsubC <- projclean[projclean$subClusters %in% subC,]
  38. for (dx in c("AD","bvFTD","PSP_S")){
  39. dmrTest <- getMarkerFeatures(
  40. ArchRProj = projsubC,
  41. useMatrix = "GeneScoreMatrix",
  42. groupBy = "Clinical.Dx",
  43. testMethod = "wilcoxon",
  44. bias = c("TSSEnrichment", "log10(nFrags)"),
  45. useGroups = dx,
  46. bgdGroups = "Control"
  47. )
  48. groupName <- paste(subC, dx, sep = "|")
  49. DEGtest[[groupName]] <- dmrTest
  50. print(groupName)
  51. }
  52. }
  53. }
  54. # saveRDS(DEGtest, file.path(projdir, paste("DEGtest_atacScore_subCs.rds")))
  55. print("saved")
  56. DEGtest <- readRDS(file.path(projdir, paste("DEGtest_atacScore_subCs.rds")) )
  57. df_differentialGene <- NULL # based on gene scores
  58. for (groupName in names(DEGtest)){
  59. dag <- DEGtest[[groupName]]
  60. # sigDAG <- getMarkers(dag, cutOff = "FDR <= 0.1", returnGR = F)
  61. sigDAG <- getMarkers(dag, cutOff = "Pval <= 0.1", returnGR = F)
  62. dx <- names(sigDAG)
  63. tmpdt <- sigDAG[[dx]]
  64. dt_group <- tmpdt[,c("name","Log2FC","FDR","MeanDiff")]
  65. dt_group <- cbind(dt_group, groupName=rep(groupName, dim(dt_group)[1]))
  66. df_differentialGene <- rbind(df_differentialGene, dt_group )
  67. }
  68. dim(df_differentialGene)
  69. df_differentialGene$subC <- gsub("\\|.*","",df_differentialGene$groupName)
  70. df_differentialGene$dx <- gsub(".*\\|","",df_differentialGene$groupName)
  71. # saveRDS(df_differentialGene, file.path(projdir, paste("df_dxDEG_fdr0.1_subCs.rds")))
  72. saveRDS(df_differentialGene, file.path(projdir, paste("df_dxDEG_Pval0.1_subCs.rds")))
  73. head(df_differentialGene)
  74. }
  75. #majorC:
  76. #"DEGtest_atacScore_majorCs.rds"
  77. #"df_dxDEG_fdr0.1_majorCs.rds"
  78. #"df_dxDEG_Pval0.1_majorCs.rds"
  79. if(T){
  80. DEGtest <- list()
  81. for (ct in majorCs){
  82. projct <- projclean[projclean$new_majorC %in% ct,]
  83. for (dx in c("AD","bvFTD","PSP_S")){
  84. dmrTest <- getMarkerFeatures(
  85. ArchRProj = projct,
  86. useMatrix = "GeneScoreMatrix",
  87. groupBy = "Clinical.Dx",
  88. testMethod = "wilcoxon",
  89. bias = c("TSSEnrichment", "log10(nFrags)"),
  90. useGroups = dx,
  91. bgdGroups = "Control"
  92. )
  93. groupName <- paste(ct, dx, sep = "|")
  94. DEGtest[[groupName]] <- dmrTest
  95. print(groupName)
  96. }
  97. }
  98. #saveRDS(DEGtest, file.path(projdir, paste("DEGtest_atacScore_majorCs.rds")))
  99. DEGtest <- readRDS(file.path(projdir, paste("DEGtest_atacScore_majorCs.rds")) )
  100. df_differentialGene <- NULL # based on gene scores
  101. for (groupName in names(DEGtest)){
  102. dag <- DEGtest[[groupName]]
  103. sigDAG <- getMarkers(dag, cutOff = "FDR <= 0.1", returnGR = F)
  104. # sigDAG <- getMarkers(dag, cutOff = "Pval <= 0.1", returnGR = F)
  105. dx <- names(sigDAG)
  106. tmpdt <- sigDAG[[dx]]
  107. # dt_group <- tmpdt[,c("name","Log2FC","FDR")]
  108. dt_group <- tmpdt[,c("name","Log2FC","FDR","MeanDiff")]
  109. dt_group <- cbind(dt_group, groupName=rep(groupName, dim(dt_group)[1]))
  110. df_differentialGene <- rbind(df_differentialGene, dt_group )
  111. }
  112. dim(df_differentialGene)
  113. df_differentialGene$subC <- gsub("\\|.*","",df_differentialGene$groupName)
  114. df_differentialGene$dx <- gsub(".*\\|","",df_differentialGene$groupName)
  115. saveRDS(df_differentialGene, file.path(projdir, paste("df_dxDEG_fdr0.1_majorCs.rds")))
  116. # saveRDS(df_differentialGene, file.path(projdir, paste("df_dxDEG_Pval0.1_majorCs.rds")))
  117. head(df_differentialGene)
  118. }
  119. # by regions - majorC:
  120. #"DEGtest_atacScore_majorCs_region.rds"
  121. #"df_dxDEG_fdr0.1_majorCs_region.rds"
  122. #"df_dxDEG_Pval0.1_majorCs_region.rds"
  123. if(T){
  124. DEGtest <- list()
  125. for (region in c("PreCG","midInsula")){
  126. projre <- projclean[projclean$region %in% region,]
  127. for (ct in majorCs){
  128. projct <- projre[projre$new_majorC %in% ct,]
  129. for (dx in c("AD","bvFTD","PSP_S")){
  130. dmrTest <- getMarkerFeatures(
  131. ArchRProj = projct,
  132. useMatrix = "GeneScoreMatrix",
  133. groupBy = "Clinical.Dx",
  134. testMethod = "wilcoxon",
  135. bias = c("TSSEnrichment", "log10(nFrags)"),
  136. useGroups = dx,
  137. bgdGroups = "Control"
  138. )
  139. groupName <- paste(region, ct, dx, sep = "|")
  140. DEGtest[[groupName]] <- dmrTest
  141. print(groupName)
  142. }
  143. }
  144. }
  145. saveRDS(DEGtest, file.path(projdir, paste("DEGtest_atacScore_majorCs_region.rds")))
  146. DEGtest <- readRDS(file.path(projdir, paste("DEGtest_atacScore_majorCs.rds")) )
  147. df_differentialGene <- NULL # based on gene scores
  148. for (groupName in names(DEGtest)){
  149. dag <- DEGtest[[groupName]]
  150. # sigDAG <- getMarkers(dag, cutOff = "FDR <= 0.1", returnGR = F)
  151. sigDAG <- getMarkers(dag, cutOff = "Pval <= 0.1", returnGR = F)
  152. dx <- names(sigDAG)
  153. tmpdt <- sigDAG[[dx]]
  154. dt_group <- tmpdt[,c("name","Log2FC","FDR","MeanDiff")]
  155. dt_group <- cbind(dt_group, groupName=rep(groupName, dim(dt_group)[1]))
  156. df_differentialGene <- rbind(df_differentialGene, dt_group )
  157. }
  158. dim(df_differentialGene)
  159. df_differentialGene$region <- gsub("\\|.*","",df_differentialGene$groupName)
  160. df_differentialGene$dx <- gsub(".*\\|","",df_differentialGene$groupName)
  161. df_differentialGene$ct <- gsub(".*\\|(.*?)\\|.*", "\\1",df_differentialGene$groupName)
  162. #saveRDS(df_differentialGene, file.path(projdir, paste("df_dxDEG_fdr0.1_majorCs_region.rds")))
  163. saveRDS(df_differentialGene, file.path(projdir, paste("df_dxDEG_Pval0.1_majorCs_region.rds")))
  164. head(df_differentialGene)
  165. }
  166. # by regions - subCs:
  167. #"DEGtest_atacScore_subCs_region.rds"
  168. #"df_dxDEG_fdr0.1_subCs_region.rds"
  169. # df_dxDEG_Pval0.1_subCs_region.rds
  170. if(T){
  171. #subCs
  172. DEGtest <- list()
  173. for (region in c("PreCG","midInsula")){
  174. projre <- projclean[projclean$region %in% region,]
  175. for (ct in majorCs){
  176. projct <- projre[projre$new_majorC %in% ct,]
  177. subCs <- unique(projct[projct$new_majorC %like% ct,]$subClusters) %>% sort()
  178. for (subC in subCs){
  179. projsubC <- projct[projct$subClusters %in% subC,]
  180. for (dx in c("AD","bvFTD","PSP_S")){
  181. dmrTest <- getMarkerFeatures(
  182. ArchRProj = projsubC,
  183. useMatrix = "GeneScoreMatrix",
  184. groupBy = "Clinical.Dx",
  185. testMethod = "wilcoxon",
  186. bias = c("TSSEnrichment", "log10(nFrags)"),
  187. useGroups = dx,
  188. bgdGroups = "Control"
  189. )
  190. groupName <- paste(region, subC, dx, sep = "|")
  191. DEGtest[[groupName]] <- dmrTest
  192. print(groupName)
  193. }
  194. }
  195. }
  196. }
  197. saveRDS(DEGtest, file.path(projdir, paste("DEGtest_atacScore_subCs_region.rds")))
  198. print("saved")
  199. DEGtest <- readRDS(file.path(projdir, paste("DEGtest_atacScore_subCs_region.rds")) )
  200. df_differentialGene <- NULL # based on gene scores
  201. for (groupName in names(DEGtest)){
  202. dag <- DEGtest[[groupName]]
  203. # sigDAG <- getMarkers(dag, cutOff = "FDR <= 0.1", returnGR = F)
  204. sigDAG <- getMarkers(dag, cutOff = "Pval <= 0.1", returnGR = F)
  205. dx <- names(sigDAG)
  206. tmpdt <- sigDAG[[dx]]
  207. dt_group <- tmpdt[,c("name","Log2FC","FDR","MeanDiff")]
  208. dt_group <- cbind(dt_group, groupName=rep(groupName, dim(dt_group)[1]))
  209. df_differentialGene <- rbind(df_differentialGene, dt_group )
  210. }
  211. dim(df_differentialGene)
  212. df_differentialGene$subC <- gsub("\\|.*","",df_differentialGene$groupName)
  213. df_differentialGene$dx <- gsub(".*\\|","",df_differentialGene$groupName)
  214. # saveRDS(df_differentialGene, file.path(projdir, paste("df_dxDEG_fdr0.1_subCs_region.rds")))
  215. saveRDS(df_differentialGene, file.path(projdir, paste("df_dxDEG_Pval0.1_subCs_region.rds")))
  216. head(df_differentialGene)
  217. }
  218. #output csv
  219. #Differential gene scores
  220. majorC_differentialGene <- readRDS( file.path(projdir, paste("df_dxDEG_fdr0.1_majorCs.rds") ) )
  221. majorC_dGS_region <- readRDS( file.path(projdir, paste("df_dxDEG_fdr0.1_majorCs_region.rds") ) )
  222. cols <- c("name","Log2FC","FDR","groupName","region","ct","dx")
  223. colnames(majorC_differentialGene)[colnames(majorC_differentialGene) %in% "subC"] <- "ct"
  224. majorC_differentialGene$region <- rep("none",dim(majorC_differentialGene)[1])
  225. majorC_DGS <- rbind(majorC_differentialGene[,cols], majorC_dGS_region[,cols])
  226. tmpDT <- as.data.frame(majorC_DGS)
  227. wide_majorC_DGS <- data.table::dcast(setDT(tmpDT),
  228. name + ct + dx ~ region,
  229. value.var=c('Log2FC','FDR'))
  230. write.csv(wide_majorC_DGS, file.path(projdir, "dxDGS_majorCs_fdr0.1.csv"))
  231. #subC
  232. subC_differentialGene <- readRDS( file.path(projdir, paste("df_dxDEG_fdr0.1_subCs.rds") ) )
  233. subC_dGS_region <- readRDS( file.path(projdir, paste("df_dxDEG_fdr0.1_subCs_region.rds") ) )
  234. cols <- c("name","Log2FC","FDR","groupName","region","subC","dx")
  235. subC_differentialGene$region <- rep("none",dim(subC_differentialGene)[1])
  236. subC_dGS_region$region <- subC_dGS_region$subC
  237. subC_dGS_region$subC <- gsub(".*\\|(.*?)\\|.*","\\1", subC_dGS_region$groupName)
  238. head(subC_differentialGene)
  239. head(subC_dGS_region)
  240. cols <- colnames(subC_differentialGene)
  241. subC_DGS <- rbind(subC_differentialGene[,cols], subC_dGS_region[,cols])
  242. tmpDT <- as.data.frame(subC_DGS)
  243. wide_subC_DGS <- data.table::dcast(setDT(tmpDT),
  244. name + subC + dx ~ region,
  245. value.var=c('Log2FC','FDR'))
  246. write.csv(wide_subC_DGS, file.path(projdir, "dxDGS_subCs_fdr0.1.csv"))

24.DifferentialGeneScores.R at commit b0c4b07, under MIT · at the source

Overview

Authors: Xia Han1, Gregory M. Rosenberg1, Vivianne M. Kisling1, Tao Zhang1, Chia-Yi Lee2, Ashvin Ravi3,4, Mikhail Melnik1, Tina Bilousova1,5, Salvatore Spina6, Alissa L. Nana6, Lea T. Grinberg6,7, William W. Seeley6,7, Karen H. Gylys5, Laura M. Huckins8, Towfique Raj3,4,9,10, Kristen J. Brennand2,3,4,8, Jessica E. Rexach1,11
  1. Program in Neurogenetics, Department of Neurology, David Geffen School of Medicine, University of California, Los Angeles,Los Angeles, CA USA
  2. Department of Genetics, Wu Tsai Institute, Yale University School of Medicine,New Haven, CT USA
  3. Department of Genetics and Genomics, Icahn School of Medicine at Mount Sinai,New York, NY USA
  4. Nash Family Department of Neuroscience, Friedman Brain Institute, Icahn School of Medicine at Mount Sinai,New York, NY USA
  5. Department of Physiological Nursing, School of Nursing, University of California, San Francisco,San Francisco, CA USA
  6. Department of Neurology, Fein Memory and Aging Center, University of California, San Francisco,San Francisco, CA USA
  7. Department of Pathology, University of California, San Francisco,San Francisco, CA USA
  8. Department of Psychiatry, Division of Molecular Psychiatry, Yale University School of Medicine,New Haven, CT USA
  9. Ronald M. Loeb Center for Alzheimer’s Disease, Icahn School of Medicine at Mount Sinai,New York, NY USA
  10. Friedman Brain Institute, Icahn School of Medicine at Mount Sinai,New York, NY USA
  11. Department of Human Genetics, David Geffen School of Medicine, University of California, Los Angeles,Los Angeles, CA USA
Journal: Nature communications, volume 17, issue 1, article 6439
Dates: received 6 June 2025; accepted 23 April 2026; published online 14 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41467-026-73007-1 · PMID 42135303 · PMCID PMC13376791 · OpenAlex W4411072116
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: genetics / omics (modality), human (organism), other condition (population), Alzheimer's / dementia (population), cellular / molecular (subfield)
Methods: Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, Preprocessing
Keywords: Epigenomics, Gene regulation, Epigenetics, Dementia
MeSH: Cell Nucleus*, Epigenesis, Genetic*, Neurodegenerative Diseases*, Neuroglia*, Alzheimer Disease, Chromatin, Epigenomics, Gene Expression Regulation, Genetic Predisposition to Disease, Humans, Microglia, Neurons, tau Proteins (* major topic)
Topic: Neuroinflammation and Neurodegeneration Mechanisms (Neurology, Neuroscience), according to OpenAlex
Funding: national institute on aging (R01 AG075802, R01 RF1NS128800, R21AG082014, RF1AG065926, R01AG068030, R01AG050986); Rainwater Charitable Foundation, Ono Pharmaceuticals; U.S. Department of Health & Human Services | NIH | National Institute of Environmental Health Sciences (NIEHS) (R01ES033630)
Citations: cited by 2 papers (Europe PMC); 104 references in the paper
Research resources: RRID:SCR_007370

Abstract

The accumulation of abnormal tau protein selectively affects distinct brain regions and specific populations of neurons and glial cells in tau-related dementias, such as Alzheimer’s disease, Pick’s disease and progressive supranuclear palsy. Although the three disorders share the feature of tau protein pathology, the regulatory circuitry of non-coding genetic variants underlying risk-associated cell states remains to be elucidated. Using paired single-nucleus profiling of chromatin accessibility and gene expression across the three conditions, we define cell-type-specific cis-regulatory elements across six cell types and fifty subclasses. Comparing disease-dynamic cis-regulatory elements across three disorders, we find that glia overrepresent disorder-specific gene regulation related to dynamic cellular response to stress. We show that human genetic variants affecting microglial gene regulation converge into distinct and co-regulated modules affecting specific cellular functions. Moreover, polygenic risk modifiers are maximally co-accessible in disorder-specific glial states, modifying distinct pathways such as sphingomyelin regulation in Pick’s disease. Our study informs glial regulators linked to polygenic modifiers of primary tauopathy, establishing modifiable pathways governing resilience.

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

Repositories

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

rexachgroup/pci_snATAC

License: MIT
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: b0c4b07c14516724845f30e16a1983d55ff5c489, 8 May 2026
Languages: R (39), Shell (13), Python (5)
Size: 59 files, 57 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (20 files), ComplexHeatmap (17 files), data.table (17 files), ggplot2 (14 files), ggpubr (6 files), pandas (5 files), reshape2 (4 files), patchwork (3 files), SAMtools (3 files), anndata (2 files), Matplotlib (2 files), NumPy (2 files), Scanpy (2 files), xarray (2 files), circlize (1 file), Seurat (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
59 files

Zenodo 18904265

License: MIT
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (20 files), ComplexHeatmap (17 files), data.table (17 files), ggplot2 (14 files), ggpubr (6 files), pandas (5 files), reshape2 (4 files), patchwork (3 files), SAMtools (3 files), anndata (2 files), Matplotlib (2 files), NumPy (2 files), Scanpy (2 files), xarray (2 files), circlize (1 file), Seurat (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
59 files
At the source:

Code availability

All original code generated in this study is available on GitHub [https://github.com/rexachgroup/pci_snATAC] and archived at Zenodo [10.5281/zenodo.18904265]103.

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

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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 114 scripts, each with its path and the digest of its content;
  • 28 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

Datasets cited

Data availability

Single-nucleus RNA-seq and ATAC-seq data used in this study were previously generated and are available through Synapse under accession syn52074156 (https://www.synapse.org/Synapse:syn52074156/files/). Single-nucleus CUT&Tag data were previously generated and deposited in Synapse under accession syn53191971 (https://www.synapse.org/Synapse:syn53191971/files/). The publicly available datasets we incorporated in this study include single-cell ATAC-seq data of SEA-AD54 MTG (https://sea-ad-single-cell-profiling.s3.amazonaws.com/index.html#MTG/ATACseq/); and cell-type-specific enhancer peak sets from single-cell studies including syn26670419 (https://www.synapse.org/Synapse:syn26670419)17 (under controlled access, request for access can be made on the Synapse portal), ATAC-seq, ChIP-seq and PLAC-seq datasets for each brain cell type available on https://genome.ucsc.edu/s/nottalexi/glassLab_BrainCellTypes_hg1932, and single-cell chromatin accessibility data from the human brain available on https://catlas.org/catlas/40. Single-nucleus eQTL datasets from the human brain were obtained from two previously published studies: available through Synapse under accession code syn52335732 (10.7303/syn52335732)59 and on Zenodo (10.5281/zenodo.5543734)60. GWAS summary statistics were obtained for AD from http://ftp.ebi.ac.uk/pub/databases/gwas/summary_statistics/GCST90027001-GCST90028000/GCST90027158/51, for PSP from https://dss.niagads.org/open-access-data-portal/#NG0016953 and https://dss.niagads.org/datasets/ng00045/74 and for FTD on https://rdr.ucl.ac.uk/articles/dataset/IFGC_Summary-statistics_Data-sharing/1304216652.

Human reference cis-regulatory elements were obtained from the SCREEN database (https://screen.wenglab.org/) and peak sets from the ENCODE portal (https://www.encodeproject.org) with the following identifiers: ENCFF198KYT (https://www.encodeproject.org/files/ENCFF198KYT/), ENCFF791URB (https://www.encodeproject.org/files/ENCFF791URB/), ENCFF395QLP (https://www.encodeproject.org/files/ENCFF395QLP/), ENCFF815WRM (https://www.encodeproject.org/files/ENCFF815WRM/), ENCFF024XNY (https://www.encodeproject.org/files/ENCFF024XNY/), ENCFF124JXP (https://www.encodeproject.org/files/ENCFF124JXP/), ENCFF155FWO (https://www.encodeproject.org/files/ENCFF155FWO/), ENCFF243CHP (https://www.encodeproject.org/files/ENCFF243CHP/), ENCFF283LVU (https://www.encodeproject.org/files/ENCFF283LVU/), ENCFF307QYO (https://www.encodeproject.org/files/ENCFF307QYO/), ENCFF448UVY (https://www.encodeproject.org/files/ENCFF448UVY/), ENCFF509IXE (https://www.encodeproject.org/files/ENCFF509IXE/), ENCFF528AIU (https://www.encodeproject.org/files/ENCFF528AIU/), ENCFF586OIU (https://www.encodeproject.org/files/ENCFF586OIU/), ENCFF595JKW (https://www.encodeproject.org/files/ENCFF595JKW/), ENCFF693JGW (https://www.encodeproject.org/files/ENCFF693JGW/), ENCFF730HDE (https://www.encodeproject.org/files/ENCFF730HDE/), ENCFF756JDB (https://www.encodeproject.org/files/ENCFF756JDB/), ENCFF788DLD (https://www.encodeproject.org/files/ENCFF788DLD/), ENCFF810ZTP (https://www.encodeproject.org/files/ENCFF810ZTP/), ENCFF812QHM (https://www.encodeproject.org/files/ENCFF812QHM/), ENCFF860TAY (https://www.encodeproject.org/files/ENCFF860TAY/), ENCFF861YME (https://www.encodeproject.org/files/ENCFF861YME/), ENCFF878EFJ (https://www.encodeproject.org/files/ENCFF878EFJ/), and ENCFF983DQA (https://www.encodeproject.org/files/ENCFF983DQA/). Source data are provided with this paper.

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

Versions

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

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 17 authors, 4 keywords, 13 MeSH terms, 3 funders, 103 references, 1 RRID.

Cite

This paper

Han, X., Rosenberg, G. M., Kisling, V. M., Zhang, T., Lee, C.-Y., Ravi, A., Melnik, M., Bilousova, T., Spina, S., Nana, A. L., Grinberg, L. T., Seeley, W. W., Gylys, K. H., Huckins, L. M., Raj, T., Brennand, K. J., & Rexach, J. E. (2026). Single-nucleus epigenomic dysregulation unmasks genetic risk-associated neurodegenerative glia states. Nature communications, 17(1), 6439. https://doi.org/10.1038/s41467-026-73007-1

BibTeX

@article{han2026single,
author = {Han, Xia and Rosenberg, Gregory M. and Kisling, Vivianne M. and Zhang, Tao and Lee, Chia-Yi and Ravi, Ashvin and Melnik, Mikhail and Bilousova, Tina and Spina, Salvatore and Nana, Alissa L. and Grinberg, Lea T. and Seeley, William W. and Gylys, Karen H. and Huckins, Laura M. and Raj, Towfique and Brennand, Kristen J. and Rexach, Jessica E.},
title = {{Single-nucleus epigenomic dysregulation unmasks genetic risk-associated neurodegenerative glia states}},
journal = {Nature communications},
year = {2026},
month = may,
volume = {17},
number = {1},
pages = {6439},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-73007-1},
url = {https://doi.org/10.1038/s41467-026-73007-1},
pmid = {42135303},
pmcid = {PMC13376791}
}

RIS

TY - JOUR
AU - Han, Xia
AU - Rosenberg, Gregory M.
AU - Kisling, Vivianne M.
AU - Zhang, Tao
AU - Lee, Chia-Yi
AU - Ravi, Ashvin
AU - Melnik, Mikhail
AU - Bilousova, Tina
AU - Spina, Salvatore
AU - Nana, Alissa L.
AU - Grinberg, Lea T.
AU - Seeley, William W.
AU - Gylys, Karen H.
AU - Huckins, Laura M.
AU - Raj, Towfique
AU - Brennand, Kristen J.
AU - Rexach, Jessica E.
TI - Single-nucleus epigenomic dysregulation unmasks genetic risk-associated neurodegenerative glia states
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/05/14
VL - 17
IS - 1
SP - 6439
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-73007-1
UR - https://doi.org/10.1038/s41467-026-73007-1
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-73007-1",
"type": "article-journal",
"title": "Single-nucleus epigenomic dysregulation unmasks genetic risk-associated neurodegenerative glia states",
"container-title": "Nature communications",
"author": [
{
"family": "Han",
"given": "Xia"
},
{
"family": "Rosenberg",
"given": "Gregory M."
},
{
"family": "Kisling",
"given": "Vivianne M."
},
{
"family": "Zhang",
"given": "Tao"
},
{
"family": "Lee",
"given": "Chia-Yi"
},
{
"family": "Ravi",
"given": "Ashvin"
},
{
"family": "Melnik",
"given": "Mikhail"
},
{
"family": "Bilousova",
"given": "Tina"
},
{
"family": "Spina",
"given": "Salvatore"
},
{
"family": "Nana",
"given": "Alissa L."
},
{
"family": "Grinberg",
"given": "Lea T."
},
{
"family": "Seeley",
"given": "William W."
},
{
"family": "Gylys",
"given": "Karen H."
},
{
"family": "Huckins",
"given": "Laura M."
},
{
"family": "Raj",
"given": "Towfique"
},
{
"family": "Brennand",
"given": "Kristen J."
},
{
"family": "Rexach",
"given": "Jessica E."
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "6439",
"DOI": "10.1038/s41467-026-73007-1",
"PMID": "42135303",
"PMCID": "PMC13376791",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-73007-1",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
14
]
]
}
}

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.1126/sciadv.ads7973 [code]
Single-nucleus multi-omics identifies shared and distinct pathways in Pick's and Alzheimer's disease.
Journal: Science advances
In common: SAMtools, Scanpy, ComplexHeatmap, 9 other tools, Alzheimer's / dementia, genetics / omics, cellular / molecular, 19 references
[2] doi:10.1016/j.cell.2025.06.031 [code]
Single-cell multiregion epigenomic rewiring in Alzheimer's disease progression and cognitive resilience.
Journal: Cell
In common: anndata, Scanpy, ComplexHeatmap, 10 other tools, Alzheimer's / dementia, genetics / omics, cellular / molecular, 19 references
[3] doi:10.1038/s41467-025-59216-0
Deciphering distinct genetic risk factors for FTLD-TDP pathological subtypes via whole-genome sequencing.
Journal: Nature communications
In common: Zenodo 5543734, Alzheimer's / dementia, genetics / omics, 3 references, 4 authors
[4] doi:10.1126/sciadv.adw4917 [code]
Single-nucleus multiomics reveals the disrupted regulatory programs in three brain regions of sporadic early-onset Alzheimer's disease.
Journal: Science advances
In common: circlize, Scanpy, ComplexHeatmap, 7 other tools, Alzheimer's / dementia, genetics / omics, 13 references
[5] doi:10.1038/s41467-024-49790-0 [code]
Single cell transcriptomes and multiscale networks from persons with and without Alzheimer's disease.
Journal: Nature communications
In common: Seurat, patchwork, reshape2, 6 other tools, Alzheimer's / dementia, genetics / omics, cellular / molecular, 15 references
[6] doi:10.14336/ad.2024.0429 [code]
Systematic Analysis of Biological Processes Reveals Gene Co-expression Modules Driving Pathway Dysregulation in Alzheimer's Disease.
Journal: Aging and disease
In common: anndata, circlize, Scanpy, 11 other tools, Alzheimer's / dementia, genetics / omics, cellular / molecular, 9 references
[7] doi:10.1016/j.isci.2026.116412 [code]
KOLF2.1J iTF-Microglia: A standardized platform to study microglial transcriptional regulatory networks in CNS disease.
Journal: iScience
In common: SAMtools, circlize, ComplexHeatmap, 7 other tools, genetics / omics, 13 references
[8] doi:10.1038/s42003-025-08368-2 [code]
Opposing role of phagocytic receptors MERTK and AXL in Progranulin deficient FTD.
Journal: Communications biology
In common: Seurat, reshape2, ggplot2, 1 other tool, Alzheimer's / dementia, cellular / molecular, 1 reference, 4 authors
[9] doi:10.1038/s41586-025-09083-y [code]
Single-cell transcriptomic and chromatin dynamics of the human brain in PTSD.
Journal: Nature
In common: anndata, Scanpy, ComplexHeatmap, 10 other tools, genetics / omics, other condition, cellular / molecular, 5 references, author Kristen J. Brennand
[10] doi:10.1101/gr.280436.125 [code]
Cell type-specific gene regulatory atlas prioritizes drug targets and repurposable medicines in Alzheimer's disease.
Journal: Genome research
In common: circlize, Scanpy, ComplexHeatmap, 7 other tools, Alzheimer's / dementia, genetics / omics, cellular / molecular, 11 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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.1038/s41467-026-73007-1.svg)](https://openscicode.org/badge/doi/10.1038/s41467-026-73007-1)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-73007-1.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41467-026-73007-1
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-73007-1"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-73007-1.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.