OSCR

Astrocyte fatty acid metabolism as a driver of risk for major depressive disorder.

Code ↔ Paper

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

The 8 matches
  1. [1] § Methods › Bulk RNA sequencing quality control and normalisation ↔ GTEx_QC_2.R, lines 1–47 · score 0.99 · amyotrophic lateral sclerosis, positive blood cultures, systemic lupus, unexplained seizures, multiple sclerosis, Parkinson
  2. [2] § Methods › Differential abundance and gene expression testing with miloR ↔ Milo_analysis.R, lines 49–118 · score 0.79 · log fold change, findNhoodGroupMarkers, spatial FDR, log normalised, Milo, clustered
  3. [3] § Methods › Network analysis ↔ Network_analysis.R, lines 19–84 · score 0.76 · Edge thickness, adjacency matrix, correlation matrix, nodes, weight, rows
  4. [4] § Methods › Internal and external validation ↔ CMC_QC.R, lines 1–73 · score 0.72 · PMI_hrs, TMM, genes expressed, CPM, Outliers, connectivity
  5. [5] § Methods › Spatial analysis of module scores ↔ Vizium_analysis.R, lines 1–70 · score 0.68 · SCTransform, AddModuleScore, Br2720, matrix, clusters, genes
  6. [6] § Results › The FADS1positive network can define astrocyte states altered in MDD ↔ Milo_analysis.R, lines 49–118 · score 0.60 · log fold change, logFC, MDD depleted, nhood, slices, Milo
  7. [7] § Results › The FADS1positive network can define astrocyte states altered in MDD ↔ Vizium_analysis.R, lines 73–151 · score 0.55 · excitatory neurons, module scores, endothelial, oligodendrocyte, correlated, cell
  8. [8] § Methods › Sparse partial least squares (sPLS) ↔ FADS1_clustering.R, lines 1–80 · score 0.51 · Brain Frontal Cortex, variable, BA9, FADS1, FDR, network

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 · 202 lines · 6.7 KB · CC-BY-4.0 · 2 matches

  1. library(Seurat)
  2. library(miloR)
  3. library(SingleCellExperiment)
  4. library(scater)
  5. library(scran)
  6. library(dplyr)
  7. library(patchwork)
  8. load("Astro_clusters.RData")
  9. counts <- Astro_sub@assays$RNA
  10. subset_FADS1@assays$RNA <- counts
  11. subset_fad <- subset_FADS1
  12. DefaultAssay(subset_fad) <- 'RNA'
  13. subset_fad <- as.SingleCellExperiment(subset_fad)
  14. reducedDim(subset_fad, "PCA", withDimnames=TRUE) <- subset_FADS1[['pca']]@cell.embeddings
  15. reducedDim(subset_fad, "UMAP", withDimnames=TRUE) <- subset_FADS1[['umap']]@cell.embeddings
  16. subset_fad <- miloR::Milo(subset_fad)
  17. subset_fad <- buildGraph(subset_fad, k = 20, d = 20)
  18. subset_fad <- makeNhoods(subset_fad, prop = 0.2, k = 20, d=20, refined = TRUE)
  19. plotNhoodSizeHist(subset_fad)
  20. subset_fad <- countCells(subset_fad, meta.data = data.frame(colData(subset_fad)), sample="Sample")
  21. astro_design <- data.frame(colData(subset_fad))[,c("Sample", "Age", "Batch", "Condition")]
  22. astro_design$Batch <- as.factor(astro_design$Batch)
  23. astro_design <- distinct(astro_design)
  24. rownames(astro_design) <- astro_design$Sample
  25. subset_fad <- calcNhoodDistance(subset_fad, d=30)
  26. da_results <- testNhoods(subset_fad, design = ~ Batch + Age + Condition, design.df = astro_design)
  27. subset_fad <- buildNhoodGraph(subset_fad)
  28. plotNhoodGraphDA(subset_fad, da_results, layout="UMAP",alpha=0.1)
  29. #-----------------------------------------------
  30. da_results <- annotateNhoods(subset_fad, da_results, coldata_col = "seurat_clusters")
  31. head(da_results)
  32. Bswarm_nagy <- plotDAbeeswarm(da_results, group.by = "seurat_clusters") +
  33. xlab("") +ylab("Log fold change") +
  34. theme(panel.grid = element_blank())
  35. #----------------------------------------------------
  36. #---------------------- DEGs ------------------------
  37. #-----------------------------------------------------
  38. subset_fad <- logNormCounts(subset_fad)
  39. da_results$NhoodGroup <- as.numeric(da_results$SpatialFDR < 0.1 & da_results$logFC < 0)
  40. keep.rows <- rowSums(logcounts(subset_fad)) != 0
  41. subset_fad <- subset_fad[keep.rows, ]
  42. da_nhood_markers <- findNhoodGroupMarkers(subset_fad, da_results, subset.row = rownames(subset_fad))
  43. options(ggrepel.max.overlaps = 'Inf')
  44. top <- da_nhood_markers[da_nhood_markers$logFC_1 > 0,]
  45. top <- slice_min(top, n=10, adj.P.Val_1)
  46. bottom <- da_nhood_markers[da_nhood_markers$logFC_1 < 0,]
  47. bottom <- slice_min(bottom, n=10, adj.P.Val_1)
  48. label_me <- c(top$GeneID, bottom$GeneID)
  49. library(EnhancedVolcano)
  50. keyvals <- ifelse(
  51. da_nhood_markers$logFC_1 < 0 & da_nhood_markers$adj.P.Val_1 < 0.05, 'firebrick',
  52. ifelse(da_nhood_markers$logFC_1 > 0 & da_nhood_markers$adj.P.Val_1 < 0.05, 'forestgreen',
  53. 'black'))
  54. keyvals[is.na(keyvals)] <- 'black'
  55. names(keyvals)[keyvals == 'firebrick'] <- 'high'
  56. names(keyvals)[keyvals == 'black'] <- 'mid'
  57. names(keyvals)[keyvals == 'forestgreen'] <- 'low'
  58. Volcano <- EnhancedVolcano(da_nhood_markers,
  59. lab = da_nhood_markers$GeneID,
  60. x = 'logFC_1',
  61. y = 'adj.P.Val_1',
  62. colAlpha = 1,
  63. title = '',
  64. subtitle = "",
  65. labSize = 4.0,
  66. selectLab = label_me,
  67. drawConnectors = TRUE,
  68. arrowheads = FALSE,
  69. FCcutoff = 0,
  70. colCustom = keyvals,
  71. ylab = bquote(~-log[10]~ '(Adj P-Value)'),
  72. xlab = bquote(~log[2]~ 'fold change'),
  73. cutoffLineType = 'blank',
  74. cutoffLineCol = 'black',
  75. gridlines.major = FALSE,
  76. gridlines.minor = FALSE) +
  77. scale_x_continuous(limits = c(-2,2)) +
  78. scale_y_continuous(limits = c(0,260)) +
  79. theme(plot.title = element_text(hjust = 0.5),
  80. legend.position = 'none') +
  81. annotate("text", x = -1, y = 250, size = 14/.pt, label = "Enriched in \n other nhoods",
  82. colour = "firebrick")+
  83. annotate("text", x = 1, y = 250, size = 14/.pt,label = "Enriched in \n MDD depleted nhoods",
  84. colour = "forestgreen")
  85. sig <- da_nhood_markers[da_nhood_markers$adj.P.Val_1 < 0.05,]
  86. Upreg <- sig[sig$logFC_1 > 0.25,]%>%
  87. dplyr::select(GeneID)
  88. background <- da_nhood_markers$GeneID
  89. Upreg_GO <- enrichGO(gene = Upreg$GeneID,
  90. OrgDb = "org.Hs.eg.db",
  91. keyType = 'SYMBOL',
  92. ont = "ALL",
  93. pAdjustMethod = "BH",
  94. pvalueCutoff = 0.05,
  95. qvalueCutoff = 1,
  96. universe = background)
  97. Upreg_GO_res <- Upreg_GO@result
  98. Upreg_GO_res <- Upreg_GO_res[with(Upreg_GO_res,order(p.adjust)),]
  99. Upreg_GO_res <- Upreg_GO_res[1:10,]
  100. Upreg_GO_res$Cluster <- 'Enriched in MDD depleted nhoods'
  101. Downreg <- sig[sig$logFC_1 < -0.25,]%>%
  102. dplyr::select(GeneID)
  103. Downreg_GO <- enrichGO(gene = Downreg$GeneID,
  104. OrgDb = "org.Hs.eg.db",
  105. keyType = 'SYMBOL',
  106. ont = "ALL",
  107. pAdjustMethod = "BH",
  108. pvalueCutoff = 0.05,
  109. qvalueCutoff = 1,
  110. universe = background)
  111. Downreg_GO_res <- Downreg_GO@result
  112. Downreg_GO_res <- Downreg_GO_res[with(Downreg_GO_res,order(p.adjust)),]
  113. Downreg_GO_res <- Downreg_GO_res[1:10,]
  114. Downreg_GO_res$Cluster <- 'Enriched in other nhoods'
  115. # Capatilize the first letter of each GO term
  116. Capitalize <- function(x) {
  117. substr(x, 1, 1) <- toupper(substr(x, 1, 1))
  118. x
  119. }
  120. Total <- rbind(Upreg_GO_res, Downreg_GO_res)
  121. Total$Description <- Capitalize(Total$Description)
  122. Total$logPvalue <- -log10(Total$p.adjust)
  123. reorder_within <- function(x, by, within, fun = mean, sep = "___", ...) {
  124. new_x <- paste(x, within, sep = sep)
  125. stats::reorder(new_x, by, FUN = fun)
  126. }
  127. scale_x_reordered <- function(..., sep = "___") {
  128. reg <- paste0(sep, ".+$")
  129. ggplot2::scale_x_discrete(labels = function(x) gsub(reg, "", x), ...)
  130. }
  131. DEG_GO <- ggplot(Total, aes(reorder_within(Description, logPvalue, Cluster), logPvalue, fill = Cluster)) +
  132. geom_segment(aes(xend = reorder_within(Description, logPvalue, Cluster), yend = 0)
  133. ) +
  134. geom_point(size = 5, aes(colour = Cluster)) +
  135. coord_flip() +
  136. theme_bw() +
  137. scale_x_reordered() +
  138. facet_wrap(facets = "Cluster", scales = "free") +
  139. theme(panel.grid = element_blank(),
  140. plot.title = element_text(hjust = 0.5),
  141. strip.background = element_blank(),
  142. legend.position = 'none',
  143. text = element_text(size = 16)) +
  144. scale_color_manual(values=c("forestgreen","firebrick"))+
  145. geom_hline(yintercept=1.3, linetype="dashed", color = "grey44") +
  146. xlab("") +
  147. ylab(expression(paste("-log"[10]," (adj P-value)")))

Milo_analysis.R, under CC-BY-4.0 · at the source

Overview

Authors: Eamon Fitzgerald1,2,3, Nicholas O’Toole1,2, Irina Pokhvisneva1,2, Eric J. Nestler4, Gustavo Turecki1, Corina Nagy1, Michael J. Meaney1,2,5,6,7
  1. Department of Psychiatry, Douglas Mental Health University Institute, McGill University,Montréal, QC Canada
  2. Ludmer Centre for Neuroinformatics and Mental Health, McGill University,Montréal, QC Canada
  3. Cervolve, Montréal, QC Canada
  4. Nash Family Department of Neuroscience and Friedman Brain Institute, Icahn School of Medicine at Mount Sinai,New York, NY USA
  5. Translational Neuroscience Program, Singapore Institute for Clinical Sciences,Centros, Singapore
  6. Yong Loo Lin School of Medicine, National University of Singapore,Centros, Singapore
  7. Brain–Body Initiative, Agency for Science, Technology & Research (A*STAR),Centros, Singapore
Journal: Nature communications, volume 17, issue 1, article 4985
Dates: received 7 August 2024; accepted 24 March 2026; published online 8 April 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-71542-5 · PMID 41951638 · PMCID PMC13237068 · OpenAlex W7151999713
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: genetics / omics (modality), human (organism), depression (population), cellular / molecular (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Preprocessing, Connectivity
Keywords: Neuroscience, Depression, Computational biology and bioinformatics, Drug development, Genetics
MeSH: Astrocytes*, Fatty Acid Desaturases*, Fatty Acids*, Major Depressive Disorder*, Delta-5 Fatty Acid Desaturase, Gene Regulatory Networks, Genetic Predisposition to Disease, Genome-Wide Association Study, Humans, Oligodendroglia, Polymorphism, Single Nucleotide, PPAR alpha, Prefrontal Cortex (* major topic)
Topic: Neurogenesis and neuroplasticity mechanisms (Developmental Neuroscience, Neuroscience), according to OpenAlex
Funding: NIMH NIH HHS (R01 MH129306)
Citations: not cited yet (Europe PMC); 114 references in the paper

Abstract

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

Repository

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

Zenodo 10181579

License: CC-BY-4.0
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Languages: R (14), Shell (2)
Size: 19 files, 16 scripts
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (12 files), edgeR (4 files), Seurat (4 files), data.table (3 files), ggplot2 (3 files), nlme (2 files), patchwork (2 files), cowplot (1 file), igraph (1 file), limma (1 file), lme4 (1 file), reshape2 (1 file), SingleCellExperiment (1 file), WGCNA (1 file)
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
  • 29 September 2026: the link answers (HTTP 200)
16 files

Code availability statement

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

Read it in the paper: doi.org/10.1038/s41467-026-71542-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;
  • 16 scripts, each with its path and the digest of its content;
  • 8 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 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:

Read it in the paper: doi.org/10.1038/s41467-026-71542-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, 29 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 5 keywords, 13 MeSH terms, 1 funder, 108 references.

Cite

This paper

Fitzgerald, E., O’Toole, N., Pokhvisneva, I., Nestler, E. J., Turecki, G., Nagy, C., & Meaney, M. J. (2026). Astrocyte fatty acid metabolism as a driver of risk for major depressive disorder. Nature communications, 17(1), 4985. https://doi.org/10.1038/s41467-026-71542-5

BibTeX

@article{fitzgerald2026astrocyte,
author = {Fitzgerald, Eamon and O’Toole, Nicholas and Pokhvisneva, Irina and Nestler, Eric J. and Turecki, Gustavo and Nagy, Corina and Meaney, Michael J.},
title = {{Astrocyte fatty acid metabolism as a driver of risk for major depressive disorder}},
journal = {Nature communications},
year = {2026},
month = apr,
volume = {17},
number = {1},
pages = {4985},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-71542-5},
url = {https://doi.org/10.1038/s41467-026-71542-5},
pmid = {41951638},
pmcid = {PMC13237068}
}

RIS

TY - JOUR
AU - Fitzgerald, Eamon
AU - O’Toole, Nicholas
AU - Pokhvisneva, Irina
AU - Nestler, Eric J.
AU - Turecki, Gustavo
AU - Nagy, Corina
AU - Meaney, Michael J.
TI - Astrocyte fatty acid metabolism as a driver of risk for major depressive disorder
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/04/08
VL - 17
IS - 1
SP - 4985
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-71542-5
UR - https://doi.org/10.1038/s41467-026-71542-5
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-71542-5",
"type": "article-journal",
"title": "Astrocyte fatty acid metabolism as a driver of risk for major depressive disorder",
"container-title": "Nature communications",
"author": [
{
"family": "Fitzgerald",
"given": "Eamon"
},
{
"family": "O’Toole",
"given": "Nicholas"
},
{
"family": "Pokhvisneva",
"given": "Irina"
},
{
"family": "Nestler",
"given": "Eric J."
},
{
"family": "Turecki",
"given": "Gustavo"
},
{
"family": "Nagy",
"given": "Corina"
},
{
"family": "Meaney",
"given": "Michael J."
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "4985",
"DOI": "10.1038/s41467-026-71542-5",
"PMID": "41951638",
"PMCID": "PMC13237068",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-71542-5",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
8
]
]
}
}

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

Similar papers

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

[1] doi:10.1038/s41588-026-02646-3 [code]
Co-expression-based models improve eQTL predictions for transcriptome-wide association studies and highlight new schizophrenia-associated genes.
Journal: Nature genetics
In common: limma, reshape2, data.table, 1 other tool, genetics / omics, cellular / molecular, 15 references
[2] doi:10.1016/j.xcrm.2026.102766 [code]
A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.
Journal: Cell reports. Medicine
In common: WGCNA, SingleCellExperiment, edgeR, 10 other tools, genetics / omics, cellular / molecular, 3 references
[3] doi:10.1038/s41398-026-04200-5 [code]
Postmortem brain single-nucleus and bulk gene expression analyses identify shared and distinct abnormalities in bipolar disorder and major depressive disorder.
Journal: Translational psychiatry
In common: WGCNA, SingleCellExperiment, edgeR, 8 other tools, depression, genetics / omics, cellular / molecular, 4 references
[4] doi:10.1038/s41380-026-03571-x [code]
Convergent coexpression reveals shared biological mechanisms underlying common and rare variant risk in six neuropsychiatric disorders.
Journal: Molecular psychiatry
In common: igraph, Seurat, reshape2, 4 other tools, genetics / omics, cellular / molecular, 10 references
[5] doi:10.1111/adb.70179 [code]
Transcriptional Response to Chronic Long-Access Fentanyl Self-Administration in Rat Habenula and Amygdala.
Journal: Addiction biology
In common: SingleCellExperiment, edgeR, limma, 7 other tools, genetics / omics, cellular / molecular, 4 references
[6] 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 neuroscience
In common: WGCNA, SingleCellExperiment, edgeR, 9 other tools, cellular / molecular, 2 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 reports
In common: SingleCellExperiment, edgeR, igraph, 6 other tools, genetics / omics, cellular / molecular, 5 references
[8] doi:10.1038/s41467-026-74038-4 [code]
Semaglutide attenuates neuroinflammation in male mice.
Journal: Nature communications
In common: WGCNA, SingleCellExperiment, Seurat, 7 other tools, cellular / molecular, 4 references
[9] doi:10.1016/j.isci.2026.115196 [code]
Transcriptional and cellular maturation of the chick spinal cord in the context of distinct neuromuscular circuits.
Journal: iScience
In common: WGCNA, SingleCellExperiment, edgeR, 8 other tools, 2 references
[10] doi:10.1093/bioinformatics/btag592 [code]
Network-based stratification of allele-specific expression reveals patient subgroups in Huntington's disease.
Journal: Bioinformatics (Oxford, England)
In common: WGCNA, edgeR, limma, 8 other tools, genetics / omics, 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.

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.