OSCR

Respiration as a dynamic modulator of sensory sampling.

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. [1] § Methods › Respiration preprocessing and phase extraction ↔ Code/fig1d.m, lines 13 to 64 · score 0.65 · peak prominence, breathing rates, findpeaks, troughs, respiration · Report a mismatch
  2. [2] § Methods › MEG preprocessing and segmentation ↔ Code/fig1d.m, lines 66 to 156 · score 0.65 · ft_preprocessing, outliers, eye, segmented, artefacts, channels · Report a mismatch
  3. [3] § Results › Distinct oscillatory signatures of behaviourally relevant stimulus characteristics ↔ Code/fig2.m, lines 454 to 552 · score 0.56 · Individual alpha power, posterior alpha, BF10, Violin, uncued, Figure 2 · Report a mismatch
  4. [4] § Methods › Respiration phase-dependent fitting of the psychometric function ↔ Code/fig1bc.m, lines 267 to 349 · score 0.56 · cumulative Gaussian, Psignifit, sigmoid, fitted, refitting, threshold · Report a mismatch
  5. [5] § Results › Respiration-driven spectral changes within the RMBO network mediate perception ↔ Code/fig3bcd.m, lines 100 to 205 · score 0.54 · 1–40 Hz, power spectra, respiration phase, FDR, ROIs, onset · 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 · 166 lines · 5.6 KB · no license · 2 matches

  1. clearvars
  2. addpath(genpath('D:\RESCUE\'));
  3. addpath('C:\Program Files\MATLAB\Toolboxes\fieldtrip-20240111\fieldtrip-20240111\');
  4. ft_defaults;
  5. ft_warning off;
  6. datapath = 'D:\RESCUE\_data\';
  7. outpath = 'D:\RESCUE\_out\';
  8. ids = [2549 3051 3066 3048 3033 3050 3067 3064 3062 3063 2521 2550 2448 2314 2168 ...
  9. 2524 2480 2299 2749 1566 2214 2348 1822 3090 3047 3081 3053 2330 3078 3105]; % full
  10. %% extract respiration frequencies for rest and task
  11. conds = {'nasal','oral'};
  12. respfreqs = zeros(3,numel(ids));
  13. for isub = 1:numel(ids)
  14. % rest
  15. for icond = 1:2
  16. load([outpath 'phasevec_' num2str(ids(isub)) '_rest_' conds{icond} '.mat'],'phasevec');
  17. tmp = phasevec(~isnan(phasevec));
  18. [~, peaks] = findpeaks(tmp, 'MinPeakProminence',1);
  19. [~, troughs] = findpeaks(-tmp, 'MinPeakProminence',1);
  20. for k = 2:numel(peaks)
  21. diff(k-1) = peaks(k)-peaks(k-1);
  22. end
  23. respfreqs(icond,isub) = 1/(mean(diff)/600); % breathing rate (Hz)
  24. end
  25. % task
  26. tmpfreqs = [];
  27. for irun = 1:6
  28. load([outpath 'phasevec_' num2str(ids(isub)) '_task_' num2str(irun) '.mat'],'phasevec');
  29. tmp = phasevec(~isnan(phasevec));
  30. [~, peaks] = findpeaks(tmp, 'MinPeakProminence',1);
  31. [~, troughs] = findpeaks(-tmp, 'MinPeakProminence',1);
  32. for k = 2:numel(peaks)
  33. diff(k-1) = peaks(k)-peaks(k-1);
  34. end
  35. tmpfreqs(irun) = 1/(mean(diff)/600); % breathing rate (Hz)
  36. end
  37. respfreqs(3,isub) = mean(tmpfreqs);
  38. end
  39. % plot frequencies for rest (nasal, oral) and task
  40. addpath('D:\RespSpeech');
  41. cmap = {'#57315A','#8C2B59','#8C8474'};
  42. figure;
  43. v = violinplot(respfreqs');
  44. for k = 1:3
  45. v(1,k).ViolinColor = hex2rgb(cmap{k});
  46. v(1,k).ScatterPlot.SizeData = 25;
  47. v(1,k).ScatterPlot.MarkerFaceAlpha = 1;
  48. v(1,k).ScatterPlot.MarkerEdgeColor = [1 1 1];
  49. end
  50. ylim([0.1 0.5]);
  51. xlabel('condition');
  52. ylabel('frequency (Hz)');
  53. set(gca,'XTickLabel',{'nasal (rest)','oral (rest)','task mean'});
  54. set(gca,'YTick',[0.1:0.1:0.5]);
  55. title('respiration frequencies');
  56. % test
  57. [p,h,stats] = signrank(respfreqs(1,:),respfreqs(2,:)) % nasal > oral *
  58. [p,h,stats] = signrank(respfreqs(1,:),respfreqs(3,:)) % nasal < task **
  59. %% NEW 251112 - R1 Analysis for saccadic patterns across conditions
  60. ids = [2549 3051 3066 3048 3033 3050 3067 3064 3062 3063 2521 2550 2448 2314 2168 ...
  61. 2524 2480 2299 2749 1566 2214 2348 1822 3090 3047 3081 3053 2330 3078 3105];
  62. % create one full data set of segmented horizontal eye movements for each participant
  63. for isub = 1:numel(ids)
  64. trials = [];
  65. for irun = 1:6
  66. % load raw data sampled at 600 Hz
  67. idfiles = dir(fullfile([datapath 'A' num2str(ids(isub))], '*.ds'));
  68. fn = [datapath 'A' num2str(ids(isub)) '\' idfiles(irun+1).name];
  69. cfg = [];
  70. cfg.dataset = fn;
  71. cfg.continuous = 'yes';
  72. raw = ft_preprocessing(cfg);
  73. % crop to pupil
  74. rawpup = ft_selectdata(struct('channel',{{'UADC005'}}),raw);
  75. % actual trial definition
  76. cfg = [];
  77. cfg.dataset = fn;
  78. cfg.trialfun = 'dk_trialfun_rescue';
  79. cfg.trialdef.eventtype = 'frontpanel trigger';
  80. cfg.trialdef.eventvalue = [16 17 18 19 21 22 23 24];
  81. cfg.trialdef.prestim = 1.85; %1.25;
  82. cfg.trialdef.poststim = 0.65; %0.75;
  83. cfg_stimonset = ft_definetrial(cfg);
  84. trials = [trials; cfg_stimonset.trl(11:end,:)]; % crop first ten trials
  85. segrawpup = ft_redefinetrial(cfg_stimonset, rawpup);
  86. all{irun} = segrawpup;
  87. end
  88. cfg = [];
  89. cfg.keepsampleinfo = 'no';
  90. fullsegrawpup = ft_appenddata(cfg,all{1},all{2},all{3},all{4},all{5},all{6});
  91. save([outpath 'fullsegrawpup_' num2str(ids(isub)) '.mat'], 'fullsegrawpup');
  92. end
  93. % determine the number of saccades within each category
  94. saccnum = zeros(numel(ids),4);
  95. for isub = 1:numel(ids)
  96. isub
  97. load([outpath 'fullsegrawpup_' num2str(ids(isub)) '.mat'], 'fullsegrawpup');
  98. % crop to prestimulus time window
  99. cfg = [];
  100. cfg.latency = [-1.6 0];
  101. prestimrawpup = ft_selectdata(cfg, fullsegrawpup);
  102. % trial selection
  103. trlinfo = prestimrawpup.trialinfo(:,1);
  104. uu = find(trlinfo == 16 | trlinfo == 24); % uncued, untimed
  105. ut = find(trlinfo == 18 | trlinfo == 22); % uncued, timed
  106. cu = find(trlinfo == 17 | trlinfo == 23); % cued, untimed
  107. ct = find(trlinfo == 19 | trlinfo == 21); % cued, timed
  108. cfg = [];
  109. cfg.trials = uu;
  110. uupup = ft_selectdata(cfg, prestimrawpup);
  111. cfg.trials = ut;
  112. utpup = ft_selectdata(cfg, prestimrawpup);
  113. cfg.trials = cu;
  114. cupup = ft_selectdata(cfg, prestimrawpup);
  115. cfg.trials = ct;
  116. ctpup = ft_selectdata(cfg, prestimrawpup);
  117. % run the artefact detection
  118. cfg = [];
  119. cfg.artfctdef.zvalue.channel = 'all';
  120. cfg.artfctdef.zvalue.cutoff = 5;
  121. uusacc = ft_artifact_zvalue(cfg, uupup);
  122. utsacc = ft_artifact_zvalue(cfg, utpup);
  123. cusacc = ft_artifact_zvalue(cfg, cupup);
  124. ctsacc = ft_artifact_zvalue(cfg, ctpup);
  125. % save number of saccades
  126. saccnum(isub,1) = length(uusacc.artfctdef.zvalue.artifact);
  127. saccnum(isub,2) = length(utsacc.artfctdef.zvalue.artifact);
  128. saccnum(isub,3) = length(cusacc.artfctdef.zvalue.artifact);
  129. saccnum(isub,4) = length(ctsacc.artfctdef.zvalue.artifact);
  130. end
  131. % remove outlier
  132. saccnum(19,:) = [];
  133. writematrix(saccnum,[outpath 'saccnum.txt']);
  134. median(saccnum)

fig1d.m, no license · at the source

Overview

Authors: Nikos Chalas1,2, Martina Saltafossi1,2, Teresa Berther1,2, Elio Balestrieri1,2, Omid Abbasi1,2, Daniel S. Kluger1,2
ORCID iDs: Daniel S. Kluger
  1. Institute for Biomagnetism and Biosignal Analysis, University of Münster,Münster, Germany
  2. Otto Creutzfeldt Center for Cognitive and Behavioral Neuroscience, University of Münster,Münster, Germany
Institutions: University of Münster (Germany)
Journal: Nature communications, volume 17, issue 1, article 3261
Dates: received 28 July 2025; accepted 23 March 2026; published online 7 April 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41467-026-71604-8 · PMID 41946728 · PMCID PMC13062087 · OpenAlex W4411754679
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: MEG (modality), human (organism), cognitive (subfield)
Methods: Spectral & time-frequency, Connectivity, Statistics, Smoothing, state filtering, decompositions, Preprocessing, fMRI & imaging, Physiology & signal measures
Keywords: Sensory processing, Perception
MeSH: Brain*, Respiration*, Adult, Arousal, Female, Humans, Magnetoencephalography, Male, Photic Stimulation, Pupil, Visual Perception, Young Adult (* major topic)
Topic: Advanced Chemical Sensor Technologies (Biomedical Engineering, Engineering), according to OpenAlex
Funding: European Research Council (101162169); Innovative Medical Research - Grant ID KL 1 2 22 01 IZKF - Grant ID Klu3/002/26; Deutsche Forschungsgemeinschaft (491157081)
Citations: cited by 3 papers (Europe PMC); 70 references in the paper

Abstract

Respiration dynamically modulates sensory perception by orchestrating transient states of the brain and the body. Using simultaneous recordings of high-density magneto- encephalography (MEG), respiration, and pupillometry, we show that human perceptual sensitivity to near-threshold visual stimuli was enhanced during inspiration, coinciding with respiration-modulated increases in arousal neuromodulation and cortical excitability. Participants adapted their breathing patterns to align with predictable stimulus onset, and this adaptive respiratory alignment correlated with improved performance. We further reveal that respiration-modulated changes in alpha and beta oscillations reflect distinct shifts in sensory and motor excitability, respectively. Crucially, respiration-resolved multivariate Granger causality analyses demonstrate that the breathing rhythm systematically shapes directed information flow within a widespread interoceptive network. This respiration-brain coupling was flexibly adjusted based on stimulus predictability, highlighting a mechanism for active sensing which integrates internal bodily rhythms with external sensory demands to optimise perception.

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

OSF qasvp

License: none: the authors keep all their rights
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Languages: MATLAB (8)
Size: 30 files, 8 scripts
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
  • 29 September 2026: the link answers (HTTP 200)
8 files
At the source: osf.io/qasvp

Code availability

Software code is publicly available via osf.io/qasvp and included in the source data folders provided with this paper.

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

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;
  • 8 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.

Data availability

Raw data are protected by data privacy laws and can be made available by means of a formal data sharing agreement. The processed and anonymised data MEG, physiological, and behavioural data are publicly available at the Open Science Framework (OSF) via osf.io/qasvp. Source data are provided with this paper.

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

Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 2 keywords, 12 MeSH terms, 3 funders, 70 references.

Cite

This paper

Chalas, N., Saltafossi, M., Berther, T., Balestrieri, E., Abbasi, O., & Kluger, D. S. (2026). Respiration as a dynamic modulator of sensory sampling. Nature communications, 17(1), 3261. https://doi.org/10.1038/s41467-026-71604-8

BibTeX

@article{chalas2026respiration,
author = {Chalas, Nikos and Saltafossi, Martina and Berther, Teresa and Balestrieri, Elio and Abbasi, Omid and Kluger, Daniel S.},
title = {{Respiration as a dynamic modulator of sensory sampling}},
journal = {Nature communications},
year = {2026},
month = apr,
volume = {17},
number = {1},
pages = {3261},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-71604-8},
url = {https://doi.org/10.1038/s41467-026-71604-8},
pmid = {41946728},
pmcid = {PMC13062087}
}

RIS

TY - JOUR
AU - Chalas, Nikos
AU - Saltafossi, Martina
AU - Berther, Teresa
AU - Balestrieri, Elio
AU - Abbasi, Omid
AU - Kluger, Daniel S.
TI - Respiration as a dynamic modulator of sensory sampling
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/04/07
VL - 17
IS - 1
SP - 3261
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-71604-8
UR - https://doi.org/10.1038/s41467-026-71604-8
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-71604-8",
"type": "article-journal",
"title": "Respiration as a dynamic modulator of sensory sampling",
"container-title": "Nature communications",
"author": [
{
"family": "Chalas",
"given": "Nikos"
},
{
"family": "Saltafossi",
"given": "Martina"
},
{
"family": "Berther",
"given": "Teresa"
},
{
"family": "Balestrieri",
"given": "Elio"
},
{
"family": "Abbasi",
"given": "Omid"
},
{
"family": "Kluger",
"given": "Daniel S."
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "3261",
"DOI": "10.1038/s41467-026-71604-8",
"PMID": "41946728",
"PMCID": "PMC13062087",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-71604-8",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
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.1523/jneurosci.1173-24.2024 [code]
A Dynamic Link between Respiration and Arousal.
Journal: The Journal of neuroscience : the official journal of the Society for Neuroscience
In common: FieldTrip, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 19 references, author Daniel S Kluger
[2] doi:10.1038/s41467-023-40250-9 [code]
Modulatory dynamics of periodic and aperiodic activity in respiration-brain coupling.
Journal: Nature communications
In common: Violinplot-Matlab, CircStat, FieldTrip, 1 other tool, cognitive, 13 references, author Daniel S Kluger
[3] doi:10.1371/journal.pcbi.1014672 [code]
Robust circular cluster-based statistics for respiration-brain coupling.
Journal: PLoS computational biology
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 12 references, author Daniel S Kluger
[4] doi:10.1038/s43856-025-00811-z [code]
Respiratory modulations of cortical excitability and interictal spike timing in focal epilepsy: a case report.
Journal: Communications medicine
In common: CircStat, FieldTrip, Signal Processing Toolbox, 1 other tool, 8 references, author Daniel S Kluger
[5] doi:10.1371/journal.pcbi.1013086 [code]
The respiratory cycle modulates distinct dynamics of affective and perceptual decision-making.
Journal: PLoS computational biology
In common: cognitive, 14 references
[6] doi:10.1113/jp287205 [code]
The pupillary respiratory-phase response: pupil size is smallest around inhalation onset and largest during exhalation.
Journal: The Journal of physiology
In common: CircStat, Statistics and Machine Learning Toolbox, cognitive, 9 references
[7] doi:10.1371/journal.pbio.3003982 [code]
No evidence for modulation of the readiness potential by respiratory phase during natural breathing.
Journal: PLoS biology
In common: CircStat, FieldTrip, Signal Processing Toolbox, 1 other tool, 7 references
[8] doi:10.1038/s41467-026-73828-0 [code]
Human forebrain neural synchronization and entrainment to breathing during wakefulness, sleep, and external mechanical ventilation.
Journal: Nature communications
In common: Violinplot-Matlab, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 8 references
[9] doi:10.1098/rspb.2024.2566 [code]
Respiration shapes response speed and accuracy with a systematic time lag.
Journal: Proceedings. Biological sciences
In common: cognitive, 11 references
[10] doi:10.1038/s42003-024-06642-3
Dynamic mechanisms that couple the brain and breathing to the external environment.
Journal: Communications biology
In common: 10 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.1038/s41467-026-71604-8.svg)](https://openscicode.org/badge/doi/10.1038/s41467-026-71604-8)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-71604-8.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41467-026-71604-8
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-71604-8"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-71604-8.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.