Uncovering the embodied dimension of the wandering mind.
The 23 matches · 2 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Materials and Methods › Data Analysis. › Canonical correlation analysis. ↔ scripts/CCA/CCA_plots.Rmd, lines 129 to 193 · score 0.94 · secondary somatosensory cortex, central opercular cortex, primary somatosensory cortex, frontal medial, postcentral gyrus, interoceptive network · Report a mismatch
- [2] § Materials and Methods › Data Analysis. › Mind-wandering sampling validation. ↔ scripts/MDIES_validity_reliability.Rmd, lines 27 to 65 · score 0.82 · Kaiser Meyer Olkin, correlation matrix, Sphericity, Bartlett, fa, subsets · Report a mismatch
- [3] § Materials and Methods › Data Analysis. › Canonical correlation analysis. ↔ scripts/CCA/cca_pls_toolkit-master/RunCCA.m, lines 13 to 45 · score 0.80 · cross validated, statistical inference, sample correlation, CCA PLS, deflation, outer · Report a mismatch
- [4] § Materials and Methods › Data Analysis. › Post hoc power analyses. ↔ scripts/ControlAnalyses/poweranalysis.Rmd, lines 7 to 42 · score 0.76 · pwr.f2.test, correlation coefficient, brain connectivity, fold, power, PCA · Report a mismatch
- [5] § Materials and Methods › Data Analysis. › Convergent validity of the body-wandering connectome. ↔ scripts/ControlAnalyses/FactorConnectivity.ipynb, lines 382 to 477 · score 0.76 · permuted_ols, mass univariate, upper triangle, diagonal, Body Wandering, scores · Report a mismatch
- [6] § Materials and Methods › Data Analysis. › Gradient map association. ↔ scripts/Gradients/SpinTestResults_AverageTopCCA.m, lines 64 to 112 · score 0.74 · surface space, top CCA, FreeSurfer, gradient, Schaefer, spin · Report a mismatch
- [7] § Materials and Methods › Data Analysis. › Gradient map association. ↔ scripts/Gradients/gradient2surface.sh, the whole file · a weak match · score 0.73 · mri_vol2surf, surface space, FreeSurfer, gradient, spin, atlas · Report a mismatch
- [8] § Materials and Methods › Mental Health Assessment. ↔ scripts/ControlAnalyses/PHQ15_controlanalyses.Rmd, lines 46 to 148 · score 0.71 · mental health, removed outliers, combined sum, SD, ASRS, MDI · Report a mismatch
- [9] § Results › Body-Related Mind-Wandering Is Linked to Reduced ADHD and Depression Symptoms. ↔ scripts/ControlAnalyses/PHQ15_controlanalyses.Rmd, lines 46 to 148 · score 0.69 · HRV RMSSD, mental health, positive correlations, Heart Rate, ADHD, depression · Report a mismatch
- [10] § Materials and Methods › Data Analysis. › Canonical correlation analysis. ↔ scripts/CCA/cca_pls_toolkit-master/CCA_plots.m, lines 71 to 98 · score 0.69 · mind wandering variate, canonical variate, connectivity variate, scatter, properties, model · Report a mismatch
- [11] § Materials and Methods › Mental Health Assessment. ↔ scripts/ControlAnalyses/RobustnessCheck.Rmd, lines 383 to 494 · score 0.68 · mental health, removed outliers, combined sum, SD, ASRS, MDI · Report a mismatch
- [12] § Materials and Methods › Data Analysis. › Canonical correlation analysis. ↔ scripts/CCA/cca_pls_toolkit-master/CCA_plots.m, lines 251 to 286 · score 0.68 · model generalizability, CCA model, sample correlation, predictive, robustness, mind wandering · Report a mismatch
- [13] § Materials and Methods › Data Analysis. › Canonical correlation analysis. ↔ scripts/CCA/cca_pls_toolkit-master/RunCCA.m, lines 13 to 45 · score 0.65 · cross validated, PCA CCA, CCA PLS, MATLAB, body wandering, weighted · Report a mismatch
- [14] § Materials and Methods › Data Analysis. › Convergent validity of the body-wandering connectome. ↔ scripts/MDIES_validity_reliability.Rmd, lines 318 to 375 · score 0.62 · connectivity coefficients, Spearman correlations, CCA brain, univariate, permutation, validity · Report a mismatch
- [15] § Results › Body-Related Mind-Wandering Is Linked to Reduced ADHD and Depression Symptoms. ↔ scripts/ControlAnalyses/ADHDDepressComorbidity_controlanalyses.Rmd, lines 25 to 89 · score 0.62 · partial correlations, mental health, comorbidity, ADHD, Depression, rs · Report a mismatch
- [16] § Results › Intrinsic Functional Connectivity Signature of Visceral-Affective Thought. ↔ scripts/CCA/CCA_plots.Rmd, lines 129 to 193 · score 0.62 · central opercular cortex, postcentral gyrus, insula, thalamus, cingulate, Subcortical · Report a mismatch
- [17] § Materials and Methods › Data Analysis. › Canonical correlation analysis. ↔ scripts/CCA/cca_pls_toolkit-master/misc/main.m, the whole file · a weak match · score 0.60 · statistical inference, CCA PLS, iteratively, outer, optimization, training · Report a mismatch
- [18] § Results › Body-Related Mind-Wandering Is Linked to Reduced ADHD and Depression Symptoms. ↔ scripts/ControlAnalyses/RobustnessCheck.Rmd, lines 76 to 216 · score 0.56 · positive correlations, intraclass correlation, ICC, rumination, spontaneous, skin · Report a mismatch
- [19] § Materials and Methods › Data Analysis. › Canonical correlation analysis. ↔ scripts/CCA/cca_pls_toolkit-master/CCA_plots.m, lines 71 to 98 · score 0.55 · canonical variates, CCA PLS, MATLAB, models, body wandering, variable · Report a mismatch
- [20] § Results › Identifying Relationships of Bodily Related Content to Ongoing Thought Patterns. ↔ scripts/ControlAnalyses/RobustnessCheck.Rmd, lines 76 to 216 · score 0.53 · robustness checks, intraclass correlation, ICC, odd, split, body wandering · Report a mismatch
- [21] § Materials and Methods › f/MRI Preprocessing. ↔ scripts/CCA/CCA_Brain_Figures_abend.ipynb, lines 20 to 38 · score 0.52 · Schaefer atlas, nilearn, subcortical · Report a mismatch
- [22] § Materials and Methods › Physiological Measurements. › Physiological metric processing. ↔ scripts/ItemAnalyses_MHPhysio.Rmd, lines 169 to 183 · score 0.52 · removed outliers, heart rate, gastric, RMSSD, metric · Report a mismatch
- [23] § Materials and Methods › Data Analysis. ↔ scripts/Gradients/SpinTestResults_AverageTopCCA.m, lines 21 to 32 · score 0.51 · Benjamini Hochberg, gradient, FDR, CCA · 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 · 286 lines · 13 KB · no license · 3 matches
- function [P, weightY, weightX] = CCA_plots(Project, mode2plot, weighttype, savepath, beh_labels)
- % [P, weightY, weightX] = CCA_plots('_Project_BodyWandering', 1, 'correlation', '/home/leah/Git/BodyWanderingCCA/figures/CCA_BWitems/', {'Future', 'Past', 'Self', 'Other', 'Pos', 'Neg', 'Words', 'Vivid', 'Vague', 'Focus', 'Ruminate', 'Distant', 'Image', 'Arousal', 'Body', 'Breath', 'Heart', 'Movement', 'Bladder', 'Skin', 'Stomach'})
- %clear all
- Project = '_Project_BodyWandering';
- mode2plot = 1;
- weighttype = 'correlation'; % 'weight';
- savepath = '/home/leah/Git/BodyWanderingCCA/figures/CCA_BWitems/'
- beh_labels = {'Future', 'Past', 'Self', 'Other', 'Pos', 'Neg', 'Words', 'Vivid', 'Vague', 'Focus', 'Ruminate', 'Distant', 'Image', 'Arousal', 'Body', 'Breath', 'Heart', 'Movement', 'Bladder', 'Skin', 'Stomach'};
- %% plotting
- % Set path for plotting and the BrainNet Viewer toolbox
- set_path('plot', 'brainnet');
- addpath('/Users/au704655/Documents/Packages/spm12/')
- % % load cfg file for effect of interest
- filepath = ['/home/leah/Git/connectivity_tools/toolboxes/matlab/cca_pls_toolkit-master/' Project '/framework/'];
- framework = 'cca_pca_holdout5-0.40_subsamp5-0.40';
- cfg = load([filepath, framework, '/cfg_1.mat']);
- % Load res
- res.dir.frwork = cfg.cfg.dir.frwork;
- res.frwork.level = mode2plot;
- % get the correlation between the input variables and the latent variables/projections
- res.gen.weight.type = weighttype; % 'correlation' for structure correlations/loadings & 'weight' for true model weights
- % res.gen.selectfile = 'none';
- % res.gen.weight.flip = 1;
- res = res_defaults(res, 'load');
- %% Plot scatterplot of data projections (Connectome * Factor Canonical Variates)
- % P = projections
- P = plot_proj(res, {'X' 'Y'}, res.frwork.level, 'osplit', res.frwork.split.best, ...
- 'training+test', '2d_group', 'gen.axes.FontSize', 20, ...
- 'gen.legend.FontSize', 20, 'gen.legend.Location', 'NorthWest', ...
- 'proj.scatter.SizeData', 120, 'proj.scatter.MarkerEdgeColor', 'k', ...
- 'proj.scatter.MarkerFaceColor', [0.3 0.3 0.9; 0.9 0.3 0.3], ... %[[224, 206, 253]/255; [87, 87, 241]/255], ... %'#c8b6ff' , '#957fef'], ... %[0.3 0.3 0.9; 0.9 0.3 0.3] % [242/255 191/255 211/255; 173/255 31/255 87/255
- 'proj.xlabel', 'Connectivity Variate', ... %'Brain Variate'
- 'proj.ylabel', 'Body-Wandering Variate', ... %'Beh Variate'
- 'proj.lsline', 'on');
- load([res.dir.frwork, sprintf('/res/level%d/model_1.mat', mode2plot)])
- title({sprintf('r = %.03f , p = %.03f', round(correl(res.frwork.split.best),3), round(res.stat.pval(res.frwork.split.best),3)),},'fontsize',18)
- xlim([min(P(:,1))-0.02 max(P(:,1))+0.02])
- ylim([min(P(:,2))-0.02 max(P(:,2))+0.02])
- saveas(gcf,[savepath, 'scatter_CCAvariates_testtrain.png'])
- % % Plot data projections across levels (and averaged across modalities
- % % in a level after standardization)
- % plot_proj(res, {'X' 'Y'; 'X' 'Y'}, [1 1; 2 2], 'osplit', res.frwork.split.best, ...
- % 'none', '2d', 'proj.multi_label', 1);
- %% Plot behavioural weights as vertical bar plot (function from cca-pls toolkit - alternative barplot later)
- %weightY = plot_weight(res, 'Y', 'behav', res.frwork.split.best, 'behav_vert', ...
- %'gen.axes.FontSize', 20, 'gen.legend.FontSize', 12); % ...
- %'behav.weight.sorttype', 'sign', 'behav.weight.numtop', 20);
- %'gen.axes.YLim', [-0.004 0.013], ...
- %if strcmp(weighttype, 'correlation')
- % title('Behavioural CCA loadings (structure correlations)')
- % saveas(gcf, [savepath, 'bar_CCAloadings_beh.png'])
- %elseif strcmp(weighttype, 'weight')
- % title('Behavioural CCA weights')
- % saveas(gcf, [savepath, 'bar_CCAweights_beh.png'])
- %end
- %% calculate weights
- weightX = calc_weights('X', res.frwork.split.best, res, cfg.cfg);
- weightY = calc_weights('Y', res.frwork.split.best, res, cfg.cfg);
- %% Plot scatterplot of Connectome * Mind-Wanding Canonical Variates and color by most influential variable
- % Edit figure properties
- fontName = 'Helvetica';
- fontSize = 18;
- dotsize = 65;
- plotX = P(:,1);%vargout.Q'*vargout.U(:,mode2plot); % connectome projections
- plotY = P(:,2);%vargout.Q'*vargout.V(:,mode2plot); % body/mind wandering items projections
- rawdata_path = ['/home/leah/Git/connectivity_tools/toolboxes/matlab/cca_pls_toolkit-master/', Project, '/data/'];
- peak_idx = find(abs(weightY) == max(abs(weightY)));
- peak_var = load([rawdata_path, 'Y.mat']); peak_var = peak_var.Y(:,peak_idx);
- figure
- set(gcf,'color','w');
- scatter(plotX, plotY, dotsize, peak_var,'filled') %%%%%%%%%%%%%%%%%%
- load([filepath, framework, sprintf('/res/level%d/model_1.mat',mode2plot)])
- title({sprintf('CCA Mode %d', mode2plot), sprintf('r = %.03f , p = %.03f', round(correl(res.frwork.split.best),3), round(res.stat.pval(res.frwork.split.best),3))},'fontsize',fontSize)
- ylabel(sprintf('Body-Wandering Variate'),'fontsize',fontSize); %'Beh Variate'
- xlabel(sprintf('Connectivity Variate'),'fontsize',fontSize); %'Brain Variate'
- set(gca,'FontName',fontName,'fontsize',fontSize)
- legend(beh_labels{peak_idx},'Location','southwest');legend boxoff ; %%
- xlim([min(P(:,1))-0.02 max(P(:,1))+0.02])
- ylim([min(P(:,2))-0.02 max(P(:,2))+0.02])
- saveas(gcf, [savepath, sprintf('scatter_CCAvariates_%s.png',beh_labels{peak_idx})])
- %% Heatmap of behavioural weights
- % Edit figure properties
- fontName = 'Helvetica';
- fontSize = 18;
- subplot(1,2,1);
- Aload = weightX;%wX_corr;%corr(vargout.Q'*vargout.Y0,vargout.Q'*vargout.U);
- imagesc(Aload); colorbar %imagesc(Aload(res.frwork.split.best,:)'); colorbar
- ylabel(sprintf('Original variables'),'fontsize',fontSize);
- xlabel(sprintf('Canonical variables'),'fontsize',fontSize);
- title({'Imaging side',''}','fontsize',fontSize);
- % daspect([1 1 1])
- set(gca,'FontName',fontName,'fontsize',fontSize-8)
- subplot(1,2,2)
- Bload = weightY;%wY_corr; %corr(vargout.Q'*vargout.X0,vargout.Q'*vargout.V);
- imagesc(Bload); colorbar %imagesc(Bload(res.frwork.split.best,:)'); colorbar
- title({'Task side',''},'fontsize',fontSize-2);
- ylabel(sprintf('Original variables '),'fontsize',fontSize-2);
- xlabel(sprintf('Canonical variables '),'fontsize',fontSize-2);
- %daspect([1 1 1])
- % Set color axis limits to ensure symmetry
- caxis([-max(abs(Bload(:))), max(abs(Bload(:)))]);
- varNames = beh_labels;
- yticks(1:length(varNames))
- yticklabels(varNames)
- %ytickangle(45)
- set(gcf,'color','w');
- set(gca,'FontName',fontName,'fontsize',fontSize-10)
- if strcmp(weighttype, 'correlation')
- sgtitle('CCA Loadings (structure correlations)','fontsize',fontSize+2)
- saveas(gcf, [savepath, 'heatmap_CCAloadings_equalcolorbar.png'])
- save([savepath, 'brainloadings'], 'weightX')
- save([savepath, 'psychloadings'], 'weightY')
- elseif strcmp(weighttype, 'weight')
- sgtitle(sprintf(sprintf('CCA %ss', weighttype)),'fontsize',fontSize+2)
- saveas(gcf, [savepath, 'heatmap_CCAweights_equalcolorbar.png'])
- save([savepath, 'brainweights'], 'weightX')
- save([savepath, 'psychweights'], 'weightY')
- end
- % save projections/variate also
- save([savepath, 'CCAvariate'], 'P')
- %% ordered bar plot of beh loadings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- [~, I] = sort(Bload, 'descend');
- %I = I([1:5, 31:37]); % if want to select subset to plot
- figure;
- bh = bar(reordercats(categorical(varNames(I)), varNames(I)), Bload(I), 'FaceColor', 'flat');
- % MAKE a custom colormap of your choice
- % Define your two RGB color codes
- color1_rgb = [255, 144, 179]/255; % Example: Red
- color2_rgb = [110, 68, 255]/255; % Example: Blue
- % Number of colors in the colormap
- num_colors = length(I); % Assuming 'I' is defined in your context
- % Generate the custom colormap
- custom_colormap = flipud([linspace(color1_rgb(1), color2_rgb(1), num_colors)', ...
- linspace(color1_rgb(2), color2_rgb(2), num_colors)', ...
- linspace(color1_rgb(3), color2_rgb(3), num_colors)']);
- % Use this custom colormap
- colormap(custom_colormap);
- % Define a custom colormap of your choice
- %custom_colormap = flipud(cool(length(I))); % flipud reverse colourmap %%parula
- %colormap(custom_colormap);
- % Set the colors of each bar individually based on Bload values
- for i = 1:length(I)
- bh.CData(i, :) = custom_colormap(i, :);
- end
- ax = gca; % Get current axes
- %ax.XAxis.FontSize = 14;
- ax.FontSize = 14; % This will affect both axes and the title
- title('CCA Loadings (structure correlations)');
- ylabel('CCA loadings');
- xlabel('Body/Mind-Wandering loadings');
- box off;
- if strcmp(weighttype, 'correlation')
- saveas(gcf, [savepath, 'barplot_CCAloadings_cool.png']);
- elseif strcmp(weighttype, 'weight')
- saveas(gcf, [savepath, 'barplot_CCAweights_cool.png']);
- end
- %% ordered vertical bar plot (coloured bars by intensity) %%%%%%%%%%%%%%%%
- [~, I] = sort(Bload, 'descend');
- figure;
- bh = barh(reordercats(categorical(varNames(I)), varNames(I)), Bload(I), 'FaceColor', 'flat');
- set(gcf, 'Position', [100, 100, 600, 800]); % Adjust the values as needed
- set(gca, 'Position', [0.7, 0.1, 0.25, 0.8]);
- xlabel('CCA loadings');
- ylabel('Body/Mind-Wandering variables');
- box off;
- custom_colormap = flipud(cool(length(I))); %flipud reverses colours %%flipud(cool(length(I)));
- colormap(custom_colormap);
- % Set the colors of each bar individually based on Bload values
- for i = 1:length(I)
- bh.CData(i, :) = custom_colormap(i, :);
- end
- % Save the figure
- if strcmp(weighttype, 'correlation')
- saveas(gcf, [savepath, 'barplot_CCAloadings_vert_cool.png']);
- elseif strcmp(weighttype, 'weight')
- saveas(gcf, [savepath, 'barplot_CCAweights_vert_cool.png']);
- end
- %% Plot hyperparameter surface for grid search results
- plot_paropt(res, 1, {'correl', 'simwx', 'simwy'}, ...
- 'gen.figure.Position', [500 600 1200 400], 'gen.axes.FontSize', 20, ...
- 'gen.axes.XScale', 'log', 'gen.axes.YScale', 'log');
- saveas(gcf, [savepath, 'hyperparameters.png']);
- % plotting grid search results
- %plot_paropt(res, 1, {'trcorrel', 'correl'}, ...
- %'gen.figure.Position', [500 600 800 400], 'gen.axes.FontSize', 20, ...
- %'gen.axes.XScale', 'log', 'gen.axes.YScale', 'log');
- %% wordcloud of beh loadings
- %behloadings = load("/home/leah/Git/BodyWanderingCCA/figures/CCA_BWitems/psychloadings.mat");
- %behlabels = beh_labels;
- %%%%cmap = cool(length(behloadings.weightY));
- %%%%cl = interp1(linspace(min(abs(behloadings.weightY)), max(abs(behloadings.weightY)), length(cmap)), cmap, abs(behloadings.weightY), 'nearest');
- %cl = flipud(custom_colormap)
- %figure;
- %wordcloud(behlabels, abs(behloadings.weightY), 'Color', cl);
- %saveas(gcf, [savepath, 'behloadings_WordCloud.png']);
- %% Get CCA results for table
- res = res_defaults(res, 'load');
- % always look at most sig data split (res.frwork.split.best)?
- load([res.dir.frwork, sprintf('/res/level%d/model_1.mat', mode2plot)])
- % Weight Stability - Connecitivity:
- result1 = sprintf('Brain (X) Weight Stability = %0.3f', round(mean(simwx(res.frwork.split.best,:)),3))
- % Explained Variance - Connectivity (in-sample - recommended):
- result2 = sprintf('Brain (X) Explained Variance (in-sample) = %0.3f', round(trexvarx(res.frwork.split.best),3))
- % Weight Stability - Mind-Wandering:
- result3 = sprintf('Behaviour (Y) Weight Stability = %0.3f', round(mean(simwy(res.frwork.split.best,:)),3))
- % Explained Variance - Mind-Wandering (in-sample - recommended):
- result4 = sprintf('Behaviour (Y) Explained Variance (in-sample) = %0.3f', round(trexvary(res.frwork.split.best),3))
- % In-Sample Correlation
- result5 = sprintf('CCA in-sample Correlation = %0.3f', round(trcorrel(res.frwork.split.best),3))
- % no p-val for in-sample correlation (because permutations based on predictive framework not descriptive)
- % Out-of-Sample Correlation - model generalizability
- result6 = sprintf('CCA out-of-sample Correlation = %0.3f, p = %0.3f', round(correl(res.frwork.split.best),3), round(res.stat.pval(res.frwork.split.best),3))
- % Robustness (number of significant data splits) of the CCA model
- result7 = sprintf('Robustness of CCA model = %d percent', (sum(res.stat.pval < (0.05 / length(res.stat.pval))) / length(res.stat.pval)) * 100)
- % Open a text file for writing
- fileID = fopen([savepath, 'CCAmode_results.txt'], 'w');
- % Write the results to the file
- fprintf(fileID, '%s\n%s\n%s\n%s\n%s\n%s\n%s\n', result1, result2, result3, result4, result5, result6, result7);
- fclose(fileID); % Close the file
- end
CCA_plots.m at commit d263a34, no license · at the source
Overview
- Department of Clinical Medicine, Center of Functionally Integrative Neuroscience, Aarhus University, Aarhus 8000, Denmark
- Department of Decision Neuroscience and Nutrition, German Institute of Human Nutrition, Nuthetal 14558, Germany
- Center for Humanities Computing, Aarhus University, Aarhus 8000, Denmark
- Department of Clinical Medicine, Danish Pain Research Center, Aarhus University, Aarhus 8000, Denmark
- Department of Psychology, Queen’s University, Kingston, ON K7L 3N6, Canada
- Department of Psychiatry, University of Cambridge, Cambridge CB2 0SZ, United Kingdom
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 23 matches between paragraphs and lines of code.
embodied-computation-group/body_wandering_CCA
d263a3440362e4985781800b70d61be32c5f63c4, 26 March 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
126 files
- scripts/
CCA/ , Jupyter, 355 lines, 1 matchCCA_Brain_Figures_abend. ipynb - scripts/
CCA/ , R, 495 lines, 2 matchesCCA_plots.Rmd - scripts/
CCA/ , MATLAB, 194 linesCCAprepData.m - scripts/
CCA/ , MATLAB, 286 lines, 3 matchescca_pls_toolkit-master/ CCA_plots.m - scripts/
CCA/ , MATLAB, 56 lines, 2 matchescca_pls_toolkit-master/ RunCCA.m - scripts/
CCA/ , MATLAB, 38 linescca_pls_toolkit-master/ calc_weights.m - scripts/
CCA/ , Shell, 36 linescca_pls_toolkit-master/ cca_jobs_slurm.sh - scripts/
CCA/ , MATLAB, 520 linescca_pls_toolkit-master/ cfg_defaults.m - scripts/
CCA/ , MATLAB, 115 linescca_pls_toolkit-master/ demo/ demo_simul_paper.m - scripts/
CCA/ , Python, 238 linescca_pls_toolkit-master/ documentation/ matdoc.py - scripts/
CCA/ , Python, 383 linescca_pls_toolkit-master/ documentation/ matdocparser.py - scripts/
CCA/ , JavaScript, 29 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ bundle.17f42bbf.min.js - scripts/
CCA/ , JavaScript, 1 linecca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.ar.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.da.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.de.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.du.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.es.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.fi.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.fr.min.js - scripts/
CCA/ , JavaScript, 1 linecca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.hi.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.hu.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.it.min.js - scripts/
CCA/ , JavaScript, 1 linecca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.ja.min.js - scripts/
CCA/ , JavaScript, 1 linecca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.jp.min.js - scripts/
CCA/ , JavaScript, 1 linecca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.multi.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.nl.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.no.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.pt.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.ro.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.ru.min.js - scripts/
CCA/ , JavaScript, 1 linecca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.stemmer.support.min .js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.sv.min.js - scripts/
CCA/ , JavaScript, 1 linecca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.th.min.js - scripts/
CCA/ , JavaScript, 18 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.tr.min.js - scripts/
CCA/ , JavaScript, 1 linecca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.vi.min.js - scripts/
CCA/ , JavaScript, 1 linecca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ min/ lunr.zh.min.js - scripts/
CCA/ , JavaScript, 206 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ tinyseg.js - scripts/
CCA/ , JavaScript, 186 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ lunr/ wordcut.js - scripts/
CCA/ , JavaScript, 48 linescca_pls_toolkit-master/ documentation/ site/ assets/ javascripts/ workers/ search.cefbb252.min.js - scripts/
CCA/ , MATLAB, 419 linescca_pls_toolkit-master/ examples/ example_fmri.m - scripts/
CCA/ , MATLAB, 375 linescca_pls_toolkit-master/ examples/ example_simulation.m - scripts/
CCA/ , MATLAB, 406 linescca_pls_toolkit-master/ examples/ example_smri.m - scripts/
CCA/ , MATLAB, 82 linescca_pls_toolkit-master/ fileio/ cleanup_files.m - scripts/
CCA/ , MATLAB, 74 linescca_pls_toolkit-master/ fileio/ compile_files.m - scripts/
CCA/ , MATLAB, 52 linescca_pls_toolkit-master/ fileio/ exist_file.m - scripts/
CCA/ , MATLAB, 51 linescca_pls_toolkit-master/ fileio/ getfname.m - scripts/
CCA/ , MATLAB, 63 linescca_pls_toolkit-master/ fileio/ loadmat.m - scripts/
CCA/ , MATLAB, 56 linescca_pls_toolkit-master/ fileio/ loadmat_struct.m - scripts/
CCA/ , MATLAB, 54 linescca_pls_toolkit-master/ fileio/ parse_input.m - scripts/
CCA/ , MATLAB, 54 linescca_pls_toolkit-master/ fileio/ parse_struct.m - scripts/
CCA/ , MATLAB, 63 linescca_pls_toolkit-master/ fileio/ renamemat.m - scripts/
CCA/ , MATLAB, 76 linescca_pls_toolkit-master/ fileio/ savemat.m - scripts/
CCA/ , MATLAB, 37 linescca_pls_toolkit-master/ fileio/ select_file.m - scripts/
CCA/ , MATLAB, 44 linescca_pls_toolkit-master/ machines/ rcca.m - scripts/
CCA/ , MATLAB, 187 linescca_pls_toolkit-master/ machines/ spls.m - scripts/
CCA/ , MATLAB, 107 linescca_pls_toolkit-master/ misc/ calc_permid.m - scripts/
CCA/ , MATLAB, 41 linescca_pls_toolkit-master/ misc/ calc_proj.m - scripts/
CCA/ , MATLAB, 124 linescca_pls_toolkit-master/ misc/ calc_splits.m - scripts/
CCA/ , MATLAB, 48 linescca_pls_toolkit-master/ misc/ concat_data.m - scripts/
CCA/ , MATLAB, 113 linescca_pls_toolkit-master/ misc/ deflate_data.m - scripts/
CCA/ , MATLAB, 86 linescca_pls_toolkit-master/ misc/ generate_data.m - scripts/
CCA/ , MATLAB, 44 linescca_pls_toolkit-master/ misc/ get_featid.m - scripts/
CCA/ , MATLAB, 97 linescca_pls_toolkit-master/ misc/ get_hyperparam.m - scripts/
CCA/ , MATLAB, 53 linescca_pls_toolkit-master/ misc/ impute_mat.m - scripts/
CCA/ , MATLAB, 359 linescca_pls_toolkit-master/ misc/ load_data.m - scripts/
CCA/ , MATLAB, 83 lines, 1 matchcca_pls_toolkit-master/ misc/ main.m - scripts/
CCA/ , MATLAB, 73 linescca_pls_toolkit-master/ misc/ permute_data.m - scripts/
CCA/ , MATLAB, 123 linescca_pls_toolkit-master/ misc/ preproc_data.m - scripts/
CCA/ , MATLAB, 68 linescca_pls_toolkit-master/ misc/ process_metric.m - scripts/
CCA/ , MATLAB, 85 linescca_pls_toolkit-master/ misc/ qc_data.m - scripts/
CCA/ , MATLAB, 112 linescca_pls_toolkit-master/ misc/ run_machine.m - scripts/
CCA/ , MATLAB, 299 linescca_pls_toolkit-master/ misc/ run_model.m - scripts/
CCA/ , MATLAB, 149 linescca_pls_toolkit-master/ misc/ save_results.m - scripts/
CCA/ , MATLAB, 74 linescca_pls_toolkit-master/ misc/ stat_inference.m - scripts/
CCA/ , MATLAB, 207 linescca_pls_toolkit-master/ plot/ plot_paropt.m - scripts/
CCA/ , MATLAB, 309 linescca_pls_toolkit-master/ plot/ plot_proj.m - scripts/
CCA/ , MATLAB, 62 linescca_pls_toolkit-master/ plot/ plot_proj_2d.m - scripts/
CCA/ , MATLAB, 64 linescca_pls_toolkit-master/ plot/ plot_proj_2d_cmap.m - scripts/
CCA/ , MATLAB, 95 linescca_pls_toolkit-master/ plot/ plot_proj_2d_group.m - scripts/
CCA/ , MATLAB, 219 linescca_pls_toolkit-master/ plot/ plot_weight.m - scripts/
CCA/ , MATLAB, 116 linescca_pls_toolkit-master/ plot/ plot_weight_behav_horz.m - scripts/
CCA/ , MATLAB, 146 linescca_pls_toolkit-master/ plot/ plot_weight_behav_text.m - scripts/
CCA/ , MATLAB, 108 linescca_pls_toolkit-master/ plot/ plot_weight_behav_vert.m - scripts/
CCA/ , MATLAB, 84 linescca_pls_toolkit-master/ plot/ plot_weight_brain_conn_n ode.m - scripts/
CCA/ , MATLAB, 65 linescca_pls_toolkit-master/ plot/ plot_weight_brain_cortex .m - scripts/
CCA/ , MATLAB, 98 linescca_pls_toolkit-master/ plot/ plot_weight_brain_edge.m - scripts/
CCA/ , MATLAB, 130 linescca_pls_toolkit-master/ plot/ plot_weight_brain_module .m - scripts/
CCA/ , MATLAB, 65 linescca_pls_toolkit-master/ plot/ plot_weight_brain_node.m - scripts/
CCA/ , MATLAB, 99 linescca_pls_toolkit-master/ plot/ plot_weight_stem.m - scripts/
CCA/ , MATLAB, 314 linescca_pls_toolkit-master/ res_defaults.m - scripts/
CCA/ , MATLAB, 100 linescca_pls_toolkit-master/ set_path.m - scripts/
CCA/ , MATLAB, 56 linescca_pls_toolkit-master/ test/ get_data.m - scripts/
CCA/ , MATLAB, 165 linescca_pls_toolkit-master/ test/ test_algorithms.m - scripts/
CCA/ , MATLAB, 96 linescca_pls_toolkit-master/ test/ test_pipeline.m - scripts/
CCA/ , MATLAB, 42 linescca_pls_toolkit-master/ util/ assign_defaults.m - scripts/
CCA/ , MATLAB, 32 linescca_pls_toolkit-master/ util/ calc_distance.m - scripts/
CCA/ , MATLAB, 113 linescca_pls_toolkit-master/ util/ calc_exvar.m - scripts/
CCA/ , MATLAB, 130 linescca_pls_toolkit-master/ util/ calc_stability.m - scripts/
CCA/ , MATLAB, 37 linescca_pls_toolkit-master/ util/ cov2.m - scripts/
CCA/ , MATLAB, 108 linescca_pls_toolkit-master/ util/ deflation.m - scripts/
CCA/ , MATLAB, 139 linescca_pls_toolkit-master/ util/ fastsvd.m - scripts/
CCA/ , MATLAB, 50 linescca_pls_toolkit-master/ util/ ffd_val_str.m - scripts/
CCA/ , MATLAB, 58 linescca_pls_toolkit-master/ util/ fix_fileend.m - scripts/
CCA/ , MATLAB, 63 linescca_pls_toolkit-master/ util/ init_brainnet.m - scripts/
CCA/ , MATLAB, 36 linescca_pls_toolkit-master/ util/ mean_center_features.m - scripts/
CCA/ , MATLAB, 62 linescca_pls_toolkit-master/ util/ norm_features.m - scripts/
CCA/ , MATLAB, 77 linescca_pls_toolkit-master/ util/ normalize2MNI.m - scripts/
CCA/ , MATLAB, 57 linescca_pls_toolkit-master/ util/ postproc_weight.m - scripts/
CCA/ , MATLAB, 135 linescca_pls_toolkit-master/ util/ update_dir.m - scripts/
CCA/ , R, 139 lineschordplot_Abend216.R - scripts/
ControlAnalyses/ , R, 90 lines, 1 matchADHDDepressComorbidity_c ontrolanalyses.Rmd - scripts/
ControlAnalyses/ , R, 390 linesBladder_controlanalyses. Rmd - scripts/
ControlAnalyses/ , MATLAB, 173 linesCompute_EGGsignalquality .m - scripts/
ControlAnalyses/ , Jupyter, 534 lines, 1 matchFactorConnectivity.ipynb - scripts/
ControlAnalyses/ , R, 519 lines, 2 matchesPHQ15_controlanalyses.Rm d - scripts/
ControlAnalyses/ , R, 494 lines, 3 matchesRobustnessCheck.Rmd - scripts/
ControlAnalyses/ , R, 490 linesSTAI_controlanalyses.Rmd - scripts/
ControlAnalyses/ , R, 42 lines, 1 matchpoweranalysis.Rmd - scripts/
Gradients/ , MATLAB, 225 linesSpinPermuFS_LB.m - scripts/
Gradients/ , MATLAB, 231 lines, 2 matchesSpinTestResults_AverageT opCCA.m - scripts/
Gradients/ , Shell, 10 lines, 1 matchgradient2surface.sh - scripts/
Gradients/ , Jupyter, 84 linesgradients.ipynb - scripts/
ItemAnalyses_MHPhysio.Rm , R, 561 lines, 1 matchd - scripts/
MDIES_validity_reliabili , R, 593 lines, 2 matchesty.Rmd - scripts/
body_wandering_itemplots , R, 291 lines.Rmd - README.md, Text, 100 lines
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;
- 125 scripts, each with its path and the digest of its content;
- 23 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
- neurovault.org/
collections/ , at neurovault.org; found in the text, “Gradient map association.”1598
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: embodied-computation-gro
up/ body_wandering_CCA
Read it in the paper: doi.org/10.1073/pnas.2520822123.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 9 authors, 5 keywords, 8 MeSH terms, 3 funders, 75 references.
Cite
This paper
Banellis, L., Nikolova, N., Brændholdt, M., Vejlø, M., Rebollo, I., Legrand, N., Fardo, F., Smallwood, J., & Allen, M. G. (2026). Uncovering the embodied dimension of the wandering mind. Proceedings of the National Academy of Sciences of the United States of America, 123(13), e2520822123. https://
BibTeX
@article{banellis2026unc
author = {Banellis, Leah and Nikolova, Niia and Brændholdt, Malthe and Vejlø, Melina and Rebollo, Ignacio and Legrand, Nicolas and Fardo, Francesca and Smallwood, Jonathan and Allen, Micah G},
title = {{Uncovering the embodied dimension of the wandering mind}},
journal = {Proceedings of the National Academy of Sciences of the United States of America},
year = {2026},
month = mar,
volume = {123},
number = {13},
pages = {e2520822123},
publisher = {National Academy of Sciences},
issn = {0027-8424},
doi = {10.1073/
url = {https://
pmid = {41880559},
pmcid = {PMC13037934}
}
RIS
TY - JOUR
AU - Banellis, Leah
AU - Nikolova, Niia
AU - Brændholdt, Malthe
AU - Vejlø, Melina
AU - Rebollo, Ignacio
AU - Legrand, Nicolas
AU - Fardo, Francesca
AU - Smallwood, Jonathan
AU - Allen, Micah G
TI - Uncovering the embodied dimension of the wandering mind
T2 - Proceedings of the National Academy of Sciences of the United States of America
J2 - Proc Natl Acad Sci U S A
PY - 2026
DA - 2026/
VL - 123
IS - 13
SP - e2520822123
SN - 0027-8424
PB - National Academy of Sciences
DO - 10.1073/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1073/
"type": "article-journal",
"title": "Uncovering the embodied dimension of the wandering mind",
"container-title": "Proceedings of the National Academy of Sciences of the United States of America",
"author": [
{
"family": "Banellis",
"given": "Leah"
},
{
"family": "Nikolova",
"given": "Niia"
},
{
"family": "Brændholdt",
"given": "Malthe"
},
{
"family": "Vejlø",
"given": "Melina"
},
{
"family": "Rebollo",
"given": "Ignacio"
},
{
"family": "Legrand",
"given": "Nicolas"
},
{
"family": "Fardo",
"given": "Francesca"
},
{
"family": "Smallwood",
"given": "Jonathan"
},
{
"family": "Allen",
"given": "Micah G"
}
],
"container-title-short":
"volume": "123",
"issue": "13",
"page": "e2520822123",
"DOI": "10.1073/
"PMID": "41880559",
"PMCID": "PMC13037934",
"ISSN": "0027-8424",
"publisher": "National Academy of Sciences",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
25
]
]
}
}
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.1101/2024.10.25.620252 [code]
- Uncovering the embodied dimension of the wandering mindJournal: bioRxiv (preprint)In common: circlize, psych, ComplexHeatmap, 17 other tools, neurovault.org/collections/1598, cognitive, 43 references, 4 authors
- [2] doi:10.1162/netn_a_00387 [code]
- Individual variability in neural representations of mind-wandering.Journal: Network neuroscience (Cambridge, Mass.)In common: Nilearn, FreeSurfer, SPM, 5 other tools, 16 references
- [3] doi:10.1371/journal.pcbi.1013086 [code]
- The respiratory cycle modulates distinct dynamics of affective and perceptual decision-making.Journal: PLoS computational biologyIn common: pandas, SciPy, Matplotlib, 1 other tool, cognitive, 3 references, 4 authors
- [4] doi:10.1038/s44271-025-00184-y [code]
- Self-reports map the landscape of task states derived from brain imaging.Journal: Communications psychologyIn common: Nilearn, patchwork, ggpubr, 8 other tools, cognitive, 10 references, author Jonathan Smallwood
- [5] doi:10.7554/elife.93689 [code]
- Macro-scale patterns in functional connectivity associated with ongoing thought patterns and dispositional traits.Journal: eLifeIn common: circlize, psych, ComplexHeatmap, 8 other tools, 9 references, author Jonathan Smallwood
- [6] doi:10.1038/s41598-023-48857-0 [code]
- Experience sampling reveals the role that covert goal states play in task-relevant behavior.Journal: Scientific reportsIn common: Nilearn, patchwork, ggpubr, 8 other tools, cognitive, 9 references
- [7] doi:10.1038/s42003-024-06630-7 [code]
- Macroscale brain states support the control of semantic cognition.Journal: Communications biologyIn common: Nilearn, NiBabel, pandas, 3 other tools, cognitive, 14 references, author Jonathan Smallwood
- [8] doi:10.1093/cercor/bhab494 [code]
- Catching wandering minds with tapping fingers: neural and behavioral insights into task-unrelated cognition.Journal: Cerebral cortex (New York, N.Y. : 1991)In common: pandas, SciPy, Matplotlib, 1 other tool, cognitive, 16 references
- [9] doi:10.1126/sciadv.adq0261 [code]
- Thermosensory predictive coding underpins an illusion of pain.Journal: Science advancesIn common: patchwork, cowplot, reshape2, 2 other tools, cognitive, 3 authors
- [10] doi:10.1016/j.isci.2025.113755 [code]
- Mapping content and dynamics in the stream of consciousness through latent brain state analysis.Journal: iScienceIn common: Nilearn, pandas, SciPy, 2 other tools, cognitive, 13 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: 1 repository of the authors' code, each at its verified commit and with its license, 125 scripts, and 23 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:68d4e19e21741143…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.1073/pnas.2520822123)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1073/pnas.2520822123.svg
:target: https://openscicode.org/badge/doi/10.1073/pnas.2520822123
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1073/pnas.2520822123"><img src="https://openscicode.org/badge/doi/10.1073/pnas.2520822123.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
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)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
