OSCR

The neuroimaging correlates of depression established across six large-scale population datasets.

Code ↔ Paper

6 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.

3 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 6 matches
  1. [1] § Results › Visual and somatomotor involvement in depression ↔ code_for_figures/meta_violin.py, lines 14 to 90 · score 0.80 · dorsal attention, spatial network, ventral attention, absolute meta, cortical surface area, box · block oscr:b:D292EGX3H76QB-M · Report a mismatch
  2. [2] § Results › Structural neuroimaging correlates of depression ↔ meta.py, lines 82 to 91 · score 0.68 · HCP Aging, HCP YA, HCP Development, Sadness, RDS, ANXPE · block oscr:b:HF602FC0YGEQ5-M · Report a mismatch
  3. [3] § Results › Visual and somatomotor involvement in depression ↔ ANOVA_notebook.ipynb, lines 1 to 75 · score 0.61 · dorsal attention, ventral attention, cortical surface area, gray matter volume, limbic, frontoparietal · Report a mismatch
  4. [4] § Methods › Statistical comparisons ↔ code_for_figures/meta_violin.py, lines 14 to 90 · score 0.58 · cortical surface area, cortical thickness, imaging metric, gray matter volume, functional connectivity, depression phenotype · block oscr:b:D292EGX3H76QB-M · Report a mismatch
  5. [5] § Methods › Statistical comparisons ↔ ANOVA_notebook.ipynb, lines 1 to 75 · score 0.53 · cortical surface area, cortical thickness, imaging metric, gray matter volume, ANOVAs, Yeo · Report a mismatch
  6. [6] § Methods › Nonlinearity ↔ Source_Code/regression.py, lines 116 to 194 · score 0.51 · sex, GAM, edof, freedom, covariates, variables · block oscr:b:BMD9WEQ426Z80-I · 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

Python · 91 lines · 3.5 KB · MIT · 2 matches

  1. import os
  2. import pandas as pd
  3. import seaborn as sns
  4. import matplotlib.pyplot as plt
  5. df_volume = pd.read_csv("../meta_results_volume/meta_analysis_without_covars.csv")
  6. df_area = pd.read_csv("../meta_results_area/meta_analysis_without_covars.csv")
  7. df_thickness = pd.read_csv("../meta_results_thickness/meta_analysis_without_covars.csv")
  8. structural_dfs = [df_volume, df_area, df_thickness]
  9. # load functional data
  10. schaefer_partial_path = "../meta_analysis_without_covars_with_yeo.csv"
  11. schaefer_partial_df = pd.read_csv(schaefer_partial_path)
  12. yeo_mapping = {
  13. 1: "Visual",
  14. 2: "Somatomotor",
  15. 3: "Dorsal Attention",
  16. 4: "Ventral Attention",
  17. 5: "Limbic",
  18. 6: "Frontoparietal",
  19. 7: "Default",
  20. 8: "Subcortical"
  21. }
  22. schaefer_partial_df['Yeo'] = schaefer_partial_df['Yeo1']
  23. schaefer_partial_df['Yeo_name'] = schaefer_partial_df['Yeo1'].map(yeo_mapping)
  24. functional_dfs = [schaefer_partial_df]
  25. df_volume["estimate"] = df_volume["estimate"].abs()
  26. df_volume["imaging_metric"] = "Gray Matter Volume"
  27. df_area["estimate"] = df_area["estimate"].abs()
  28. df_area["imaging_metric"] = "Cortical Surface Area"
  29. df_thickness["estimate"] = df_thickness["estimate"].abs()
  30. df_thickness["imaging_metric"] = "Cortical Thickness"
  31. schaefer_partial_df["estimate"] = schaefer_partial_df["estimate"].abs()
  32. schaefer_partial_df["imaging_metric"] = "Functional Connectivity"
  33. df_total = pd.concat([df_volume, df_area, df_thickness, schaefer_partial_df], ignore_index=True)
  34. print(df_total.head())
  35. print(schaefer_partial_df.columns)
  36. print(schaefer_partial_df["phen_group"].unique())
  37. print(max(schaefer_partial_df["estimate"]))
  38. all_dfs = structural_dfs + functional_dfs
  39. df_total.loc[df_total['phen_group'] == 'Neuroticism', 'phen_group'] = 'Predisposition'
  40. df_total.loc[df_total['phen_group'] == 'Depression', 'phen_group'] = 'Severity'
  41. df_total['Depression phenotype']=df_total['phen_group']
  42. plt.figure(figsize=(10, 6))
  43. sns.violinplot(data=df_total, x='imaging_metric', y='estimate', hue='Depression phenotype', dodge=True,inner='box', palette=['lightgray','skyblue'])
  44. plt.xlabel('Imaging Metric Type')
  45. plt.ylabel('Absolute Meta-analysis Estimate')
  46. plt.ylim(-0.02,0.09)
  47. plt.tight_layout()
  48. #plt.show()
  49. plt.savefig("../FIGURE3.png", dpi=600)
  50. df_volume['estimate_abs'] = df_volume['estimate'].abs()
  51. df_area['estimate_abs'] = df_area['estimate'].abs()
  52. df_volume.loc[df_volume['phen_group'] == 'Neuroticism', 'phen_group'] = 'Predisposition'
  53. df_volume.loc[df_volume['phen_group'] == 'Depression', 'phen_group'] = 'Severity'
  54. df_volume['Depression phenotype']=df_volume['phen_group']
  55. df_area['Depression phenotype']=df_area['phen_group']
  56. plt.figure(figsize=(12, 6))
  57. sns.violinplot(data=df_volume, x='Yeo_name', y='estimate_abs', hue='Depression phenotype', dodge=True,palette=['lightgray','skyblue'])
  58. # plt.title('ARI Score Distribution by k')
  59. plt.xlabel('Spatial Network')
  60. plt.ylabel('Absolute Meta-analysis Estimate')
  61. plt.ylim(-0.02,0.1)
  62. plt.tight_layout()
  63. #plt.show()
  64. plt.savefig("../FIGURE4_A.png", dpi=600)
  65. df_area.loc[df_area['phen_group'] == 'Neuroticism', 'phen_group'] = 'Predisposition'
  66. df_area.loc[df_area['phen_group'] == 'Depression', 'phen_group'] = 'Severity'
  67. plt.figure(figsize=(12, 6))
  68. sns.violinplot(data=df_area, x='Yeo_name', y='estimate_abs', hue='Depression phenotype', dodge=True,palette=['lightgray','skyblue'])
  69. # plt.title('ARI Score Distribution by k')
  70. plt.xlabel('Spatial Network')
  71. plt.ylim(-0.02,0.1)
  72. plt.ylabel('Absolute Meta-analysis Estimate')
  73. plt.legend().remove()
  74. plt.tight_layout()
  75. #plt.show()
  76. plt.savefig("../FIGURE4-B.png", dpi=600)

meta_violin.py at commit 47955c3, under MIT · at the source

Overview

Authors: Kassandra Miyoko Hamilton1, Xiaoke Luo1, Ty Easley1,2, Fyzeen Ahmad1, Thomas Guo1, Setthanan Jarukasemkit1,3,4, Hailey Modi1, Samuel Naranjo Rincón1, Cabria Shelton1, Lyn Stahl1, Zijian Wang1, Yuling Zhu1, Petra Lenzini1, Deanna M. Barch1,5,6, Yvette I. Sheline7, Kayla Hannon1,8, Janine D. Bijsterbosch1
  1. Department of Radiology, Washington University School of Medicine,Saint Louis, MO USA
  2. Department of Mathematics, Washington University,Saint Louis, MO USA
  3. Division of Neurology, Department of Medicine, Faculty of Medicine Ramathibodi Hospital, Mahidol University,Bangkok, Thailand
  4. Cognitive Clinical and Computational Neuroscience (CCCN) Center of Excellence, Chulalongkorn University,Bangkok, Thailand
  5. Department of Psychiatry, Washington University School of Medicine,Saint Louis, MO USA
  6. Department of Psychological and Brain Sciences, Washington University,Saint Louis, MO USA
  7. Departments of Psychiatry, Neurology and Radiology Perelman School of Medicine, University of Pennsylvania,Philadelphia, PA USA
  8. McLean Imaging Center, Harvard Medical School,Boston, MA USA
Journal: Nature. Mental health, volume 4, issue 8, pages 1329-1341
Dates: received 7 August 2025; accepted 11 June 2026; published online 13 July 2026; in print 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s44220-026-00680-y · PMID 42564120 · PMCID PMC13442040 · OpenAlex W7168143105
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: depression (population), methods / tools (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Connectivity, fMRI & imaging, Preprocessing
Keywords: Emotion, Depression
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 92 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 6 matches between paragraphs and lines of code.

kassiehamilton/WAPIAW2024

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 47955c36c9da966b8dbb792a66d702f1ec9ee5a6, 20 April 2026
Languages: Python (6), Jupyter (1), R (1)
Size: 16 files, 8 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, license file, 2 notebooks
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: pandas (6 files), NumPy (5 files), SciPy (4 files), statsmodels (3 files), Matplotlib (2 files), scikit-learn (2 files), seaborn (2 files), ggplot2 (1 file), ggseg (1 file), Pillow (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
10 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/s44220-026-00680-y.

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;
  • 8 scripts, each with its path and the digest of its content;
  • 6 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/s44220-026-00680-y.

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 2, 28 September 2026

  • Publisher: n/a → Springer Science+Business Media

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 17 authors, 2 keywords, 2 funders, 90 references.

Cite

This paper

Hamilton, K. M., Luo, X., Easley, T., Ahmad, F., Guo, T., Jarukasemkit, S., Modi, H., Naranjo Rincón, S., Shelton, C., Stahl, L., Wang, Z., Zhu, Y., Lenzini, P., Barch, D. M., Sheline, Y. I., Hannon, K., & Bijsterbosch, J. D. (2026). The neuroimaging correlates of depression established across six large-scale population datasets. Nature. Mental health, 4(8), 1329-1341. https://doi.org/10.1038/s44220-026-00680-y

BibTeX

@article{hamilton2026neuroimaging,
author = {Hamilton, Kassandra Miyoko and Luo, Xiaoke and Easley, Ty and Ahmad, Fyzeen and Guo, Thomas and Jarukasemkit, Setthanan and Modi, Hailey and Naranjo Rincón, Samuel and Shelton, Cabria and Stahl, Lyn and Wang, Zijian and Zhu, Yuling and Lenzini, Petra and Barch, Deanna M. and Sheline, Yvette I. and Hannon, Kayla and Bijsterbosch, Janine D.},
title = {{The neuroimaging correlates of depression established across six large-scale population datasets}},
journal = {Nature. Mental health},
year = {2026},
month = jul,
volume = {4},
number = {8},
pages = {1329--1341},
publisher = {Springer Science+Business Media},
issn = {2731-6076},
doi = {10.1038/s44220-026-00680-y},
url = {https://doi.org/10.1038/s44220-026-00680-y},
pmid = {42564120},
pmcid = {PMC13442040}
}

RIS

TY - JOUR
AU - Hamilton, Kassandra Miyoko
AU - Luo, Xiaoke
AU - Easley, Ty
AU - Ahmad, Fyzeen
AU - Guo, Thomas
AU - Jarukasemkit, Setthanan
AU - Modi, Hailey
AU - Naranjo Rincón, Samuel
AU - Shelton, Cabria
AU - Stahl, Lyn
AU - Wang, Zijian
AU - Zhu, Yuling
AU - Lenzini, Petra
AU - Barch, Deanna M.
AU - Sheline, Yvette I.
AU - Hannon, Kayla
AU - Bijsterbosch, Janine D.
TI - The neuroimaging correlates of depression established across six large-scale population datasets
T2 - Nature. Mental health
J2 - Nat Ment Health
PY - 2026
DA - 2026/07/13
VL - 4
IS - 8
SP - 1329
EP - 1341
SN - 2731-6076
PB - Springer Science+Business Media
DO - 10.1038/s44220-026-00680-y
UR - https://doi.org/10.1038/s44220-026-00680-y
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s44220-026-00680-y",
"type": "article-journal",
"title": "The neuroimaging correlates of depression established across six large-scale population datasets",
"container-title": "Nature. Mental health",
"author": [
{
"family": "Hamilton",
"given": "Kassandra Miyoko"
},
{
"family": "Luo",
"given": "Xiaoke"
},
{
"family": "Easley",
"given": "Ty"
},
{
"family": "Ahmad",
"given": "Fyzeen"
},
{
"family": "Guo",
"given": "Thomas"
},
{
"family": "Jarukasemkit",
"given": "Setthanan"
},
{
"family": "Modi",
"given": "Hailey"
},
{
"family": "Naranjo Rincón",
"given": "Samuel"
},
{
"family": "Shelton",
"given": "Cabria"
},
{
"family": "Stahl",
"given": "Lyn"
},
{
"family": "Wang",
"given": "Zijian"
},
{
"family": "Zhu",
"given": "Yuling"
},
{
"family": "Lenzini",
"given": "Petra"
},
{
"family": "Barch",
"given": "Deanna M."
},
{
"family": "Sheline",
"given": "Yvette I."
},
{
"family": "Hannon",
"given": "Kayla"
},
{
"family": "Bijsterbosch",
"given": "Janine D."
}
],
"container-title-short": "Nat Ment Health",
"volume": "4",
"issue": "8",
"page": "1329-1341",
"DOI": "10.1038/s44220-026-00680-y",
"PMID": "42564120",
"PMCID": "PMC13442040",
"ISSN": "2731-6076",
"publisher": "Springer Science+Business Media",
"URL": "https://doi.org/10.1038/s44220-026-00680-y",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
13
]
]
}
}

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.1093/gigascience/giae119 [code]
Opaque ontology: neuroimaging classification of ICD-10 diagnostic groups in the UK Biobank.
Journal: GigaScience
In common: ukbiobank.ac.uk/enable-your-research/apply-for-access, 6 references, 2 authors
[2] doi:10.1016/j.ynirp.2023.100163 [code]
Population modeling with machine learning can enhance measures of mental health - Open-data replication.
Journal: Neuroimage. Reports
In common: ggplot2, scikit-learn, pandas, 3 other tools, ukbiobank.ac.uk/enable-your-research/apply-for-access, 6 references, author Janine D. Bijsterbosch
[3] doi:10.1017/s0033291724003167 [code]
Higher amplitudes of visual networks are associated with trait- but not state-depression.
Journal: Psychological medicine
In common: depression, 11 references, author Janine D. Bijsterbosch
[4] doi:10.1016/j.bpsgos.2025.100473 [code]
Comparing Data-Driven Subtypes of Depression Informed by Clinical and Neuroimaging Data: A Registered Report.
Journal: Biological psychiatry global open science
In common: scikit-learn, pandas, SciPy, 1 other tool, ukbiobank.ac.uk/enable-your-research/apply-for-access, depression, 1 reference, 2 authors
[5] doi:10.7554/elife.108109 [code]
Multimodal MRI marker of cognition explains the association between cognition and mental health in the UK Biobank.
Journal: eLife
In common: ggplot2, seaborn, scikit-learn, 4 other tools, ukbiobank.ac.uk/enable-your-research/apply-for-access, 9 references
[6] doi:10.1038/s41467-023-43737-7 [code]
Opposing brain signatures of sleep in task-based and resting-state conditions.
Journal: Nature communications
In common: Pillow, statsmodels, seaborn, 5 other tools, ukbiobank.ac.uk/enable-your-research/apply-for-access, depression, 6 references
[7] doi:10.1038/s42003-024-06361-9 [code]
Neural correlates of obesity across the lifespan.
Journal: Communications biology
In common: ggseg, Pillow, statsmodels, 7 other tools, 7 references
[8] doi:10.1016/j.biopsych.2025.04.025 [code]
Parsing Clinical and Neurobiological Sources of Heterogeneity in Depression.
Journal: Biological psychiatry
In common: ukbiobank.ac.uk/enable-your-research/apply-for-access, depression, 5 references, author Kayla Hannon
[9] doi:10.1016/j.neuroimage.2023.120044 [code]
Comparison between gradients and parcellations for functional connectivity prediction of behavior.
Journal: NeuroImage
In common: scikit-learn, SciPy, Matplotlib, 1 other tool, 9 references, author Janine D. Bijsterbosch
[10] doi:10.1016/j.neuroimage.2024.120827 [code]
Neurodevelopmental subtypes of functional brain organization in the ABCD study using a rigorous analytic framework.
Journal: NeuroImage
In common: statsmodels, ggplot2, seaborn, 6 other tools, 7 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/s44220-026-00680-y.svg)](https://openscicode.org/badge/doi/10.1038/s44220-026-00680-y)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s44220-026-00680-y.svg
   :target: https://openscicode.org/badge/doi/10.1038/s44220-026-00680-y
   :alt: OSCR

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