Altered Habenula Resting-State Functional Connectivity and Spatial Associations with Neurotransmitter Receptor Distribution of Major Depressive Disorder with and without Anhedonia.
The 1 match
- [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
- #!/usr/bin/env python
- # Habenula Segmentation
- #
- # Arguments:
- # T1w
- # T2w
- #
- # Options:
- # Myelin
- # Hb_center
- # Warp_MNI
- # OutputBinary
- # OutputProb
- # Verbose
- #
- # MinVolume
- # T1Min
- # T1Max
- # T2Min
- # T2Max
- # Alpha
- # NumGrowing
- import segment_hb
- import argparse
- import sys
- import os
- import subprocess
- dirname = os.path.dirname(os.path.realpath(__file__))
- hb_template_r = os.path.join(dirname, 'habenula_template_right.nii.gz')
- hb_template_l = os.path.join(dirname, 'habenula_template_left.nii.gz')
- def run_command(cmd, print_cmd=True):
- if print_cmd is True:
- print '>> %s' % cmd
- p = subprocess.call(cmd, shell=True)
- return p
- def filename_wo_ext(filename):
- if filename[-7:] == '.nii.gz':
- return filename[:-7]
- elif filename[-4:] == '.nii':
- return filename[:-4]
- elif filename[-3:] == '.gz':
- return filename[:-3]
- return filename
- parser = argparse.ArgumentParser()
- parser.add_argument('-1', dest='t1w', help='T1w image', required=True)
- parser.add_argument('-2', dest='t2w', help='T2w image', required=True)
- parser.add_argument('-m', dest='myelin', default=None, help='Myelin image')
- parser.add_argument('-c', dest='center', default=None, help='Habenula centers')
- parser.add_argument('-w', dest='warp_to_acpc', default=None, help='Warp MNI to native')
- parser.add_argument('-t', dest='template_threshold', default=0.2, type=float, help='Threshold for warped template')
- parser.add_argument('-o', dest='output', default=None, help='Output binary filename')
- parser.add_argument('-v', dest='verbose', type=int, default=0)
- parser.add_argument('--min_volume', dest='min_volume', type=float, default=100)
- parser.add_argument('--t1min', dest='t1min', default=None)
- parser.add_argument('--t1max', dest='t1max', default=None)
- parser.add_argument('--t2min', dest='t2min', default=10)
- parser.add_argument('--t2max', dest='t2max', default=None)
- parser.add_argument('--alpha', dest='alpha', type=float, default=0.9)
- parser.add_argument('--num_growing', dest='growth', type=int, default=10)
- ag = parser.parse_args()
- if ag.center is None and ag.warp_to_acpc is None:
- sys.stderr.write('Either -c (habenula centers) or -w (warp to native) should be provided.\n')
- sys.exit(-1)
- if ag.myelin is None:
- ag.myelin = filename_wo_ext(os.path.basename(ag.t1w)) + '_div_t2w.nii.gz'
- cmd = 'fslmaths %s -div %s %s' % (ag.t1w, ag.t2w, ag.myelin)
- run_command(cmd)
- if ag.center is None:
- ag.center = filename_wo_ext(ag.myelin) + '_habenula_centers_from_template.nii.gz'
- tmp = 'tmp_hb_init.nii.gz'
- tmp_r = 'tmp_hb_init_r.nii.gz'
- tmp_l = 'tmp_hb_init_l.nii.gz'
- cmd = 'applywarp -i %s -r %s -o %s -w %s --interp=spline' % (hb_template_r, ag.t1w, tmp, ag.warp_to_acpc)
- run_command(cmd)
- cmd = 'fslmaths %s -thr %s -bin %s' % (tmp, ag.template_threshold, tmp_r)
- run_command(cmd)
- cmd = 'applywarp -i %s -r %s -o %s -w %s --interp=spline' % (hb_template_l, ag.t1w, tmp, ag.warp_to_acpc)
- run_command(cmd)
- cmd = 'fslmaths %s -thr %s -bin %s' % (tmp, ag.template_threshold, tmp_l)
- run_command(cmd)
- cmd = 'fslmaths %s -mul 2 -add %s %s' % (tmp_l, tmp_r, ag.center)
- run_command(cmd)
- cmd = 'rm -f %s %s %s' % (tmp, tmp_r, tmp_l)
- run_command(cmd)
- if ag.output is None:
- ag.output = filename_wo_ext(ag.myelin) + '_habenula'
- if ag.t1min is not None:
- ag.t1min = float(ag.t1min)
- if ag.t1max is not None:
- ag.t1max = float(ag.t1max)
- if ag.t2min is not None:
- ag.t2min = float(ag.t2min)
- if ag.t2max is not None:
- ag.t2max = float(ag.t2max)
- #print ag
- #sys.exit(0)
- return_values = segment_hb.segment_hb(
- ag.t1w,
- ag.t2w,
- ag.myelin,
- ag.center,
- ag.output,
- min_volume=ag.min_volume,
- t1min=ag.t1min,
- t1max=ag.t1max,
- t2min=ag.t2min,
- t2max=ag.t2max,
- sig_factor=ag.alpha,
- growth=ag.growth,
- verbose=ag.verbose
- )
- print '%s %s' % return_values['volumes']
seg_hb.py at commit ce46b50, under MIT · at the source
Overview
- Department of Psychiatry, The First Affiliated Hospital of Kunming Medical University, Kunming, People’s Republic of China
- Department of Psychiatry, Affiliated Mental Health Center & Hangzhou Seventh People’s Hospital, Zhejiang University School of Medicine, Hangzhou, People’s Republic of China
- Yunnan Clinical Medical Center for Mental Disorders, Kunming, People’s Republic of China
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/
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/
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-stri
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
ce46b504089e419c91f36a738ae6353d735a3653, 2 January 2020Availability: 1 check, the latest on 29 September 2026: the link answers
- 29 September 2026: the link answers
5 files
- src/
run_segment_hb.py , Python, 50 lines - src/
seg_hb.py , Python, 139 lines, 1 match - src/
segment_hb.py , Python, 1,387 lines - LICENSE, License, 22 lines
- README.md, Text, 103 lines
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://
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/
url = {https://
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/
VL - 22
SP - 577735
SN - 1176-6328
PB - Dove Press
DO - 10.2147/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.2147/
"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":
"volume": "22",
"page": "577735",
"DOI": "10.2147/
"PMID": "41923921",
"PMCID": "PMC13037516",
"ISSN": "1176-6328",
"publisher": "Dove Press",
"URL": "https://
"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 psychiatryIn 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 anxietyIn 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 mappingIn 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 AmericaIn common: 3 references
- [5] doi:10.1038/s41467-025-59611-7 [code]
- Habenula contributions to negative self-cognitions.Journal: Nature communicationsIn 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 behaviorIn 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 psychiatryIn 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 psychiatryIn 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 neuroscienceIn 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 mappingIn 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 3 scripts, and 1 match between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:cf33bd5f2d3ff5f2…
Add the badge to the code's README
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 -->
[](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:endHTML
<!-- 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.
