Social interactions between people of same and different generations shape longitudinal changes in interpersonal neural synchrony, loneliness, and social connection.
4 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 4 matches
- [1] § 5 Methods › 5.4 Measures › 5.4.2 fNIRS recordings. ↔ fNIRS Interbrain Coherence/fNIRS/3Dheadmodels/script_structuresensor1.m, lines 327 to 387 · score 0.78 · left IFG, left TPJ, right IFG, right TPJ, MNI, ROIs · block
oscr:b:E57SSG8V7A9R6-M· Report a mismatch - [2] § 5 Methods › 5.4 Measures › 5.4.2 fNIRS recordings. ↔ fNIRS Interbrain Coherence/fNIRS/3Dheadmodels/script_structuresensor1.m, lines 170 to 230 · score 0.68 · MNI space, FieldTrip, scan, fiducial, channel, optodes · block
oscr:b:RF4D2GM522PDV-Q· Report a mismatch - [3] § 5 Methods › 5.6 Data analysis › 5.6.1 Interbrain synchrony. ↔ Group Level Analysis/INS/2a-Frequentisttest.Rmd, lines 127 to 150 · score 0.67 · LTPJ RTPJ, 50 seconds, LIFG RTPJ, RIFG LTPJ, LIFG LTPJ, LIFG RIFG · block
oscr:b:DQYEB0DNEAJQC-H· Report a mismatch - [4] § 5 Methods › 5.6 Data analysis › 5.6.1 Interbrain synchrony. ↔ fNIRS Interbrain Coherence/fNIRS/3Dheadmodels/script_structuresensor1.m, lines 232 to 284 · score 0.50 · optode positioning, location, Channel, S4, S2, Interbrain · block
oscr:b:S43V4NC08VD9Z-2· 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 · 421 lines · 16 KB · no license · 3 matches
- clear all;
- %% 0 Run these to set path & defaults
- addpath('/Users/rmoffat/Library/CloudStorage/OneDrive-ETHZurich/MATLAB/NIRS/fieldtrip-20240201')
- ft_defaults
- %% 1 Make 3D scan with the structure sensor
- % * place the cap on the subject's head and make sure that Cz is midway
- % between nasion-inion and LPA-RPA
- % * mark the fiducials (nasion, LPA, RPA, inion, Cz) with stickers
- % * make a 3D scan of the subject while walking around them with the
- % structure sensor (ask for help if necessary).n
- % * email to own email adress
- % * save the "Model" folder on a place you specify below in root_dir and
- % unzip
- %% 2 Specify where you saved the model folder
- sub_id= 'sub-309_session-5';
- root_dir='/Users/rmoffat/Library/CloudStorage/OneDrive-ETHZurich/SOBALAB/2023_projects/CortiVision/data/headmodels';
- obj_file=fullfile(root_dir, 'source', sub_id, 'model.obj');
- cd(fullfile(root_dir, 'processed', sub_id)) % or other folder where you want to save your data
- % 304_session-4 mesh is colourles
- % % you also need to specify your path to fieldtrip for a later step
- [ftver, ftpath] = ft_version;
- %% 3 Load the 3D-model
- head_surface = ft_read_headshape(obj_file);
- % needed if estimated unit is not m, but dm!
- % head_surface.pos = head_surface.pos * 10; % Convert from dm to m
- % Convert the units to mm
- head_surface = ft_convert_units(head_surface, 'mm');
- % Visualize the mesh surface
- figure('name', 'Mesh check');%title for clearity
- hold on
- ft_plot_mesh(head_surface);
- hold off
- %% 4 Specify the fiducials + optodes
- % Note that I also call Cz a fiducial, which is in fact not a fiducial, but
- % which we will use in a later stage to for coregistration.
- % Here I define the names of the transmitters and receivers. Adapt
- % according to own device.
- Sxnames=cell(16,1); %normal sources 1-8 and short sources are 13-16, total of 12 labels
- Dxnames=cell(10,1);
- idx=1;
- for i=1:16 %normal sources labels
- Sxnames{idx}=sprintf('S%d', i);
- idx=idx+1;
- end
- for i=1:10
- Dxnames{i}=sprintf('D%d', i);
- end
- cfg = [];
- cfg.channel={};
- cfg.channel{1} = 'Nz';
- cfg.channel{2} = 'LPA';
- cfg.channel{3} = 'RPA';
- cfg.channel{4}= 'Iz';
- cfg.channel{5} = 'Cz';
- cfg.channel(6:21)=Sxnames';
- cfg.channel(22:31)=Dxnames';
- cfg.method = 'headshape';
- opto = ft_electrodeplacement(cfg, head_surface);%2 figures appear: first figure for axes
- % (type 'n' in command window), second figure for electrode placement
- title ('axes check');
- save('opto.mat', 'opto')
- % Do you want to change the anatomical labels for the axes [Y, n]? --> n
- % Use "Rotate 3D" to rotate the 3D model.
- % Click/unclick "Colors" to toggle the colors on and off: best is to use the color
- % view for the fiducials, but the structure view for the optodes
- % Use the mouse to click on fiducials/optodes on the head and subsequently on the corresponding
- % label in the list to assign the markers. (Make sure you're not in "Rotate 3D" mode anymore!)
- % If an error was made: double click on the label to remove this marker
- % If ready --> press Q
- %% 5 Allign the axes of the coordinate system with the fiducial positions (ctf coordinates)
- % for the mesh
- load ('opto.mat')
- cfg = [];
- cfg.method = 'fiducial';
- cfg.coordsys = 'ctf';
- cfg.fiducial.nas = opto.elecpos(1,:); %position of Nz
- cfg.fiducial.lpa = opto.elecpos(2,:); %position of LPA
- cfg.fiducial.rpa = opto.elecpos(3,:); %position of RPA
- head_surface_ctf = ft_meshrealign(cfg, head_surface);
- %ft_plot_axes(head_surface_ctf)
- figure('name', 'axes check');
- ft_plot_mesh(head_surface_ctf, 'axes', true) %visualize the head surface,
- % including the axes of the coordinate system. You can check that the positive
- % and negative y-axes go through the preauricular points.
- % for the optodes
- fid.chanpos = [110 0 0; 0 90 0; 0 -90 0]; % CTF coordinates of the fiducials
- fid.elecpos = [110 0 0; 0 90 0; 0 -90 0]; % just like electrode positions
- fid.label = {'Nz','LPA','RPA'}; % same labels as in elec
- fid.unit = 'mm'; % same units as mri
- cfg = [];
- cfg.method = 'fiducial';
- cfg.coordsys = 'ctf';
- cfg.target = fid; % see above
- cfg.elec = opto;
- cfg.fiducial = {'Nz', 'LPA', 'RPA'}; % labels of fiducials in fid and in elec
- opto_ctf = ft_electroderealign(cfg);
- % Visualize the optodes on the alligned head surface
- % Notice that the colorview is not that clean as the the structure view
- figure('name','optodes on head');
- ft_plot_mesh(head_surface_ctf)
- ft_plot_sens(opto_ctf,'label', 'on', 'fontsize', 10, 'elecsize', 10, 'style', 'b')% I added optode labels, remove if in the way
- % to have the same visualization without the colors
- figure('Name','optodes on colourless head');
- ft_plot_mesh(removefields(head_surface_ctf, 'color'), 'tag', 'headshape', 'facecolor', 'skin', 'material', 'dull', 'edgecolor', 'none', 'facealpha', 1);
- lighting gouraud
- l = lightangle(0, 90); set(l, 'Color', [1 1 1]/2)
- l = lightangle( 0, 0); set(l, 'Color', [1 1 1]/3)
- l = lightangle( 90, 0); set(l, 'Color', [1 1 1]/3)
- l = lightangle(180, 0); set(l, 'Color', [1 1 1]/3)
- l = lightangle(270, 0); set(l, 'Color', [1 1 1]/3)
- alpha 0.9
- ft_plot_sens(opto_ctf, 'label', 'on', 'fontsize', 10,'elecsize', 10, 'style', 'b')
- save(['opto_ctf.mat'], 'opto_ctf')
- %% 6. Move optode inward
- load('opto_ctf.mat');
- cfg = [];
- cfg.method = 'moveinward';
- cfg.moveinward = 5; % determine distance to skin
- cfg.channel = 2:length(opto_ctf.label); % do not move the nasion inward
- cfg.keepchannel = true;
- cfg.elec = opto_ctf;
- opto_inw = ft_electroderealign(cfg);
- % visualize
- figure;
- ft_plot_mesh(removefields(head_surface_ctf, 'color'), 'tag', 'headshape', 'facecolor', 'skin', 'material', 'dull', 'edgecolor', 'none', 'facealpha', 1);
- lighting gouraud
- l = lightangle(0, 90); set(l, 'Color', [1 1 1]/2)
- l = lightangle( 0, 0); set(l, 'Color', [1 1 1]/3)
- l = lightangle( 90, 0); set(l, 'Color', [1 1 1]/3)
- l = lightangle(180, 0); set(l, 'Color', [1 1 1]/3)
- l = lightangle(270, 0); set(l, 'Color', [1 1 1]/3)
- alpha 0.7
- ft_plot_sens(opto_inw, 'elecsize', 10, 'style', 'b')
- %opto_inw = opto_ctf;
- save(['opto_inw.mat'], 'opto_inw')
- %% 7 Coregister optodes to MNI atlas
- % load("opto.mat")
- % load("opto_ctf.mat")
- % load("opto_inw.mat")
- % or event better: to an anatomical scan of your subject if you have one.
- % In that case, you will first need to segment the skin from your
- % anatomical MRI scan. For more information see: http://www.fieldtriptoolbox.org/tutorial/headmodel_eeg_bem/
- % load skin surface of standard atlas
- skin_template=fullfile(ftpath, 'template', 'headmodel', 'skin', 'standard_skin_14038.vol');
- skin=ft_read_headshape(skin_template);
- % visualization with optodes
- hold on; ft_plot_sens(opto_inw); %no skin mesh in this plot? 2d not 3d
- % you should notice that your optodes, which are represented in the ctf
- % coordinate system, are rotated with 90 degrees compared to the head model
- % which is represented in the MNI coordinate system. For more information
- % see: http://www.fieldtriptoolbox.org/faq/how_are_the_different_head_and_mri_coordinate_systems_defined/
- % We will use the MNI coordinates of the fiducials, which can be found in
- % the standard_1020.elc file of the fieldtrip template folder,
- % to guide the coregistration
- elec1020=ft_read_sens(fullfile(ftpath, 'template', 'electrode', 'standard_1020.elc'));
- % select rpa, lpa, nasion, inion and cz from elec1020
- cfg=[];
- cfg.method='moveinward'; % this is just a hack to select the right channels
- cfg.moveinward=10;
- cfg.channel={'Nz'; 'RPA'; 'LPA'; 'Iz'; 'Cz'};
- electarg=ft_electroderealign(cfg, elec1020);
- % There are two ways to coregister the optodes to the MNI space: (1)
- % interactively/manually or (2) automatically based on the fiducials we
- % specified here above
- % (1) interactively
- % So first a 90 degree turn to go from ctf to mni coordinate system
- cfg=[];
- cfg.method='interactive';
- cfg.headshape=skin;
- cfg.target=electarg; % you can use the fiducials to guide your coregistration
- opto_MNI=ft_electroderealign(cfg, opto_inw);
- % You might notice that this is quite time consuming and needs some
- % practice. Therefore, I prefer to do it automatically, but this is only
- % possible if you have enough fiducials/marker points.
- % (2) automatically
- % cfg=[];0
- % cfg.method='template';
- % cfg.warp= 'traditional';
- % cfg.channel={'LPA', 'RPA', 'Nz', 'Cz', 'Iz'};
- % cfg.target=electarg;
- % opto_MNI=ft_electroderealign(cfg, opto_inw);
- save('opto_MNI.mat', 'opto_MNI')
- % plot together
- figure;ft_plot_mesh(skin, 'edgecolor', 'none', 'facecolor', 'skin'); camlight
- hold on; ft_plot_sens(opto_MNI, 'elecsize', 20,'facecolor', 'k', 'label', 'label');
- hold on; ft_plot_sens(electarg, 'elecsize', 20, 'facecolor', 'b');
- %% 8 Calculate channel locations based on optode positions (in this case in CTF space)
- % load("opto_MNI.mat")
- % load("opto_ctf.mat")
- % use optode namings instead of eeg namings
- % define here the channels:
- channels = {'S1_D2', 'S2_D2', 'S2_D3', 'S2_D1','S3_D3', 'S3_D1', 'S4_D4', 'S4_D5', 'S5_D4', 'S5_D5','S6_D4', 'S7_D6', 'S7_D7','S8_D6', 'S8_D7', 'S8_D8','S9_D8','S10_D9', 'S10_D10','S11_D9', 'S11_D10','S12_D10', 'S13_D2', 'S14_D8', 'S15_D5', 'S16_D9'};
- % For these files the old montage needs to be used. Take care to follow the
- % old montage during the optode specification (%%4)
- % sub-103_session-1, sub-301_session-1,sub-101_session-1,
- % sub-201_session-1, sub-102_session-1, sub-202_session-1
- %
- % Old Montage
- % channels = {'S1_D2 ', 'S2_D2', 'S2_D3', 'S3_D3', 'S2_D1','S3_D1', 'S4_D5', 'S5_D5', 'S4_D4','S6_D4','S6_D5','S7_D6', 'S7_D7', 'S8_D7','S8_D6', 'S8_D8', 'S9_D8','S10_D9 ', 'S11_D9', 'S12_D9','S12_D10', 'S11_D10','S13_D1', 'S14_D6', 'S15_D5', 'S16_D9'};
- [dxnames, rem] = strtok(channels, {'_', ' '});
- [sxnames, rem] = strtok(rem, {'_', ' '});
- % change the naming
- opto_lay = opto_ctf;
- opto_lay.optopos=opto_ctf.chanpos;
- opto_lay.chantype=cell(length(opto_ctf.chantype),1);
- opto_lay.chantype(:) = {'nirs'};
- opto_lay.optolabel = opto_ctf.label;
- opto_lay.label=channels;
- opto_lay.tra=zeros(length(channels),length(opto_lay.optolabel));
- for i=1:length(channels)
- opto_lay.tra(i,:) = strcmp(dxnames{i},opto_lay.optolabel)+strcmp(sxnames{i}, opto_lay.optolabel);
- end
- opto_lay=rmfield(opto_lay, {'chanpos', 'chantype', 'chanunit', 'elecpos'});
- % calculate the channel positions
- opto_layout = ft_datatype_sens(opto_lay)
- % save
- save('opto_layout.mat', 'opto_layout')
- % calculate channel locations also in MNI space
- % change the naming
- opto_temp = opto_MNI;
- opto_temp.optopos=opto_MNI.chanpos;
- opto_temp.chantype=cell(length(opto_MNI.chantype),1);
- opto_temp.chantype(:) = {'nirs'};
- opto_temp.optolabel = opto_MNI.label;
- opto_temp.label=channels;
- opto_temp.tra=zeros(length(channels),length(opto_temp.optolabel));
- for i=1:length(channels)
- opto_temp.tra(i,:) = strcmp(dxnames{i},opto_temp.optolabel)+strcmp(sxnames{i}, opto_temp.optolabel);
- end
- opto_temp=rmfield(opto_temp, {'chanpos', 'chantype', 'chanunit', 'elecpos'});
- % calculate the channel positions
- chan_MNI = ft_datatype_sens(opto_temp);
- %% 9 Determine anatomical label for the channels (this is only possible in MNI space)
- % % documentati on: http://www.fieldtriptoolbox.org/faq/how_can_i_determine_the_anatomical_label_of_a_source/
- % % load atlas (AAL atlas), but you can also load another atlas, see: http://www.fieldtriptoolbox.org/template/atlas/
- % atlas = ft_read_atlas([ftpath filesep 'template/atlas/aal/ROI_MNI_V4.nii']);
- %
- % channels = {'S1_D2', 'S2_D2', 'S2_D3', 'S2_D1','S3_D3', 'S3_D1', 'S4_D4', 'S4_D5', 'S5_D4', 'S5_D5','S6_D4', 'S7_D6', 'S7_D7','S8_D6', 'S8_D7', 'S8_D8','S9_D8','S10_D9', 'S10_D10','S11_D9', 'S11_D10','S12_D10', 'S13_D2', 'S14_D8', 'S15_D5', 'S16_D9'};
- %
- % % Look up the corresponding anatomical label
- % cfg = [];
- % cfg.roi = chan_MNI.chanpos(match_str(chan_MNI.label,channels),:);
- % cfg.atlas = atlas;
- % cfg.output = 'multiple';
- % cfg.minqueryrange=1;
- % cfg.maxqueryrange=25; %if no label was found, increase the queryrange
- % labels = ft_volumelookup(cfg, atlas);
- %
- % % Select the anatomical label with the highest probability
- %
- % for i=1:length(channels)
- % [~, indx] = max(labels(i).count);
- % label{i}=char(labels(i).name(indx));
- % end
- %
- % % show results in table
- % table(channels', label', 'VariableNames', {'channel', 'label'})
- %% CSV table python
- labeling = char(chan_MNI.label);
- % f= "fidcuial";
- % s = "source";
- % d = "dectector";
- % types = repelem([f; s; d], [5 10 10]);
- %
- % pythontable = table(labeling,types,opto_MNI.elecpos(:,1),opto_MNI.elecpos(:,2),opto_MNI.elecpos(:,3), 'VariableNames',{'name','type', 'x','y','z'})
- pythontable = table(labeling,chan_MNI.chanpos(:,1),chan_MNI.chanpos(:,2),chan_MNI.chanpos(:,3), 'VariableNames',{'name', 'x','y','z'})
- writetable(pythontable, [sub_id, '.csv']); %change per participant
- %% compare ROI coordinates
- regions = {'left TPJ', 'right TPJ', 'left IFG', 'right IFG'};
- ROIs = char(regions);
- ROI_coordinates = [-56 -54 20; 56 -52 18; -48 22 8; 50 22 16];
- % ROI_tabel = table(ROIs, ROI_coordinates(:,1), ROI_coordinates(:,2), ROI_coordinates(:,3), 'VariableNames',{'ROI', 'x','y','z'});
- % Chan_coordinates = table(chan_MNI.chanpos(:,1),chan_MNI.chanpos(:,2),chan_MNI.chanpos(:,3), 'VariableNames',{ 'x','y','z'});
- P=chan_MNI.chanpos;
- l_tpj = ROI_coordinates(1,:);
- r_tpj = ROI_coordinates(2,:);
- l_ifg = ROI_coordinates(3,:);
- r_ifg = ROI_coordinates(4,:);
- l_tpj_distance = zeros(26,1);
- for i = 1:length(P)
- X = [l_tpj ; P(i,:)];
- d= pdist(X, 'euclidean');
- l_tpj_distance(i)=d;
- end
- r_tpj_distance = zeros(26,1);
- for i = 1:length(P)
- X = [r_tpj ; P(i,:)];
- d= pdist(X, 'euclidean');
- r_tpj_distance(i)=d;
- end
- l_ifg_distance = zeros(26,1);
- for i = 1:length(P)
- X = [l_ifg ; P(i,:)];
- d= pdist(X, 'euclidean');
- l_ifg_distance(i)=d;
- end
- r_ifg_distance = zeros(26,1);
- for i = 1:length(P)
- X = [r_ifg ; P(i,:)];
- d= pdist(X, 'euclidean');
- r_ifg_distance(i)=d;
- end
- alldistances = [l_tpj_distance, r_tpj_distance, l_ifg_distance, r_ifg_distance];
- distance = table(labeling,l_tpj_distance, r_tpj_distance, l_ifg_distance, r_ifg_distance)
- writetable(distance, [sub_id, '_distances.csv'])%change per participant
- nearest = [];
- nearest.chanlabels = chan_MNI.label;
- nearest.ROIS = regions;
- nearest.distance = alldistances;
- near= strings(4,2); %make a list of the closest channel per ROI stored in varaible 'near'
- channear = {};
- for i=1:4
- [min_value, index] = min(nearest.distance(:,i));
- near(i,1) = num2str(min_value);
- near(i,2) = nearest.chanlabels(1,index);
- end
- chanlabel = char(channear);
- %% distances between optode pairs
- %if you are doing this for participants who already had the entire script
- %run on them, just run section 2,8 and this section, uncomment load
- %opto_MNI and ctf at the top of section 8
- optode_distances = [];
- % Loop through each channel pair
- for i = 1:numel(channels)
- % Extract electrode labels for the current channel pair
- optodes = strsplit(channels{i}, '_');
- % Find the indices of electrodes in the data structure
- idx_optodes = cellfun(@(x) find(strcmp(chan_MNI.optolabel, x)), optodes);
- % Extract coordinates of electrodes in the channel pair
- coords = chan_MNI.optopos(idx_optodes, :);
- % Calculate distance between electrodes
- dist = pdist(coords);
- % Store channel distance
- optode_distances = [optode_distances; dist];
- end
- % Create a table with channel names and distances
- channeltable = channels';
- optode_dist = table(channeltable, optode_distances, 'VariableNames', {'Channel', 'Distance'});
- disp(optode_dist);
- writetable(optode_dist, [sub_id, '_optode_dist.csv'])%change per participant
script_structuresensor1.m, no license · at the source
Overview
- Social Brain Sciences Lab, ETH Zurich, Zurich, Switzerland
- CHU Sainte-Justine Azrieli Research Center, Department of Psychiatry, University of Montreal, Montréal, Quebec, Canada
- Mila – Quebec Artificial Intelligence Institute, Montréal, Quebec, Canada
Abstract
Loneliness is globally acknowledged as a severe and burgeoning health risk, fueling interest in helping people of all ages form meaningful social connections. One promising approach consists of intergenerational social programs. While behavioral and qualitative evidence derived from such programs promise health and wellbeing benefits, the physiological consequences of repeated intergenerational encounters remain unknown. Insight into physiological changes will shed light on the mechanisms of social connection. We charted longitudinal changes in interpersonal neural synchrony (INS) in 31 intergenerational (older/
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 4 matches between paragraphs and lines of code.
OSF xcgp6
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
20 files
- Group Level Analysis/
INS/ , R, 277 lines1-CombineDFs.Rmd - Group Level Analysis/
INS/ , R, 277 lines1-CombineDFs_hbr.Rmd - Group Level Analysis/
INS/ , R, 666 lines2-INS_Hypyp_ageDPFs.Rmd - Group Level Analysis/
INS/ , R, 666 lines2-INS_Hypyp_ageDPFs_hbr. Rmd - Group Level Analysis/
INS/ , R, 185 lines, 1 match2a-Frequentisttest.Rmd - Group Level Analysis/
INS/ , R, 431 lines3-INS_intergen_direction ality_ageDPFs_hbo.Rmd - Group Level Analysis/
INS/ , R, 427 lines3-INS_intergen_direction ality_ageDPFs_hbr.Rmd - Group Level Analysis/
INS/ , R, 540 lines4-INS_realpairs_ageDPFs_ hbo.Rmd - Group Level Analysis/
INS/ , R, 544 lines4-INS_realpairs_ageDPFs_ hbr.Rmd - Group Level Analysis/
INS/ , R, 1,038 lines5-INS_measures_ageDPFs_h bo.Rmd - Group Level Analysis/
INS/ , R, 1,037 lines5-INS_measures_ageDPFs_h br.Rmd - Group Level Analysis/
INS/ , R, 419 lines5a-INS_measures_plots_ag eDPFs_hbo.Rmd - Group Level Analysis/
INS/ , R, 424 lines5a-INS_measures_plots_ag eDPFs_hbr.Rmd - Group Level Analysis/
INS/ , R, 276 lines6-INS_contrasting_drawin gs.Rmd - Group Level Analysis/
INS/ , R, 667 lines7-INS_with_all_good_chan nels.Rmd - Group Level Analysis/
behaviour/ , R, 172 lines1-QuestionnaireCleaning. Rmd - Group Level Analysis/
behaviour/ , R, 598 lines2-DemographicsAndQuestio nnaires.Rmd - Group Level Analysis/
behaviour/ , R, 141 lines3-InterSessionDays.Rmd - Group Level Analysis/
behaviour/ , R, 174 lines4-Additional_analyses.Rm d - fNIRS Interbrain Coherence/
fNIRS/ , MATLAB, 421 lines, 3 matches3Dheadmodels/ script_structuresensor1. m
OSF zms2v
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 20 scripts, each with its path and the digest of its content;
- 4 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
- openneuro:ds008192, at OpenNeuro; found in the references
Data Availability
These data were collected after the submission of the following preregistration: https://
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, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 12 MeSH terms, 6 funders, 123 references.
Cite
This paper
Moffat, R., Dumas, G., & Cross, E. S. (2026). Social interactions between people of same and different generations shape longitudinal changes in interpersonal neural synchrony, loneliness, and social connection. PLoS biology, 24(8), e3003899. https://
BibTeX
@article{moffat2026socia
author = {Moffat, Ryssa and Dumas, Guillaume and Cross, Emily S.},
title = {{Social interactions between people of same and different generations shape longitudinal changes in interpersonal neural synchrony, loneliness, and social connection}},
journal = {PLoS biology},
year = {2026},
month = aug,
volume = {24},
number = {8},
pages = {e3003899},
publisher = {Public Library of Science},
issn = {1544-9173},
doi = {10.1371/
url = {https://
pmid = {42623338},
pmcid = {PMC13492753}
}
RIS
TY - JOUR
AU - Moffat, Ryssa
AU - Dumas, Guillaume
AU - Cross, Emily S.
TI - Social interactions between people of same and different generations shape longitudinal changes in interpersonal neural synchrony, loneliness, and social connection
T2 - PLoS biology
J2 - PLoS Biol
PY - 2026
DA - 2026/
VL - 24
IS - 8
SP - e3003899
SN - 1544-9173
PB - Public Library of Science
DO - 10.1371/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1371/
"type": "article-journal",
"title": "Social interactions between people of same and different generations shape longitudinal changes in interpersonal neural synchrony, loneliness, and social connection",
"container-title": "PLoS biology",
"author": [
{
"family": "Moffat",
"given": "Ryssa"
},
{
"family": "Dumas",
"given": "Guillaume"
},
{
"family": "Cross",
"given": "Emily S."
}
],
"container-title-short":
"volume": "24",
"issue": "8",
"page": "e3003899",
"DOI": "10.1371/
"PMID": "42623338",
"PMCID": "PMC13492753",
"ISSN": "1544-9173",
"publisher": "Public Library of Science",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
20
]
]
}
}
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.1098/rsob.230382 [code]
- Inhibiting responses under the watch of a recently synchronized peer increases self-monitoring: evidence from functional near-infrared spectroscopy.Journal: Open biologyIn common: 10 references, 2 authors
- [2] doi:10.1162/imag.a.962
- Individual abilities to estimate levels of movement synchrony predict action observation network activation.Journal: Imaging neuroscience (Cambridge, Mass.)In common: 10 references, 2 authors
- [3] doi:10.1002/hbm.26305 [code]
- Cortical haemodynamic responses predict individual ability to recognise vocal emotions with uninformative pitch cues but do not distinguish different emotions.Journal: Human brain mappingIn common: emmeans, ggpubr, ggplot2, 1 other tool, 7 references, author Ryssa Moffat
- [4] doi:10.1038/s41598-024-75427-9 [code]
- Aesthetic evaluation of body movements shaped by embodied and arts experience: Insights from behaviour and fNIRS.Journal: Scientific reportsIn common: emmeans, ggpubr, ggplot2, 1 other tool, 6 references, author Ryssa Moffat
- [5] doi:10.1002/hbm.26786
- Awareness of embodiment enhances enjoyment and engages sensorimotor cortices.Journal: Human brain mappingIn common: 9 references, author Ryssa Moffat
- [6] doi:10.1371/journal.pbio.3003479 [code]
- Collaborative rule learning promotes interbrain information alignment.Journal: PLoS biologyIn common: FieldTrip, Statistics and Machine Learning Toolbox, 10 references
- [7] doi:10.1162/imag_a_00509 [code]
- Analytical pipeline optimisation in developmental fNIRS hyperscanning data: Neural coherence between 4- to 6-year old children collaborating with their mothers.Journal: Imaging neuroscience (Cambridge, Mass.)In common: ggpubr, ggplot2, tidyverse, 1 other tool, 8 references
- [8] doi:10.1016/j.dcn.2023.101330 [code]
- It takes a village: A multi-brain approach to studying multigenerational family communication.Journal: Developmental cognitive neuroscienceIn common: 10 references
- [9] doi:10.1016/j.dcn.2022.101104 [code]
- DEEP: A dual EEG pipeline for developmental hyperscanning studies.Journal: Developmental cognitive neuroscienceIn common: FieldTrip, Statistics and Machine Learning Toolbox, 9 references
- [10] doi:10.1162/imag_a_00350 [code]
- Arbitrary methodological decisions skew inter-brain synchronization estimates in hyperscanning-EEG studies.Journal: Imaging neuroscience (Cambridge, Mass.)In common: FieldTrip, Statistics and Machine Learning Toolbox, 9 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: 2 repositories of the authors' code, each at its verified commit and with its license, 20 scripts, and 4 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:3d6ec5f793c4b220…
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.1371/journal.pbio.3003899)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1371/journal.pbio.3003899.svg
:target: https://openscicode.org/badge/doi/10.1371/journal.pbio.3003899
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1371/journal.pbio.3003899"><img src="https://openscicode.org/badge/doi/10.1371/journal.pbio.3003899.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.
