OSCR

Scent of a father: Paternal body odors boost interbrain synchrony.

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 2 matches
  1. [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. [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

  1. # -*- coding: utf-8 -*-
  2. """
  3. Created on Wed Jun 8 11:38:10 2022
  4. @author: yaara
  5. """
  6. import os
  7. import mne
  8. import pandas as pd
  9. import numpy as np
  10. from mne.connectivity import spectral_connectivity as sc
  11. # -----------------------------------------------------------------------------
  12. # USER CONFIGURATIONS (SCRIPT CONSTANTS)
  13. # PATH_DIR_SRC : Path to source files folder
  14. # PATH_DIR_DEST: Path to target output folder
  15. # PATH_DURATION_CSV: Path to .csv file containing a duration column, the
  16. # duration is the minimal time between the different paradigms for each
  17. # subject. The duration
  18. # SBJ_COL_NAME : Name of subject names column
  19. # DUR_COL_NAME : Name of number of epochs column
  20. # OFFSET_START : Margin of epochs to crop from the beginning of the data
  21. # OFFSET_END : Margin of epochs to crop from the end of the data (after
  22. # TAG : Paradigm tag
  23. # cropping the by the duration value)
  24. # -----------------------------------------------------------------------------
  25. PATH_DIR_SRC = " source folder"
  26. PATH_DIR_DEST = "output folder"
  27. PATH_DURATION_CSV = "times "
  28. SBJ_COL_NAME = "file"
  29. DUR_COL_NAME = "EPOCHS NUM"
  30. OFFSET_START = 4
  31. OFFSET_END = 4
  32. TAG = 'Condition'
  33. final_epochs_summary=[]
  34. # -----------------------------------------------------------------------------
  35. # USER ARGUMENTS VALIDATION
  36. # -----------------------------------------------------------------------------
  37. assert os.path.isdir(PATH_DIR_SRC), "invalid source folder"
  38. assert os.path.isdir(PATH_DIR_DEST), "invalid destination folder"
  39. assert os.path.isfile(PATH_DURATION_CSV), "invalid path to csv file"
  40. assert PATH_DURATION_CSV.endswith(".xlsx"), "invalid file type"
  41. excel_file = pd.read_excel(PATH_DURATION_CSV)
  42. assert SBJ_COL_NAME in excel_file, \
  43. "csv file does not contain mandatory subject name column"
  44. assert DUR_COL_NAME in excel_file, \
  45. "csv file does not contain mandatory duration column"
  46. assert isinstance(OFFSET_START, int), "offset should be an integer value"
  47. assert isinstance(OFFSET_END, int), "offset should be an integer value"
  48. # -----------------------------------------------------------------------------
  49. # HELPER FUNCTIONS
  50. # -----------------------------------------------------------------------------
  51. def min_cut_dict() -> dict:
  52. """
  53. dict with subject names as keys, and their respective duration as values
  54. :return: dict object
  55. """
  56. excel_file = pd.read_excel(PATH_DURATION_CSV)
  57. return dict(zip(excel_file[SBJ_COL_NAME], excel_file[DUR_COL_NAME]))
  58. def synch_drop_logs(subj_1, subj_2):
  59. """
  60. synchronize drop logs between the two subjects, modified in place
  61. :param subj_1: mne raw instance
  62. :param subj_2: mne raw instance
  63. :return:
  64. """
  65. log_1 = subj_1.drop_log
  66. log_2 = subj_2.drop_log
  67. clean_1 = [(a, b) for a, b in zip(log_1, log_2) if not a]
  68. ind_drop_1 = [i for ((a, b), i) in zip(clean_1, list(range(len(clean_1))))
  69. if not a and b]
  70. clean_2 = [(a, b) for a, b in zip(log_2, log_1) if not a]
  71. ind_drop_2 = [i for ((a, b), i) in zip(clean_2, list(range(len(clean_2))))
  72. if not a and b]
  73. subj_1.drop(ind_drop_1)
  74. subj_2.drop(ind_drop_2)
  75. def apply_offset(subj, start, end, duration=None):
  76. """
  77. drop 'start' number of epochs from the beginning of the data and 'end' from
  78. the end
  79. :param subj: mne raw instacne
  80. :param start: # of epochs to crop from the start
  81. :param end: # of epochs to crop from the end
  82. :param duration:
  83. :return:
  84. """
  85. log = subj.drop_log
  86. ind_drop_start = list(range(len([x for x in log[:start] if not x])))
  87. clean = [x for x in log[:int(duration-end)] if not x]
  88. clean_total = [x for x in log if not x]
  89. ind_drop_end = list(range(len(clean), len(clean_total)))
  90. subj.drop(ind_drop_start+ind_drop_end)
  91. # split files in source folder into pairs (by experiment)
  92. files_ls = os.listdir(PATH_DIR_SRC)
  93. files_ls = [file for file in files_ls if file.endswith('.fif')]
  94. files_ls.sort()
  95. files_ls = np.array(files_ls).reshape(int(len(files_ls)/2), 2)
  96. dic_duration = min_cut_dict()
  97. # loop over every subject pair
  98. for (subj_1, subj_2) in files_ls:
  99. # load and pre-process data
  100. os.chdir(PATH_DIR_SRC)
  101. raw_1 = mne.read_epochs(subj_1, preload=True)
  102. raw_2 = mne.read_epochs(subj_2, preload=True)
  103. raw_1.pick_types(eeg=True,
  104. exclude=['FCz', 'Fp1', 'Fp2', 'F7', 'F8', 'O1', 'O2', 'Oz',
  105. 'Cz', 'Pz', 'Fz'])
  106. raw_2.pick_types(eeg=True,
  107. exclude=['Fp1', 'Fp2', 'F7', 'F8','O1', 'O2', 'Oz', 'Cz',
  108. 'Pz', 'Fz'])
  109. apply_offset(raw_1, OFFSET_START, OFFSET_END, dic_duration[subj_1[0:4]])
  110. synch_drop_logs(raw_1, raw_2)
  111. drop_comb = zip(raw_1.drop_log, raw_2.drop_log)
  112. # Store the number of final epochs for each family
  113. family_number = subj_1[0:6] # Extract family number
  114. final_epochs_count = len(raw_2) # Number of epochs after processing
  115. final_epochs_summary.append({'Family': family_number, 'Final Epochs': final_epochs_count})
  116. # preparations for spectral connectivity
  117. data_1 = raw_1.get_data()
  118. data_2 = raw_2.get_data()
  119. data_combined = np.concatenate((data_1, data_2), axis=1)
  120. info = mne.create_info(
  121. ch_names=raw_1.info['ch_names']+raw_1.info['ch_names'],
  122. ch_types=np.repeat('eeg', 12), sfreq=raw_1.info['sfreq'])
  123. events = np.array([np.array([i, 0, i])
  124. for i in range(data_combined.shape[0])])
  125. events_id = dict(zip([str(x[0]) for x in events], [x[0] for x in events]))
  126. raw_combined = mne.EpochsArray(data_combined, info, events, -1,
  127. events_id)
  128. raw_combined.info['chs'] = raw_1.info['chs']+raw_2.info['chs']
  129. freq_bands = {'theta': (4, 7),
  130. 'alpha':(8,12)
  131. }
  132. fmin = np.array([f for f, _ in freq_bands.values()])
  133. fmax = np.array([f for _, f in freq_bands.values()])
  134. # spectral connectivity
  135. sc_data = sc(raw_combined, method='wpli', fmin=fmin, fmax=fmax,
  136. mode='multitaper', faverage=True, n_jobs=1, verbose=False)
  137. connB, freqsB, timesB, n_epochsB, n_tapersB = sc_data
  138. # export as .csv file
  139. os.chdir(PATH_DIR_DEST)
  140. file_name = subj_1[0:6]+TAG+'.csv'
  141. chnl_1 = np.array(list(range(12)) * 12)
  142. chnl_2 = chnl_1.copy()
  143. chnl_1.sort()
  144. pd.DataFrame(
  145. dict(channel_1=chnl_1, channel_2=chnl_2,
  146. **{key: np.reshape(connB[:, :, idx], 12 ** 2)
  147. for idx, key in enumerate(freq_bands.keys())})
  148. ).to_csv(file_name)
  149. # EXPORT FINAL EPOCHS TABLE
  150. # -------------------------------------------------------------------------
  151. final_epochs_df = pd.DataFrame(final_epochs_summary)
  152. final_epochs_df.to_csv(os.path.join(PATH_DIR_DEST, 'Epochs_Summary.csv'), index=False)
  153. print("Final epochs summary saved successfully!")

Interbrain connectivity- Clean.py, under CC-BY-4.0 · at the source

Overview

  1. Center for Developmental Social Neuroscience, Reichman University, Herzliya, Israel
  2. Institute for Learning & Brain Sciences, University of Washington, Seattle, WA, United States
Journal: Science advances, volume 12, issue 29, article eaed6110
Dates: received 5 November 2025; accepted 10 June 2026; published online 15 July 2026; in print July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1126/sciadv.aed6110 · PMID 42455951 · PMCID PMC13371932 · OpenAlex W7168365020
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), human (organism), developmental (subfield)
Methods: Spectral & time-frequency, Statistics, Preprocessing, Connectivity
MeSH: Brain*, Fathers*, Odorants*, Smell*, Electroencephalography, Female, Humans, Infant, Male (* major topic)
Topic: Olfactory and Sensory Function Studies (Sensory Systems, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 77 references in the paper

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-electroencephalography recordings, we measured infant-father and infant-stranger interbrain synchrony during naturalistic interactions and assessed the effects of paternal BO. Infants show greater interbrain synchrony with father compared to a stranger male. Paternal BO increase infant-stranger interbrain synchrony and enhance the father-typical positive arousal, providing evidence that infants process their father’s odor and can invoke his presence in his absence. Fathers contribute to brain maturation by enhancing cross-hemisphere connectivity in alpha rhythm that sustains attention regulation during stimulating social interactions. Paternal olfactory cues can invoke infants’ associative learning and may push the development of more complex neural and behavioral competencies.

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

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Languages: Python (1)
Size: 2 files, 1 script
Software Heritage: not checked
Found in: “Data, code, and materials availability:”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: MNE-Python (1 file), NumPy (1 file), pandas (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
1 file

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/or the Supplementary Materials. This study did not generate new materials. Data supporting the findings of this study and the code for the inter-brain connectivity analysis are available on are deposited in https://doi.org/10.5281/zenodo.18358991.

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://doi.org/10.1126/sciadv.aed6110

BibTeX

@article{endeveltshapira2026scent,
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/sciadv.aed6110},
url = {https://doi.org/10.1126/sciadv.aed6110},
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/07/15
VL - 12
IS - 29
SP - eaed6110
SN - 2375-2548
PB - American Association for the Advancement of Science
DO - 10.1126/sciadv.aed6110
UR - https://doi.org/10.1126/sciadv.aed6110
LA - en
ER -

CSL-JSON

{
"id": "10.1126/sciadv.aed6110",
"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": "Sci Adv",
"volume": "12",
"issue": "29",
"page": "eaed6110",
"DOI": "10.1126/sciadv.aed6110",
"PMID": "42455951",
"PMCID": "PMC13371932",
"ISSN": "2375-2548",
"publisher": "American Association for the Advancement of Science",
"URL": "https://doi.org/10.1126/sciadv.aed6110",
"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 psychology
In 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 sciences
In 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 disease
In 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 sciences
In 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 communications
In common: EEG, 4 references
[7] doi:10.1371/journal.pone.0351872 [code]
Decoding visual object recognition from EEG signals.
Journal: PloS one
In 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 disorders
In 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 neuroscience
In 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.

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.