Human forebrain neural synchronization and entrainment to breathing during wakefulness, sleep, and external mechanical ventilation.
The 12 matches · 6 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [1] § Results › Across participants, neural oscillations at numerous forebrain sites and regions synchronized with breathing during wakefulness ↔ reqfunc/roiNameUpdate.m, the whole file · a weak match · score 0.99 · superior parietal lobule, inferior frontal, inferior temporal, superior temporal, superior frontal, posterior cingulate
- [2] § Results › Across participants, neural oscillations at numerous forebrain sites and regions synchronized with breathing during wakefulness ↔ reqfunc/sortROI.m, the whole file · a weak match · score 0.78 · AngG, ACC, IFG, ITG, MCC, MFG
- [3] § Results › External mechanical ventilation drove forebrain entrainment to breathing ↔ reqfunc/roiNameUpdate.m, the whole file · a weak match · score 0.76 · superior frontal, posterior dorsal, middle temporal, supramarginal, fusiform, orbital
- [4] § Methods › Statistical analysis ↔ reqfunc/plotLME.m, the whole file · a weak match · score 0.76 · logit transformation, LME model, linear mixed, fitlme, channel, coherence
- [5] § Results › External mechanical ventilation using slow, deep breathing parameters increased the number of forebrain sites entrained to breathing ↔ NeuralbreathingScript.m, lines 412–511 · score 0.69 · deep breathing, sided Wilcoxon, template brain, brain sites, Violin, horizontal
- [6] § Results › External mechanical ventilation using slow, deep breathing parameters increased the number of forebrain sites entrained to breathing ↔ NeuralbreathingScript.m, lines 412–511 · score 0.64 · tidal volume, deep breathing, brain sites, Wilcoxon, ventilator, coherence
- [7] § Methods › Spectral and coherence analysis ↔ reqfunc/plotPSD.m, the whole file · a weak match · score 0.57 · Power spectral density, pwelch, PSD, overlap, windows
- [8] § Methods › Signal processing ↔ dbt.m, lines 1–126 · score 0.57 · demodulated band transform, cutoff, downsampled, filtered, lowpass, DBT
- [9] § Methods › Statistical analysis ↔ dbtcoh.m, lines 1–51 · score 0.56 · cross spectral, permutation, efficiency, spectrum, correlation, zero
- [10] § Methods › Signal processing ↔ dbtvbw.m, lines 1–118 · score 0.56 · demodulated band transform, cutoff, downsampled, filtered, lowpass, DBT
- [11] § Methods › Statistical analysis ↔ reqfunc/plotLME.m, the whole file · a weak match · score 0.54 · coefTest, intercept, predicted, model, coefficients, sleep
- [12] § Results › Forebrain synchrony with breathing decreased during sleep ↔ NeuralbreathingScript.m, lines 194–336 · score 0.51 · Wilcoxon rank sum, IQR, Median, sleep, awake, coherence
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 · 604 lines · 22 KB · MIT · 3 matches
- coh_results_Path = '.\saved_results\';
- addpath(genpath('.\reqfunc\'));
- % load saved coherence results
- dataAw = load([coh_results_Path,'CohAwakeBiPolar.mat']);
- dataAnes = load([coh_results_Path,'CohAnesBiPolar.mat']);
- dataVS = load([coh_results_Path,'CohVentBiPolar.mat']);
- dataSLP = load([coh_results_Path,'CohSleepBiPolar.mat']);
- %% define colors
- color_aw = [0.1 0.7 0];
- colorSleep = [0.9 0.4 0.1];
- color_sp = [0 0.6 0.8];
- color_vs = [0.6 0.12 0.47];
- colorS = [color_aw;colorSleep;color_sp;color_vs];
- Fs = 500; % sampling rate all blocks except sleep
- Fs_slp = 250; % sampling rate for sleep data
- % some plotting variables to define
- pThr = 0.05;
- Msize = 80;
- Csize = [50,180];
- templateAlpha = 0.09;
- Malpha = 0.9;
- BrHem = 1;
- % find significant indexes
- % get significant contacts indexes
- awakeIndx = dataAw.significance_v;
- anesIndx = dataAnes.significance_v;
- ventsIndx = dataVS.significance_v;
- sleepIndx = dataSLP.significance_v;
- %% Figure 1: Plot coverage and Coherence for each patient
- Msize = 35;
- Csize = [50,180]; BrainAlpha = 0.3; BrainColor = [1 0.98 0.98];
- unqPt = unique(dataAw.ptID);
- for j = 1:length(unqPt)
- close all;
- plotPatientBrain(unqPt(j),BrHem,BrainAlpha,BrainColor,[]); % plot the template brain LH on right, RH on left hemReverse=true
- h = gca; h.ZAxis.Visible = 'off'; light('position', [-30000 0 0]);
- set(gcf, 'Position', [100, 100, 590, 600]); % for lateral view
- AwCord = dataAw.ChnCoordinates(dataAw.ptID==unqPt(j),:); % locIndx_aw from later section to plot only GM contacts
- h1=scatter3(AwCord(:,1), AwCord(:,2),AwCord(:,3), Msize.*ones(size(AwCord,1),1),...
- MarkerFaceColor = [0.4 0.4 0.4],MarkerFaceAlpha = Malpha,MarkerEdgeColor=[0.1 0.1 0.1]);
- axx = gca;
- camlight('headlight');
- zlim([-60 95]);
- view([0 0 90]); % Axial
- %view([0 -90 0]); % coronal view
- %view([-90 0 0]); % lateral view
- tmpVal = dataAw.CohValue(dataAw.ptID==unqPt(j));
- tmpcoord = dataAw.ChnCoordinates(dataAw.ptID==unqPt(j),:);
- tmpindx = awakeIndx(dataAw.ptID==unqPt(j));
- plotPatientscatter(unqPt(j),tmpcoord, tmpindx,tmpVal,BrHem,BrainAlpha,Csize,color_aw,Malpha,BrainColor,false);
- camlight('headlight');
- h = gca; h.ZAxis.Visible = 'off';
- zlim([-60 95]);
- view([0 0 90]); % Axial
- % plot patient brain surf
- plotPatientBrain(unqPt(j),BrHem,0.92,[0.92 0.92 0.92],[],false);
- %camlight('headlight','infinite');
- delete(findall(gcf,'Type','light'));
- light('position', [0 0 900000]); %light('position', [0 -300000 0])
- material dull;
- h = gca; h.YAxis.Visible = 'off';
- fig = gcf; % Get the current figure handle
- set(fig, 'Name',num2str(unqPt(j)) , 'NumberTitle', 'off');
- fprintf('Patient: %d\n',unqPt(j))
- % plot respiration data
- tt = (1:length(dataAw.tsData(j).belt))./Fs;
- figure('Position',[200 200 750 280],'Color','w');
- plot(tt,zscore(dataAw.tsData(j).belt),'color',[0.4,0.4,0.4],'LineWidth',1.6);
- xlim([50 30+55]);
- ylim([-2.9 2.9]);
- yticks([-2,-1,0,1,2]);
- set(gca,'FontSize',25);
- [Pbb,pF] = plotPSD(dataAw.tsData(j).belt,Fs,50,0,2^19,'n');
- [~,mxIn] = max(Pbb);
- Resfreq(j) = pF(mxIn);
- box off; title(sprintf(['%d: f = %0.2fHz'], unqPt(j),Resfreq(j) ));
- h = gca; h.XAxis.Visible = 'off';
- end
- % Plot sagittal Left and Right
- fprintf('Plotting: Lateral views........\n');
- Msize = 35; Csize = [50,180];
- unqPt = unique(dataAw.ptID);
- for j = 1:length(unqPt)
- %close all;
- tmpVal = dataAw.CohValue(dataAw.ptID==unqPt(j));
- tmpcoord = dataAw.ChnCoordinates(dataAw.ptID==unqPt(j),:);
- tmpindx = awakeIndx(dataAw.ptID==unqPt(j));
- plotPatientSagittal(unqPt(j),tmpcoord, tmpindx,tmpVal,BrainAlpha,Csize,color_aw,Malpha,BrainColor,0);
- fprintf('Patient: %d\n',unqPt(j));
- end
- %% plot coverage during Awake States and Coherence on template Brain
- % plot Coverage
- hemRev = false; % plot the template brain LH on right, RH on left
- plotBrainPatch(BrHem,templateAlpha,[],[], hemRev);
- % plot Significant contacts in Awake breathing
- awCord = dataAw.ChnCoordinates;
- h1=scatter3(awCord(:,1),awCord(:,2),awCord(:,3), Msize.*ones(size(awCord,1),1)./2, [0.3 0.3 0.3],'fill');
- h1.MarkerFaceAlpha = Malpha;
- axx = gca;
- % Create line
- view([0 0 90]);
- material metal;
- camlight(axx, 'headlight');
- set(gcf,'Name','Coverage Map: Awake Fig3B, Anesthetized Fig5B, Ventilated Fig6B','NumberTitle', 'off');
- %BrainColor = [0.78 0.7 0.7];
- %
- BrainAlpha = 0.3; BrainColor = [1 0.98 0.98];
- plotbrainscatter(dataAw,awakeIndx,dataAw.CohValue,BrHem,BrainAlpha,Csize,color_aw,Malpha,BrainColor)
- set(gcf,'Name','Coherence Map: Awake Fig3C','NumberTitle', 'off');
- plotbrainscatter(dataAw,awakeIndx,dataAw.CohValue,BrHem,BrainAlpha,Csize,color_aw,Malpha,BrainColor,true)
- set(gcf,'Name','Coherence Map: Awake Fig3C','NumberTitle', 'off');
- % plot coverage during Sleep States and Coherence on template Brain
- plotBrainPatch(BrHem,templateAlpha,[],[]); % plot the template brain LH on right, RH on left
- % plot Significant contacts in Awake breathing
- slpCord = dataSLP.ChnCoordinates; % locIndx_aw from later section to plot only GM contacts
- h1=scatter3(-slpCord(:,1), slpCord(:,2),slpCord(:,3), Msize.*ones(size(slpCord,1),1)./2,[0.3 0.3 0.3],'fill');
- h1.MarkerFaceAlpha = Malpha;
- axx = gca;
- % Create line
- view([0 0 90]);
- camlight(axx, 'headlight');
- set(gcf,'Name','Coverage Map: Sleep Fig4B','NumberTitle', 'off');
- % plot coherence
- plotbrainscatter(dataSLP,sleepIndx,dataSLP.CohValue,BrHem,BrainAlpha,Csize,colorSleep,Malpha,BrainColor)
- set(gcf,'Name','Coherence Map: Sleep Fig4C','NumberTitle', 'off');
- % plot Coherence on template Brain: Anesthesia and mechanical ventilation
- plotbrainscatter(dataAnes,anesIndx,dataAnes.CohValue,BrHem,BrainAlpha,Csize,color_sp,Malpha,BrainColor);
- set(gcf,'Name','Coherence Map: Anesthetized Fig5C','NumberTitle', 'off');
- plotbrainscatter(dataAnes,anesIndx,dataAnes.CohValue,BrHem,BrainAlpha,Csize,color_sp,Malpha,BrainColor,true);
- set(gcf,'Name','Coherence Map: Anesthetized Fig5C','NumberTitle', 'off');
- % mechanical ventilation
- plotbrainscatter(dataVS,ventsIndx,dataVS.CohValue,BrHem,BrainAlpha,Csize,color_vs,Malpha,BrainColor);
- set(gcf,'Name','Coherence Map: Ventilated Fig6C','NumberTitle', 'off');
- plotbrainscatter(dataVS,ventsIndx,dataVS.CohValue,BrHem,BrainAlpha,Csize,color_vs,Malpha,BrainColor,true);
- set(gcf,'Name','Coherence Map: Ventilated Fig6C','NumberTitle', 'off');
- %% ROIbased scatter plots
- roiscatterplot(dataAw.CohValue,dataAw.LocationsKN,color_aw,[0,1]);
- set(gcf,'Name','Fig3H Awake Breathing-LFP coherence','NumberTitle', 'off');
- roiscatterplot(dataSLP.CohValue,dataSLP.LocationsKN,colorSleep,[0,0.8]);
- set(gcf,'Name','Fig4D Sleep Breathing-LFP coherence','NumberTitle', 'off');
- roiscatterplot(dataAnes.CohValue,dataAnes.LocationsKN,color_sp,[0,1]);
- set(gcf,'Name','Fig5D Anesthetized automatic Breathing-LFP coherence','NumberTitle', 'off');
- roiscatterplot(dataVS.CohValue,dataVS.LocationsKN,color_vs,[0,0.8]);
- set(gcf,'Name','Fig5D Anesthetized ventilated Breathing-LFP coherence','NumberTitle', 'off');
- %% summary stats
- dataList = {dataAw, dataSLP, dataAnes, dataVS};
- stateNames = {'Awake', 'Sleep', 'Anesthetized','Ventilation'};
- for d = 1:length(dataList)
- data = dataList{d};
- state = stateNames{d};
- sigIndx = data.significance_v;
- ptIDs = unique(data.ptID);
- nSite = zeros(length(ptIDs), 1);
- nSigf = zeros(length(ptIDs), 1);
- for ii = 1:length(ptIDs)
- nSite(ii) = sum(data.ptID == ptIDs(ii));
- nSigf(ii) = sum(sigIndx(data.ptID == ptIDs(ii)));
- end
- totalSites = sum(nSite);
- totalSigf = sum(nSigf);
- meanSitesPerPt = mean(nSite);
- stdSitesPerPt = std(nSite);
- meanSigfPerPt = mean(nSigf);
- stdSigfPerPt = std(nSigf);
- percentSigf = (totalSigf / totalSites) * 100;
- % Print for this state
- fprintf('\n=== %s ===\n', state);
- fprintf('Total sites: %d\n', totalSites);
- fprintf('Total significant sites: %d\n', totalSigf);
- fprintf('Sites per participant: %.1f ± %.1f\n', meanSitesPerPt, stdSitesPerPt);
- fprintf('Significant sites per participant: %.1f ± %.1f\n', meanSigfPerPt, stdSigfPerPt);
- fprintf('Overall percentage of significant sites: %.1f%%\n', percentSigf);
- end
- %% Coherence in each ROI bar plot
- awValues = dataAw.CohValue; slpValues = dataSLP.CohValue;
- spValues = dataAnes.CohValue; vsValues = dataVS.CohValue;
- LocOR = roiNameUpdate(dataAw.LocationsKN);
- LocSLP = roiNameUpdate(dataSLP.LocationsKN);
- % unique ROIs
- unqROI = unique([LocOR;LocSLP]);
- Nroi = length(unqROI);
- CountsROI = zeros(Nroi, 2); countsS = zeros(Nroi, 4);
- vioData = cell(Nroi,4);
- for kk = 1:Nroi
- indxAW = strcmp(LocOR, unqROI{kk});
- indxSLP = strcmp(LocSLP, unqROI{kk});
- CountsROI(kk,1) = sum(indxAW);%sum(cell2mat(strfind(Loc, uniqLoc{kk})));
- CountsROI(kk,2) = sum(indxSLP);
- countsS(kk,1) = sum(strcmp(LocOR(awakeIndx), unqROI{kk}));
- countsS(kk,2) = sum(strcmp(LocSLP(sleepIndx), unqROI{kk}));
- countsS(kk,3) = sum(strcmp(LocOR(anesIndx), unqROI{kk}));
- countsS(kk,4) = sum(strcmp(LocOR(ventsIndx), unqROI{kk}));
- vioData{kk,1} = awValues(indxAW)';
- vioData{kk,2} = slpValues(indxSLP)';
- vioData{kk,3} = spValues(indxAW)';
- vioData{kk,4} = vsValues(indxAW)';
- end
- % remove ROIs less than 5 total contacts
- rmvIndx = find(CountsROI(:,1)<=5);
- CountsROI(rmvIndx,:)=[];
- countsS(rmvIndx,:)=[];
- unqROI(rmvIndx)=[];
- vioData(rmvIndx,:) = [];
- roiInx = sortROI(unqROI);
- CountsROI = CountsROI(roiInx,:);
- countsS = countsS(roiInx,:);
- unqROI = unqROI(roiInx);
- vioData = vioData(roiInx,:);
- roiPercentage = 100*([countsS(:,1)./CountsROI(:,1),countsS(:,2)./CountsROI(:,2),countsS(:,3:4)./CountsROI(:,1)]);
- % find empty cells in vioData
- isEmptyCell = cellfun(@isempty, vioData);
- [vioData{isEmptyCell}] = deal(NaN); % filling NaN values on empty cells
- meanCorr = cell2mat(cellfun(@mean, vioData, 'UniformOutput', false));
- stdCorr = cell2mat(cellfun(@std, vioData, 'UniformOutput', false));
- % Compare coherence during Awake vs Sleep across participants
- AwakeVal = [];
- SleepVal = [];
- nPt = unique(dataAw.ptID);
- for i = 1:length(nPt)
- IndxAwake = dataAw.ptID == nPt(i);
- IndxSleep = dataSLP.ptID == nPt(i);
- % Mean coherence per participant in each state
- if ~isnan(mean(dataSLP.CohValue(IndxSleep)))
- SleepVal = [SleepVal; mean(dataSLP.CohValue(IndxSleep))];
- end
- if ~isnan(mean(dataAw.CohValue(IndxAwake)))
- AwakeVal = [AwakeVal; mean(dataAw.CohValue(IndxAwake))];
- end
- end
- % Statistical Comparison
- % Wilcoxon Rank-Sum test
- [p_slp_awake, ~, stats] = ranksum(AwakeVal, SleepVal);
- % Rank-biserial correlation effect size
- ranksumU = stats.ranksum;
- nAw = numel(AwakeVal);
- nSlp = numel(SleepVal);
- U = stats.ranksum - nAw*(nAw+1)/2; % convert from W to U
- rankBiserial = (2*U)/(nAw * nSlp) - 1; % effect size
- % Medians and IQRs
- AwakeMedian = median(AwakeVal);
- AwakeIQR = iqr(AwakeVal);
- SleepMedian = median(SleepVal);
- SleepIQR = iqr(SleepVal);
- fprintf('\n--- Statistical Summary (Awake vs Sleep) ---\n');
- fprintf('Wilcoxon rank-sum test: p = %.4f\n', p_slp_awake);
- fprintf('Rank-biserial correlation: %.2f\n', rankBiserial);
- fprintf('Awake: median = %.3f, IQR = %.3f\n', AwakeMedian, AwakeIQR);
- fprintf('Sleep: median = %.3f, IQR = %.3f\n', SleepMedian, SleepIQR);
- % Violin Plot
- mxLen = max([length(AwakeVal), length(SleepVal)]);
- vio_aw = [AwakeVal; NaN(mxLen-length(AwakeVal),1)];
- vio_slp = [SleepVal; NaN(mxLen-length(SleepVal),1)];
- violinData = [vio_aw, vio_slp];
- figure("Position", [200, 100, 400, 350]);
- vp = violinplot(violinData, {'Awake', 'Sleep'}, ...
- 'ViolinColor', brighten(colorS, 0.4), 'Width', 0.2, 'ShowMean', true);
- for ii = 1:length(vp)
- mmColor = brighten(colorS(ii,:), -0.6);
- vp(ii).MeanPlot.Color = mmColor;
- vp(ii).MeanPlot.LineWidth = 2;
- vp(ii).MedianColor = [1, 1, 1];
- vp(ii).MedianPlot.SizeData = 100;
- end
- ylim([0 0.45]);
- ylabel('Coherence (R)')
- box off;
- xlim([0.5 2.5]);
- set(gcf, 'color', 'w');
- axx = gca;
- axx.YTick = [0:0.2:1];
- set(axx, 'fontSize', 16);
- set(gcf,'Name','Awake vs. Sleep: Fig4E');
- % compute where to place the text
- ymax = max([AwakeVal; SleepVal]);
- % display the exact p-value
- text(1.5, ymax*1.3, sprintf('p = %.4f', p_slp_awake), ...
- 'HorizontalAlignment','center', 'FontSize',14);
- % plot awake vs sleep
- % unique ROIs
- sleepROI = unique([LocOR;LocSLP]);
- Nroi = length(sleepROI);
- sleepROIcount = zeros(Nroi, 1);
- for kk = 1:Nroi
- indxSLP = strcmp(LocSLP, sleepROI{kk});
- sleepROIcount(kk) = sum(indxSLP);
- end
- % remove ROIs less than 5 total contacts
- rmvIndx = find(sleepROIcount(:,1)<=5);
- sleepROIcount(rmvIndx,:)=[];
- sleepROI(rmvIndx)=[];
- roiInx = sortROI(sleepROI);
- sleepROIcount = sleepROIcount(roiInx);
- sleepROI = sleepROI(roiInx);
- awake_sleep_LME = plotLME(sleepROI,dataAw,dataSLP,awakeIndx,sleepIndx,color_aw,colorSleep,{'Awake','Sleep'});
- ylim([0 0.38]);
- set(gcf,'Name','Awake vs. Sleep LME: Fig4F');
- %% compare states Spont vs vents
- spontVal = [];
- ventVal = [];
- nPt = unique(dataAnes.ptID);
- for i = 1:length(nPt)
- IndxSpont = dataAnes.ptID ==nPt(i);
- IndxVent = dataVS.ptID ==nPt(i);
- if ~isnan(mean(dataAnes.CohValue(IndxSpont)))
- spontVal = [spontVal;mean(dataAnes.CohValue(IndxSpont))];
- end
- if ~isnan(mean(dataAw.CohValue(IndxVent)))
- ventVal = [ventVal;mean(dataVS.CohValue(IndxVent))];
- end
- end
- % Wilcoxon signed-rank test for paired samples
- [p_sp_vs, ~, stats] = signrank(spontVal, ventVal);
- % Rank-biserial correlation (paired samples)
- % r = (number of positive - number of negative differences) / total pairs
- diffSigns = sign(spontVal - ventVal);
- rankBiserial = sum(diffSigns) / numel(diffSigns);
- % Medians and IQRs
- SpontMedian = median(spontVal);
- SpontIQR = iqr(spontVal);
- VentMedian = median(ventVal);
- VentIQR = iqr(ventVal);
- fprintf('\n--- Statistical Summary (Spontaneous vs Ventilation, Paired) ---\n');
- fprintf('Wilcoxon signed-rank test: p = %.4f\n', p_sp_vs);
- fprintf('Rank-biserial correlation: %.2f\n', rankBiserial);
- fprintf('Spontaneous: median = %.3f, IQR = %.3f\n', SpontMedian, SpontIQR);
- fprintf('Ventilation: median = %.3f, IQR = %.3f\n', VentMedian, VentIQR);
- mxLen = max([length(spontVal),length(ventVal)]);
- vio_sp = [spontVal;NaN(mxLen-length(spontVal),1)];
- vio_vs = [ventVal;NaN(mxLen-length(ventVal),1)];
- %violinData = [vio_aw,vio_slp, vio_sp,vio_vs];
- violinData = [vio_sp, vio_vs];
- figure("Position",[200,100,700,550]);
- vp = violinplot(violinData,{'Anesthetized','Ventilated'},...
- 'ViolinColor',brighten(colorS(3:4,:),0.4),'Width',0.2,'ShowMean',true); %'ShowBox',false,'ShowMedian',false);
- for ii = 1:length(vp)
- mmColor = brighten(colorS(2+ii,:),-0.6);
- vp(ii).MeanPlot.Color = mmColor;
- vp(ii).MeanPlot.LineWidth = 2;
- vp(ii).MedianColor = [1,1,1];
- vp(ii).MedianPlot.SizeData = 100;
- end
- ylim([0 0.45]);
- ylabel('Coherence (R)')
- box off;
- xlim([0.5 2.5]);
- set(gcf, 'color', 'w');
- axx = gca;
- axx.YTick = [0:0.2:1];
- set(axx, 'fontSize', 16);
- % hh = sigstar({[1 2]}, p_sp_vs, 0);
- % set(hh(:,2), 'FontSize', 20);
- % compute where to place the text
- ymax = max([spontVal; ventVal]);
- % display the exact p-value
- text(1.5, ymax*1.3, sprintf('p = %.3f', p_sp_vs), ...
- 'HorizontalAlignment','center', 'FontSize',14);
- % plot spont vs vents
- lme_anes_vent = plotLME(unqROI,dataAnes,dataVS,anesIndx,ventsIndx,color_sp,color_vs,{'Anesthetized','Ventilated'});
- ylim([0 0.38]);
- set(gcf,'Name','Anethetized vs. Ventilated LME: Fig6E');
- %% slow-deep breathing
- clear
- addpath(genpath('.\reqfunc\'));
- roundM = @(x,m) round(x*10^m)./10^m;
- dataVHi = load('.\saved_results\CohVentHi.mat'); % load saved results for high-tidal volume ventilation
- dataVS = load('.\saved_results\CohVent_matchedHiTV.mat'); % load saved results for mathed ventilation (5 Part)
- % define colors
- color_vs = [0.6 0.12 0.47];
- color_vHi = [0 0.5 0.3]; %[0.2 0.9 0.8];
- colorS = [color_vs;color_vHi];
- Fs = 500;
- % some used variables to define
- pThr = 0.05;
- Msize = 70;
- Csize = [50,180];
- templateAlpha = 0.09;
- BrainAlpha = 0.3;
- Malpha = 0.9;
- BrHem = 1;
- % significant contact indexes
- ventsIndx = dataVS.significance_v;
- ventHiIndx = dataVHi.significance_v;
- %plot coverage during Awake States and Correlations on template Brain
- % plot Coverage
- plotBrainPatch(BrHem,templateAlpha,[],[],true); % plot the template brain LH on right, RH on left
- % plot Significant contacts in Awake breathing
- vHiCord = dataVHi.ChnCoordinates; % Brain sites MNI coordinates
- h1=scatter3(-vHiCord(:,1),vHiCord(:,2),vHiCord(:,3),Msize.*ones(size(vHiCord,1),1)./2,...
- MarkerFaceColor = [0.4 0.4 0.4],MarkerFaceAlpha = Malpha,MarkerEdgeColor=[0.1 0.1 0.1]);
- axx = gca;
- % Create line
- view([0 0 90]);
- camlight(axx, 'headlight');
- set(gcf,'Name','Coverage Map: Slow-deep Fig7A','NumberTitle', 'off');
- % plot coherence on template brain
- dataVS.ChnCoordinates = dataVHi.ChnCoordinates;
- ventsIndx(dataVS.CohValue< 0.1)=0;
- BrainColor = [1 0.98 0.98];
- plotbrainscatter(dataVS,ventsIndx,dataVS.CohValue,BrHem,BrainAlpha,Csize,color_vs,Malpha,BrainColor);
- set(gcf,'Name','Coherence: Standard Fig7B','NumberTitle', 'off');
- plotbrainscatter(dataVHi,ventHiIndx,dataVHi.CohValue,BrHem,BrainAlpha,Csize,color_vHi,Malpha,BrainColor)
- set(gcf,'Name','Coherence: Slow-deep Fig7C','NumberTitle', 'off');
- %
- conds = {"VentS","VentHi"};
- % Common participants present in both conditions
- commonPt = sort(intersect(unique(dataVS.ptID(:)), unique(dataVHi.ptID(:))));
- ratioVS = nan(numel(commonPt),1);
- ratioVHi = nan(numel(commonPt),1);
- for i = 1:numel(commonPt)
- p = commonPt(i);
- ratioVS(i) = mean(logical(dataVS.significance_v(dataVS.ptID==p)));
- ratioVHi(i) = mean(logical(dataVHi.significance_v(dataVHi.ptID==p)));
- end
- % Print per-participant ratios
- fprintf('Per-participant proportion of significant contacts (all sites):\n');
- for i = 1:numel(commonPt)
- fprintf(' %d: VentS=%.3f, VentHi=%.3f\n', commonPt(i), ratioVS(i), ratioVHi(i));
- end
- % One-sided paired Wilcoxon: VentHi > VentS
- [p_one,~,~] = signrank(ratioVS, ratioVHi, 'tail','left'); % tests median(VentS - VentHi) < 0
- fprintf('One-sided Wilcoxon (VentHi > VentS): N=%d, p=%.4g\n', numel(commonPt), p_one);
- violinData = [ratioVS, ratioVHi];
- figure("Position",[200,100,400,450]);
- vp = violinplot(violinData,{'Standard','Slow-deep'},...
- 'ViolinColor',brighten(colorS(1:2,:),0.5),'Width',0.2,'ShowMean',true); %'ShowBox',false,'ShowMedian',false);
- for ii = 1:length(vp)
- mmColor = brighten(colorS(ii,:),-0.7);
- vp(ii).MeanPlot.Color = mmColor;
- vp(ii).MeanPlot.LineWidth = 2;
- vp(ii).MedianColor = [1,1,1];
- vp(ii).MedianPlot.SizeData = 100;
- end
- ylim([0 0.8]);
- ylabel('Proportion of significant sites')
- box off;
- xlim([0.5 2.5]);
- set(gcf, 'color', 'w');
- axx = gca;
- axx.YTick = 0:0.2:1;
- set(axx, 'fontSize', 16);
- % hh = sigstar({[1 2]}, p_one, 0);
- % set(hh(:,2), 'FontSize', 20);
- % display the exact p-value
- ymax = max(violinData(:), [], 'omitnan');
- text(1.5, ymax*1.15, sprintf('p = %.3g', p_one), ...
- 'HorizontalAlignment','center', 'FontSize',14);
- %% summary stats
- dataList = {dataVS,dataVHi};
- stateNames = {'Ventilation','Slow-deep'};
- for d = 1:length(dataList)
- data = dataList{d};
- state = stateNames{d};
- sigIndx = data.significance_v;
- ptIDs = unique(data.ptID);
- nSite = zeros(length(ptIDs), 1);
- nSigf = zeros(length(ptIDs), 1);
- for ii = 1:length(ptIDs)
- nSite(ii) = sum(data.ptID == ptIDs(ii));
- nSigf(ii) = sum(sigIndx(data.ptID == ptIDs(ii)));
- end
- totalSites = sum(nSite);
- totalSigf = sum(nSigf);
- meanSitesPerPt = mean(nSite);
- stdSitesPerPt = std(nSite);
- meanSigfPerPt = mean(nSigf);
- stdSigfPerPt = std(nSigf);
- percentSigf = (totalSigf / totalSites) * 100;
- % Print for this state
- fprintf('\n=== %s ===\n', state);
- fprintf('Total sites: %d\n', totalSites);
- fprintf('Total significant sites: %d\n', totalSigf);
- fprintf('Sites per participant: %.1f ± %.1f\n', meanSitesPerPt, stdSitesPerPt);
- fprintf('Significant sites per participant: %.1f ± %.1f\n', meanSigfPerPt, stdSigfPerPt);
- fprintf('Overall percentage of significant sites: %.1f%%\n', percentSigf);
- end
- %scatter plot
- roiscatter2states(dataVS.CohValue,dataVHi.LocationsKN,dataVHi.CohValue,dataVHi.LocationsKN,colorS);
- title('Breathing-LFP coherence in ventilator driven breathing: standard and slow, deep ventilation');
- set(gcf,'Name','Coherence: Fig7D','NumberTitle', 'off');
- % LME for standard vs slow-deep
- vsValues = dataVS.CohValue;
- vHiValues = dataVHi.CohValue;
- LocVent = roiNameUpdate(dataVHi.LocationsKN);
- % unique ROIs
- unqROI = unique(LocVent);
- Nroi = length(unqROI);
- CountsROI = zeros(Nroi, 1); countsS = zeros(Nroi, 2);
- vioData = cell(Nroi,2); % select number of columns (columns represent states)
- for kk = 1:Nroi
- indxL = strcmp(LocVent, unqROI{kk});
- CountsROI(kk,1) = sum(indxL);%sum(cell2mat(strfind(Loc, uniqLoc{kk})));
- countsS(kk,1) = sum(strcmp(LocVent(ventsIndx), unqROI{kk}));
- countsS(kk,2) = sum(strcmp(LocVent(ventHiIndx), unqROI{kk}));
- vioData{kk,1} = vsValues(indxL)';
- vioData{kk,2} = vHiValues(indxL)';
- end
- % remove ROIs less than 5 total contacts
- rmvIndx = find(CountsROI<=5);
- CountsROI(rmvIndx,:)=[];
- countsS(rmvIndx,:)=[];
- unqROI(rmvIndx)=[];
- vioData(rmvIndx,:) = [];
- roiInx = sortROI(unqROI);
- CountsROI = CountsROI(roiInx,:);
- countsS = countsS(roiInx,:);
- unqROI = unqROI(roiInx);
- vioData = vioData(roiInx,:);
- roiPercentage = 100*([countsS(:,1),countsS(:,2)]./CountsROI);
- % find empty cells in vioData
- isEmptyCell = cellfun(@isempty, vioData);
- [vioData{isEmptyCell}] = deal(NaN); % filling NaN values on empty cells
- meanCorr = cell2mat(cellfun(@mean, vioData, 'UniformOutput', false));
- stdCorr = cell2mat(cellfun(@std, vioData, 'UniformOutput', false));
- lme_ventHi = plotLME(unqROI,dataVS,dataVHi,ventsIndx,ventHiIndx,color_vs,color_vHi,{'standard ventilation','slow-deep ventilation'});
- ylim([0 0.49]);
- yticks([0:0.15:1]);
- set(gcf,'Name','Coherence: Fig7F','NumberTitle', 'off');
NeuralbreathingScript.m at commit 5eb6972, under MIT · at the source
Overview
and 7 other authors
Matthew I Banks14, Matthew A Howard III1,3,13, Paul W Davenport15, Kyle T S Pattinson16,17, George B Richerson1,3,13, John A Wemmie1,4,5,13, Brian J Dlouhy1,9,1317 affiliations
- Department of Neurosurgery, University of Iowa, Iowa City, IA USA
- Department of Neurosurgery, University of Nebraska Medical Center, Omaha, NE USA
- Department of Neurology, University of Iowa, Iowa City, IA USA
- Department of Psychiatry, University of Iowa, Iowa City, IA USA
- Department of Veterans Affairs Medical Center, Iowa City, IA USA
- Department of Anesthesia, University of Iowa, Iowa City, IA USA
- Institute for Clinical and Translational Science, University of Iowa, Iowa City, IA USA
- Department of Respiratory Care, University of Iowa, Iowa City, IA USA
- Department of Pediatrics, University of Iowa, Iowa City, IA USA
- Department of Otolaryngology, Head and Neck Surgery, Massachusetts Eye and Ear, Boston, MA USA
- Department of Neurology, Massachusetts General Hospital, Boston, MA USA
- Harvard Medical School, Boston, MA USA
- Iowa Neuroscience Institute, University of Iowa, Iowa City, IA USA
- Department of Anesthesiology, University of Wisconsin, Madison, WI USA
- Department of Physiology, University of Florida, Gainesville, FL USA
- Wellcome Centre for Integrative Neuroimaging, University of Oxford, Oxford, UK
- Nuffield Department of Clinical Neurosciences, University of Oxford, Oxford, UK
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.
Repositories
Its files are read in the Code ↔ Paper reader above, with 12 matches between paragraphs and lines of code.
Zenodo 19502572
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
rakib05/NeuralBreathing
5eb697294ca4adc3f0974daaccc8564f48efdaf7, 10 April 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
15 files
- NeuralbreathingScript.m, MATLAB, 604 lines, 3 matches
- reqfunc/
create_patch.m , MATLAB, 17 lines - reqfunc/
plotBrainPatch.m , MATLAB, 44 lines - reqfunc/
plotLME.m , MATLAB, 115 lines, 2 matches - reqfunc/
plotPSD.m , MATLAB, 47 lines, 1 match - reqfunc/
plotPSD_lpc.m , MATLAB, 46 lines - reqfunc/
plotPatientBrain.m , MATLAB, 53 lines - reqfunc/
plotPatientSagittal.m , MATLAB, 143 lines - reqfunc/
plotPatientscatter.m , MATLAB, 50 lines - reqfunc/
plotbrainscatter.m , MATLAB, 50 lines - reqfunc/
roiNameUpdate.m , MATLAB, 72 lines, 2 matches - reqfunc/
roiscatterplot.m , MATLAB, 75 lines - reqfunc/
sortROI.m , MATLAB, 15 lines, 1 match - LICENSE, License, 21 lines
- README.md, Text, 31 lines
ckovach/DBT
82751b4b360f400f16cc6d91d4b26fdaf07102c4, 2 March 2018Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
21 files
- blphase.m, MATLAB, 74 lines
- chopper.m, MATLAB, 46 lines
- choptf.m, MATLAB, 103 lines
- dbt.m, MATLAB, 620 lines, 1 match
- dbtDenoise.m, MATLAB, 343 lines
- dbtDenoise_devel.m, MATLAB, 291 lines
- dbt_causality.m, MATLAB, 80 lines
- dbtbicoh.m, MATLAB, 450 lines
- dbtcoh.m, MATLAB, 317 lines, 1 match
- dbtfocus.m, MATLAB, 110 lines
- dbtpac.m, MATLAB, 182 lines
- dbtvbw.m, MATLAB, 708 lines, 1 match
- iterz.m, MATLAB, 39 lines
- pspect.m, MATLAB, 258 lines
- pspect2.m, MATLAB, 299 lines
- rmbaseline.m, MATLAB, 147 lines
- spikefilter.m, MATLAB, 118 lines
- stft.m, MATLAB, 264 lines
- taper.m, MATLAB, 74 lines
- LICENSE, License, 22 lines
- README.md, Text, 9 lines
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: ckovach/
DBT , rakib05/NeuralBreathing , Zenodo 19502572 - it says that the code is available on request
Read it in the paper: doi.org/10.1038/s41467-026-73828-0.
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:
- 3 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 32 scripts, each with its path and the digest of its content;
- 12 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 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 says that the data are available on request
Read it in the paper: doi.org/10.1038/s41467-026-73828-0.
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, issue, pages, dates, 27 authors, 3 keywords, 11 MeSH terms, 8 funders, 96 references.
Cite
This paper
Mowla, M. R., Rhone, A. E., Kumar, S., Kovach, C. K., Liu, J. V., Chan, A. C., Kawasaki, H., Mueller, R. N., Kuhn, J. D., Frede, R. T., Ciliberto, M. A., Czech, T. M., Ganganna, S. T., Owens, J. W., Dabrowski, A. K., Sprigg, B. N., Granner, M. A., Simonyan, K., Nourski, K. V., . . . Dlouhy, B. J. (2026). Human forebrain neural synchronization and entrainment to breathing during wakefulness, sleep, and external mechanical ventilation. Nature communications, 17(1), 6949. https://
BibTeX
@article{mowla2026human,
author = {Mowla, Md Rakibul and Rhone, Ariane E and Kumar, Sukhbinder and Kovach, Christopher K and Liu, Junjie V and Chan, Aubrey C and Kawasaki, Hiroto and Mueller, Rashmi N and Kuhn, Justin D and Frede, Ryan T and Ciliberto, Michael A and Czech, Theresa M and Ganganna, Sreenath Thati and Owens, James W and Dabrowski, Ania K and Sprigg, Brittany N and Granner, Mark A and Simonyan, Kristina and Nourski, Kirill V and Krause, Bryan M and Banks, Matthew I and Howard, Matthew A and Davenport, Paul W and Pattinson, Kyle T S and Richerson, George B and Wemmie, John A and Dlouhy, Brian J},
title = {{Human forebrain neural synchronization and entrainment to breathing during wakefulness, sleep, and external mechanical ventilation}},
journal = {Nature communications},
year = {2026},
month = may,
volume = {17},
number = {1},
pages = {6949},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42209532},
pmcid = {PMC13388959}
}
RIS
TY - JOUR
AU - Mowla, Md Rakibul
AU - Rhone, Ariane E
AU - Kumar, Sukhbinder
AU - Kovach, Christopher K
AU - Liu, Junjie V
AU - Chan, Aubrey C
AU - Kawasaki, Hiroto
AU - Mueller, Rashmi N
AU - Kuhn, Justin D
AU - Frede, Ryan T
AU - Ciliberto, Michael A
AU - Czech, Theresa M
AU - Ganganna, Sreenath Thati
AU - Owens, James W
AU - Dabrowski, Ania K
AU - Sprigg, Brittany N
AU - Granner, Mark A
AU - Simonyan, Kristina
AU - Nourski, Kirill V
AU - Krause, Bryan M
AU - Banks, Matthew I
AU - Howard, Matthew A
AU - Davenport, Paul W
AU - Pattinson, Kyle T S
AU - Richerson, George B
AU - Wemmie, John A
AU - Dlouhy, Brian J
TI - Human forebrain neural synchronization and entrainment to breathing during wakefulness, sleep, and external mechanical ventilation
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 6949
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Human forebrain neural synchronization and entrainment to breathing during wakefulness, sleep, and external mechanical ventilation",
"container-title": "Nature communications",
"author": [
{
"family": "Mowla",
"given": "Md Rakibul"
},
{
"family": "Rhone",
"given": "Ariane E"
},
{
"family": "Kumar",
"given": "Sukhbinder"
},
{
"family": "Kovach",
"given": "Christopher K"
},
{
"family": "Liu",
"given": "Junjie V"
},
{
"family": "Chan",
"given": "Aubrey C"
},
{
"family": "Kawasaki",
"given": "Hiroto"
},
{
"family": "Mueller",
"given": "Rashmi N"
},
{
"family": "Kuhn",
"given": "Justin D"
},
{
"family": "Frede",
"given": "Ryan T"
},
{
"family": "Ciliberto",
"given": "Michael A"
},
{
"family": "Czech",
"given": "Theresa M"
},
{
"family": "Ganganna",
"given": "Sreenath Thati"
},
{
"family": "Owens",
"given": "James W"
},
{
"family": "Dabrowski",
"given": "Ania K"
},
{
"family": "Sprigg",
"given": "Brittany N"
},
{
"family": "Granner",
"given": "Mark A"
},
{
"family": "Simonyan",
"given": "Kristina"
},
{
"family": "Nourski",
"given": "Kirill V"
},
{
"family": "Krause",
"given": "Bryan M"
},
{
"family": "Banks",
"given": "Matthew I"
},
{
"family": "Howard",
"given": "Matthew A"
},
{
"family": "Davenport",
"given": "Paul W"
},
{
"family": "Pattinson",
"given": "Kyle T S"
},
{
"family": "Richerson",
"given": "George B"
},
{
"family": "Wemmie",
"given": "John A"
},
{
"family": "Dlouhy",
"given": "Brian J"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "6949",
"DOI": "10.1038/
"PMID": "42209532",
"PMCID": "PMC13388959",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
28
]
]
}
}
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.1073/pnas.2603853123 [code]
- A nose-to-brain circuit underlies anxiety regulation by nasal afferent frequency in mice.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: Signal Processing Toolbox, 14 references
- [2] doi:10.1016/j.isci.2026.115760
- A reversible rat model of hyposmia affects respiration-linked brain oscillations and behavior.Journal: iScienceIn common: 13 references
- [3] doi:10.1038/s41467-026-71604-8 [code]
- Respiration as a dynamic modulator of sensory sampling.Journal: Nature communicationsIn common: Violinplot-Matlab, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 8 references
- [4] doi:10.1038/s41467-026-73106-z [code]
- Respiratory pauses highlight sleep architecture in mice.Journal: Nature communicationsIn common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 9 references
- [5] doi:10.1371/journal.pbio.3003982 [code]
- No evidence for modulation of the readiness potential by respiratory phase during natural breathing.Journal: PLoS biologyIn common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 9 references
- [6] doi:10.1126/sciadv.aeb3326 [code]
- Insular routing to orbitofrontal cortex enables breathing awareness.Journal: Science advancesIn common: Signal Processing Toolbox, 8 references
- [7] doi:10.7554/elife.107081 [code]
- Cortical motor activity modulates respiration and reduces apnoea in neonates.Journal: eLifeIn common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 7 references
- [8] doi:10.1093/braincomms/fcag041
- Exercise enhances hippocampal-cortical ripple interactions in the human brain.Journal: Brain communicationsIn common: 2 references, 2 authors
- [9] doi:10.1126/sciadv.aee1002 [code]
- Theta oscillations are an organizational unit of odor processing in the olfactory bulb.Journal: Science advancesIn common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 3 references
- [10] doi:10.1371/journal.pcbi.1014672 [code]
- Robust circular cluster-based statistics for respiration-brain coupling.Journal: PLoS computational biologyIn common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 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.
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: 3 repositories of the authors' code, each at its verified commit and with its license, 32 scripts, and 12 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:690c2ef6718f8b56…
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.
