OSCR

Altered Habenula Resting-State Functional Connectivity and Spatial Associations with Neurotransmitter Receptor Distribution of Major Depressive Disorder with and without Anhedonia.

Code ↔ Paper

1 match 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 1 match
  1. [1] § Materials and Methods › fMRI Data Acquisition and Preprocessing › Define ROI ↔ src/seg_hb.py, lines 1 to 33 · score 0.60 · habenula template, Habenula Segmentation, alpha, MNI, volume, Hb · 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 · 139 lines · 3.9 KB · MIT · 1 match

  1. #!/usr/bin/env python
  2. # Habenula Segmentation
  3. #
  4. # Arguments:
  5. # T1w
  6. # T2w
  7. #
  8. # Options:
  9. # Myelin
  10. # Hb_center
  11. # Warp_MNI
  12. # OutputBinary
  13. # OutputProb
  14. # Verbose
  15. #
  16. # MinVolume
  17. # T1Min
  18. # T1Max
  19. # T2Min
  20. # T2Max
  21. # Alpha
  22. # NumGrowing
  23. import segment_hb
  24. import argparse
  25. import sys
  26. import os
  27. import subprocess
  28. dirname = os.path.dirname(os.path.realpath(__file__))
  29. hb_template_r = os.path.join(dirname, 'habenula_template_right.nii.gz')
  30. hb_template_l = os.path.join(dirname, 'habenula_template_left.nii.gz')
  31. def run_command(cmd, print_cmd=True):
  32. if print_cmd is True:
  33. print '>> %s' % cmd
  34. p = subprocess.call(cmd, shell=True)
  35. return p
  36. def filename_wo_ext(filename):
  37. if filename[-7:] == '.nii.gz':
  38. return filename[:-7]
  39. elif filename[-4:] == '.nii':
  40. return filename[:-4]
  41. elif filename[-3:] == '.gz':
  42. return filename[:-3]
  43. return filename
  44. parser = argparse.ArgumentParser()
  45. parser.add_argument('-1', dest='t1w', help='T1w image', required=True)
  46. parser.add_argument('-2', dest='t2w', help='T2w image', required=True)
  47. parser.add_argument('-m', dest='myelin', default=None, help='Myelin image')
  48. parser.add_argument('-c', dest='center', default=None, help='Habenula centers')
  49. parser.add_argument('-w', dest='warp_to_acpc', default=None, help='Warp MNI to native')
  50. parser.add_argument('-t', dest='template_threshold', default=0.2, type=float, help='Threshold for warped template')
  51. parser.add_argument('-o', dest='output', default=None, help='Output binary filename')
  52. parser.add_argument('-v', dest='verbose', type=int, default=0)
  53. parser.add_argument('--min_volume', dest='min_volume', type=float, default=100)
  54. parser.add_argument('--t1min', dest='t1min', default=None)
  55. parser.add_argument('--t1max', dest='t1max', default=None)
  56. parser.add_argument('--t2min', dest='t2min', default=10)
  57. parser.add_argument('--t2max', dest='t2max', default=None)
  58. parser.add_argument('--alpha', dest='alpha', type=float, default=0.9)
  59. parser.add_argument('--num_growing', dest='growth', type=int, default=10)
  60. ag = parser.parse_args()
  61. if ag.center is None and ag.warp_to_acpc is None:
  62. sys.stderr.write('Either -c (habenula centers) or -w (warp to native) should be provided.\n')
  63. sys.exit(-1)
  64. if ag.myelin is None:
  65. ag.myelin = filename_wo_ext(os.path.basename(ag.t1w)) + '_div_t2w.nii.gz'
  66. cmd = 'fslmaths %s -div %s %s' % (ag.t1w, ag.t2w, ag.myelin)
  67. run_command(cmd)
  68. if ag.center is None:
  69. ag.center = filename_wo_ext(ag.myelin) + '_habenula_centers_from_template.nii.gz'
  70. tmp = 'tmp_hb_init.nii.gz'
  71. tmp_r = 'tmp_hb_init_r.nii.gz'
  72. tmp_l = 'tmp_hb_init_l.nii.gz'
  73. cmd = 'applywarp -i %s -r %s -o %s -w %s --interp=spline' % (hb_template_r, ag.t1w, tmp, ag.warp_to_acpc)
  74. run_command(cmd)
  75. cmd = 'fslmaths %s -thr %s -bin %s' % (tmp, ag.template_threshold, tmp_r)
  76. run_command(cmd)
  77. cmd = 'applywarp -i %s -r %s -o %s -w %s --interp=spline' % (hb_template_l, ag.t1w, tmp, ag.warp_to_acpc)
  78. run_command(cmd)
  79. cmd = 'fslmaths %s -thr %s -bin %s' % (tmp, ag.template_threshold, tmp_l)
  80. run_command(cmd)
  81. cmd = 'fslmaths %s -mul 2 -add %s %s' % (tmp_l, tmp_r, ag.center)
  82. run_command(cmd)
  83. cmd = 'rm -f %s %s %s' % (tmp, tmp_r, tmp_l)
  84. run_command(cmd)
  85. if ag.output is None:
  86. ag.output = filename_wo_ext(ag.myelin) + '_habenula'
  87. if ag.t1min is not None:
  88. ag.t1min = float(ag.t1min)
  89. if ag.t1max is not None:
  90. ag.t1max = float(ag.t1max)
  91. if ag.t2min is not None:
  92. ag.t2min = float(ag.t2min)
  93. if ag.t2max is not None:
  94. ag.t2max = float(ag.t2max)
  95. #print ag
  96. #sys.exit(0)
  97. return_values = segment_hb.segment_hb(
  98. ag.t1w,
  99. ag.t2w,
  100. ag.myelin,
  101. ag.center,
  102. ag.output,
  103. min_volume=ag.min_volume,
  104. t1min=ag.t1min,
  105. t1max=ag.t1max,
  106. t2min=ag.t2min,
  107. t2max=ag.t2max,
  108. sig_factor=ag.alpha,
  109. growth=ag.growth,
  110. verbose=ag.verbose
  111. )
  112. print '%s %s' % return_values['volumes']

seg_hb.py at commit ce46b50, under MIT · at the source

Overview

Authors: Xiaoyun Luo1, Yanru Wu1, Lijin Yuan1, Yiyun Wang1, Jing Li1, Pu Xu1, Jigang Lian1, Xiaoyan Liu2, Zonglin Shen1,3
  1. Department of Psychiatry, The First Affiliated Hospital of Kunming Medical University, Kunming, People’s Republic of China
  2. Department of Psychiatry, Affiliated Mental Health Center & Hangzhou Seventh People’s Hospital, Zhejiang University School of Medicine, Hangzhou, People’s Republic of China
  3. Yunnan Clinical Medical Center for Mental Disorders, Kunming, People’s Republic of China
Journal: Neuropsychiatric disease and treatment, volume 22, article 577735
Dates: received 7 November 2025; accepted 21 March 2026; published online 27 March 2026
Type: Research article · Language: English
License: CC BY-NC
Identifiers: DOI 10.2147/ndt.s577735 · PMID 41923921 · PMCID PMC13037516 · OpenAlex W7141464315
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: fMRI (modality), human (organism), depression (population), cellular / molecular (subfield)
Methods: Spectral & time-frequency, Connectivity, Statistics, Preprocessing, fMRI & imaging
Keywords: major depressive disorder, anhedonia, habenula, functional connectivity, neurotransmitter receptors
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 53 references in the paper

Abstract

Objective: This study aimed to examine functional connectivity (FC) alterations in patients with major depressive disorder (MDD), specifically comparing those with and without anhedonia.

Methods: 24 MDD patients with anhedonia (MDD-WA), 17 MDD patients without anhedonia (MDD-WoA), and 40 healthy controls (HCs) underwent resting-state functional magnetic resonance imaging (rs-fMRI). Intrinsic brain function was assessed using resting-state FC and spatial associations with neurotransmitter receptor distribution analyses. The habenula (Hb) was selected as the region of interest (ROI), and the whole-brain FC of the Hb was compared across groups. Spatial correlations between inter-group FC differences and whole-brain neurotransmitter receptor/transporter expression templates, derived using the JuSpace tool, were analyzed. Additionally, FC values from differential brain regions were extracted and correlated with the scores on the clinical scale.

Results: Compared to MDD-WoA patients, MDD-WA patients exhibited reduced FC between the Hb and the left middle frontal gyrus (MFG). Enhanced FC was observed between the Hb and bilateral putamen in MDD-WA patients compared to HCs. Additionally, in the MDD-WA group, changes in the Hb whole-brain FC demonstrated positive correlations with the spatial density distribution of specific neurotransmitter receptors and transporters. In contrast, MDD-WoA showed no significant Hb FC differences or neurotransmitter correlations compared to HCs. No significant correlations were found between the FC values of the intergroup-different brain regions and the total SHAPS-C, total HAMD-17, and all HAMD-17 factor scores (anxiety/somatization, weight loss, cognitive disturbance, retardation, and sleep disturbance).

Conclusion: In patients with MDD-WA, FC between the habenula and bilateral putamen, as well as between the habenula and left MFG, was altered. Given that the putamen is a core component of the striatum, all these findings suggest that habenula-prefrontal-striatal dysconnectivity may represent an anhedonia-specific biomarker in MDD. The FC patterns between the habenula and bilateral putamen/left middle frontal gyrus, along with the related neurotransmitter profiles identified in this study, may serve as objective indicators for monitoring therapeutic efficacy in the future.

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

Repository

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

junqianxulab/habenula_segmentation

License: MIT
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Commit: ce46b504089e419c91f36a738ae6353d735a3653, 2 January 2020
Languages: Python (3)
Size: 10 files, 3 scripts
Software Heritage: archived
Found in: the text, “Define ROI”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NiBabel (1 file), NumPy (1 file), SciPy (1 file)
Availability: 1 check, the latest on 29 September 2026: the link answers
  • 29 September 2026: the link answers
5 files

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;
  • 3 scripts, each with its path and the digest of its content;
  • 1 match 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

No dataset and no data link were found in the paper.

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, 30 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 9 authors, 5 keywords, 53 references.

Cite

This paper

Luo, X., Wu, Y., Yuan, L., Wang, Y., Li, J., Xu, P., Lian, J., Liu, X., & Shen, Z. (2026). Altered Habenula Resting-State Functional Connectivity and Spatial Associations with Neurotransmitter Receptor Distribution of Major Depressive Disorder with and without Anhedonia. Neuropsychiatric disease and treatment, 22, 577735. https://doi.org/10.2147/ndt.s577735

BibTeX

@article{luo2026altered,
author = {Luo, Xiaoyun and Wu, Yanru and Yuan, Lijin and Wang, Yiyun and Li, Jing and Xu, Pu and Lian, Jigang and Liu, Xiaoyan and Shen, Zonglin},
title = {{Altered Habenula Resting-State Functional Connectivity and Spatial Associations with Neurotransmitter Receptor Distribution of Major Depressive Disorder with and without Anhedonia}},
journal = {Neuropsychiatric disease and treatment},
year = {2026},
month = mar,
volume = {22},
pages = {577735},
publisher = {Dove Press},
issn = {1176-6328},
doi = {10.2147/ndt.s577735},
url = {https://doi.org/10.2147/ndt.s577735},
pmid = {41923921},
pmcid = {PMC13037516}
}

RIS

TY - JOUR
AU - Luo, Xiaoyun
AU - Wu, Yanru
AU - Yuan, Lijin
AU - Wang, Yiyun
AU - Li, Jing
AU - Xu, Pu
AU - Lian, Jigang
AU - Liu, Xiaoyan
AU - Shen, Zonglin
TI - Altered Habenula Resting-State Functional Connectivity and Spatial Associations with Neurotransmitter Receptor Distribution of Major Depressive Disorder with and without Anhedonia
T2 - Neuropsychiatric disease and treatment
J2 - Neuropsychiatr Dis Treat
PY - 2026
DA - 2026/03/27
VL - 22
SP - 577735
SN - 1176-6328
PB - Dove Press
DO - 10.2147/ndt.s577735
UR - https://doi.org/10.2147/ndt.s577735
LA - en
ER -

CSL-JSON

{
"id": "10.2147/ndt.s577735",
"type": "article-journal",
"title": "Altered Habenula Resting-State Functional Connectivity and Spatial Associations with Neurotransmitter Receptor Distribution of Major Depressive Disorder with and without Anhedonia",
"container-title": "Neuropsychiatric disease and treatment",
"author": [
{
"family": "Luo",
"given": "Xiaoyun"
},
{
"family": "Wu",
"given": "Yanru"
},
{
"family": "Yuan",
"given": "Lijin"
},
{
"family": "Wang",
"given": "Yiyun"
},
{
"family": "Li",
"given": "Jing"
},
{
"family": "Xu",
"given": "Pu"
},
{
"family": "Lian",
"given": "Jigang"
},
{
"family": "Liu",
"given": "Xiaoyan"
},
{
"family": "Shen",
"given": "Zonglin"
}
],
"container-title-short": "Neuropsychiatr Dis Treat",
"volume": "22",
"page": "577735",
"DOI": "10.2147/ndt.s577735",
"PMID": "41923921",
"PMCID": "PMC13037516",
"ISSN": "1176-6328",
"publisher": "Dove Press",
"URL": "https://doi.org/10.2147/ndt.s577735",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
27
]
]
}
}

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/s41398-026-04005-6 [code]
Brain network localization of anhedonia.
Journal: Translational psychiatry
In common: depression, 5 references
[2] doi:10.1155/da/8792696 [code]
Connectome Gradient-Based Subtyping of Major Depressive Disorder Reveals Distinct Neurobiological and Transcriptomic Signatures.
Journal: Depression and anxiety
In common: NiBabel, SciPy, NumPy, depression, fMRI, 2 references
[3] doi:10.1002/hbm.26337 [code]
Significant heterogeneity in structural asymmetry of the habenula in the human brain: A systematic review and meta-analysis.
Journal: Human brain mapping
In common: 3 references
[4] doi:10.1073/pnas.2500436123 [code]
Prior novelty invigorates future mesolimbic target detection.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: 3 references
[5] doi:10.1038/s41467-025-59611-7 [code]
Habenula contributions to negative self-cognitions.
Journal: Nature communications
In common: 3 references
[6] doi:10.1002/brb3.71581 [code]
Blunted Reward Responsiveness During Social Feedback: Associations with Peer Victimization and Anhedonia in Socially Anxious Adolescents.
Journal: Brain and behavior
In common: SciPy, NumPy, 2 references
[7] doi:10.1038/s41398-026-03965-z [code]
Disentangling individual heterogeneity reveals robust network and molecular signatures of major depressive disorder with suicidal ideation.
Journal: Translational psychiatry
In common: NiBabel, SciPy, NumPy, depression, cellular / molecular, 1 reference
[8] doi:10.1186/s12888-026-08216-5 [code]
Habenular structural-functional dysconnectivity in bipolar disorder: evidence from multimodal imaging and transcriptomic integration.
Journal: BMC psychiatry
In common: NiBabel, SciPy, NumPy, fMRI, cellular / molecular, 1 reference
[9] doi:10.3758/s13415-024-01257-x [code]
When group grievances become personal: The neural correlates of group and personal rejection.
Journal: Cognitive, affective & behavioral neuroscience
In common: NiBabel, SciPy, NumPy, fMRI, 1 reference
[10] doi:10.1002/hbm.70645 [code]
Spatial Collinearity Constrains Multivariate Molecular-Enriched Network Estimation.
Journal: Human brain mapping
In common: NiBabel, SciPy, NumPy, fMRI, cellular / molecular, 1 reference

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.2147/ndt.s577735.svg)](https://openscicode.org/badge/doi/10.2147/ndt.s577735)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.2147/ndt.s577735.svg
   :target: https://openscicode.org/badge/doi/10.2147/ndt.s577735
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.2147/ndt.s577735"><img src="https://openscicode.org/badge/doi/10.2147/ndt.s577735.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.