Scent of a father: Paternal body odors boost interbrain synchrony.
The 2 matches
- [1] § MATERIALS AND METHODS › Connectivity analysis ↔ Interbrain connectivity- Clean.py, lines 108–179 · score 0.66 · 8–12 Hz, frequency bands, 4–7 Hz, wPLI, theta, connectivity
- [2] § RESULTS › Higher father-infant inter brain synchrony compared to stranger-infant ↔ Interbrain connectivity- Clean.py, lines 108–179 · score 0.50 · 8–12 Hz, frequency band, theta, alpha, connections
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
Python · 179 lines · 6.9 KB · CC-BY-4.0 · 2 matches
- # -*- coding: utf-8 -*-
- """
- Created on Wed Jun 8 11:38:10 2022
- @author: yaara
- """
- import os
- import mne
- import pandas as pd
- import numpy as np
- from mne.connectivity import spectral_connectivity as sc
- # -----------------------------------------------------------------------------
- # USER CONFIGURATIONS (SCRIPT CONSTANTS)
- # PATH_DIR_SRC : Path to source files folder
- # PATH_DIR_DEST: Path to target output folder
- # PATH_DURATION_CSV: Path to .csv file containing a duration column, the
- # duration is the minimal time between the different paradigms for each
- # subject. The duration
- # SBJ_COL_NAME : Name of subject names column
- # DUR_COL_NAME : Name of number of epochs column
- # OFFSET_START : Margin of epochs to crop from the beginning of the data
- # OFFSET_END : Margin of epochs to crop from the end of the data (after
- # TAG : Paradigm tag
- # cropping the by the duration value)
- # -----------------------------------------------------------------------------
- PATH_DIR_SRC = " source folder"
- PATH_DIR_DEST = "output folder"
- PATH_DURATION_CSV = "times "
- SBJ_COL_NAME = "file"
- DUR_COL_NAME = "EPOCHS NUM"
- OFFSET_START = 4
- OFFSET_END = 4
- TAG = 'Condition'
- final_epochs_summary=[]
- # -----------------------------------------------------------------------------
- # USER ARGUMENTS VALIDATION
- # -----------------------------------------------------------------------------
- assert os.path.isdir(PATH_DIR_SRC), "invalid source folder"
- assert os.path.isdir(PATH_DIR_DEST), "invalid destination folder"
- assert os.path.isfile(PATH_DURATION_CSV), "invalid path to csv file"
- assert PATH_DURATION_CSV.endswith(".xlsx"), "invalid file type"
- excel_file = pd.read_excel(PATH_DURATION_CSV)
- assert SBJ_COL_NAME in excel_file, \
- "csv file does not contain mandatory subject name column"
- assert DUR_COL_NAME in excel_file, \
- "csv file does not contain mandatory duration column"
- assert isinstance(OFFSET_START, int), "offset should be an integer value"
- assert isinstance(OFFSET_END, int), "offset should be an integer value"
- # -----------------------------------------------------------------------------
- # HELPER FUNCTIONS
- # -----------------------------------------------------------------------------
- def min_cut_dict() -> dict:
- """
- dict with subject names as keys, and their respective duration as values
- :return: dict object
- """
- excel_file = pd.read_excel(PATH_DURATION_CSV)
- return dict(zip(excel_file[SBJ_COL_NAME], excel_file[DUR_COL_NAME]))
- def synch_drop_logs(subj_1, subj_2):
- """
- synchronize drop logs between the two subjects, modified in place
- :param subj_1: mne raw instance
- :param subj_2: mne raw instance
- :return:
- """
- log_1 = subj_1.drop_log
- log_2 = subj_2.drop_log
- clean_1 = [(a, b) for a, b in zip(log_1, log_2) if not a]
- ind_drop_1 = [i for ((a, b), i) in zip(clean_1, list(range(len(clean_1))))
- if not a and b]
- clean_2 = [(a, b) for a, b in zip(log_2, log_1) if not a]
- ind_drop_2 = [i for ((a, b), i) in zip(clean_2, list(range(len(clean_2))))
- if not a and b]
- subj_1.drop(ind_drop_1)
- subj_2.drop(ind_drop_2)
- def apply_offset(subj, start, end, duration=None):
- """
- drop 'start' number of epochs from the beginning of the data and 'end' from
- the end
- :param subj: mne raw instacne
- :param start: # of epochs to crop from the start
- :param end: # of epochs to crop from the end
- :param duration:
- :return:
- """
- log = subj.drop_log
- ind_drop_start = list(range(len([x for x in log[:start] if not x])))
- clean = [x for x in log[:int(duration-end)] if not x]
- clean_total = [x for x in log if not x]
- ind_drop_end = list(range(len(clean), len(clean_total)))
- subj.drop(ind_drop_start+ind_drop_end)
- # split files in source folder into pairs (by experiment)
- files_ls = os.listdir(PATH_DIR_SRC)
- files_ls = [file for file in files_ls if file.endswith('.fif')]
- files_ls.sort()
- files_ls = np.array(files_ls).reshape(int(len(files_ls)/2), 2)
- dic_duration = min_cut_dict()
- # loop over every subject pair
- for (subj_1, subj_2) in files_ls:
- # load and pre-process data
- os.chdir(PATH_DIR_SRC)
- raw_1 = mne.read_epochs(subj_1, preload=True)
- raw_2 = mne.read_epochs(subj_2, preload=True)
- raw_1.pick_types(eeg=True,
- exclude=['FCz', 'Fp1', 'Fp2', 'F7', 'F8', 'O1', 'O2', 'Oz',
- 'Cz', 'Pz', 'Fz'])
- raw_2.pick_types(eeg=True,
- exclude=['Fp1', 'Fp2', 'F7', 'F8','O1', 'O2', 'Oz', 'Cz',
- 'Pz', 'Fz'])
- apply_offset(raw_1, OFFSET_START, OFFSET_END, dic_duration[subj_1[0:4]])
- synch_drop_logs(raw_1, raw_2)
- drop_comb = zip(raw_1.drop_log, raw_2.drop_log)
- # Store the number of final epochs for each family
- family_number = subj_1[0:6] # Extract family number
- final_epochs_count = len(raw_2) # Number of epochs after processing
- final_epochs_summary.append({'Family': family_number, 'Final Epochs': final_epochs_count})
- # preparations for spectral connectivity
- data_1 = raw_1.get_data()
- data_2 = raw_2.get_data()
- data_combined = np.concatenate((data_1, data_2), axis=1)
- info = mne.create_info(
- ch_names=raw_1.info['ch_names']+raw_1.info['ch_names'],
- ch_types=np.repeat('eeg', 12), sfreq=raw_1.info['sfreq'])
- events = np.array([np.array([i, 0, i])
- for i in range(data_combined.shape[0])])
- events_id = dict(zip([str(x[0]) for x in events], [x[0] for x in events]))
- raw_combined = mne.EpochsArray(data_combined, info, events, -1,
- events_id)
- raw_combined.info['chs'] = raw_1.info['chs']+raw_2.info['chs']
- freq_bands = {'theta': (4, 7),
- 'alpha':(8,12)
- }
- fmin = np.array([f for f, _ in freq_bands.values()])
- fmax = np.array([f for _, f in freq_bands.values()])
- # spectral connectivity
- sc_data = sc(raw_combined, method='wpli', fmin=fmin, fmax=fmax,
- mode='multitaper', faverage=True, n_jobs=1, verbose=False)
- connB, freqsB, timesB, n_epochsB, n_tapersB = sc_data
- # export as .csv file
- os.chdir(PATH_DIR_DEST)
- file_name = subj_1[0:6]+TAG+'.csv'
- chnl_1 = np.array(list(range(12)) * 12)
- chnl_2 = chnl_1.copy()
- chnl_1.sort()
- pd.DataFrame(
- dict(channel_1=chnl_1, channel_2=chnl_2,
- **{key: np.reshape(connB[:, :, idx], 12 ** 2)
- for idx, key in enumerate(freq_bands.keys())})
- ).to_csv(file_name)
- # EXPORT FINAL EPOCHS TABLE
- # -------------------------------------------------------------------------
- final_epochs_df = pd.DataFrame(final_epochs_summary)
- final_epochs_df.to_csv(os.path.join(PATH_DIR_DEST, 'Epochs_Summary.csv'), index=False)
- print("Final epochs summary saved successfully!")
Interbrain connectivity- Clean.py, under CC-BY-4.0 · at the source
Overview
- Center for Developmental Social Neuroscience, Reichman University, Herzliya, Israel
- Institute for Learning & Brain Sciences, University of Washington, Seattle, WA, United States
Abstract
Olfactory cues are ancient signals and mammalian young utilize maternal body odors (BO) to form a bond to their habitat in the absence of the mother, strengthen associative learning, and grow a social brain. Whether infants respond to their father’s BO and how paternal BO impact their brain maturation is still unknown. Utilizing ecologically-valid paradigms with dual-electroencephalogra
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.
Zenodo 18358991
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
1 file
- Interbrain connectivity- Clean.py — Python, 179 lines, 2 matches
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;
- 1 script, each with its path and the digest of its content;
- 2 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, code, and materials availability
All data and code needed to evaluate and reproduce the results in the paper are present in the paper and/
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 2, 28 September 2026
- Funding: added Bezos Family Foundation
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 9 MeSH terms, 67 references.
Cite
This paper
Endevelt-Shapira, Y., Schwartz, L., & Feldman, R. (2026). Scent of a father: Paternal body odors boost interbrain synchrony. Science advances, 12(29), eaed6110. https://
BibTeX
@article{endeveltshapira
author = {Endevelt-Shapira, Yaara and Schwartz, Linoy and Feldman, Ruth},
title = {{Scent of a father: Paternal body odors boost interbrain synchrony}},
journal = {Science advances},
year = {2026},
month = jul,
volume = {12},
number = {29},
pages = {eaed6110},
publisher = {American Association for the Advancement of Science},
issn = {2375-2548},
doi = {10.1126/
url = {https://
pmid = {42455951},
pmcid = {PMC13371932}
}
RIS
TY - JOUR
AU - Endevelt-Shapira, Yaara
AU - Schwartz, Linoy
AU - Feldman, Ruth
TI - Scent of a father: Paternal body odors boost interbrain synchrony
T2 - Science advances
J2 - Sci Adv
PY - 2026
DA - 2026/
VL - 12
IS - 29
SP - eaed6110
SN - 2375-2548
PB - American Association for the Advancement of Science
DO - 10.1126/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1126/
"type": "article-journal",
"title": "Scent of a father: Paternal body odors boost interbrain synchrony",
"container-title": "Science advances",
"author": [
{
"family": "Endevelt-Shapira",
"given": "Yaara"
},
{
"family": "Schwartz",
"given": "Linoy"
},
{
"family": "Feldman",
"given": "Ruth"
}
],
"container-title-short":
"volume": "12",
"issue": "29",
"page": "eaed6110",
"DOI": "10.1126/
"PMID": "42455951",
"PMCID": "PMC13371932",
"ISSN": "2375-2548",
"publisher": "American Association for the Advancement of Science",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
15
]
]
}
}
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.1038/s44271-026-00468-x [code]
- Inter-brain processes during Live and Represented social moments are inter-related and shaped by behavioral synchrony.Journal: Communications psychologyIn common: 9 references, 2 authors
- [2] doi:10.1093/cercor/bhag077 [code]
- The longitudinal development of intrinsic timescales in infancy and their relation to alpha brain rhythm.Journal: Cerebral cortex (New York, N.Y. : 1991)In common: MNE-Python, pandas, NumPy, developmental, EEG, 3 references
- [3] doi:10.3390/brainsci16080880 [code]
- A Mixed Longitudinal EEG Study of Sensorimotor Rhythm Modulation and Its Relationship with Language Development in Children Aged 3-10 Years.Journal: Brain sciencesIn common: MNE-Python, pandas, NumPy, EEG, 2 references
- [4] doi:10.1038/s41531-026-01412-w [code]
- Network based statistics associates increased connectivity to REM sleep disorder and hallucinations in early DLB.Journal: NPJ Parkinson's diseaseIn common: MNE-Python, pandas, NumPy, 3 references
- [5] doi:10.3390/brainsci16080809 [code]
- The Influence of Shared Attention and Friendship on Emotional Processing: A Behavioral and EEG Hyperscanning Study.Journal: Brain sciencesIn common: EEG, 4 references
- [6] doi:10.1093/braincomms/fcag329
- A meta-analysis of periodic and aperiodic electrophysiological features in Parkinson's disease.Journal: Brain communicationsIn common: EEG, 4 references
- [7] doi:10.1371/journal.pone.0351872 [code]
- Decoding visual object recognition from EEG signals.Journal: PloS oneIn common: MNE-Python, pandas, NumPy, EEG, 2 references
- [8] doi:10.3390/s26134019 [code]
- NeuroStat: An Open-Source EEG Connectivity Platform for Randomised Controlled Trials.Journal: Sensors (Basel, Switzerland)In common: MNE-Python, pandas, NumPy, EEG, 2 references
- [9] doi:10.1186/s11689-026-09706-z [code]
- Neural oscillatory dynamics reveal altered top-down and integrative mechanisms during face processing in autistic children and unaffected siblings of autistic children.Journal: Journal of neurodevelopmental disordersIn common: MNE-Python, pandas, NumPy, EEG, 2 references
- [10] doi:10.3389/fncom.2026.1786996 [code]
- Schumann-anchored golden ratio organization of human neural oscillations.Journal: Frontiers in computational neuroscienceIn common: MNE-Python, pandas, NumPy, EEG, 2 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, 1 script, and 2 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:75cd7c0310e2893a…
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
[.
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.
