OSCR

REM sleep favors the restructuring of problem-related semantic associations.

Code ↔ Paper

1 match 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.

One block of code here has 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 1 match · it ties a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
  1. [1] § Results › SemNet restructuring is associated with EEG markers indexing a richer cognitive state during REM sleep ↔ Additionnal data/With sigma frequency bands/Script_EEG2.R, the whole file · a weak match · score 0.51 · frequency band, beta, N2, N3, slope, theta · block oscr:b:PAY7GR1B2BDZ4-Q · 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

R · 90 lines · 3.7 KB · no license · 1 match

  1. #########################################################
  2. ## Analyses at the EEG level (with other frequency bands)
  3. ## NB : complexity measure remains the same as the one computed in Script_EEG
  4. ############
  5. ## Load data
  6. repertoire_travail <- "/Users/Theophile/Documents/A_transferer_DDE/CREAsleep/Final/Final/PNAS/Final/Final/Revision/Final/Script"
  7. # Weight_EEG2_NREM.csv Weight_EEG2_REM.csv Weight_EEG2_N1.csv Weight_EEG2_N2.csv Weight_EEG2_N3.csv
  8. # Efficiency_EEG2_NREM.csv Efficiency_EEG2_REM.csv Efficiency_EEG2_N1.csv Efficiency_EEG2_N2.csv Efficiency_EEG2_N3.csv
  9. # CC_EEG2_NREM.csv CC_EEG2_REM.csv CC_EEG2_N1.csv CC_EEG2_N2.csv CC_EEG2_N3.csv
  10. # EV_EEG2_NREM.csv EV_EEG2_REM.csv EV_EEG2_N1.csv EV_EEG2_N2.csv EV_EEG2_N3.csv
  11. dir <- "Weight_EEG2_REM.csv"
  12. Table <- read.table(paste(repertoire_travail, dir, sep = '/'),
  13. header = T,sep = ';', dec = '.', na.strings = c('', 'NA', '999999', 'NaN'), stringsAsFactors = T)
  14. Table$Subject <- as.factor(Table$Subject)
  15. Table$Group <- as.factor(Table$Group)
  16. ############
  17. ## Statistic
  18. # Rel_D Rel_T Rel_A Rel_B, Comp_T, Slope
  19. m1 <- aov(DeltaMetric_Z ~ Rel_T * SD_Z + Error(Subject),
  20. Table, na.action=na.omit)
  21. summary(m1)
  22. ## Plot figure
  23. # Heatmap
  24. Data <- read.table('/Users/Theophile/Documents/A_transferer_DDE/CREAsleep/Final/Final/PNAS/Final/Final/Revision/Final/Script/Heatmaps2.csv',
  25. header = T,sep = ';', dec = '.', na.strings = c('', 'NA', '999999', 'NaN'), stringsAsFactors = T)
  26. # REM vs NREM
  27. Data <- Data[-which(Data$Stage == 'N1'),]
  28. Data <- Data[-which(Data$Stage == 'N2'),]
  29. Data <- Data[-which(Data$Stage == 'N3'),]
  30. Data <- Data[which(Data$Metric == 'CC'),] # Weight, Efficiency, CC, EV
  31. Data$EEG <- fct_relevel(Data$EEG, c("Complexity", "Beta", "Alpha", "Theta", "Delta", "Slope"))
  32. Data$Stage <- fct_relevel(Data$Stage, c("NREM", "REM"))
  33. ggplot(Data, aes(x = Stage, y = EEG, fill = Value)) +
  34. geom_tile() +
  35. scale_fill_gradient2(low = "darkred", high = "darkgreen", mid = "white",
  36. midpoint = 0, limit = c(min(Data$Value),max(Data$Value)), space = "Lab",
  37. name="%") +
  38. theme(axis.text.x = element_text(angle = 45, vjust = 1,
  39. size = 12, hjust = 1)) +
  40. theme_bw() +
  41. theme(axis.line = element_line(colour = "black"),
  42. panel.grid.major = element_blank(),
  43. panel.grid.minor = element_blank(),
  44. panel.border = element_blank(),
  45. panel.background = element_blank()) +
  46. xlab("") + ylab("") +
  47. ggtitle("") +
  48. theme(axis.text.x = element_text(color = "black", size = 15)) +
  49. theme(axis.text.y = element_text(color = "black", size = 15))
  50. # N1 vs N2 vs N3
  51. Data <- Data[-which(Data$Stage == 'REM'),]
  52. Data <- Data[-which(Data$Stage == 'NREM'),]
  53. Data <- Data[which(Data$Metric == 'CC'),] # Weight, Efficiency, CC, EV
  54. Data$EEG <- fct_relevel(Data$EEG, c("Complexity", "Beta", "Alpha", "Theta", "Delta", "Slope"))
  55. Data$Stage <- fct_relevel(Data$Stage, c("N1", "N2", "N3"))
  56. ggplot(Data, aes(x = Stage, y = EEG, fill = Value)) +
  57. geom_tile() +
  58. scale_fill_gradient2(low = "darkred", high = "darkgreen", mid = "white",
  59. midpoint = 0, limit = c(min(Data$Value),max(Data$Value)), space = "Lab",
  60. name="%") +
  61. theme(axis.text.x = element_text(angle = 45, vjust = 1,
  62. size = 12, hjust = 1)) +
  63. theme_bw() +
  64. theme(axis.line = element_line(colour = "black"),
  65. panel.grid.major = element_blank(),
  66. panel.grid.minor = element_blank(),
  67. panel.border = element_blank(),
  68. panel.background = element_blank()) +
  69. xlab("") + ylab("") +
  70. ggtitle("") +
  71. theme(axis.text.x = element_text(color = "black", size = 15)) +
  72. theme(axis.text.y = element_text(color = "black", size = 15))

Script_EEG2.R, no license · at the source

Overview

Authors: Théophile Bieth1,2, Nicolas Decat3, Yoed N Kenett4, Marie Scuccimarra1, Marcela Ovando-Tellez1, Alizée Lopez-Persem1, Célia Lacaux1,3, Saoussen Ben Younes1, Arthur Le Coz1,3, Sarah Moreno-Rodriguez1, Isabelle Arnulf1,3, Emmanuelle Volle1, Delphine Oudiette1,3
  1. Sorbonne University, Institut du Cerveau—Paris Brain Institute -ICM-, Inserm, CNRS, AP-HP Hôpital de la Pitié-Salpêtrière, Paris, France
  2. Neurology department, Pitié-Salpêtrière Hospital, AP-HP, Paris, France
  3. AP-HP, Pitié-Salpêtrière Hospital, Service des Pathologies du Sommeil, National Reference Center for Narcolepsy, Paris, France
  4. Faculty of Data and Decision Sciences, Technion—Israel Institute of Technology, Haifa, Israel
Journal: Communications biology, volume 9, issue 1, article 1171
Dates: received 7 August 2025; accepted 15 May 2026; published online 3 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s42003-026-10354-1 · PMID 42236577 · PMCID PMC13542217 · OpenAlex W4412626006
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: EEG (modality), human (organism), cognitive (subfield)
Methods: Spectral & time-frequency, Preprocessing, Statistics, Graphs, Complexity, Physiology & signal measures
Keywords: Problem solving, REM sleep
MeSH: Memory*, Problem Solving*, Semantics*, Sleep, REM*, Cognition, Electroencephalography, Female, Humans, Male, Wakefulness, Young Adult (* major topic)
Topic: Sleep and Wakefulness Research (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Agence Nationale de la Recherche (French National Research Agency) (ANR-19-CE37-001-01)
Citations: cited by 1 paper (Europe PMC); 122 references in the paper

Abstract

REM sleep is considered a ‘hyperassociative’ state enhancing the connections between weakly related concepts, thereby facilitating memory restructuring — a critical process proposed in creative problem-solving. We empirically explore this hypothesis by testing participants on a riddle before and after a 90-minute incubation period including rapid eye movement (REM) sleep, only non-REM sleep, or wakefulness. We quantified memory restructuring by computing differences in problem-related semantic memory network (SemNets) properties between pre- and post-incubation. For each sleep stage, we extracted fine-grained electroencephalogram (EEG) measures linked to cognitive richness. REM sleep, compared to wake, reshaped the dominant problem representation by combining semantically remote concepts in memory and reducing strong but solution-irrelevant associations of ideas. Such REM sleep-related restructuring was associated with EEG measures indexing a richer cognitive state. While REM drove memory restructuring, it alone did not boost problem-solving success, suggesting that more extensive restructuring or additional processes are necessary for creative breakthroughs.

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 1 match between paragraphs and lines of code.

OSF 2apgj

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Languages: R (7)
Size: 75 files, 7 scripts
Software Heritage: not checked
Found in: “Data availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
7 files

Code availability

We used open software and toolboxes available online: semantic networks metrics were computed using the Brain Connectivity Toolbox (BCT, version 2019-03-03)95, EEG analysis were performed with the FOOOF and NICE toolbox, and statistical analyses were done using Rstudio (v 1.4.1717).

Reproduced under the paper's license (CC BY), from the paper cited above.

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;
  • 7 scripts, each with its path and the digest of its content;
  • 1 match 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

Data Availability Statement

The study reported in this article was not formally preregistered. Experimental material is available in the Supplementary Information associated with this article, and in the method of our previous article 23 and its public persistent repository (https://osf.io/pk9nc/?view_only=4c4432106624412391bb4f1016a79ac5)121. The data sets generated and/or analyzed during the current study, and the scripts written is available in a public persistent repository (https://osf.io/2apgj/?view_only=c4c15039b6b04a0aafb8e731e996f632)122. Data sharing will be anonymized and will not include participants’ personnal information.

We used open software and toolboxes available online: semantic networks metrics were computed using the Brain Connectivity Toolbox (BCT, version 2019-03-03)95, EEG analysis were performed with the FOOOF and NICE toolbox, and statistical analyses were done using Rstudio (v 1.4.1717).

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, 13 authors, 2 keywords, 11 MeSH terms, 1 funder, 102 references.

Cite

This paper

Bieth, T., Decat, N., Kenett, Y. N., Scuccimarra, M., Ovando-Tellez, M., Lopez-Persem, A., Lacaux, C., Ben Younes, S., Le Coz, A., Moreno-Rodriguez, S., Arnulf, I., Volle, E., & Oudiette, D. (2026). REM sleep favors the restructuring of problem-related semantic associations. Communications biology, 9(1), 1171. https://doi.org/10.1038/s42003-026-10354-1

BibTeX

@article{bieth2026rem,
author = {Bieth, Théophile and Decat, Nicolas and Kenett, Yoed N and Scuccimarra, Marie and Ovando-Tellez, Marcela and Lopez-Persem, Alizée and Lacaux, Célia and Ben Younes, Saoussen and Le Coz, Arthur and Moreno-Rodriguez, Sarah and Arnulf, Isabelle and Volle, Emmanuelle and Oudiette, Delphine},
title = {{REM sleep favors the restructuring of problem-related semantic associations}},
journal = {Communications biology},
year = {2026},
month = jun,
volume = {9},
number = {1},
pages = {1171},
publisher = {Nature Publishing Group},
issn = {2399-3642},
doi = {10.1038/s42003-026-10354-1},
url = {https://doi.org/10.1038/s42003-026-10354-1},
pmid = {42236577},
pmcid = {PMC13542217}
}

RIS

TY - JOUR
AU - Bieth, Théophile
AU - Decat, Nicolas
AU - Kenett, Yoed N
AU - Scuccimarra, Marie
AU - Ovando-Tellez, Marcela
AU - Lopez-Persem, Alizée
AU - Lacaux, Célia
AU - Ben Younes, Saoussen
AU - Le Coz, Arthur
AU - Moreno-Rodriguez, Sarah
AU - Arnulf, Isabelle
AU - Volle, Emmanuelle
AU - Oudiette, Delphine
TI - REM sleep favors the restructuring of problem-related semantic associations
T2 - Communications biology
J2 - Commun Biol
PY - 2026
DA - 2026/06/03
VL - 9
IS - 1
SP - 1171
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/s42003-026-10354-1
UR - https://doi.org/10.1038/s42003-026-10354-1
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s42003-026-10354-1",
"type": "article-journal",
"title": "REM sleep favors the restructuring of problem-related semantic associations",
"container-title": "Communications biology",
"author": [
{
"family": "Bieth",
"given": "Théophile"
},
{
"family": "Decat",
"given": "Nicolas"
},
{
"family": "Kenett",
"given": "Yoed N"
},
{
"family": "Scuccimarra",
"given": "Marie"
},
{
"family": "Ovando-Tellez",
"given": "Marcela"
},
{
"family": "Lopez-Persem",
"given": "Alizée"
},
{
"family": "Lacaux",
"given": "Célia"
},
{
"family": "Ben Younes",
"given": "Saoussen"
},
{
"family": "Le Coz",
"given": "Arthur"
},
{
"family": "Moreno-Rodriguez",
"given": "Sarah"
},
{
"family": "Arnulf",
"given": "Isabelle"
},
{
"family": "Volle",
"given": "Emmanuelle"
},
{
"family": "Oudiette",
"given": "Delphine"
}
],
"container-title-short": "Commun Biol",
"volume": "9",
"issue": "1",
"page": "1171",
"DOI": "10.1038/s42003-026-10354-1",
"PMID": "42236577",
"PMCID": "PMC13542217",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s42003-026-10354-1",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
3
]
]
}
}

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.1162/imag.a.1018
Switching, fast and slow: Deciphering the dynamics of memory search, its brain connectivity patterns, and its role in creativity.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: cognitive, 9 references, 4 authors
[2] doi:10.1038/s42003-022-03547-x
An investigation of the cognitive and neural correlates of semantic memory search related to creative ability.
Journal: Communications biology
In common: cognitive, 10 references, 3 authors
[3] doi:10.1038/s42003-024-06493-y [code]
Creative connections: the neural correlates of semantic relatedness are associated with creativity.
Journal: Communications biology
In common: cognitive, 8 references, 3 authors
[4] doi:10.1126/sciadv.abl4294
Brain connectivity-based prediction of real-life creativity is mediated by semantic memory structure.
Journal: Science advances
In common: cognitive, 5 references, 3 authors
[5] doi:10.1038/s42003-024-07427-4 [code]
The human reward system encodes the subjective value of ideas during creative thinking.
Journal: Communications biology
In common: cognitive, 4 references, 3 authors
[6] doi:10.1093/brain/awag032 [code]
A rostral prefrontal mediolateral gradient predicts creativity in frontotemporal dementia.
Journal: Brain : a journal of neurology
In common: 7 references, 2 authors
[7] doi:10.1038/s42003-025-08513-x [code]
Cognitive and neural mechanisms of mental imagery supporting creative cognition.
Journal: Communications biology
In common: cognitive, 8 references, author Yoed N Kenett
[8] doi:10.1038/s42003-025-08812-3 [code]
Slow-wave sleep and REM sleep differentially contribute to memory representational transformation.
Journal: Communications biology
In common: EEG, cognitive, 11 references
[9] doi:10.1371/journal.pbio.3003185 [code]
N2 sleep promotes the occurrence of 'aha' moments in a perceptual insight task.
Journal: PLoS biology
In common: EEG, cognitive, 9 references
[10] doi:10.1038/s41593-023-01449-7 [code]
Behavioral and brain responses to verbal stimuli reveal transient periods of cognitive integration of the external world during sleep.
Journal: Nature neuroscience
In common: EEG, cognitive, 5 references, author Delphine Oudiette

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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.1038/s42003-026-10354-1.svg)](https://openscicode.org/badge/doi/10.1038/s42003-026-10354-1)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s42003-026-10354-1.svg
   :target: https://openscicode.org/badge/doi/10.1038/s42003-026-10354-1
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s42003-026-10354-1"><img src="https://openscicode.org/badge/doi/10.1038/s42003-026-10354-1.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.