On variability in local field potentials.
The 3 matches
- [1] § Materials and methods › Datasets › Simulated data ↔ Fig4.m, lines 29–44 · score 0.64 · trial duration, simulated subjects, stimulus period, noise
- [2] § Results › Overview ↔ Fig1_4.m, lines 41–80 · score 0.56 · event related potential, sliding windows, stimulus onset, ERP, Figure 1, ITV
- [3] § Materials and methods › Analysis ↔ Fig1_4.m, lines 41–80 · score 0.50 · sliding window, trial variance, smoothed, ATV
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
MATLAB · 162 lines · 7.1 KB · MIT · 2 matches
- %% plot_fig1_4
- %
- % Plots example LFP trials, ERP, across-trial variability (ATV), and
- % intra-trial variability (ITV). Also examines how power and its
- % coefficient of variation (CV) change when stimulus amplitude is scaled.
- % Used to reproduce Figs. 1 and 4 of the associated publication.
- %
- % Requires:
- % - Fig1_4_data<band><filt>.mat containing: Sig, Sig1, Sig2, Sig3
- % - shadedErrorBar.m (Mathworks File Exchange)
- %
- % Author: [email hidden]
- % Date: 08.08.2026
- clc; clear all; close all;
- %% -- Configuration ----------------------------------------------------------
- filter_flag = 0; % 1 = filtered (Fig. 1) 0 = wideband (Figs. 1 & 4)
- % Smoothing windows (samples)
- lfp_smooth_win = 5; % smoothing for raw LFP traces
- pow_smooth_win = 5; % smoothing for power traces
- itv_window = 50; % sliding window for ITV computation
- % Loop over frequency bands if data is filtered
- if filter_flag == 0
- band_conditions = 1;
- else
- band_conditions = 1:2;
- end
- %% -- Main loop --------------------------------------------------------------
- for band = band_conditions
- load(['Fig1_4_data', num2str(band), num2str(filter_flag), '.mat'], ...
- 'Sig', 'Sig1', 'Sig2', 'Sig3'); % loads pre-processed LFP signals
- set(groot, 'defaultAxesTickDir', 'out');
- set(groot, 'defaultAxesTickDirMode', 'manual');
- %% -- Fig. 1: ATV sample plot ---------------------------------------------
- trial_plot_idx = 1:20; % subset of trials to display
- time_labels = {'-.8', '-.4', '0', '.4', '.8'};
- time_ticks = [1, 400, 800, 1200, 1600];
- stim_line = 800 - lfp_smooth_win; % stimulus onset (adjusted for smoothing)
- figure;
- % Raw trial traces
- subplot(2, 2, 1);
- plot(Sig(trial_plot_idx, :)', 'LineWidth', .1, 'Color', 'k');
- line([stim_line; stim_line], ylim, 'LineStyle', '--', 'Color', 'k');
- set(gca, 'XTick', time_ticks, 'XTickLabel', time_labels);
- xlabel('Time from stim-onset (s)'); ylabel('LFP amplitude');
- % Event-related potential (ERP = trial average)
- subplot(2, 2, 2);
- plot(nanmean(Sig)', 'LineWidth', .5, 'Color', 'k');
- line([stim_line; stim_line], ylim, 'LineStyle', '--', 'Color', 'k');
- set(gca, 'XTick', time_ticks, 'XTickLabel', time_labels);
- xlabel('Time from stim-onset (s)'); ylabel('ERP');
- % ATV (across-trial variance at each time point)
- subplot(2, 2, 3);
- plot(var(Sig)', 'LineWidth', .5, 'Color', 'k');
- line([stim_line; stim_line], ylim, 'LineStyle', '--', 'Color', 'k');
- set(gca, 'XTick', time_ticks, 'XTickLabel', time_labels);
- xlabel('Time from stim-onset (s)'); ylabel('ATV');
- % ITV (sliding-window within-trial variance)
- itv_timecourse = zeros(1, size(Sig2, 2) - itv_window);
- for t_idx = 1 : size(Sig2, 2) - itv_window
- itv_timecourse(t_idx) = nanmean(var(Sig2(:, t_idx : t_idx+itv_window), [], 2)');
- end
- subplot(2, 2, 4);
- plot(itv_timecourse, 'LineWidth', .5, 'Color', 'k');
- line([800; 800], ylim, 'LineStyle', '--', 'Color', 'k');
- line([800-itv_window; 800-itv_window], ylim, 'LineStyle', '--', 'Color', 'k');
- set(gca, 'XTick', time_ticks, 'XTickLabel', time_labels);
- xlabel('Time from stim-onset (s)'); ylabel('ITV');
- %% -- Fig. 4: Effect of amplitude scaling on power and CV -----------------
- if filter_flag == 0
- % Amplitude scale factors: 1×, 10×, 0.1× applied to stimulus period
- amplitude_scales = [1, 10, 0.1];
- subplot_counter = 1;
- power_label = 'Power';
- for scale_idx = 1:3
- figure(200 + 100*band);
- amp_scale = amplitude_scales(scale_idx);
- % Scale the stimulus period (samples 801:1600)
- sig_scaled = Sig1;
- sig_scaled(:, 801:1600) = Sig1(:, 801:1600) .* amp_scale;
- sig_smoothed = smoothdata(sig_scaled, 2, 'movmean', lfp_smooth_win);
- % Signal, variance, and CV
- subplot(3, 6, subplot_counter); subplot_counter = subplot_counter + 1;
- plot(sig_smoothed(trial_plot_idx, :)', 'LineWidth', .5, 'Color', 'k');
- title(['Stim. ×', num2str(amp_scale)]);
- sig_variance = var(sig_smoothed);
- sig_auc = trapz(abs(sig_smoothed));
- subplot(3, 6, subplot_counter); subplot_counter = subplot_counter + 1;
- plot(sig_variance, 'LineWidth', .5, 'Color', 'k');
- if scale_idx == 1, title('Var(Signal)'); end
- subplot(3, 6, subplot_counter); subplot_counter = subplot_counter + 1;
- plot(sig_variance ./ sig_auc, 'LineWidth', .5, 'Color', 'k');
- if scale_idx == 1, title('CV(Signal)'); end
- % Power matrix
- power_matrix = zeros(size(Sig1));
- for tr = 1:size(Sig1, 1)
- power_matrix(tr, :) = smoothdata(abs(Sig1(tr, :).^2), 2, 'movmean', pow_smooth_win);
- end
- subplot(3, 6, subplot_counter); subplot_counter = subplot_counter + 1;
- plot(nanmean(power_matrix), 'LineWidth', .5, 'Color', 'k');
- if scale_idx == 1, title(['Mean(', power_label, ')']); end
- power_std = std(power_matrix);
- subplot(3, 6, subplot_counter); subplot_counter = subplot_counter + 1;
- plot(power_std, 'LineWidth', .5, 'Color', 'k');
- if scale_idx == 1, title(['SD(', power_label, ')']); end
- coeff_var = nanstd(power_matrix) ./ nanmean(power_matrix);
- subplot(3, 6, subplot_counter); subplot_counter = subplot_counter + 1;
- plot(coeff_var, 'LineWidth', .5, 'Color', 'k');
- if scale_idx == 1, title(['CV(', power_label, ')']); end
- %% -- ITV vs ATV scatter under amplitude scaling -------------------
- sig_rescaled = Sig3 .* amp_scale;
- clear atv_channels itv_channels;
- for ch = 1:size(sig_rescaled, 1)
- y_ch = squeeze(sig_rescaled(ch, :, :));
- atv_channels(ch, :) = mean(mean((y_ch - mean(y_ch, 1)).^2, 2), 1);
- itv_channels(ch, :) = mean(mean((y_ch - mean(y_ch, 2)).^2, 2), 1);
- end
- figure(1100 + 100*band);
- subplot(2, 3, scale_idx); hold on;
- [corr_r, corr_p] = corr(itv_channels, atv_channels, 'Type', 'Pearson');
- [fit_model, ~] = fit(itv_channels, atv_channels, 'poly1');
- fit_handle = plot(fit_model, itv_channels, atv_channels);
- set(fit_handle, 'LineWidth', 2, 'Color', [0 0 0]);
- scatter(itv_channels, atv_channels, 40, 'o', ...
- 'MarkerFaceColor', [.1 .1 .1], 'MarkerEdgeColor', [0 0 0], 'LineWidth', .2);
- corr_slope = polyfit(itv_channels, atv_channels, 1); corr_slope = corr_slope(1);
- legend('off');
- xlabel('ITV (a.u.)'); ylabel('ATV (a.u.)');
- title({['r = ', num2str(corr_r)], ...
- ['slope = ', num2str(corr_slope)], ...
- ['p = ', num2str(corr_p)]});
- box off; axis tight; axis square;
- line([0, max(xlim)], [0, max(ylim)], 'LineStyle', '-', 'Color', 'b');
- end % amplitude scale loop
- end % wideband check
- end % band loop
Fig1_4.m at commit 22d1788, under MIT · at the source
Overview
- Max Planck Institute for Biological Cybernetics, Tübingen, Germany
- Ernst Strüngmann Institute (ESI) for Neuroscience in Cooperation with Max Planck Society, Frankfurt, Germany
- Goethe University Frankfurt, University Hospital, Department for Psychiatry, Psychosomatic Medicine and Psychotherapy, Frankfurt, Germany
- Goethe University Frankfurt, Cooperative Brain Imaging Center - CoBIC, Frankfurt, Germany, Frankfurt, Germany
- Departments of Medical Social Sciences and Pediatrics, Northwestern University, Chicago, IL USA
- Department of Psychology, Northwestern University, Evanston, IL USA
- Cognitive and Systems Neuroscience Group, Swammerdam Institute for Life Sciences, University of Amsterdam, Amsterdam, The Netherlands
- Department of Physiology, McGill University, Montreal, QC Canada
Abstract
Neuronal variability is a fundamental feature of neuronal coding. In spiking activity, across-trial variance (ATV) normalized by mean spike count (i.e., the Fano factor) shows stimulus-induced quenching. ATV has also been studied in electro/
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 3 matches between paragraphs and lines of code.
Zenodo 21959626
Availability: 1 check, the latest on 26 September 2026: the link answers (HTTP 200)
- 26 September 2026: the link answers (HTTP 200)
6 files
Mohsenparto/On_ATV_in_LFP
22d17888d4c125210f7d6f4a4fd945b2dbb10e78, 16 August 2026Availability: 1 check, the latest on 26 September 2026: the link answers
- 26 September 2026: the link answers
8 files
Code availability
The scripts for generating simulations and for analyzing neuronal and simulated data using MATLAB 2020b are publicly available on Zenodo [https://
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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 12 scripts, each with its path and the digest of its content;
- 3 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
- crcns.org/
data-sets/ , at CRCNS; found in “Data availability”pfc - zenodo:21946658, at Zenodo; found in “Data availability”
Data availability
The data underlying the main figures are publicly available on Zenodo [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 3, 28 September 2026
- Funding: added European Commission: 604102, 200728, 1U54MH091657; Deutsche Forschungsgemeinschaft: FOR1847, FR2557/5-1, FR2557/2-1, FOR 1847 FR2557/2-1, FR2557/5-1-CORNET, 1U54MH091657, FR2557/7-1; National Institutes of Health
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 3 keywords, 9 MeSH terms, 60 references.
Cite
This paper
Parto-Dezfouli, M., Johnson, E. L., Psarou, E., Bosman, C. A., Krishna, B. S., & Fries, P. (2026). On variability in local field potentials. Communications biology, 9(1), 1165. https://
BibTeX
@article{partodezfouli20
author = {Parto-Dezfouli, Mohsen and Johnson, Elizabeth L and Psarou, Eleni and Bosman, Conrado Arturo and Krishna, B Suresh and Fries, Pascal},
title = {{On variability in local field potentials}},
journal = {Communications biology},
year = {2026},
month = sep,
volume = {9},
number = {1},
pages = {1165},
publisher = {Nature Publishing Group},
issn = {2399-3642},
doi = {10.1038/
url = {https://
pmid = {42686952},
pmcid = {PMC13538653}
}
RIS
TY - JOUR
AU - Parto-Dezfouli, Mohsen
AU - Johnson, Elizabeth L
AU - Psarou, Eleni
AU - Bosman, Conrado Arturo
AU - Krishna, B Suresh
AU - Fries, Pascal
TI - On variability in local field potentials
T2 - Communications biology
J2 - Commun Biol
PY - 2026
DA - 2026/
VL - 9
IS - 1
SP - 1165
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "On variability in local field potentials",
"container-title": "Communications biology",
"author": [
{
"family": "Parto-Dezfouli",
"given": "Mohsen"
},
{
"family": "Johnson",
"given": "Elizabeth L"
},
{
"family": "Psarou",
"given": "Eleni"
},
{
"family": "Bosman",
"given": "Conrado Arturo"
},
{
"family": "Krishna",
"given": "B Suresh"
},
{
"family": "Fries",
"given": "Pascal"
}
],
"container-title-short":
"volume": "9",
"issue": "1",
"page": "1165",
"DOI": "10.1038/
"PMID": "42686952",
"PMCID": "PMC13538653",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
9,
2
]
]
}
}
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/s41467-026-70287-5 [code]
- Cortical-limbic circuit dynamics of approach-avoidance conflict in humans.Journal: Nature communicationsIn common: EEG, 2 references, author Elizabeth L Johnson
- [2] doi:10.1038/s41467-026-71725-0 [code]
- Interactions across hemispheres in prefrontal cortex reflect global cognitive processing.Journal: Nature communicationsIn common: Statistics and Machine Learning Toolbox, 4 references
- [3] doi:10.1016/j.isci.2026.116240 [code]
- Physical activity enhances theta-periodicity of visual attentional allocation.Journal: iScienceIn common: shadedErrorBar, Statistics and Machine Learning Toolbox, 3 references
- [4] doi:10.1016/j.crmeth.2026.101481 [code]
- A hybrid micro-ECoG for functionally targeted multi-site and multi-scale investigation.Journal: Cell reports methodsIn common: shadedErrorBar, Statistics and Machine Learning Toolbox, extracellular electrophysiology (units, LFP), 2 references
- [5] doi:10.1016/j.xpro.2026.104833 [code]
- Protocol for mapping frequency-specific information transfer between cortical areas using ECoG and Granger causality.Journal: STAR protocolsIn common: 5 references
- [6] doi:10.1111/ejn.70641
- Distinct High-Gamma Signals in Primate Prefrontal Cortex Differentiate Cue Information, Preference Revision, and Expected Reward During Value-Based Decisions.Journal: The European journal of neuroscienceIn common: crcns.org/data-sets/pfc, extracellular electrophysiology (units, LFP)
- [7] doi:10.1162/imag.a.1359 [code]
- Distinct roles of brain network flexibility in motor learning across age.Journal: Imaging neuroscience (Cambridge, Mass.)In common: shadedErrorBar, Statistics and Machine Learning Toolbox, EEG, 1 reference
- [8] doi:10.1523/jneurosci.0154-26.2026 [code]
- Faster but less precise: expectation enhances response speed while reducing sensory fidelity.Journal: The Journal of neuroscience : the official journal of the Society for NeuroscienceIn common: shadedErrorBar, Statistics and Machine Learning Toolbox, EEG, 1 reference
- [9] doi:10.1016/j.patter.2026.101590 [code]
- Density-based longitudinal neuron tracking in high-density electrophysiological recordings.Journal: Patterns (New York, N.Y.)In common: shadedErrorBar, Statistics and Machine Learning Toolbox, extracellular electrophysiology (units, LFP), 1 reference
- [10] doi:10.1073/pnas.2603966123 [code]
- Oxytocin selectively biases sensory-prefrontal communication through network-level suppression and theta coupling.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: shadedErrorBar, Statistics and Machine Learning Toolbox, extracellular electrophysiology (units, LFP), 1 reference
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, 12 scripts, and 3 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:639a51668d27dd03…
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.
