OSCR

Social disconnection in the brain: loneliness and age across networks using graph theory.

Code ↔ Paper

7 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 7 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Methods › Loneliness and age – Graph-based brain functional connectivity statistical analysis ↔ fmri_stats_palm.m, the whole file · a weak match · score 0.95 · Exchangeability blocks, FWE corrected, Linear Models, MoCA, FSL, PALM
  2. [2] § Methods › Resting-state functional connectivity graph theoretical based measures ↔ fmri_network_analysis_absedges.py, lines 4–44 · score 0.86 · edge weight, graph metrics, eigenvector centrality, closeness centrality, clustering coefficient, participation coefficient
  3. [3] § Methods › Resting-state functional connectivity graph theoretical based measures ↔ fmri_network_analysis_negedges.py, lines 4–52 · score 0.82 · graph metrics, eigenvector centrality, closeness centrality, clustering coefficient, participation coefficient, functional connections
  4. [4] § Results › Loneliness and graph-based brain functional connectivity measures ↔ fmri_stats_palm.m, the whole file · a weak match · score 0.73 · age interaction, MoCA, marital status, clustering coefficient, GMV, linear
  5. [5] § Methods › MRI data acquisition and preprocessing ↔ behav_preproc_recode_variables.Rmd, lines 93–110 · score 0.59 · High motion frame, preprocessing, FD, fMRI
  6. [6] § Methods › Resting-state fMRI functional connectivity matrix construction ↔ fmri_network_analysis_posedges.py, lines 4–48 · score 0.53 · Cole Anticevic, functional connectivity, matrix, scan, fMRI, correlation
  7. [7] § Results › Age and graph-based brain functional connectivity measures ↔ fmri_network_analysis_negedges.py, lines 4–52 · score 0.52 · normalized strength, Clustering Coefficient, Participation Coefficient, global, nodal, shortest

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

MATLAB · 81 lines · 5 KB · no license · 2 matches

  1. % fmri_stats_palm.m
  2. %
  3. % Purpose:
  4. % Runs FSL PALM (Permutation Analysis of Linear Models) permutation tests
  5. % on subject-level graph-theory network metrics derived from ABSOLUTE edge
  6. % weights (dissertation version; main text results). Final sample N = 512.
  7. %
  8. % PALM is called once per network metric. Each call runs 5000 permutations
  9. % with family-wise error correction across contrasts, two-tailed testing,
  10. % log p-values, and demeaning. Site is modeled as an exchangeability block.
  11. %
  12. % Model parameters:
  13. % Main predictors (in order): loneliness, age, loneliness x age interaction,
  14. % sex, household income, marital status
  15. % Covariates: total GMV, mean FD, MoCA, site (4 dummy variables) + intercept
  16. %
  17. % Inputs (all paths relative to working directory set by run_fmri_stats_palm.slurm):
  18. % Nodal metric CSVs (subjects x parcels, n = 512):
  19. % abs_nodal_<metric>_n512.csv
  20. % Global metric CSVs (subjects x 1, n = 512):
  21. % abs_global_<metric>_n512.csv
  22. % Design matrix: abs_design_matrix_n512.csv
  23. % T-contrast file: abs_Tcontrast.csv
  24. % F-contrast file: abs_Fcontrast.csv
  25. % Exchangeability blocks: abs_site_block_n512.csv
  26. %
  27. % Outputs (written to palm_output/<metric>/):
  28. % PALM output files: palm_abs_<metric>_* (t-stats, FWE-p, etc.)
  29. %
  30. % Note:
  31. % Output directories (palm_output/<metric>/) must exist before running.
  32. % They are created automatically by run_fmri_stats_palm.slurm.
  33. %
  34. % Usage:
  35. % Run via SLURM: sbatch run_fmri_stats_palm.slurm
  36. % Or directly in MATLAB (from the correct working directory):
  37. % run('fmri_stats_palm.m')
  38. % ------------------------------------------------------------------------------
  39. % PALM flags used in all calls:
  40. % -vg auto : automatically infer variance groups
  41. % -corrcon : FWE correction across contrasts
  42. % -twotail : two-tailed testing
  43. % -n 5000 : number of permutations
  44. % -logp : output log10(p) instead of raw p
  45. % -demean : demean the input data
  46. % -nouncorrected: suppress uncorrected p-value output
  47. % -eb : exchangeability blocks (site)
  48. % ------------------------------------------------------------------------------
  49. % Betweenness centrality (nodal)
  50. palm -i abs_nodal_betweencent_n512.csv -d abs_design_matrix_n512.csv -t abs_Tcontrast.csv -f abs_Fcontrast.csv -eb abs_site_block_n512.csv -vg auto -corrcon -twotail -n 5000 -logp -demean -nouncorrected -o palm_output/betweencent/palm_abs_betweencent
  51. % Closeness centrality (nodal)
  52. palm -i abs_nodal_closecent_n512.csv -d abs_design_matrix_n512.csv -t abs_Tcontrast.csv -f abs_Fcontrast.csv -eb abs_site_block_n512.csv -vg auto -corrcon -twotail -n 5000 -logp -demean -nouncorrected -o palm_output/closecent/palm_abs_closecent
  53. % Strength (nodal)
  54. palm -i abs_nodal_strength_n512.csv -d abs_design_matrix_n512.csv -t abs_Tcontrast.csv -f abs_Fcontrast.csv -eb abs_site_block_n512.csv -vg auto -corrcon -twotail -n 5000 -logp -demean -nouncorrected -o palm_output/strength/palm_abs_strength
  55. % Normalized strength (nodal)
  56. palm -i abs_nodal_normstrength_n512.csv -d abs_design_matrix_n512.csv -t abs_Tcontrast.csv -f abs_Fcontrast.csv -eb abs_site_block_n512.csv -vg auto -corrcon -twotail -n 5000 -logp -demean -nouncorrected -o palm_output/normstrength/palm_abs_normstrength
  57. % Eigenvector centrality (nodal)
  58. palm -i abs_nodal_eigencent_n512.csv -d abs_design_matrix_n512.csv -t abs_Tcontrast.csv -f abs_Fcontrast.csv -eb abs_site_block_n512.csv -vg auto -corrcon -twotail -n 5000 -logp -demean -nouncorrected -o palm_output/eigencent/palm_abs_eigencent
  59. % PageRank centrality (nodal)
  60. palm -i abs_nodal_pgcent_n512.csv -d abs_design_matrix_n512.csv -t abs_Tcontrast.csv -f abs_Fcontrast.csv -eb abs_site_block_n512.csv -vg auto -corrcon -twotail -n 5000 -logp -demean -nouncorrected -o palm_output/pgcent/palm_abs_pgcent
  61. % Clustering coefficient (nodal)
  62. palm -i abs_nodal_clustercoef_n512.csv -d abs_design_matrix_n512.csv -t abs_Tcontrast.csv -f abs_Fcontrast.csv -eb abs_site_block_n512.csv -vg auto -corrcon -twotail -n 5000 -logp -demean -nouncorrected -o palm_output/clustercoef/palm_abs_clustercoef
  63. % Participation coefficient — CA network partition (nodal)
  64. palm -i abs_nodal_partcoef_n512.csv -d abs_design_matrix_n512.csv -t abs_Tcontrast.csv -f abs_Fcontrast.csv -eb abs_site_block_n512.csv -vg auto -corrcon -twotail -n 5000 -logp -demean -nouncorrected -o palm_output/partcoef/palm_abs_partcoef
  65. % Modularity — CA network partition (global, 1 value per subject)
  66. palm -i abs_global_modularity_n512.csv -d abs_design_matrix_n512.csv -t abs_Tcontrast.csv -f abs_Fcontrast.csv -eb abs_site_block_n512.csv -vg auto -corrcon -twotail -n 5000 -logp -demean -nouncorrected -o palm_output/modularity/palm_abs_modularity
  67. % Average shortest path length (global, 1 value per subject)
  68. palm -i abs_global_average_shortest_path_n512.csv -d abs_design_matrix_n512.csv -t abs_Tcontrast.csv -f abs_Fcontrast.csv -eb abs_site_block_n512.csv -vg auto -corrcon -twotail -n 5000 -logp -demean -nouncorrected -o palm_output/average_shortest_path/palm_abs_average_shortest_path

fmri_stats_palm.m, no license · at the source

Overview

Authors: Yen-Wen Chen1, Turhan Canli1,2
ORCID iDs: Yen-Wen Chen
  1. Department of Psychology, Stony Brook University, 100 Nicolls Road, West Campus, Stony Brook, NY 11794-2500, United States
  2. Department of Psychiatry, Stony Brook University, 101 Nicolls Road, East Campus, Stony Brook, NY 11794-8101, United States
Institutions: Stony Brook University (United States)
Journal: Oxford open neuroscience, volume 5, article kvag006
Dates: received 18 May 2026; accepted 20 June 2026; published online 17 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1093/oons/kvag006 · PMID 42582864 · PMCID PMC13458596 · OpenAlex W7169524193
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: fMRI (modality), computational (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Connectivity, Graphs
Keywords: loneliness, aging, functional magnetic resonance imaging, resting-state functional connectivity, graph theory
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 114 references in the paper

Abstract

Loneliness, conceptualized as a multi-dimensional construct of unmet social needs, has been linked to adverse health outcomes across the lifespan, prompting significant interest in its underlying neural processes. Our study aimed to address the limitations of prior neuroimaging studies of loneliness by leveraging the Lifespan Human Connectome Project Aging dataset and applying graph theory to characterize its relationship with age and resting-state brain network organization. Socio-demographic measures confirmed prior work that higher loneliness was associated with younger age, being male, unmarried, and living alone. While loneliness showed no main effects on neural graph measures, a significant interaction between loneliness and age emerged for the local interconnectivity of the Default Model and Frontoparietal networks after adjusting for key socio-demographic factors. Conversely, older age was associated with lower functional connectivity, reduced global efficiency, and less modular brain network organization. Different graph measures showed distinct age-related associations, highlighting the heterogeneous nature of brain aging. The absence of a main effect of loneliness, while unexpected, underscores the complex, subjective nature of loneliness and suggests that its neural correlates may manifest differently across ages.

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

Repository

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

OSF p6srv

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Languages: R (3), Python (3), MATLAB (1)
Size: 10 files, 7 scripts
Software Heritage: not checked
Found in: the text, “Resting-state fMRI functional connectivity matri”
Holds: 3 notebooks
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NetworkX (3 files), NumPy (3 files), pandas (3 files), tidyverse (3 files), broom (1 file), car (1 file), reshape2 (1 file), rstatix (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
7 files
At the source: osf.io/p6srv/

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

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

Data availability

The data that support the findings of this study are openly available in the Lifespan Human Connectome Project. Data collection and sharing for the Lifespan Human Connectome Project Aging was supported by the National Institute On Aging of the National Institutes of Health under Award Number U01AG052564 and by funds provided by the McDonnell Center for Systems Neuroscience at Washington University in St. Louis. The HCP-Aging 2.0 Release data used in this report came from DOI: 10.15154/1520707 (https://doi.org/10.15154/1520707). Data and/or research tools used in the preparation of this manuscript were obtained from the National Institute of Mental Health (NIMH) Data Archive (NDA). NDA is a collaborative informatics system created by the National Institutes of Health to provide a national resource to support and accelerate research in mental health. Dataset identifier(s): 10.15154/g2tv-f889 (https://doi.org/10.15154/g2tv-f889). This manuscript reflects the views of the authors and may not reflect the opinions or views of the NIH or of the Submitters submitting original data to NDA.

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

Recorded: type, language, journal, volume, pages, dates, 2 authors, 5 keywords, 110 references.

Cite

This paper

Chen, Y.-W., & Canli, T. (2026). Social disconnection in the brain: loneliness and age across networks using graph theory. Oxford open neuroscience, 5, kvag006. https://doi.org/10.1093/oons/kvag006

BibTeX

@article{chen2026social,
author = {Chen, Yen-Wen and Canli, Turhan},
title = {{Social disconnection in the brain: loneliness and age across networks using graph theory}},
journal = {Oxford open neuroscience},
year = {2026},
month = jul,
volume = {5},
pages = {kvag006},
publisher = {Oxford University Press},
issn = {2753-149X},
doi = {10.1093/oons/kvag006},
url = {https://doi.org/10.1093/oons/kvag006},
pmid = {42582864},
pmcid = {PMC13458596}
}

RIS

TY - JOUR
AU - Chen, Yen-Wen
AU - Canli, Turhan
TI - Social disconnection in the brain: loneliness and age across networks using graph theory
T2 - Oxford open neuroscience
J2 - Oxf Open Neurosci
PY - 2026
DA - 2026/07/17
VL - 5
SP - kvag006
SN - 2753-149X
PB - Oxford University Press
DO - 10.1093/oons/kvag006
UR - https://doi.org/10.1093/oons/kvag006
LA - en
ER -

CSL-JSON

{
"id": "10.1093/oons/kvag006",
"type": "article-journal",
"title": "Social disconnection in the brain: loneliness and age across networks using graph theory",
"container-title": "Oxford open neuroscience",
"author": [
{
"family": "Chen",
"given": "Yen-Wen"
},
{
"family": "Canli",
"given": "Turhan"
}
],
"container-title-short": "Oxf Open Neurosci",
"volume": "5",
"page": "kvag006",
"DOI": "10.1093/oons/kvag006",
"PMID": "42582864",
"PMCID": "PMC13458596",
"ISSN": "2753-149X",
"publisher": "Oxford University Press",
"URL": "https://doi.org/10.1093/oons/kvag006",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
17
]
]
}
}

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/s42003-026-10282-0 [code]
Genetic risk of Alzheimer's disease is associated with loss of brain network segregation in midlife.
Journal: Communications biology
In common: rstatix, car, broom, 1 other tool, 7 references
[2] doi:10.1016/j.nicl.2026.104012 [code]
Structural-functional multilayer brain network properties and outcome of combined repetitive transcranial magnetic stimulation and psychotherapy for obsessive-compulsive disorder.
Journal: NeuroImage. Clinical
In common: rstatix, car, NetworkX, 4 other tools, fMRI, 4 references
[3] doi:10.1162/imag.a.1338 [code]
Systematic fMRI signal differences across cohorts alter lifespan trajectories of functional brain networks.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: pandas, NumPy, fMRI, 8 references
[4] doi:10.1038/s41467-026-73153-6 [code]
Latent neural architecture organising shared aesthetic evaluations of visual artworks.
Journal: Nature communications
In common: pandas, NumPy, fMRI, 8 references
[5] doi:10.1186/s40337-026-01671-1 [code]
Aberrant large- and mesoscale network segregation and integration in bulimia nervosa.
Journal: Journal of eating disorders
In common: car, broom, tidyverse, fMRI, 5 references
[6] doi:10.1371/journal.pbio.3003899 [code]
Social interactions between people of same and different generations shape longitudinal changes in interpersonal neural synchrony, loneliness, and social connection.
Journal: PLoS biology
In common: tidyverse, 6 references
[7] 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: rstatix, car, broom, 5 other tools
[8] doi:10.1016/j.isci.2026.116747 [code]
Age and loneliness relate to reduced trust learning and alterations in amygdala function.
Journal: iScience
In common: car, broom, tidyverse, fMRI, 3 references
[9] doi:10.1111/jcpp.70178 [code]
What makes a lonely child: environmental, health, and multimodal neuroimaging correlates of prospective loneliness in the ABCD study.
Journal: Journal of child psychology and psychiatry, and allied disciplines
In common: tidyverse, 5 references
[10] doi:10.1038/s41467-026-72934-3 [code]
Multi-focal ultrasound neuromodulation to the dorsal anterior cingulate cortex disrupts behavioural and neural pain processing.
Journal: Nature communications
In common: rstatix, car, broom, 2 other tools, fMRI, 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.

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.