Traveling waves in the human visual cortex: An MEG-EEG model-based approach
The 6 matches
- [1] § Materials and methods › Comparison between predicted and measured data ↔ toolbox/comparison.py, lines 87–144 · score 0.78 · Fast Fourier transform, phase shift, correlation coefficient, model predictions, FFT, global
- [2] § Results › Differences of model performance across conditions ↔ 1_code_figures.zip/plot_fig5.rmd, lines 125–187 · score 0.56 · post hoc, linear mixed model, interactions, crossed, matched, GRAD
- [3] § Materials and methods › Stimuli for the MEG-EEG sessions ↔ toolbox/entry.py, lines 8–32 · score 0.55 · temporal frequency, traveling wave, offset, cortex, mm, space
- [4] § Results › The model is specific to conditions and wave parameters ↔ 1_code_figures.zip/plot_fig5.rmd, lines 125–187 · score 0.55 · Post hoc, linear mixed model, interaction, cross, match, GRAD
- [5] § Materials and methods › Stimuli for the MEG-EEG sessions ↔ toolbox/utils.py, lines 23–40 · score 0.54 · initial phase, temporal frequency, offset, amplitude, traveling, wave
- [6] § Materials and methods › Stimuli for the MEG-EEG sessions ↔ toolbox/simulation.py, lines 48–56 · score 0.53 · magnification inverse, E2, M0, eccentricity
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
R Markdown · 188 lines · 8.1 KB · CC-BY-4.0 · 2 matches
- ---
- title: "plot_fig5"
- author: "LGrabot"
- date: "16/10/2024"
- output:
- pdf_document: default
- html_document: default
- ---
- ```{r setup, include=FALSE}
- knitr::opts_chunk$set(echo = TRUE)
- library(lme4)
- library(ggplot2)
- library(reshape2)
- library(nlme)
- # function sem
- sem <- function(x) sdt=sd(x)/sqrt(length(x))
- ```
- ## Test for frequency specificity (Figure 5A)
- Read correlation coefficient data (R2)
- subject: 19 subjects
- comparison: matched/crossed
- condition of the measured data: all (trav_out/stand/trav_in) concatenated
- channel: mag/grad/eeg
- temporal frequency: 3,4,5,6,7
- spatial frequency: 0.01, 0.05,0.1
- ```{r}
- # Read data
- figpath <- 'results\\figures\\' # to save figures
- datapath <- 'data\\' # to load the data
- d = read.csv(paste(datapath, 'Pipeline6_frequencySpecificity_V1modelComp_R2.csv', sep=""))
- # Subjects list
- subjects = c('EWTO6I','QNP39U','OF4IP5','XZJ7KI','03TPZ5', 'UEGW36', 'S1VW75', 'QFLDFC','JRRWDT','Q95PQG','90WCLR','TX0JPL','U2XPZV','575ZC9', 'D1AQHG','8KYLY7','O3YE19','DOYJLH','NOT7EZ')
- # Prepare data frame
- d$subject <- factor(d$subject)
- d$comparison <- factor(d$comparison)
- d$channel <- factor(d$channel)
- d$tempFreq <- factor(d$tempFreq)
- d$spatFreq <- factor(d$spatFreq)
- levels(d$comparison)[levels(d$comparison)=="c"] <- "crossed"
- levels(d$comparison)[levels(d$comparison)=="m"] <- "matched"
- levels(d$channel)[levels(d$channel)=="m"] <- "mag"
- levels(d$channel)[levels(d$channel)=="e"] <- "eeg"
- levels(d$channel)[levels(d$channel)=="g"] <- "grad"
- ```
- ```{r}
- a = aov(R2 ~ comparison*channel + comparison*tempFreq + comparison*spatFreq + Error(subject/(comparison*channel*tempFreq*spatFreq)),data=d)
- summary(a)
- plot_perFreq <- function (d,chan)
- {
- d_diff = subset(d, comparison == 'matched')
- d_diff$R2 = d$R2[d$comparison == 'matched'] - d$R2[d$comparison == 'crossed']
- d_diff = subset(d_diff, channel == chan) # change here the channel to get plot for mag, grad or eeg.
- m = aggregate(R2 ~ tempFreq + spatFreq + channel, d_diff, FUN = mean)
- std = aggregate(R2 ~ tempFreq + spatFreq + channel, d_diff, FUN = sem)
- m$std = std$R2
- # plot figure 5A
- theme <-theme(panel.background = element_rect(fill='white'), axis.line.y = element_line(colour = 'black'), axis.line.x = element_line(colour = 'black'),text = element_text(size=15, color='black'), axis.text.x=element_text(colour="black"), axis.text.y=element_text(colour="black"))
- ysc <- scale_y_continuous(name = 'R2 (match-cross)',breaks=c(0,0.1,0.2), labels= as.character(c(0,0.1,0.2)), limits = c(-0.05, 0.25))
- f= ggplot(m, aes(factor(tempFreq), R2, fill = spatFreq)) + geom_bar(stat="identity", position = "dodge", colour='black') + geom_errorbar(aes(ymin=R2 - std, ymax=R2 + std), width=.2,position=position_dodge(.9)) + theme + ggtitle("R2") + ysc
- return(f)
- }
- # Plot for each sensor
- plot_perFreq(d,'mag')
- plot_perFreq(d,'grad')
- plot_perFreq(d,'eeg')
- ```
- ## R2 for each condition (Figure 5B)
- Read correlation coefficient data (R2) calculated in test_reref_cplxCorr.py
- R2 (calculated on complex values for session 2)
- subject: 19 subjects
- comparison: matched/crossed
- condition of the measured data: trav_out/stand/trav_in
- condition for crossed comparison: trav_out/stand/trav_in
- channel: mag/grad/eeg
- ```{r}
- # Read and prepare data frame
- figpath <- 'results\\figures\\' # to save figures
- datapath <- 'data\\' # to load the data
- d = read.csv(paste(datapath, 'Pipeline6_eachCondSepara_V1modelComp_R2.csv', sep=""))
- d$subject <- factor(d$subject)
- d$dataset <- factor(d$dataset)
- d$cross_cond <- factor(d$cross_cond)
- d$channel <- factor(d$channel)
- levels(d$dataset)[levels(d$dataset)=="i"] <- "travIN"
- levels(d$dataset)[levels(d$dataset)=="o"] <- "travOUT"
- levels(d$dataset)[levels(d$dataset)=="s"] <- "stand"
- levels(d$cross_cond)[levels(d$cross_cond)=="i"] <- "travIN"
- levels(d$cross_cond)[levels(d$cross_cond)=="o"] <- "travOUT"
- levels(d$cross_cond)[levels(d$cross_cond)=="s"] <- "stand"
- levels(d$channel)[levels(d$channel)=="m"] <- "mag"
- levels(d$channel)[levels(d$channel)=="e"] <- "eeg"
- levels(d$channel)[levels(d$channel)=="g"] <- "grad"
- # create dataset with matched and crossed
- d2 = d
- d2$comparison <- ifelse(d2$dataset == d2$cross_cond, "matched", "crossed")
- d2$comparison <- factor(d2$comparison)
- ```
- Linear mixed model. An effect of comparisons is expected, and we want to test
- the interactions between comparisons, dataset and cross_cond
- ```{r}
- a = aov(R2 ~ comparison*dataset*channel + Error(subject/(comparison*dataset*channel)),data=d2)
- summary(a)
- # Post hoc t-test on dataset
- dbis = aggregate(R2 ~ dataset + subject, d, FUN=mean)
- t.test(d2$R2[d2$dataset == 'travIN'], d2$R2[d2$dataset == 'travOUT'], paired=T)
- t.test(d2$R2[d2$dataset == 'travIN'], d2$R2[d2$dataset == 'stand'], paired=T)
- t.test(d2$R2[d2$dataset == 'stand'], d2$R2[d2$dataset == 'travOUT'], paired=T)
- # Post hoc t-test on comparison*dataset
- dbis = aggregate(R2 ~ comparison + dataset + subject + channel, d2, FUN=mean)
- t.test(dbis$R2[dbis$comparison == 'matched' & dbis$dataset == 'travIN'], dbis$R2[dbis$comparison == 'crossed' & dbis$dataset == 'travIN'], paired=T)
- t.test(dbis$R2[dbis$comparison == 'matched' & dbis$dataset == 'travOUT'], dbis$R2[dbis$comparison == 'crossed' & dbis$dataset == 'travOUT'], paired=T)
- t.test(dbis$R2[dbis$comparison == 'matched' & dbis$dataset == 'stand'], dbis$R2[dbis$comparison == 'crossed' & dbis$dataset == 'stand'], paired=T)
- # Post hoc t-test on comparison*dataset*channel
- chan = 'eeg' # change here to plot "eeg", "mag" or "grad"
- t.test(dbis$R2[dbis$comparison == 'matched' & dbis$dataset == 'travIN'& dbis$channel == chan], dbis$R2[dbis$comparison == 'crossed' & dbis$dataset == 'travIN'& dbis$channel == chan], paired=T)
- t.test(dbis$R2[dbis$comparison == 'matched' & dbis$dataset == 'travOUT'& dbis$channel == chan], dbis$R2[dbis$comparison == 'crossed' & dbis$dataset == 'travOUT'& dbis$channel == chan], paired=T)
- t.test(dbis$R2[dbis$comparison == 'matched' & dbis$dataset == 'stand'& dbis$channel == chan], dbis$R2[dbis$comparison == 'crossed' & dbis$dataset == 'stand'& dbis$channel == chan], paired=T)
- # create dataset with cond1/cond2 for cross conditions
- d_matched = subset(d2, comparison == 'matched')
- d_diff = subset(d2, comparison == 'crossed')
- d_diff$crossCd = factor(d_diff,c('cond1', 'cond2'))
- d_diff$crossCd[d_diff$dataset == 'travIN' & d_diff$cross_cond == 'travOUT'] = 'cond1'
- d_diff$crossCd[d_diff$dataset == 'travIN' & d_diff$cross_cond == 'stand'] = 'cond2'
- d_diff$crossCd[d_diff$dataset == 'travOUT' & d_diff$cross_cond == 'travIN'] = 'cond1'
- d_diff$crossCd[d_diff$dataset == 'travOUT' & d_diff$cross_cond == 'stand'] = 'cond2'
- d_diff$crossCd[d_diff$dataset == 'stand' & d_diff$cross_cond == 'travOUT'] = 'cond1'
- d_diff$crossCd[d_diff$dataset == 'stand' & d_diff$cross_cond == 'travIN'] = 'cond2'
- d_diff = subset(d_diff, select=c('R2', 'subject', 'dataset', 'crossCd','channel'))
- d_diff$R2[d_diff$crossCd == 'cond1'] = d2$R2[d2$comparison == 'matched'] - d_diff$R2[d_diff$crossCd == 'cond1']
- d_diff$R2[d_diff$crossCd == 'cond2'] = d2$R2[d2$comparison == 'matched'] - d_diff$R2[d_diff$crossCd == 'cond2']
- plot_perCond <- function (d_diff,chan)
- {
- dd = subset(d_diff, channel == chan)
- m = aggregate(R2 ~ dataset + crossCd , dd, FUN = mean)
- std = aggregate(R2 ~ dataset + crossCd , dd, FUN = sem)
- m$std = std$R2
- # plot
- theme <-theme(panel.background = element_rect(fill='white'), axis.line.y = element_line(colour = 'black'), axis.line.x = element_line(colour = 'black'),text = element_text(size=15, color='black'), axis.text.x=element_text(colour="black"), axis.text.y=element_text(colour="black"))
- ysc <- scale_y_continuous(name = 'R2 (match-cross)',breaks=c(-0.1, 0,0.1,0.2), labels= as.character(c(-0.1, 0,0.1,0.2)), limits = c(-0.11, 0.21))
- f=ggplot(m, aes(factor(dataset), R2, fill = crossCd)) + geom_bar(stat="identity", position = "dodge", colour='black') + geom_errorbar(aes(ymin=R2 - std, ymax=R2 + std), width=.2,position=position_dodge(.9)) + theme + ggtitle("R2") + ysc + ggtitle(chan)
- return(f)
- }
- # Plot for each channel
- plot_perCond(d_diff,'mag')
- plot_perCond(d_diff,'grad')
- plot_perCond(d_diff,'eeg')
- ```
plot_fig5.rmd, under CC-BY-4.0 · at the source
Overview
- Université Paris Cité, CNRS, Integrative Neuroscience and Cognition Center, Paris, France
- Laboratoire des Systèmes Perceptifs, Département d’études Cognitives, École normale supérieure, PSL University, CNRS, Paris, France
- Department of Psychology, New York University, New York, New York, United States of America
- Center for Neural Science, New York University, New York, New York, United States of America
- Institut Universitaire de France (IUF), Paris, France
Abstract
The abstract is not reproduced here: the paper's license (none stated) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repositories
Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.
Zenodo 13968952
Availability: 1 check, the latest on 26 September 2026: the link answers (HTTP 200)
- 26 September 2026: the link answers (HTTP 200)
12 files
- 1_code_figures.zip/
plot_fig4.py — Python, 279 lines - 1_code_figures.zip/
plot_fig5.rmd — R, 188 lines, 2 matches - 1_code_figures.zip/
results/ — JavaScript, 19 linesplot_fig5_fichiers/ MathJax.js - 2_code_toolbox.zip/
wavesmodel/ — Python, 70 linesminimal_example.py - 2_code_toolbox.zip/
wavesmodel/ — Python, 3 linestoolbox/ __init__.py - 2_code_toolbox.zip/
wavesmodel/ — Python, 429 linestoolbox/ comparison.py - 2_code_toolbox.zip/
wavesmodel/ — Python, 191 linestoolbox/ entry.py - 2_code_toolbox.zip/
wavesmodel/ — Python, 55 linestoolbox/ plot_projection.py - 2_code_toolbox.zip/
wavesmodel/ — Python, 17 linestoolbox/ projection.py - 2_code_toolbox.zip/
wavesmodel/ — Python, 354 linestoolbox/ simulation.py - 2_code_toolbox.zip/
wavesmodel/ — Python, 147 linestoolbox/ statistics.py - 2_code_toolbox.zip/
wavesmodel/ — Python, 40 linestoolbox/ utils.py
LaetitiaG/wavesmodel
6ed191cb443b0801364178efc1dabc263ff2f3fc, 19 May 2025Availability: 1 check, the latest on 26 September 2026: the link answers
- 26 September 2026: the link answers
10 files, not copied: shown from their source
OSCR keeps no copy of these files: this repository has no license that allows it. The reader above shows each one from its source, fetched by your browser at commit 6ed191c, when its fingerprint is the one OSCR verified. How this works.
- minimal_example.py — Python, 70 lines, shown from its source
- toolbox/
__init__.py — Python, 3 lines, shown from its source - toolbox/
comparison.py — Python, 429 lines, 1 match, shown from its source - toolbox/
entry.py — Python, 191 lines, 1 match, shown from its source - toolbox/
plot_projection.py — Python, 55 lines, shown from its source - toolbox/
projection.py — Python, 17 lines, shown from its source - toolbox/
simulation.py — Python, 354 lines, 1 match, shown from its source - toolbox/
statistics.py — Python, 147 lines, shown from its source - toolbox/
utils.py — Python, 40 lines, 1 match, shown from its source - readme.rst — Text, 28 lines, shown from its source
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;
- 21 scripts, each with its path and the digest of its content;
- 6 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.
Code and data availability statement
The paper has a code and data availability statement. Its license (none stated) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: LaetitiaG/
wavesmodel , Zenodo 13968952
Read it in the paper: doi.org/10.1371/journal.pcbi.1013007.
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, 5 authors, 11 MeSH terms, 1 funder, 62 references, 2 RRIDs.
Cite
This paper
Grabot, L., Merholz, G., Winawer, J., Heeger, D. J., & Dugué, L. (2025). Traveling waves in the human visual cortex: An MEG-EEG model-based approach. PLOS Computational Biology, 21(4), e1013007. https://
BibTeX
@article{grabot2025trave
author = {Grabot, Laetitia and Merholz, Garance and Winawer, Jonathan and Heeger, David J. and Dugué, Laura},
title = {{Traveling waves in the human visual cortex: An MEG-EEG model-based approach}},
journal = {PLOS Computational Biology},
year = {2025},
volume = {21},
number = {4},
pages = {e1013007},
publisher = {PLOS},
issn = {1553-734X},
doi = {10.1371/
url = {https://
pmcid = {PMC12037073}
}
RIS
TY - JOUR
AU - Grabot, Laetitia
AU - Merholz, Garance
AU - Winawer, Jonathan
AU - Heeger, David J.
AU - Dugué, Laura
TI - Traveling waves in the human visual cortex: An MEG-EEG model-based approach
T2 - PLOS Computational Biology
J2 - PLoS Comput Biol
PY - 2025
DA - 2025
VL - 21
IS - 4
SP - e1013007
SN - 1553-734X
PB - PLOS
DO - 10.1371/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1371/
"type": "article-journal",
"title": "Traveling waves in the human visual cortex: An MEG-EEG model-based approach",
"container-title": "PLOS Computational Biology",
"author": [
{
"family": "Grabot",
"given": "Laetitia"
},
{
"family": "Merholz",
"given": "Garance"
},
{
"family": "Winawer",
"given": "Jonathan"
},
{
"family": "Heeger",
"given": "David J."
},
{
"family": "Dugué",
"given": "Laura"
}
],
"container-title-short":
"volume": "21",
"issue": "4",
"page": "e1013007",
"DOI": "10.1371/
"PMCID": "PMC12037073",
"ISSN": "1553-734X",
"publisher": "PLOS",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2025
]
]
}
}
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.7554/elife.100674 [code]
- The dominance of large-scale phase dynamics in human cortex, from delta to gamma.Journal: eLifeIn common: SciPy, Matplotlib, NumPy, EEG, 15 references, author Laura Dugué
- [2] doi:10.7554/elife.106753 [code]
- Traveling waves across scales: Different mechanisms but same canonical computation?Journal: —In common: 14 references, author Laura Dugué
- [3] doi:10.1073/pnas.2527296123
- Traveling-wave transcranial alternating current stimulation (twtACS) causally links neural timing to cognitive function.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: 10 references
- [4] doi:10.1038/s41467-026-71386-z [code]
- Planar, spiral, and concentric traveling waves distinguish behavioral states in human memory.Journal: Nature communicationsIn common: SciPy, Matplotlib, NumPy, 7 references
- [5] doi:10.7554/elife.108408 [code]
- Frequency and laminar profile of feature-specific visual activity revealed by interleaved EEG-fMRI.Journal: eLifeIn common: NiBabel, SciPy, Matplotlib, 1 other tool, systems, fMRI, EEG, 5 references
- [6] doi:10.1371/journal.pcbi.1014434 [code]
- Non-invasive mapping of the temporal processing hierarchy in the human visual cortex.Journal: PLoS computational biologyIn common: Matplotlib, NumPy, MEG, systems, fMRI, 5 references
- [7] doi:10.1162/imag.a.105 [code]
- Right posterior theta reflects human parahippocampal phase resetting by salient cues during goal-directed navigationJournal: —In common: MNE-Python, lme4, reshape2, 5 other tools, MEG, fMRI, EEG
- [8] doi:10.1162/imag.a.1245 [code]
- Towards precision EEG connectomics: Evaluating the benefits of dense sampling.Journal: Imaging neuroscience (Cambridge, Mass.)In common: MNE-Python, lme4, reshape2, 5 other tools, EEG, 1 reference
- [9] doi:10.3389/fncom.2026.1844662
- Quantifying cortex-wide traveling brain waves of complex patterns with a graph-based algorithm.Journal: Frontiers in computational neuroscienceIn common: 7 references
- [10] doi:10.1016/j.nicl.2026.104012 [code]
- Structural-functional multilayer brain network properties and outcome of combined repetitive transcranial magnetic stimulation and psychotherapy for obsessive-compulsive disorder.Journal: NeuroImage. ClinicalIn common: nlme, lme4, reshape2, 5 other tools, fMRI
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, 21 scripts, and 6 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:6af9a1e923b7a3e2…
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
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
