OSCR

Brain network representations of placebo analgesia.

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 › Functional connectivity network mapping ↔ Code/FCNM.m, lines 43–168 · score 0.58 · FC maps, correlation, spheres, mask, radius, thresholded

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 · 221 lines · 9.4 KB · no license · 1 match

  1. %%% ---------------------------------------------------------------------------------------------------
  2. %%% Functional Connectivity Network Mapping (FCNM)
  3. %%% ---------------------------------------------------------------------------------------------------
  4. %%% This script manages data from Excel to combined masks, individual-level zFC,
  5. %%% group-level T-maps, and final group probability maps.
  6. %%% Developed by ChatGPT and Mofan, Anhui Medical University, December 28, 2022.
  7. %%% ---------------------------------------------------------------------------------------------------
  8. %%% Steps:
  9. %%% 1. Load and set paths.
  10. %%% 2. Establish directory structure and capture PDF file names for studies.
  11. %%% 3. Prepare Excel spreadsheets for later ROI generation.
  12. %%% 4. Generate ROI spheres, process BOLD files, and perform statistical analyses.
  13. %%% 5. Create and refine group probability maps.
  14. %%% ---------------------------------------------------------------------------------------------------
  15. %% Step 1: Add spm12 and ROI_ball_gen_combined.m to the path and clear all variables
  16. clear, clc
  17. support_path = 'F:\test\extra'; % Path for support files
  18. addpath(support_path);
  19. %% Step 2: Read the basic information and title of each independent study
  20. % Typically, we have downloaded all the PDFs of included studies, recommended to be named as "P + Number + Author + Year of Publication", e.g., P01Li2017
  21. % If not all PDFs are downloaded, create a placeholder PDF for missing studies as we only need to read each document's basic information and title
  22. path = 'F:\test';
  23. mkdir([path,'\Articles_Included']); % Create a new folder 'Articles_Included' to store all included PDF files of the studies
  24. Articles_path = [path, '\Articles_Included'];
  25. File = dir(fullfile(Articles_path, '*.pdf')); % Read all PDF files in 'Articles_Included', representing all studies. The file name without '.pdf' is obtained by (end-4)
  26. Filename = {File.name};
  27. %% Step 3: After reading the information, create an Excel spreadsheet for all articles' coordinates, which will be manually filled in later
  28. mkdir([path, filesep, 'Articles_Included_Excel']); % Create a new folder 'Articles_Included_Excel'
  29. cd([path, filesep, 'Articles_Included_Excel']); % Enter this folder
  30. for i = 1:length(Filename) % Create an Excel spreadsheet for each study, where coordinates will be manually entered into the spreadsheet later and saved. If there are multiple ROI results, the spreadsheet can be autofilled downwards
  31. filename = char(Filename(i));
  32. xlswrite([filename(1:end-4), '.xlsx'], cellstr([filename(1:end-4), '_ROI01']), 'sheet1', 'D1')
  33. end
  34. %% Step 4: Generate spheres for each study's ROI and merge spheres from the same study
  35. radius_Seeds_results = [path, '\4mm_Seeds_Results\']; % Note to adjust the radius size when generating spheres with different radii, here it is 4mm
  36. parfor i = 1:length(Filename)
  37. filename = char(Filename(i));
  38. article_folder = fullfile(radius_Seeds_results, filename(1:end-4));
  39. mkdir(article_folder)
  40. ROI_Seeds_path = fullfile(article_folder, 'ROI_Seeds');
  41. if ~exist(ROI_Seeds_path, 'dir')
  42. mkdir(ROI_Seeds_path)
  43. end
  44. onesample_path = fullfile(article_folder, ['onesample_', filename(1:end-4)]);
  45. if ~exist(onesample_path, 'dir')
  46. mkdir(onesample_path)
  47. end
  48. zFC_path = fullfile(article_folder, ['zFC_', filename(1:end-4)]);
  49. if ~exist(zFC_path, 'dir')
  50. mkdir(zFC_path)
  51. end
  52. % Proceed to generate and combine ROI spheres
  53. [coord, ROIs] = xlsread([path, filesep, 'Articles_Included_Excel', filesep, filename(1:end-4), '.xlsx']);
  54. output_path = ROI_Seeds_path;
  55. combined_mask = ROI_ball_gen_combined(coord, ROIs, [support_path, filesep, 'BNA_mask_3m.nii'], 4, output_path);
  56. % Loop through each participant's directory to process BOLD files
  57. Data_dir = 'F:\test\data\AMUD'; % Specify the path where the 4D NIfTI time series data are stored
  58. participant_folders = dir(fullfile(Data_dir, '*'));
  59. participant_folders = participant_folders(~ismember({participant_folders.name}, {'.', '..'}));
  60. Mask_BNA = spm_read_vols(spm_vol(fullfile(support_path, 'BNA_mask_3m.nii')));
  61. Mask_Brain = spm_read_vols(spm_vol(fullfile(support_path, 'BrainMask_05_61x73x61.img')));
  62. for p = 1:length(participant_folders)
  63. boldFiles = dir(fullfile(Data_dir, participant_folders(p).name, '*.nii'));
  64. boldFile = fullfile(boldFiles.folder, boldFiles.name);
  65. bold_vol = spm_vol(boldFile);
  66. boldData = spm_read_vols(bold_vol);
  67. boldData = boldData .* Mask_Brain;
  68. boldData2D = reshape(boldData, [], size(boldData, 4));
  69. roiTimeSeries = mean(boldData2D(combined_mask > 0, :), 1);
  70. maskIndex = Mask_Brain > 0;
  71. boldDataMasked = boldData2D(maskIndex(:), :);
  72. fcMap = corr(roiTimeSeries', boldDataMasked');
  73. zfcMap = zeros(size(boldData, 1), size(boldData, 2), size(boldData, 3));
  74. zfcMap(maskIndex) = atanh(fcMap);
  75. zFC_filename = fullfile(zFC_path, ['zFC_', participant_folders(p).name, '.nii']);
  76. zFC_vol = bold_vol(1);
  77. zFC_vol.fname = zFC_filename;
  78. spm_write_vol(zFC_vol, zfcMap);
  79. end
  80. zFC_files = spm_select('FPList', zFC_path, '^zFC_.*\.nii$');
  81. if isempty(zFC_files)
  82. warning('No zFC files found in %s.', zFC_path);
  83. continue;
  84. end
  85. % Setup the statistical design for one-sample t-tests in SPM
  86. matlabbatch = [];
  87. matlabbatch{1}.spm.stats.factorial_design.dir = {onesample_path};
  88. matlabbatch{1}.spm.stats.factorial_design.des.t1.scans = cellstr(zFC_files);
  89. matlabbatch{1}.spm.stats.factorial_design.cov = struct('c', {}, 'cname', {}, 'iCFI', {}, 'iCC', {});
  90. matlabbatch{1}.spm.stats.factorial_design.masking.tm.tm_none = 1;
  91. matlabbatch{1}.spm.stats.factorial_design.masking.im = 1;
  92. matlabbatch{1}.spm.stats.factorial_design.masking.em = {fullfile(support_path, 'BNA_mask_3m.nii,1')};
  93. matlabbatch{1}.spm.stats.factorial_design.globalc.g_omit = 1;
  94. matlabbatch{1}.spm.stats.factorial_design.globalm.gmsca.gmsca_no = 1;
  95. matlabbatch{1}.spm.stats.factorial_design.globalm.glonorm = 1;
  96. % Model estimation
  97. matlabbatch{2}.spm.stats.fmri_est.spmmat = {fullfile(onesample_path, 'SPM.mat')};
  98. % Contrast specification
  99. matlabbatch{3}.spm.stats.con.spmmat = {fullfile(onesample_path, 'SPM.mat')};
  100. matlabbatch{3}.spm.stats.con.consess{1}.tcon.name = 'One Sample T-test';
  101. matlabbatch{3}.spm.stats.con.consess{1}.tcon.weights = 1;
  102. matlabbatch{3}.spm.stats.con.consess{1}.tcon.sessrep = 'none';
  103. matlabbatch{3}.spm.stats.con.delete = 0;
  104. % Run the batch job
  105. spm_jobman('run', matlabbatch);
  106. % Load SPM T-map file
  107. V = spm_vol(fullfile(onesample_path, 'spmT_0001.nii'));
  108. [X, XYZ] = spm_read_vols(V);
  109. % Compute p-values for positive T statistics
  110. P_uncorrected = 1 - spm_Tcdf(X(X > 0), 655); % Adjust the second parameter based on your sample size
  111. P_sorted = sort(P_uncorrected);
  112. P_corrected = spm_P_FDR(P_sorted);
  113. % Reorder corrected P-values
  114. [~, sort_idx] = sort(P_uncorrected, 'ascend');
  115. [~, unsort_idx] = sort(sort_idx, 'ascend');
  116. P_corrected = P_corrected(unsort_idx);
  117. % Apply FDR threshold
  118. thresholded_map = zeros(size(X));
  119. positive_voxel_indices = find(X > 0);
  120. thresholded_map(positive_voxel_indices(P_corrected < 0.05)) = X(positive_voxel_indices(P_corrected < 0.05));
  121. % Save the corrected T-map
  122. V.fname = fullfile(onesample_path, 'spmT_0001_positive_FDR.nii');
  123. spm_write_vol(V, thresholded_map);
  124. % Create a new mask image for voxels above threshold
  125. mask = thresholded_map > 0;
  126. V.fname = fullfile(onesample_path, 'spmT_0001_positive_FDR_mask.nii');
  127. spm_write_vol(V, mask);
  128. end
  129. %% Step 5: Create and refine group probability maps.
  130. output_folder_avg = fullfile(radius_Seeds_results, 'Average_probability_map');
  131. mkdir(output_folder_avg);
  132. % Initialize the accumulation matrix
  133. sum_matrix = [];
  134. % Retrieve paths to all 'onesample_*' subfolders
  135. onesample_folders = dir(fullfile(radius_Seeds_results, '*', 'onesample_*'));
  136. num_folders = length(onesample_folders);
  137. % Iterate through each 'onesample_*' folder and accumulate the contents of each mask file
  138. for i = 1:num_folders
  139. parent_folder_name = onesample_folders(i).folder;
  140. onesample_folder_name = onesample_folders(i).name;
  141. mask_file = dir(fullfile(parent_folder_name, onesample_folder_name, '*_positive_FDR_mask.nii'));
  142. if ~isempty(mask_file)
  143. file_path = fullfile(parent_folder_name, onesample_folder_name, mask_file.name);
  144. finalVol = spm_vol(file_path);
  145. [Y, ~] = spm_read_vols(finalVol);
  146. if isempty(sum_matrix)
  147. sum_matrix = zeros(size(Y));
  148. end
  149. sum_matrix = sum_matrix + Y;
  150. end
  151. end
  152. % Calculate the average
  153. avg_matrix = sum_matrix / num_folders;
  154. % Retain values greater than or equal to 0.6
  155. avg_matrix(avg_matrix < 0.6) = 0;
  156. % Remove clusters smaller than 30 voxels
  157. % Use the bwlabeln function to label connected regions
  158. [L, num] = bwlabeln(avg_matrix, 6);
  159. % Iterate through each connected region and remove those smaller than 30 voxels
  160. for j = 1:num
  161. if sum(L(:) == j) < 30
  162. avg_matrix(L == j) = 0;
  163. end
  164. end
  165. % Save the final averaged matrix to a new nii file
  166. final_mask_filename = fullfile(output_folder_avg, 'average_mask_50_30.nii');
  167. finalVol.fname = final_mask_filename;
  168. spm_write_vol(finalVol, avg_matrix);

FCNM.m, no license · at the source

Overview

Authors: Xiaohan Zhang1,2,3, Xuetian Sun1,2,3, Weisheng Huang1,2,3, Kaijie An1,2,3, Xufeng Zhao1,2,3, Dan Zhang1,2,3, Wenwei Zhang1,2,3, Yongqiang Yu1,2,3, Yinfeng Qian1,2,3, Jiajia Zhu1,2,3
ORCID iDs: Jiajia Zhu
  1. Department of Radiology, The First Affiliated Hospital of Anhui Medical University, Hefei, China
  2. Research Center of Clinical Medical Imaging, Anhui Province, Hefei, China
  3. Anhui Provincial Key Laboratory for Brain Bank Construction and Resource Utilization, Hefei, China
Journal: Psychological medicine, volume 56, article e131
Dates: received 5 November 2025; accepted 8 December 2025; published online 5 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1017/s0033291726103924 · PMID 42083871 · PMCID PMC13161808 · OpenAlex W7160264354
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: fMRI (modality), human (organism), pain (population)
Methods: Spectral & time-frequency, Connectivity, Statistics, Smoothing, state filtering, decompositions, fMRI & imaging
Keywords: brain network, functional connectivity, neuroimaging, pain, placebo analgesia
MeSH: Analgesia*, Brain*, Nerve Net*, Pain*, Placebo Effect*, Adult, Brain Mapping, Connectome, Female, Humans, Magnetic Resonance Imaging, Male (* major topic)
Topic: Pain Management and Placebo Effect (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: National Natural Science Foundation of China (National Science Foundation of China) (82471952); Anhui Provincial Natural Science Foundation (2308085MH277); Scientific Research Key Project of Anhui Province Universities (2022AH051135); Scientific Research Foundation of Anhui Medical University (2022xkj143)
Citations: not cited yet (Europe PMC); 99 references in the paper

Abstract

Background: Prior neuroimaging studies and meta-analyses investigating brain correlates of placebo analgesia (PA) have yielded neuroanatomically heterogeneous findings, which may be reconciled from a connectomics perspective. The objective of this study was to examine network localization of brain functional alterations related to PA.

Methods: We initially identified PA-induced brain activation alterations (hyper-activation and hypo-activation separately) during experimental pain from 29 published studies with 674 individuals. By combining these implicated dysfunctional brain regions with large-scale discovery (N = 1113) and validation (N = 1093) resting-state functional magnetic resonance imaging datasets, we then employed a novel functional connectivity network mapping approach to construct PA hyper-activation and hypo-activation networks, respectively.

Results: The PA hyper-activation network manifested as a pattern of circumscribed brain regions mainly involving the limbic, default, and frontoparietal networks. By contrast, the PA hypo-activation network comprised a broadly distributed set of brain regions primarily implicating the ventral attention, somatomotor, and subcortical networks.

Conclusions: Our findings regarding the brain network representations of PA may contribute to a deeper understanding of its action mechanisms and provide a neural framework that may inform future clinical translation.

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.

OSF 3vxrj

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Languages: MATLAB (1)
Size: 3 files, 1 script
Software Heritage: not checked
Found in: “Data availability statement”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Image Processing Toolbox (1 file), SPM (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
1 file
At the source: osf.io/3vxrj/

The paper's code and data availability statement is in the Data section.

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 script, 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 data and analysis codes used in the preparation of this article are publicly available at https://osf.io/3vxrj/.

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

Recorded: type, language, journal, volume, pages, dates, 10 authors, 5 keywords, 12 MeSH terms, 4 funders, 99 references.

Cite

This paper

Zhang, X., Sun, X., Huang, W., An, K., Zhao, X., Zhang, D., Zhang, W., Yu, Y., Qian, Y., & Zhu, J. (2026). Brain network representations of placebo analgesia. Psychological medicine, 56, e131. https://doi.org/10.1017/s0033291726103924

BibTeX

@article{zhang2026brain,
author = {Zhang, Xiaohan and Sun, Xuetian and Huang, Weisheng and An, Kaijie and Zhao, Xufeng and Zhang, Dan and Zhang, Wenwei and Yu, Yongqiang and Qian, Yinfeng and Zhu, Jiajia},
title = {{Brain network representations of placebo analgesia}},
journal = {Psychological medicine},
year = {2026},
month = may,
volume = {56},
pages = {e131},
publisher = {Cambridge University Press},
issn = {0033-2917},
doi = {10.1017/s0033291726103924},
url = {https://doi.org/10.1017/s0033291726103924},
pmid = {42083871},
pmcid = {PMC13161808}
}

RIS

TY - JOUR
AU - Zhang, Xiaohan
AU - Sun, Xuetian
AU - Huang, Weisheng
AU - An, Kaijie
AU - Zhao, Xufeng
AU - Zhang, Dan
AU - Zhang, Wenwei
AU - Yu, Yongqiang
AU - Qian, Yinfeng
AU - Zhu, Jiajia
TI - Brain network representations of placebo analgesia
T2 - Psychological medicine
J2 - Psychol Med
PY - 2026
DA - 2026/05/05
VL - 56
SP - e131
SN - 0033-2917
PB - Cambridge University Press
DO - 10.1017/s0033291726103924
UR - https://doi.org/10.1017/s0033291726103924
LA - en
ER -

CSL-JSON

{
"id": "10.1017/s0033291726103924",
"type": "article-journal",
"title": "Brain network representations of placebo analgesia",
"container-title": "Psychological medicine",
"author": [
{
"family": "Zhang",
"given": "Xiaohan"
},
{
"family": "Sun",
"given": "Xuetian"
},
{
"family": "Huang",
"given": "Weisheng"
},
{
"family": "An",
"given": "Kaijie"
},
{
"family": "Zhao",
"given": "Xufeng"
},
{
"family": "Zhang",
"given": "Dan"
},
{
"family": "Zhang",
"given": "Wenwei"
},
{
"family": "Yu",
"given": "Yongqiang"
},
{
"family": "Qian",
"given": "Yinfeng"
},
{
"family": "Zhu",
"given": "Jiajia"
}
],
"container-title-short": "Psychol Med",
"volume": "56",
"page": "e131",
"DOI": "10.1017/s0033291726103924",
"PMID": "42083871",
"PMCID": "PMC13161808",
"ISSN": "0033-2917",
"publisher": "Cambridge University Press",
"URL": "https://doi.org/10.1017/s0033291726103924",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
5
]
]
}
}

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.3389/fneur.2026.1796739 [code]
Network localization of regional intrinsic neural activity alterations in migraine and their neurochemical correlates.
Journal: Frontiers in neurology
In common: SPM, pain, fMRI, 14 references
[2] doi:10.3389/fnmol.2026.1909269 [code]
Convergent functional networks of intrinsic activity alterations in temporal lobe epilepsy and their molecular correlates.
Journal: Frontiers in molecular neuroscience
In common: SPM, fMRI, 14 references
[3] doi:10.1038/s42003-026-10377-8
Placebo analgesia persistence: evaluating behavioural stability in repeated trials.
Journal: Communications biology
In common: pain, 9 references
[4] doi:10.1038/s41467-026-74743-0 [code]
Meta-analytic evidence for distinct neural correlates of conditioned versus verbally induced placebo analgesia.
Journal: Nature communications
In common: SPM, Image Processing Toolbox, pain, 7 references
[5] doi:10.1038/s41586-026-10631-3 [code]
A prognostic human brain network for diffuse midline glioma.
Journal: Nature
In common: SPM, Image Processing Toolbox, 6 references
[6] doi:10.1038/s41531-026-01388-7 [code]
Converging metabolic and functional networks for tremor expression and deep brain stimulation-mediated control.
Journal: NPJ Parkinson's disease
In common: SPM, Image Processing Toolbox, 5 references
[7] doi:10.1038/s41467-026-71568-9 [code]
Convergent and selective representations of pain, appetitive processes, aversive processes, and cognitive control in the insula.
Journal: Nature communications
In common: SPM, Image Processing Toolbox, pain, 4 references
[8] doi:10.1186/s12916-026-04903-y [code]
Structural connectome architecture and biological vulnerability shape cortical atrophy in cocaine use disorder.
Journal: BMC medicine
In common: 7 references
[9] doi:10.1038/s41467-026-71600-y [code]
Temporal predictions shape somatosensory perception.
Journal: Nature communications
In common: SPM, pain, 4 references
[10] doi:10.1016/j.neuron.2026.04.011 [code]
Precision fMRI reveals densely interdigitated network patches with conserved motifs in the lateral prefrontal cortex.
Journal: Neuron
In common: SPM, Image Processing Toolbox, fMRI, 4 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.

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.