OSCR

Being praised and criticized in adolescents and adults: Age-related changes in neural responses to social evaluations.

Code ↔ Paper

5 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 5 matches · 1 of them tie a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
  1. [1] § Methods › Dynamic causal modeling (DCM) analysis ↔ DCM analysis/Secondlevel_DCM_PEB.m, the whole file · a weak match · score 0.78 · free energy, connectivity parameters, design matrix, PEB, BMA, Pp · Report a mismatch
  2. [2] § Methods › MRI data preprocessing ↔ DCM analysis/Preparing_DCM_Denoising_data.py, lines 23 to 39 · score 0.69 · global signal, framewise displacement, preprocessed, confounding, space · Report a mismatch
  3. [3] § Methods › General linear model (GLM) analysis for fMRI data ↔ GLM analysis/GLM_firstlevel.py, lines 53 to 106 · score 0.62 · design matrix, CSF, FWHM, smoothing, preprocessed, signals · Report a mismatch
  4. [4] § Methods › MRI data acquisition ↔ DCM analysis/Firstlevel_DCM.m, lines 1 to 21 · score 0.59 · MRI scanner, echo, repetition, TE, TR · Report a mismatch
  5. [5] § Methods › MRI data preprocessing ↔ GLM analysis/GLM_firstlevel.py, lines 53 to 106 · score 0.54 · framewise displacement, preprocessed, confounding, space, signal · 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 · 131 lines · 5.4 KB · no license · 2 matches

  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. """
  4. by Qinyuan Chen at Ghent University
  5. """
  6. import os
  7. from os.path import join
  8. import pandas as pd
  9. import numpy as np
  10. from nilearn.glm.first_level import FirstLevelModel
  11. import glob
  12. # Define list of subject IDs
  13. def get_subject_ids(datadir):
  14. subject_paths = glob.glob(os.path.join(datadir, 'sub-*'))
  15. subject_ids = [os.path.basename(p).replace('sub-', '') for p in subject_paths if os.path.isdir(p)]
  16. return sorted(subject_ids)
  17. # Define contrasts
  18. def make_contrasts(design_matrix):
  19. #first generate canonical contrast
  20. contrast_matrix = np.eye(design_matrix.shape[-1])
  21. contrasts = {
  22. column: contrast_matrix[i]
  23. for i , column in enumerate(design_matrix.columns)
  24. }
  25. contrasts["positive"] = (contrasts["positive"])
  26. contrasts["negative"] = (contrasts["negative"])
  27. contrasts["neutral"] = (contrasts["neutral"])
  28. contrasts["positive - neutral"] = (contrasts["positive"] - contrasts["neutral"])
  29. contrasts["negative - neutral"] = (contrasts["negative"] - contrasts["neutral"])
  30. contrasts["positive - negative"] = (contrasts["positive"] - contrasts["negative"])
  31. contrasts["neutral - positive"] = (contrasts["neutral"] - contrasts["positive"])
  32. contrasts["neutral - negative"] = (contrasts["neutral"] - contrasts["negative"])
  33. contrasts["negative - positive"] = (contrasts["negative"] - contrasts["positive"])
  34. return contrasts
  35. # First level GLM analysis
  36. def first_level_glm(datadir, subject_id):
  37. print(f"Processing {datadir} subject {subject_id}...")
  38. fmri_glm = FirstLevelModel(t_r=2.5,
  39. noise_model='ar1',
  40. hrf_model='spm',
  41. drift_model='cosine',
  42. high_pass=1./128,
  43. smoothing_fwhm=6.0,
  44. signal_scaling=False,
  45. minimize_memory=False)
  46. # Paths to file
  47. fmri_img = f"{datadir}/sub-{subject_id}/func/sub-{subject_id}_task-kritiek_run-1_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz"
  48. events_file = f"{outdir}/criticism_events.tsv"
  49. confounds_file = f"{datadir}/sub-{subject_id}/func/sub-{subject_id}_task-kritiek_run-1_desc-confounds_timeseries.tsv"
  50. # Load file
  51. events = pd.read_table(events_file)
  52. confounds = pd.read_table(confounds_file)
  53. confounds_glm = confounds.fillna(0)[['csf', 'white_matter', 'framewise_displacement', 'trans_x', 'trans_y', 'trans_z', 'rot_x', 'rot_y', 'rot_z']]
  54. # Fit model
  55. fmri_glm = fmri_glm.fit(fmri_img, events, confounds_glm)
  56. # Design matrix
  57. design_matrix = fmri_glm.design_matrices_[0]
  58. # Define contrasts
  59. contrasts = make_contrasts(design_matrix)
  60. # Compute and save z-map for each contrasts
  61. # compute the contrast as z map
  62. zmap_pos = fmri_glm.compute_contrast(contrasts["positive"], output_type='z_score')
  63. zmap_neg = fmri_glm.compute_contrast(contrasts["negative"], output_type='z_score')
  64. zmap_neu = fmri_glm.compute_contrast(contrasts["neutral"], output_type='z_score')
  65. zmap_pos_neu = fmri_glm.compute_contrast(contrasts["positive - neutral"], output_type='z_score')
  66. zmap_neg_neu = fmri_glm.compute_contrast(contrasts["negative - neutral"], output_type='z_score')
  67. zmap_pos_neg = fmri_glm.compute_contrast(contrasts["positive - negative"], output_type='z_score')
  68. zmap_neu_pos = fmri_glm.compute_contrast(contrasts["neutral - positive"], output_type='z_score')
  69. zmap_neu_neg = fmri_glm.compute_contrast(contrasts["neutral - negative"], output_type='z_score')
  70. zmap_neg_pos = fmri_glm.compute_contrast(contrasts["negative - positive"], output_type='z_score')
  71. # save the z map
  72. zmap_pos.to_filename(join(f'{outdir}/first_level/positive/sub-{subject}_task-kritiek_run-01_desc_pos_zmap.nii.gz'))
  73. zmap_neg.to_filename(join(f'{outdir}/first_level/negative/sub-{subject}_task-kritiek_run-01_desc_neg_zmap.nii.gz' ))
  74. zmap_neu.to_filename(join(f'{outdir}/first_level/neutral/sub-{subject}_task-kritiek_run-01_desc_neu_zmap.nii.gz'))
  75. zmap_pos_neu.to_filename(join(f'{outdir}/first_level/con001/sub-{subject}_task-kritiek_run-01_desc_pos-neu_zmap.nii.gz'))
  76. zmap_neg_neu.to_filename(join(f'{outdir}/first_level/con002/sub-{subject}_task-kritiek_run-01_desc_neg-neu_zmap.nii.gz'))
  77. zmap_pos_neg.to_filename(join(f'{outdir}/first_level/con003/sub-{subject}_task-kritiek_run-01_desc_pos-neg_zmap.nii.gz'))
  78. zmap_neu_pos.to_filename(join(f'{outdir}/first_level/con004/sub-{subject}_task-kritiek_run-01_desc_neu_pos_zmap.nii.gz'))
  79. zmap_neu_neg.to_filename(join(f'{outdir}/first_level/con005/sub-{subject}_task-kritiek_run-01_desc_neu_neg_zmap.nii.gz'))
  80. zmap_neg_pos.to_filename(join(f'{outdir}/first_level/con006/sub-{subject}_task-kritiek_run-01_desc_neg_pos_zmap.nii.gz'))
  81. # Output directory
  82. outdir = '/home/ghep/qiny/Age/nilearn_analysis'
  83. # Run first level glm for each participant in adolescent group
  84. datadir = '/home/ghep/qiny/Age/nifti/adolescents'
  85. subject_list = get_subject_ids(datadir)
  86. for subject_id in subject_list:
  87. subject = f'1{subject_id}'
  88. first_level_glm(datadir, subject_id)
  89. # Run first level glm for each participant in adult group
  90. datadir = '/home/ghep/qiny/Age/nifti/adults'
  91. subject_list = get_subject_ids(datadir)
  92. for subject_id in subject_list:
  93. subject = f'2{subject_id}'
  94. first_level_glm(datadir, subject_id)

GLM_firstlevel.py, no license · at the source

Overview

Authors: Qinyuan Chen1, Sam Luc Bart Bonduelle1,2, Guo-Rong Wu1,3, Rudi De Raedt4, Chris Baeken1,5,6,7
  1. Ghent Experimental Psychiatry (GHEP) lab, Faculty of Medicine and Health Sciences, Department of Head and Skin, Ghent University, Ghent, Belgium
  2. Department of Child and Adolescent Psychiatry, Vrije Universiteit Brussel (VUB), University Hospital Brussels (UZ Brussel), Brussels, Belgium
  3. Key Laboratory of Cognition and Personality, Faculty of Psychology, Southwest University, Chongqing, China
  4. Department of Experimental Clinical and Health Psychology, Ghent University, Ghent, Belgium
  5. Department of Psychiatry, University Hospital Brussel (UZ Brussel), Brussels, Belgium
  6. Neuroprotection and Neuromodulation Research Group (NEUR), Center for Neurosciences (C4N), Vrije Universiteit Brussel (VUB), Brussels, Belgium
  7. Department of Electrical Engineering, Eindhoven University of Technology, Eindhoven, the Netherlands
Journal: Developmental cognitive neuroscience, volume 80, article 101737
Dates: received 2 July 2025; accepted 4 May 2026; published online 7 May 2026; in print August 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1016/j.dcn.2026.101737 · PMID 42143546 · PMCID PMC13200081 · OpenAlex W7160540478
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: fMRI (modality), human (organism), developmental (subfield)
Methods: Spectral & time-frequency, Statistics, fMRI & imaging, Preprocessing, Machine learning
Keywords: Neurodevelopment, Adolescence, Social evaluation, Criticism sensitivity, FMRI, Dynamic causal modelling
MeSH: Brain*, Social Cognition*, Social Perception*, Adolescent, Adult, Age Factors, Brain Mapping, Emotions, Female, Gyrus Cinguli, Humans, Magnetic Resonance Imaging, Male, Young Adult (* major topic)
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Research Foundation Flanders (G.0F46.17N); Rode Neuzen; National Natural Science Foundation of China (62271415, 61876156); Ghent University (BOF 16/GOA/017); Fonds Wetenschappelijk Onderzoek (Research Foundation Flanders) (T000720N); EOS (EOS 40007528. - G0I2422N); Queen Elisabeth Medical Foundation for Neurosciences; Agentschap voor Innovatie door Wetenschap en Technologie; BRAINN HORIZON-WIDERA-2021-ACCESS-03 – Twinning project (101079001); BeNeFIT (10390082210018); SOA; FRA (2024 0023)
Citations: not cited yet (Europe PMC); 119 references in the paper

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 5 matches between paragraphs and lines of code.

OSF fr8mn

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Languages: MATLAB (4), Python (2)
Size: 22 files, 6 scripts
Software Heritage: not checked
Found in: “Data Availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: SPM (4 files), Nilearn (2 files), pandas (2 files), NumPy (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
6 files
At the source: osf.io/fr8mn/

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

Code and data availability statement

The paper has a code and 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 the authors' code: OSF fr8mn
  • it says that the data are available on request

Read it in the paper: doi.org/10.1016/j.dcn.2026.101737.

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, 5 authors, 6 keywords, 14 MeSH terms, 12 funders, 113 references.

Cite

This paper

Chen, Q., Bonduelle, S. L. B., Wu, G.-R., De Raedt, R., & Baeken, C. (2026). Being praised and criticized in adolescents and adults: Age-related changes in neural responses to social evaluations. Developmental cognitive neuroscience, 80, 101737. https://doi.org/10.1016/j.dcn.2026.101737

BibTeX

@article{chen2026being,
author = {Chen, Qinyuan and Bonduelle, Sam Luc Bart and Wu, Guo-Rong and De Raedt, Rudi and Baeken, Chris},
title = {{Being praised and criticized in adolescents and adults: Age-related changes in neural responses to social evaluations}},
journal = {Developmental cognitive neuroscience},
year = {2026},
month = may,
volume = {80},
pages = {101737},
publisher = {Elsevier},
issn = {1878-9293},
doi = {10.1016/j.dcn.2026.101737},
url = {https://doi.org/10.1016/j.dcn.2026.101737},
pmid = {42143546},
pmcid = {PMC13200081}
}

RIS

TY - JOUR
AU - Chen, Qinyuan
AU - Bonduelle, Sam Luc Bart
AU - Wu, Guo-Rong
AU - De Raedt, Rudi
AU - Baeken, Chris
TI - Being praised and criticized in adolescents and adults: Age-related changes in neural responses to social evaluations
T2 - Developmental cognitive neuroscience
J2 - Dev Cogn Neurosci
PY - 2026
DA - 2026/05/07
VL - 80
SP - 101737
SN - 1878-9293
PB - Elsevier
DO - 10.1016/j.dcn.2026.101737
UR - https://doi.org/10.1016/j.dcn.2026.101737
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.dcn.2026.101737",
"type": "article-journal",
"title": "Being praised and criticized in adolescents and adults: Age-related changes in neural responses to social evaluations",
"container-title": "Developmental cognitive neuroscience",
"author": [
{
"family": "Chen",
"given": "Qinyuan"
},
{
"family": "Bonduelle",
"given": "Sam Luc Bart"
},
{
"family": "Wu",
"given": "Guo-Rong"
},
{
"family": "De Raedt",
"given": "Rudi"
},
{
"family": "Baeken",
"given": "Chris"
}
],
"container-title-short": "Dev Cogn Neurosci",
"volume": "80",
"page": "101737",
"DOI": "10.1016/j.dcn.2026.101737",
"PMID": "42143546",
"PMCID": "PMC13200081",
"ISSN": "1878-9293",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.dcn.2026.101737",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
7
]
]
}
}

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.dcn.2023.101264 [code]
Developmental patterns and individual differences in responding to social feedback: A longitudinal fMRI study from childhood to adolescence.
Journal: Developmental cognitive neuroscience
In common: developmental, fMRI, 14 references
[2] doi:10.1016/j.dcn.2024.101365 [code]
Behavioral and neural responses to social rejection: Individual differences in developmental trajectories across childhood and adolescence.
Journal: Developmental cognitive neuroscience
In common: developmental, 14 references
[3] doi:10.1093/scan/nsac039
Development of social feedback processing and responses in childhood: an fMRI test-replication design in two age cohorts.
Journal: Social cognitive and affective neuroscience
In common: developmental, fMRI, 11 references
[4] doi:10.1126/sciadv.adp8775 [code]
Youths' sensitivity to social media feedback: A computational account.
Journal: Science advances
In common: 10 references
[5] doi:10.1016/j.dcn.2023.101320
Hooked on a thought: Associations between rumination and neural responses to social rejection in adolescent girls.
Journal: Developmental cognitive neuroscience
In common: developmental, fMRI, 7 references
[6] doi:10.1016/j.dcn.2025.101664 [code]
Neurodevelopmental correlates of emotion regulation in adolescence: An accelerated longitudinal study.
Journal: Developmental cognitive neuroscience
In common: fMRI, 7 references
[7] doi:10.1016/j.dcn.2024.101499 [code]
Neural correlates of vicarious reward processing and peer victimization experiences in late childhood.
Journal: Developmental cognitive neuroscience
In common: fMRI, 7 references
[8] doi:10.1093/cercor/bhae280 [code]
Get out of my head: social evaluative brain states carry over into post-feedback rest and influence remembering how others view us.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: Nilearn, pandas, NumPy, fMRI, 5 references
[9] doi:10.1017/s0033291724002885 [code]
Causal mechanisms of quadruple networks in pediatric bipolar disorder.
Journal: Psychological medicine
In common: Nilearn, SPM, NumPy, fMRI, 5 references
[10] doi:10.1016/j.dcn.2025.101526 [code]
A longitudinal neuroimaging study of adolescent girls' mentalizing and perspective-taking tendencies.
Journal: Developmental cognitive neuroscience
In common: developmental, 6 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.1016/j.dcn.2026.101737.svg)](https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101737)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101737.svg
   :target: https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101737
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101737"><img src="https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101737.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

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)

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.