The role of dorsal anterior cingulate cortex in dynamic attitude changes in naturalistic settings.
The 6 matches
- [1] § Methods › fMRI data preprocessing ↔ scripts/2 prepare neural data/2.a task-debate denoise&parcel date after fmriprep.ipynb, lines 10–75 · score 0.67 · global signal, FWHM, fMRIPrep, smoothing, motion, denoising
- [2] § Methods › fMRI data preprocessing ↔ scripts/2 prepare neural data/2.b task-debate denoise&parcel date without spatial smoothimg.ipynb, lines 10–75 · score 0.67 · global signal, FWHM, smoothing, motion, denoising, fMRIPrep
- [3] § Methods › fMRI data preprocessing ↔ scripts/3 attitude change, FD, ISC test/FD test.ipynb, lines 74–99 · score 0.56 · framewise displacement, fMRIPrep, FD
- [4] § Methods › Decoding dynamic attitude changes from dACC-related neural indices ↔ scripts/6 predict attitude change/1.a MVP prediction 2min.ipynb, lines 122–168 · score 0.56 · class weights, folds, shuffled, SVM, cross, Classification
- [5] § Methods › Decoding dynamic attitude changes from dACC-related neural indices ↔ scripts/6 predict attitude change/2.a MVP prediction each shift.ipynb, lines 127–205 · score 0.55 · class weights, folds, shuffled, SVM, cross, Classification
- [6] § Results › Intolerance of uncertainty (IU) amplifies the association between attitude change similarity and neural similarity ↔ scripts/7 IU modulate analysis with LME/LME moderation models and figures.ipynb, lines 68–125 · score 0.52 · IU modulate, joint IU, interaction, LMEs, models
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
Jupyter notebook · 128 lines · 5.6 KB · no license · 1 match
- # %%
- import os
- import glob
- import numpy as np
- import pandas as pd
- import nibabel as nib
- from nilearn import image, masking, input_data
- # %%
- denoised = 'denoised 5'
- fwhm=6
- tr = 2
- tmp = 'Schaefer'
- Schaefer_mask_file = '/Users/li/Desktop/template/Schaefer/tpl-MNI152NLin2009cAsym_res-02_atlas-Schaefer2018_desc-200Parcels7Networks_dseg.nii.gz'
- roi_label_file = '/Users/li/Desktop/template/Schaefer/Schaefer2018_200Parcels_7Networks_order_FSLMNI152_2mm.Centroid_RAS.csv'
- Schaefer_mask = nib.load(Schaefer_mask_file)
- roi_label = pd.read_csv(roi_label_file)['ROI Name'].values.tolist()
- brain_mask_path = '/Users/li/Desktop/template/brain mask/tpl-MNI152NLin2009cAsym_res-02_desc-brain_mask.nii.gz'
- sub_list = [f'sub-{x:0>3d}' for x in range(1,51)]
- run_list = [1,2,3,4,5,6]
- for sub in sub_list:
- new_folder_path = os.path.join('/Volumes/Li/task-debate/braindata', denoised, 'denoised', sub)
- if not os.path.exists(new_folder_path):
- os.makedirs(new_folder_path)
- for run in run_list:
- run_file = f'/Volumes/Li/数据备份_task-debate/fmriprep/{sub}/func/{sub}_task-debate_run-{run}_space-MNI152NLin2009cAsym_res-2_desc-preproc_bold.nii.gz'
- run_img = nib.load(run_file)
- confound_file = f'/Volumes/Li/数据备份_task-debate/fmriprep/{sub}/func/{sub}_task-debate_run-{run}_desc-confounds_timeseries.tsv'
- confound_df = pd.read_csv(confound_file, delimiter ='\t')
- # motion_outlier
- # motion_outlier_columns = [col for col in confound_df.columns if 'motion_outlier' in col]
- selected_confound_cols = [ # csf_wm tcompcor std_dvars dvars framewise_displacement rmsd
- # 'global_signal', 'global_signal_derivative1', 'global_signal_power2', 'global_signal_derivative1_power2',
- # 'csf', 'csf_derivative1', 'csf_derivative1_power2', 'csf_power2',
- # 'white_matter', 'white_matter_derivative1', 'white_matter_derivative1_power2', 'white_matter_power2',
- 'global_signal', 'csf', 'white_matter',
- 'trans_x','trans_y','trans_z','rot_x','rot_y','rot_z',
- 'trans_x_derivative1','trans_y_derivative1','trans_z_derivative1',
- 'rot_x_derivative1','rot_y_derivative1','rot_z_derivative1'
- # 'trans_x_power2','trans_y_power2','trans_z_power2',
- # 'rot_x_power2','rot_y_power2','rot_z_power2',
- # 'trans_x_derivative1_power2','trans_y_derivative1_power2','trans_z_derivative1_power2',
- # 'rot_x_derivative1_power2','rot_y_derivative1_power2','rot_z_derivative1_power2'
- ]
- # selected_confound_cols = selected_confound_cols + motion_outlier_columns
- confound_selected = confound_df[selected_confound_cols]
- confound_selected = confound_selected.fillna(value=0)
- confound_matrix = confound_selected.values
- denoised_img = image.clean_img(run_img, confounds=confound_matrix,
- detrend=True, standardize=True, high_pass=0.008, t_r=tr, mask_img=brain_mask_path)
- smoothed_img = image.smooth_img(denoised_img, fwhm=fwhm)
- save_path = os.path.join('/Volumes/Li/task-debate/braindata', denoised, 'denoised', sub, f'{sub}_task-debate_run-{run}_denoised_smooth{fwhm}mm_space-MNI152NLin2009cAsym_res-2_bold.nii.gz')
- nib.save(smoothed_img,save_path)
- # print(f'{sub} {run} denoised_smoothed data saved successfully!')
- print(f'{sub} Done!')
- print('-----------------------------------------------')
- # %%
- for sub in sub_list:
- new_folder_path = os.path.join(f'/Volumes/Li/task-debate/braindata/{denoised}', 'parcel data', tmp, sub)
- if not os.path.exists(new_folder_path):
- os.makedirs(new_folder_path)
- for run in run_list:
- run_file = f'/Volumes/Li/task-debate/braindata/{denoised}/denoised/{sub}/{sub}_task-debate_run-{run}_denoised_smooth6mm_space-MNI152NLin2009cAsym_res-2_bold.nii.gz'
- run_image = nib.load(run_file)
- masker = input_data.NiftiLabelsMasker(labels_img = Schaefer_mask_file, standardize=True)
- parcellations_time_series = masker.fit_transform(run_image)
- parcellations_time_series_df = pd.DataFrame(parcellations_time_series) # , columns=roi_label
- csv_file_path = f'/Volumes/Li/task-debate/braindata/{denoised}/parcel data/{tmp}/{sub}/{sub}_run-{run}_task-health_{tmp}_time-series.csv'
- parcellations_time_series_df.to_csv(csv_file_path, index=False)
- print(f'{sub} Done!')
- # %% [markdown]
- # # combine 6 runs
- # %%
- new_folder_path = os.path.join('/Volumes/Li/task-debate/braindata', denoised, 'parcel data','Schaefer 200 combine 6 runs')
- if not os.path.exists(new_folder_path):
- os.makedirs(new_folder_path)
- for sub in sub_list:
- all_data = []
- for run in run_list:
- csv_files = f'/Volumes/Li/task-debate/braindata/{denoised}/parcel data/Schaefer/{sub}/{sub}_run-{run}_task-health_Schaefer_time-series.csv'
- run_data = pd.read_csv(csv_files)
- all_data.append(run_data)
- combined_data = pd.concat(all_data, ignore_index=True)
- combined_csv_path = os.path.join(f'/Volumes/Li/task-debate/braindata/{denoised}', 'parcel data','Schaefer 200 combine 6 runs', f'{sub}_combined_time-series_Schaefer2018_200Parcels_7Networks.csv')
- combined_data.to_csv(combined_csv_path, index=False)
- print(f"{sub} Combined CSV saved Done!!!")
2.a task-debate denoise&parcel date after fmriprep.ipynb at commit f330526, no license · at the source
Overview
- School of Psychology, Northeast Normal University, Changchun, China
- Jilin Provincial Key Laboratory of Cognitive Neuroscience and Brain Development, Changchun, China
- Department of Radiology, The Seventh Medical Center of Chinese PLA General Hospital/Medical School, Beijing, China
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.
Llihaiming/dynamic-attitude-change
f330526f6cf141ccae8e12195071d99f30d8c936, 12 May 2025Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
39 files
- scripts/
1 prepare behavioral data/ , Jupyter, 142 lines1.a task-debate attitude shifts position& timing.ipynb - scripts/
1 prepare behavioral data/ , Jupyter, 104 lines1.b task-debate generate attitude rating by TR.ipynb - scripts/
1 prepare behavioral data/ , Jupyter, 93 lines1.c task-debate questionnaire.ipynb - scripts/
1 prepare behavioral data/ , Jupyter, 140 lines2.a task-persuade attitude change.ipynb - scripts/
1 prepare behavioral data/ , Jupyter, 100 lines2.b task-persuade questionnaire.ipynb - scripts/
2 prepare neural data/ , Jupyter, 163 lines1 task-persuade denoise& parcel date after fmriprep.ipynb - scripts/
2 prepare neural data/ , Jupyter, 128 lines, 1 match2.a task-debate denoise& parcel date after fmriprep.ipynb - scripts/
2 prepare neural data/ , Jupyter, 128 lines, 1 match2.b task-debate denoise& parcel date without spatial smoothimg.ipynb - scripts/
2 prepare neural data/ , Jupyter, 55 lines2.c task-debate dACC Spatial Pattern.ipynb - scripts/
3 attitude change, FD, ISC test/ , Jupyter, 133 lines, 1 matchFD test.ipynb - scripts/
3 attitude change, FD, ISC test/ , Jupyter, 160 linesISC test in task-debate.ipynb - scripts/
3 attitude change, FD, ISC test/ , Jupyter, 150 linesISC test in task-persuade.ipynb - scripts/
3 attitude change, FD, ISC test/ , Jupyter, 264 linesattitude change test.ipynb - scripts/
3 attitude change, FD, ISC test/ , Jupyter, 274 linesattitude shift points in task-debate.ipynb - scripts/
4 IS-RSA based on ISC/ , Jupyter, 472 lines1 ISC in task-persuade ISRSA.ipynb - scripts/
4 IS-RSA based on ISC/ , Jupyter, 352 lines2.a ISC in task-debate ISRAS segment 2min.ipynb - scripts/
4 IS-RSA based on ISC/ , Jupyter, 355 lines2.b ISC in task-debate ISRAS segment 1min.ipynb - scripts/
4 IS-RSA based on ISC/ , Jupyter, 387 lines3.a ISRSA discard shifts points 2min.ipynb - scripts/
4 IS-RSA based on ISC/ , Jupyter, 387 lines3.b ISRSA discard shifts points 1min.ipynb - scripts/
4 IS-RSA based on ISC/ , Jupyter, 181 lines4 task-debate ISC compare between discard & no-discard.ipynb - scripts/
5 IS-RSA based on dISFC/ , Jupyter, 361 lines1.a ISFC seed 89 2min.ipynb - scripts/
5 IS-RSA based on dISFC/ , Jupyter, 458 lines1.b ISFC seed 89 1min.ipynb - scripts/
5 IS-RSA based on dISFC/ , Jupyter, 401 lines2.a ISFC seed 89 2min network level average.ipynb - scripts/
5 IS-RSA based on dISFC/ , Jupyter, 398 lines2.b ISFC seed 89 1min network level average.ipynb - scripts/
5 IS-RSA based on dISFC/ , Jupyter, 681 lines3.a ISFC seed 89 2min network level pattern.ipynb - scripts/
5 IS-RSA based on dISFC/ , Jupyter, 491 lines3.b ISFC seed 89 1min network level pattern.ipynb - scripts/
6 predict attitude change/ , Jupyter, 207 lines, 1 match1.a MVP prediction 2min.ipynb - scripts/
6 predict attitude change/ , Jupyter, 847 lines1.b derection predict 2min.ipynb - scripts/
6 predict attitude change/ , Jupyter, 278 lines, 1 match2.a MVP prediction each shift.ipynb - scripts/
6 predict attitude change/ , Jupyter, 427 lines2.b shifts point FC seed 89 whole brain.ipynb - scripts/
6 predict attitude change/ , Jupyter, 211 lines2.c shifts point FC seed 89 default regions.ipynb - scripts/
7 IU modulate analysis with LME/ , Jupyter, 758 lines, 1 matchLME moderation models and figures.ipynb - scripts/
8 figure plot/ , Jupyter, 632 lines1 attitude change plot.ipynb - scripts/
8 figure plot/ , Jupyter, 126 lines2 example of attitude fluctuation in task-debate.ipynb - scripts/
8 figure plot/ , Jupyter, 137 lines3 1min-2min corr of attitude change similarity.ipynb - scripts/
8 figure plot/ , Jupyter, 114 lines3 task-debate dISFC edges bar chart.ipynb - scripts/
8 figure plot/ , Jupyter, 257 lines4 dACC bold around attitude shift points in task-debate.ipynb - scripts/
8 figure plot/ , Jupyter, 204 lines5 brainsurfer.ipynb - repository limit reached (2,000 files or 30 MB): the rest is at the source (3 files)
- README.md, Text, 1 line
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:
- it points to the authors' code: Llihaiming/
dynamic-attitude-change
Read it in the paper: doi.org/10.1038/s42003-026-09794-6.
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;
- 38 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
- doi:10.18112/
openneuro.ds006559.v1.0. , at OpenNeuro; found in the references0 - doi:10.18112/
openneuro.ds006568.v1.0. , at OpenNeuro; found in the references0 - openneuro:ds006559, at OpenNeuro; found in “Data availability”
- openneuro:ds006568, at OpenNeuro; found in “Data availability”
- osf:34yrj, at OSF; found in “Data availability”
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:
- it points to 3 datasets: OpenNeuro ds006559, OpenNeuro ds006568, OSF 34yrj
Read it in the paper: doi.org/10.1038/s42003-026-09794-6.
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, issue, pages, dates, 5 authors, 2 keywords, 9 MeSH terms, 67 references.
Cite
This paper
Li, H., Yao, S., Zhang, Y., Wu, B., & Liu, Y. (2026). The role of dorsal anterior cingulate cortex in dynamic attitude changes in naturalistic settings. Communications biology, 9(1), 505. https://
BibTeX
@article{li2026role,
author = {Li, Haiming and Yao, Senmu and Zhang, Yu and Wu, Bing and Liu, Yi},
title = {{The role of dorsal anterior cingulate cortex in dynamic attitude changes in naturalistic settings}},
journal = {Communications biology},
year = {2026},
month = mar,
volume = {9},
number = {1},
pages = {505},
publisher = {Nature Publishing Group},
issn = {2399-3642},
doi = {10.1038/
url = {https://
pmid = {41772025},
pmcid = {PMC13066430}
}
RIS
TY - JOUR
AU - Li, Haiming
AU - Yao, Senmu
AU - Zhang, Yu
AU - Wu, Bing
AU - Liu, Yi
TI - The role of dorsal anterior cingulate cortex in dynamic attitude changes in naturalistic settings
T2 - Communications biology
J2 - Commun Biol
PY - 2026
DA - 2026/
VL - 9
IS - 1
SP - 505
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "The role of dorsal anterior cingulate cortex in dynamic attitude changes in naturalistic settings",
"container-title": "Communications biology",
"author": [
{
"family": "Li",
"given": "Haiming"
},
{
"family": "Yao",
"given": "Senmu"
},
{
"family": "Zhang",
"given": "Yu"
},
{
"family": "Wu",
"given": "Bing"
},
{
"family": "Liu",
"given": "Yi"
}
],
"container-title-short":
"volume": "9",
"issue": "1",
"page": "505",
"DOI": "10.1038/
"PMID": "41772025",
"PMCID": "PMC13066430",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
2
]
]
}
}
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/s41467-026-73895-3 [code]
- Sign language narrative reveals universal and modality-specific features of cortical timescale hierarchy.Journal: Nature communicationsIn common: nltools, Nilearn, NiBabel, 6 other tools, 5 references
- [2] doi:10.1038/s41467-026-71151-2 [code]
- Common and distinct neural correlates of social interaction processing and theory of mind in narratives.Journal: Nature communicationsIn common: nltools, Nilearn, NiBabel, 7 other tools, 3 references
- [3] doi:10.1073/pnas.2512071123 [code]
- Narrative "twist" shifts within-individual neural representations of dissociable story features.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: Nilearn, NiBabel, statsmodels, 5 other tools, 5 references
- [4] doi:10.1038/s41467-026-76452-0 [code]
- Music evokes shared neural representations of imagined narratives across sensory modalities.Journal: Nature communicationsIn common: Nilearn, NiBabel, statsmodels, 6 other tools, 5 references
- [5] doi:10.1162/imag.a.1256 [code]
- Gamer in the scanner: Event-related analysis of fMRI activity during retro videogame play guided by automated annotations of game content.Journal: Imaging neuroscience (Cambridge, Mass.)In common: Nilearn, NiBabel, statsmodels, 6 other tools, 4 references
- [6] doi:10.1093/nc/niag029 [code]
- A data-driven approach to identifying and evaluating connectivity-based neural correlates of conscious visual perception.Journal: Neuroscience of consciousnessIn common: Nilearn, NetworkX, scikit-image, 8 other tools, 1 reference
- [7] doi:10.1162/imag.a.1198 [code]
- MEPrep: A robust pipeline for multi-echo fMRI denoising and preprocessing.Journal: Imaging neuroscience (Cambridge, Mass.)In common: Nilearn, scikit-image, NiBabel, 5 other tools, 4 references
- [8] doi:10.1038/s41598-026-56688-y [code]
- On the value of radiomics in addition to clinical measures in emotional conflict fMRI for predicting sertraline response in major depressive disorder.Journal: Scientific reportsIn common: imbalanced-learn, Nilearn, NiBabel, 7 other tools, 1 reference
- [9] doi:10.1038/s41467-026-75959-w [code]
- Charting higher-order models of brain function beyond pairwise interactions.Journal: Nature communicationsIn common: Nilearn, NetworkX, NiBabel, 7 other tools, 2 references
- [10] 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. ClinicalIn common: imbalanced-learn, NetworkX, NiBabel, 7 other tools, 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, 38 scripts, and 6 matches 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:7e82b4d8978a4271…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
