OSCR

Investigating the functional neural network dynamics of cognitive-affective action planning during threat processing.

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 · it ties a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
  1. [1] § Methods › Graph theory analyses › Generating adjacency matrices and graph metrics ↔ stable_projects/disorder_subtypes/Tang2020_ASDFactors/step3_analyses/relevanceForTraditionalCaseControlAnalyses/CBIG_ASDf_FCDiffInSubgrp_NBS.m, the whole file · a weak match · score 0.52 · adjacency matrices, connectivity matrices, absolute, thresholding, edges, network · 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

MATLAB · 92 lines · 4.3 KB · MIT · 1 match

  1. function [p, ADJ, NULL] = CBIG_ASDf_FCDiffInSubgrp_NBS(tThresh, id_asd_subgrp_file, ...
  2. id_con_subgrp_file, id_asd_file, id_con_file, Nperm, output_name)
  3. % [p, ADJ, NULL] = CBIG_ASDf_FCDiffInSubgrp_NBS(tThresh, id_asd_subgrp_file,
  4. % id_con_subgrp_file, id_asd_file, id_con_file, Nperm, output_name)
  5. %
  6. % This function compares FC difference between ASD and control participants
  7. % in factor subgroups. Statistical significance is tested using network-based statistic
  8. % (NBS; Zalesky et al., 2010).
  9. % The results will be saved in the directory specified by output_name.
  10. %
  11. % Input:
  12. % - tThresh:
  13. % t-statistic threshold for NBS. E.g., 1.5 or 2
  14. % - id_asd_subgrp_file:
  15. % Absolute path to the .mat file including all ASD subjects' IDs
  16. % in the subgroup. Assuming the .mat file is named as
  17. % "id_asd_subgrp", and it is a N_s1x1 cell array, where N_s1 is the
  18. % number of ASD subjects in the subgroup, and the i-th cell is
  19. % the i-th ASD subject's ID (a string)
  20. % - id_con_subgrp_file:
  21. % Absolute path to the .mat file including all control subjects' IDs
  22. % in the subgroup.. Assuming the .mat file is named as
  23. % "id_con_subgrp", and it is a N_s2x1 cell array, where N_s2 is the
  24. % number of control subjects in the subgroup, and the i-th cell is
  25. % the i-th control subject's ID (a string)
  26. % - id_asd_file:
  27. % Absolute path to the .mat file containing all ASD subjects'
  28. % IDs. Assuming the .mat file is named as "id_asd", and it is a
  29. % N1x1 cell array, where N1 is the number of ASD subjects, and the
  30. % i-th cell is the i-th ASD subject's ID (a string).
  31. % - id_con_file:
  32. % Absolute path to the .mat file containing all control subjects'
  33. % IDs. Assuming the .mat file is named as "id_con", and it is a
  34. % N2x1 cell array, where N2 is the number of control subjects, and
  35. % the i-th cell is the i-th control subject's ID (a string).
  36. % - Nperm:
  37. % Number of permutations. E.g., 10000.
  38. % - output_name:
  39. % Output file name including the full path where the results of
  40. % NBS will be saved
  41. % Output:
  42. % - p:
  43. % 1xC vector, where C is the number of identified components from
  44. % NBS. Corrected p-values for each component from NBS
  45. % - ADJ:
  46. % MxM matrix, where M is the number of edges in NBS input connectivity matrix
  47. % to NBS. Adjacency matrix identifying the edges comprising each
  48. % component. Edges corresponding to the first p-value stored in the
  49. % vector p are assigned the value 1 in the adjacency matrix ADJ,
  50. % edges corresponding to the second p-value are assigned the value 2, etc.
  51. % - NULL:
  52. % 1xNperm matrix. A vector of Nperm samples from the null distribution of
  53. % maximal component size
  54. %
  55. % Example:
  56. % [p, ADJ, NULL] = CBIG_ASDf_FCDiffInSubgrp_NBS(1.5, id_asd_subgrp_file,
  57. % id_con_subgrp_file, id_asd_file, id_con_file, 10000, 'nbs_subgroup')
  58. %
  59. % Written by Siyi Tang and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md
  60. %% Read subjects' IDs
  61. load(id_asd_subgrp_file); % id_asd_subgrp .mat file
  62. load(id_con_subgrp_file); % id_con_subgrp .mat file
  63. load(id_asd_file); % id_asd .mat file
  64. load(id_con_file); % id_con .mat file
  65. %% Generate permutation set using PALM package
  66. permSet = CBIG_ASDf_genPermSetForNBS(id_asd_subgrp, id_con_subgrp, Nperm);
  67. fprintf('------Performing NBS in subgroups\n:');
  68. fprintf('t-stats threshold:%f\n', tThresh);
  69. fprintf('Number of permutations:%d\n', Nperm);
  70. %% load FC matrices
  71. CBIG_REPDATA_DIR = getenv('CBIG_REPDATA_DIR');
  72. UNIT_TEST_DIR = fullfile(CBIG_REPDATA_DIR,'stable_projects','disorder_subtypes','Tang2020_ASDFactors');
  73. inputDir = fullfile(inputDir, 'data');
  74. load(fullfile(inputDir, 'corrMat_ASD_inf.mat')); % load ASD FC matrices
  75. load(fullfile(inputDir, 'corrMat_Con_inf.mat')); % load control FC matrices
  76. idx_asd_subgrp = ismember(id_asd, id_asd_subgrp);
  77. idx_con_subgrp = ismember(id_con, id_con_subgrp);
  78. corrMat_asd_subgrp = corrMat_ASD(:,:,idx_asd_subgrp);
  79. corrMat_con_subgrp = corrMat_Con(:,:,idx_con_subgrp);
  80. %% run NBS
  81. [p,ADJ,NULL] = CBIG_ASDf_NBS_permSetInput(corrMat_asd_subgrp, corrMat_con_subgrp,tThresh, permSet, 'both');
  82. file_name = [output_name '.mat'];
  83. save(file_name,'p','ADJ','NULL');

CBIG_ASDf_FCDiffInSubgrp_NBS.m at commit 634f676, under MIT · at the source

Overview

Authors: John Foley1, Siraj J. Lyons1, Olivia Cook1,2, Brendan E. Depue1,3
ORCID iDs: John Foley
  1. Department of Psychological & Brain Sciences, University of Louisville, Louisville, KY, United States
  2. Surgical Theater, Beachwood, OH, United States
  3. Department of Anatomical Sciences & Neurobiology, University of Louisville, Louisville, KY, United States
Institutions: University of Louisville (United States)
Journal: Frontiers in psychology, volume 17, article 1782939
Dates: received 7 January 2026; accepted 10 March 2026; published online 27 March 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.3389/fpsyg.2026.1782939 · PMID 41969906 · PMCID PMC13065709 · OpenAlex W7141581819
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: fMRI (modality), cognitive (subfield)
Methods: Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, Preprocessing, Graphs, fMRI & imaging
Keywords: emotion, fMRI, functional connectivity, neural network, threat
Topic: Action Observation and Synchronization (Social Psychology, Psychology), according to OpenAlex
Citations: not cited yet (Europe PMC); 99 references in the paper

Abstract

Introduction: The current investigation used functional neuroimaging data from four different tasks involving threatening/fearful faces and screams to understand the functional organization of neural networks.

Methods: Emphasis was placed on graph theory metrics of both local connectivity (participation coefficient, betweenness centrality) and global connectivity (global efficiency, modularity) to assess intra- and inter-network connectivity across a highly parcellated (412 nodes) brain template. A total of 124 participants (57% female; MAge = 22.06) were included in the investigation. Both mass univariate linear mixed effects models and multivariate classification via support vector machine were employed to uncover the nature of network dynamics across 8 well described intrinsic connectivity networks (ICNs).

Results: Our findings suggest that a diffuse pattern of strengthened intra-network connectivity defined social threat processing. Univariate analyses exhibited a preponderance of nodes within the somatomotor network, indicating the potential for motor preparation during social threat processing. Multivariate classification exhibited more diffuse focal participation from limbic, default, visual, attentional, control and somatomotor ICNs.

Conclusion: Our results suggest the role of intra- and inter-network functional organization in response to threat and carries implications for viewing various networks through dynamic perspectives.

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 1 match between paragraphs and lines of code.

thomasyeolab/cbig

License: MIT
State: the link answers, verified on 27 October 2026
Evidence: files inventoried
Commit: 634f676630929a71297852d01dd92a287103e861, 1 October 2026
Languages: MATLAB (2110), Shell (652), Python (589), C (113), C++ (65), C/C++ (62), R (25), Jupyter (5)
Size: 9,316 files, 3,621 scripts
Software Heritage: not archived
Found in: the end of the paper
Holds: README, license file, environment (external_packages/python/mapalign-master/requirements.txt, external_packages/python/mapalign-master/setup.py, external_packages/python/yapf-master/setup.cfg, external_packages/python/yapf-master/setup.py), tests, documentation, 2 notebooks
Not found: CITATION.cff, continuous integration
Tools: NumPy (130 files), PyTorch (122 files), FreeSurfer (94 files), SciPy (61 files), FieldTrip (60 files), Statistics and Machine Learning Toolbox (50 files), FSL (44 files), SPM (40 files), GIfTI library for MATLAB (10 files), Image Processing Toolbox (8 files), Connectome Workbench (8 files), scikit-learn (5 files), AFNI (2 files), Matplotlib (2 files), Tools for NIfTI and ANALYZE image (MATLAB) (2 files), ANTs (1 file), NiBabel (1 file), Nilearn (1 file), tedana (1 file)
Availability: 2 checks, the latest on 27 October 2026: the link answers
  • 27 October 2026: the link answers
  • 27 September 2026: the link answers
2,000 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;
  • 1,998 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.

Data availability statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

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

Recorded: type, language, journal, volume, pages, dates, 4 authors, 5 keywords, 2 funders, 91 references.

Cite

This paper

Foley, J., Lyons, S. J., Cook, O., & Depue, B. E. (2026). Investigating the functional neural network dynamics of cognitive-affective action planning during threat processing. Frontiers in psychology, 17, 1782939. https://doi.org/10.3389/fpsyg.2026.1782939

BibTeX

@article{foley2026investigating,
author = {Foley, John and Lyons, Siraj J. and Cook, Olivia and Depue, Brendan E.},
title = {{Investigating the functional neural network dynamics of cognitive-affective action planning during threat processing}},
journal = {Frontiers in psychology},
year = {2026},
month = mar,
volume = {17},
pages = {1782939},
publisher = {Frontiers Media SA},
issn = {1664-1078},
doi = {10.3389/fpsyg.2026.1782939},
url = {https://doi.org/10.3389/fpsyg.2026.1782939},
pmid = {41969906},
pmcid = {PMC13065709}
}

RIS

TY - JOUR
AU - Foley, John
AU - Lyons, Siraj J.
AU - Cook, Olivia
AU - Depue, Brendan E.
TI - Investigating the functional neural network dynamics of cognitive-affective action planning during threat processing
T2 - Frontiers in psychology
J2 - Front Psychol
PY - 2026
DA - 2026/03/27
VL - 17
SP - 1782939
SN - 1664-1078
PB - Frontiers Media SA
DO - 10.3389/fpsyg.2026.1782939
UR - https://doi.org/10.3389/fpsyg.2026.1782939
LA - en
ER -

CSL-JSON

{
"id": "10.3389/fpsyg.2026.1782939",
"type": "article-journal",
"title": "Investigating the functional neural network dynamics of cognitive-affective action planning during threat processing",
"container-title": "Frontiers in psychology",
"author": [
{
"family": "Foley",
"given": "John"
},
{
"family": "Lyons",
"given": "Siraj J."
},
{
"family": "Cook",
"given": "Olivia"
},
{
"family": "Depue",
"given": "Brendan E."
}
],
"container-title-short": "Front Psychol",
"volume": "17",
"page": "1782939",
"DOI": "10.3389/fpsyg.2026.1782939",
"PMID": "41969906",
"PMCID": "PMC13065709",
"ISSN": "1664-1078",
"publisher": "Frontiers Media SA",
"URL": "https://doi.org/10.3389/fpsyg.2026.1782939",
"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.1016/j.neuroimage.2023.120115 [code]
Relationship between prediction accuracy and feature importance reliability: An empirical and theoretical study.
Journal: NeuroImage
In common: tedana, Connectome Workbench, AFNI, 16 other tools, 9 references
[2] doi:10.7554/elife.87992 [code]
Multimodal neural correlates of childhood psychopathology.
Journal: eLife
In common: tedana, Connectome Workbench, AFNI, 16 other tools, 8 references
[3] doi:10.1016/j.neuroimage.2023.120081 [code]
Conscientiousness associated with efficiency of the salience/ventral attention network: Replication in three samples using individualized parcellation.
Journal: NeuroImage
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 5 references
[4] doi:10.1523/jneurosci.0802-24.2025 [code]
Association of Bidirectional Network Cores in the Brain with Perceptual Awareness and Cognition.
Journal: The Journal of neuroscience : the official journal of the Society for Neuroscience
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, cognitive, 4 references
[5] doi:10.1038/s41586-025-09250-1 [code]
Longer scans boost prediction and cut costs in brain-wide association studies.
Journal: Nature
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 4 references
[6] doi:10.3389/fnins.2023.1148176 [code]
Brain system segregation and pain catastrophizing in chronic pain progression.
Journal: Frontiers in neuroscience
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 4 references
[7] doi:10.1073/pnas.2120288120 [code]
Identifying causal subsequent memory effects.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: tedana, Connectome Workbench, AFNI, 16 other tools, cognitive, 4 references
[8] doi:10.1038/s41467-024-48781-5 [code]
Systematic evaluation of fMRI data-processing pipelines for consistent functional connectomics.
Journal: Nature communications
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 3 references
[9] doi:10.1152/jn.00308.2023 [code]
Organization of the human cerebral cortex estimated within individuals: networks, global topography, and function.
Journal: Journal of neurophysiology
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 3 references
[10] doi:10.3389/fnagi.2026.1742371 [code]
Cross-sectional and longitudinal functional network alterations associated with subthreshold depressive symptoms in healthy older adults.
Journal: Frontiers in aging neuroscience
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 3 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.3389/fpsyg.2026.1782939.svg)](https://openscicode.org/badge/doi/10.3389/fpsyg.2026.1782939)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.3389/fpsyg.2026.1782939.svg
   :target: https://openscicode.org/badge/doi/10.3389/fpsyg.2026.1782939
   :alt: OSCR

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