Anti-Seizure Medications Alter Functional and Effective Connectivity as Measured With Intracranial Electroencephalography.
10 blocks of code here have 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 13 matches · 2 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Methods › CCEP Parameters: N1, N2, and RMS ↔ CCEP_offon_RMS.m, lines 182 to 259 · score 0.89 · 85–250 ms, 10–300 ms, 10–30 ms, 85 ms, RMS, N1 · block
oscr:b:NFHXS1HZZG69Q-6· Report a mismatch - [2] § Methods › Calculating Functional Connectivity and Graph Theoretical Measures ↔ Figure5.m, lines 1 to 57 · score 0.85 · Global efficiency, Small worldness, Clustering coefficient, local efficiency, modularity, metrics · block
oscr:b:VCV6XVNVBCFD7-5· Report a mismatch - [3] § Methods › Statistical Analyses on Effective and Functional Connectivity ↔ CCEP_offon_RMS_multi_v2.m, lines 143 to 206 · score 0.78 · stim rec pairs, linear regression, fitting, family, metrics, model · block
oscr:b:ARMBKZA1FJ60D-5· Report a mismatch - [4] § Methods › Calculating Functional Connectivity and Graph Theoretical Measures ↔ Pipeline_RestingState.m, lines 12 to 86 · score 0.75 · bandpass filter, 0.1–1 Hz, cycles, transform, phase, power · block
oscr:b:N07V0QT7H4N8N-Z· Report a mismatch - [5] § Results › Effects of ASMs on Graph Theoretical Measures ↔ Figure5.m, lines 1 to 57 · score 0.75 · global efficiency, small worldness, clustering coefficient, local efficiency, modularity, strength · block
oscr:b:VCV6XVNVBCFD7-5· Report a mismatch - [6] § Methods › CCEP Parameters: N1, N2, and RMS ↔ ccep_N1N2.m, the whole file · a weak match · score 0.75 · 10–30 ms, N2 responses, findpeak, 85 ms, 250 ms, N1 · block
oscr:b:2AJ6X29H39A5W-D· Report a mismatch - [7] § Results › Effects of ASMs on CCEPs ↔ CCEP_offon_collect_drectns_perm.m, lines 248 to 286 · score 0.69 · FDR correction, N1 latency, N2 latency, N1 amplitude, N2 amplitude, CCEPs · block
oscr:b:N4XS6XRA36RJV-5· Report a mismatch - [8] § Results › Effects of ASMs on CCEPs ↔ CCEP_offon_collect.m, lines 52 to 192 · score 0.63 · N1 latency, N2 latency, N1 amplitude, N2 amplitude, recording channel, peaks · block
oscr:b:4XSPF98XX0E82-S· Report a mismatch - [9] § Results › Effects of ASMs on CCEPs ↔ CCEP_offon_RMS_multi_v2.m, lines 143 to 206 · score 0.58 · linear regression, ASM state, patient ID, variables, RMS, 50 ms · block
oscr:b:ARMBKZA1FJ60D-5· Report a mismatch - [10] § Results › Effects of ASMs on Functional Connectivity ↔ Pipeline_RestingState.m, lines 12 to 86 · score 0.58 · 0.1–1 Hz, slow fluctuations, iEEG, 0.1 Hz, electrodes · block
oscr:b:N07V0QT7H4N8N-Z· Report a mismatch - [11] § Results › Effects of ASMs on CCEPs ↔ CCEP_offon_RMS_multi_v2.m, lines 208 to 263 · score 0.55 · 10–300 ms, Stimulated channels, recording channels, box, RMS, 10 ms · block
oscr:b:WR49K6DEAYV8Z-T· Report a mismatch - [12] § Methods › Statistical Analyses on Effective and Functional Connectivity ↔ CCEP_offon_collect_drectns_perm.m, lines 1 to 18 · score 0.52 · Benjamini Hochberg, FDR, permutation, epileptogenic, EPZ, N1 · block
oscr:b:35BFZJSK1HR67-4· Report a mismatch - [13] § Methods › sEEG Data Acquisition and Preprocessing ↔ CCEP_processing.m, the whole file · a weak match · score 0.51 · FieldTrip, preprocessed, poststimulation, baseline, zero, CCEP · block
oscr:b:JSQTYFXM7V4EF-A· 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
MATLAB · 389 lines · 16 KB · GPL-3.0 · 3 matches
- function CCEP_offon_RMS_multi_v2(Sbj_Metadatas)
- % CCEP_offon_RMS_multi_v2: Linear regression to compare RMS between ASM-ON vs ASM-OFF
- % analyzing connectivity between stimulated and recorded regions
- %
- % Model per stim-rec pair: RMS ~ ASM_State + PatientID (main effects only)
- % Tests ASM effect on connectivity for each stim-rec combination
- % Family-wise Bonferroni correction across all 48 comparisons (16 cells × 3 metrics)
- %
- % Output: 4×4 heatmaps showing p-values (columns=stim, rows=rec)
- % v2: updated to analyze the data with linear regression
- % Initialize data collection structures
- for_crisscross = {'SOZ','EPZ','IZ','Healthy'};
- % Cell arrays to store data for each stim-rec pair
- % Dimensions: [4 stim types, 4 rec types]
- rms_data_stim_rec = cell(4, 4);
- rms_n1_data_stim_rec = cell(4, 4);
- rms_n2_data_stim_rec = cell(4, 4);
- patient_id_stim_rec = cell(4, 4);
- % Initialize cells
- for i1 = 1:4
- for i2 = 1:4
- rms_data_stim_rec{i1, i2} = [];
- rms_n1_data_stim_rec{i1, i2} = [];
- rms_n2_data_stim_rec{i1, i2} = [];
- patient_id_stim_rec{i1, i2} = {};
- end
- end
- %% Start the loop for subject metadata
- for s = 1:length(Sbj_Metadatas)
- Sbj_Metadata = Sbj_Metadatas{s};
- sbj_ID = Sbj_Metadata.sbj_ID;
- AllBlockInfo = readtable(fullfile(Sbj_Metadata.project_root,[Sbj_Metadata.project_name '_BlockInfo.xlsx']));
- offblocks = find(strcmp(AllBlockInfo.sbj_ID,sbj_ID) & strcmp(AllBlockInfo.task_type,'offmed'));
- onblocks = find(strcmp(AllBlockInfo.sbj_ID,sbj_ID) & strcmp(AllBlockInfo.task_type,'onmed'));
- offmed_block = AllBlockInfo.BlockList{offblocks(1)};
- onmed_block = AllBlockInfo.BlockList{onblocks(1)};
- %% Find analyzed channel pairs
- fileList = dir(fullfile(Sbj_Metadata.results,'off_on_peaks','peak_info_*.mat'));
- analyzed_chans = cellfun(@(x) erase(x, {'peak_info_','.mat'}), {fileList.name}', 'UniformOutput', false);
- %% Get good bipolar channels
- ref = 'bp';
- off_ccep = load(fullfile(Sbj_Metadata.iEEG_data,offmed_block, 'CCEPdir', [offmed_block '_ccep_' ref '_' analyzed_chans{1} '.mat']));
- bp_chans = off_ccep.CCEPs.label;
- clear off_ccep
- % Find non-artefactual channels in bipolar data
- off_info = load(fullfile(Sbj_Metadata.iEEG_data, offmed_block, [offmed_block '_info.mat']));
- on_info = load(fullfile(Sbj_Metadata.iEEG_data, onmed_block, [onmed_block '_info.mat']));
- bp_good_chans_off = get_info_goodchans_bp(off_info.info, bp_chans);
- bp_good_chans_on = get_info_goodchans_bp(on_info.info, bp_chans);
- bp_good_chans = bp_good_chans_off(ismember(bp_good_chans_off, bp_good_chans_on));
- %% Get channel characters for stimulation pairs
- importance = {'SOZ','EPZ','IZ','Healthy'};
- % Find character of each pair of analyzed (stimulated) electrodes
- events_chans = strcat(off_info.info.events.StimCh1,repmat({'-'},[length(off_info.info.events.StimCh1),1]),off_info.info.events.StimCh2);
- analyzed_chans_character = cell([length(analyzed_chans),1]);
- for c = 1:length(analyzed_chans_character)
- xxx=find(ismember(events_chans,analyzed_chans{c}));
- analyzed_chans_character(c) = off_info.info.events.elec_type(xxx(1));
- end
- analyzed_chans_split = strsplit_SA(analyzed_chans);
- %% Loop through each analyzed stim channel pair
- corrSheet = readtable(Sbj_Metadata.labelfile);
- for c = 1:length(analyzed_chans)
- % Load peak info for this stim pair
- load(fullfile(Sbj_Metadata.results,'off_on_peaks',['peak_info_' analyzed_chans{c} '.mat']),'peak_info')
- % Remove bad channels
- peak_info = peak_info(ismember(peak_info.label, bp_good_chans), :);
- % Remove stimulation channels themselves
- peak_info_spl = strsplit_SA(peak_info.label);
- peak_info = peak_info(~any(ismember(peak_info_spl, analyzed_chans_split(c,:)), 2), :);
- peak_info_spl = strsplit_SA(peak_info.label);
- % remove non-gray channels
- peakinfo_chan_WMvsGM = assign_classes(peak_info_spl(:,1), peak_info_spl(:,2), corrSheet.Label, lower(corrSheet.WMvsGM),{'gray','white','csf','skull'});
- peak_info = peak_info(~strcmp(peakinfo_chan_WMvsGM,'gray'),:);
- peak_info_spl = strsplit_SA(peak_info.label);
- % Get recording channel classes
- peakinfo_chan_classes = assign_classes(peak_info_spl(:,1), peak_info_spl(:,2), ...
- off_info.info.channelinfo.Label, off_info.info.channelinfo.chan_info, importance);
- % Extract RMS values (off and on states)
- rms_off = peak_info.off_rms;
- rms_on = peak_info.on_rms;
- rms_n1_off = peak_info.off_rmsN1;
- rms_n1_on = peak_info.on_rmsN1;
- rms_n2_off = peak_info.off_rmsN2;
- rms_n2_on = peak_info.on_rmsN2;
- % Get stimulation channel class index
- stim_chan_class_idx = find(strcmp(for_crisscross, analyzed_chans_character{c}));
- % For each recording channel class, accumulate data
- for rec_class_idx = 1:4
- rec_class = for_crisscross{rec_class_idx};
- % Find indices of recording channels in this class
- rec_idx = strcmp(peakinfo_chan_classes, rec_class);
- if sum(rec_idx) > 0
- % Combine OFF and ON data
- rms_combined = [rms_off(rec_idx); rms_on(rec_idx)];
- rms_n1_combined = [rms_n1_off(rec_idx); rms_n1_on(rec_idx)];
- rms_n2_combined = [rms_n2_off(rec_idx); rms_n2_on(rec_idx)];
- % ASM state indicator (0=off, 1=on)
- n_off = sum(rec_idx);
- n_on = sum(rec_idx);
- asm_state = [zeros(n_off, 1); ones(n_on, 1)];
- % Patient ID
- patient_ids = [repmat({sbj_ID}, n_off, 1); repmat({sbj_ID}, n_on, 1)];
- % Store in cell array
- rms_data_stim_rec{stim_chan_class_idx, rec_class_idx} = [rms_data_stim_rec{stim_chan_class_idx, rec_class_idx}; rms_combined];
- rms_n1_data_stim_rec{stim_chan_class_idx, rec_class_idx} = [rms_n1_data_stim_rec{stim_chan_class_idx, rec_class_idx}; rms_n1_combined];
- rms_n2_data_stim_rec{stim_chan_class_idx, rec_class_idx} = [rms_n2_data_stim_rec{stim_chan_class_idx, rec_class_idx}; rms_n2_combined];
- patient_id_stim_rec{stim_chan_class_idx, rec_class_idx} = [patient_id_stim_rec{stim_chan_class_idx, rec_class_idx}; patient_ids];
- end
- end
- end
- end
- %% Fit linear regression for each stim-rec pair and extract p-values
- fprintf('\n========== LINEAR REGRESSION RESULTS PER STIM-REC PAIR ==========\n');
- fprintf('Model: RMS ~ ASM_State + PatientID (main effects only)\n');
- fprintf('Family-wise Bonferroni correction: α = 0.05 / 48 = %.6f\n\n', 0.05/48);
- % Initialize p-value matrices for each metric
- pval_rms_matrix = nan(4, 4);
- pval_rms_n1_matrix = nan(4, 4);
- pval_rms_n2_matrix = nan(4, 4);
- % Store model results
- models_rms = cell(4, 4);
- models_rms_n1 = cell(4, 4);
- models_rms_n2 = cell(4, 4);
- % Alpha for family-wise correction
- alpha_fam = 0.05 / 48;
- for stim_idx = 1:4
- for rec_idx = 1:4
- % Get data for this stim-rec pair
- rms_data = cell2mat(rms_data_stim_rec{stim_idx, rec_idx});rms_data_stim_rec{stim_idx, rec_idx}=rms_data;
- rms_n1_data = cell2mat(rms_n1_data_stim_rec{stim_idx, rec_idx});rms_n1_data_stim_rec{stim_idx, rec_idx}=rms_n1_data;
- rms_n2_data = cell2mat(rms_n2_data_stim_rec{stim_idx, rec_idx});rms_n2_data_stim_rec{stim_idx, rec_idx}=rms_n2_data;
- patient_ids = patient_id_stim_rec{stim_idx, rec_idx};
- % Only fit model if we have data
- if ~isempty(rms_data)
- % Create ASM state vector (0=off, 1=on)
- n_data = length(rms_data);
- asm_state = [zeros(n_data/2, 1); ones(n_data/2, 1)];
- % Create tables for regression
- tbl_rms = table(categorical(asm_state), categorical(patient_ids), rms_data, ...
- 'VariableNames', {'ASM_State', 'PatientID', 'RMS'});
- tbl_rms_n1 = table(categorical(asm_state), categorical(patient_ids), rms_n1_data, ...
- 'VariableNames', {'ASM_State', 'PatientID', 'RMS_N1'});
- tbl_rms_n2 = table(categorical(asm_state), categorical(patient_ids), rms_n2_data, ...
- 'VariableNames', {'ASM_State', 'PatientID', 'RMS_N2'});
- % Fit models
- try
- mdl_rms = fitlm(tbl_rms, 'RMS ~ ASM_State + PatientID');
- mdl_rms_n1 = fitlm(tbl_rms_n1, 'RMS_N1 ~ ASM_State + PatientID');
- mdl_rms_n2 = fitlm(tbl_rms_n2, 'RMS_N2 ~ ASM_State + PatientID');
- % Store models
- models_rms{stim_idx, rec_idx} = mdl_rms;
- models_rms_n1{stim_idx, rec_idx} = mdl_rms_n1;
- models_rms_n2{stim_idx, rec_idx} = mdl_rms_n2;
- % Extract p-value for ASM_State effect (second row in coefficients)
- pval_rms_matrix(stim_idx, rec_idx) = mdl_rms.Coefficients.pValue(2);
- pval_rms_n1_matrix(stim_idx, rec_idx) = mdl_rms_n1.Coefficients.pValue(2);
- pval_rms_n2_matrix(stim_idx, rec_idx) = mdl_rms_n2.Coefficients.pValue(2);
- catch ME
- fprintf('Warning: Model fit failed for stim=%s, rec=%s\n', for_crisscross{stim_idx}, for_crisscross{rec_idx});
- fprintf(' Error: %s\n', ME.message);
- end
- end
- end
- end
- %% Create visualization (4x4 heatmaps with p-values)
- figure('position',[0 0 1800 500])
- h_rms = zeros(size(pval_rms_matrix));
- h_rmsN1 = zeros(size(pval_rms_matrix));
- h_rmsN2 = zeros(size(pval_rms_matrix));
- % Plot 1: RMS (10-300ms)
- subplot(1, 3, 1)
- imagesc(pval_rms_matrix', [0.0001 0.05])
- colormap(gca, master_ColorMaps('hawaii'))
- cbar1 = colorbar;
- cbar1.Label.String = 'p-value';
- set(gca, 'XTick', 1:4, 'XTickLabel', for_crisscross,'FontSize', 12);
- set(gca, 'YTick', 1:4, 'YTickLabel', for_crisscross);
- xlabel('Stimulation Channel');
- ylabel('Recording Channel');
- title('RMS (10-300ms)');
- grid off
- % Add p-values and significance boxes
- for stim_idx = 1:4
- for rec_idx = 1:4
- pval = pval_rms_matrix(stim_idx, rec_idx);
- if ~isnan(pval)
- if pval < 0.0001
- text(stim_idx, rec_idx, 'p<0.0001', 'Color', 'k', ...
- 'HorizontalAlignment', 'center', 'FontSize', 12);
- else
- text(stim_idx, rec_idx, num2str(pval, '%.4f'), 'Color', 'k', ...
- 'HorizontalAlignment', 'center', 'FontSize', 12);
- end
- % Draw colored box if Bonferroni-corrected significant
- if pval < alpha_fam
- % Determine direction of effect: mean(ON) - mean(OFF)
- n_each = length(rms_data_stim_rec{stim_idx, rec_idx}) / 2;
- if n_each > 0
- rms_vals = rms_data_stim_rec{stim_idx, rec_idx};
- mean_off = mean(rms_vals(1:n_each));
- mean_on = mean(rms_vals(n_each+1:end));
- if mean_on < mean_off
- box_color = 'b'; % Blue: decrease from OFF to ON
- h_rms(stim_idx, rec_idx) = -1;
- else
- box_color = 'r'; % Red: increase from OFF to ON
- h_rms(stim_idx, rec_idx) = 1;
- end
- else
- box_color = 'k';
- end
- rectangle('Position', [stim_idx-0.5, rec_idx-0.5, 1, 1], ...
- 'EdgeColor', box_color, 'LineWidth', 2.5);
- end
- end
- end
- end
- % Plot 2: RMS-N1 (10-30ms)
- subplot(1, 3, 2)
- imagesc(pval_rms_n1_matrix', [0.0001 0.05])
- colormap(gca, master_ColorMaps('hawaii'))
- cbar2 = colorbar;
- cbar2.Label.String = 'p-value';
- set(gca, 'XTick', 1:4, 'XTickLabel', for_crisscross,'FontSize', 12);
- set(gca, 'YTick', 1:4, 'YTickLabel', for_crisscross);
- xlabel('Stimulation Channel');
- ylabel('Recording Channel');
- title('RMS-N1 (10-30ms)');
- grid off
- % Add p-values and significance boxes
- for stim_idx = 1:4
- for rec_idx = 1:4
- pval = pval_rms_n1_matrix(stim_idx, rec_idx);
- if ~isnan(pval)
- if pval < 0.0001
- text(stim_idx, rec_idx, 'p<0.0001', 'Color', 'k', ...
- 'HorizontalAlignment', 'center', 'FontSize', 12);
- else
- text(stim_idx, rec_idx, num2str(pval, '%.4f'), 'Color', 'k', ...
- 'HorizontalAlignment', 'center', 'FontSize', 12);
- end
- % Draw colored box if Bonferroni-corrected significant
- if pval < alpha_fam
- % Determine direction of effect: mean(ON) - mean(OFF)
- n_each = length(rms_n1_data_stim_rec{stim_idx, rec_idx}) / 2;
- if n_each > 0
- rms_vals = rms_n1_data_stim_rec{stim_idx, rec_idx};
- mean_off = mean(rms_vals(1:n_each));
- mean_on = mean(rms_vals(n_each+1:end));
- if mean_on < mean_off
- box_color = 'b'; % Blue: decrease from OFF to ON
- h_rmsN1(stim_idx, rec_idx) = -1;
- else
- box_color = 'r'; % Red: increase from OFF to ON
- h_rmsN1(stim_idx, rec_idx) = 1;
- end
- else
- box_color = 'k';
- end
- rectangle('Position', [stim_idx-0.5, rec_idx-0.5, 1, 1], ...
- 'EdgeColor', box_color, 'LineWidth', 2.5);
- end
- end
- end
- end
- % Plot 3: RMS-N2 (85-250ms)
- subplot(1, 3, 3)
- imagesc(pval_rms_n2_matrix', [0.0001 0.05])
- colormap(gca, master_ColorMaps('hawaii'))
- cbar3 = colorbar;
- cbar3.Label.String = 'p-value';
- set(gca, 'XTick', 1:4, 'XTickLabel', for_crisscross,'FontSize', 12);
- set(gca, 'YTick', 1:4, 'YTickLabel', for_crisscross);
- xlabel('Stimulation Channel');
- ylabel('Recording Channel');
- title('RMS-N2 (85-250ms)');
- grid off
- % Add p-values and significance boxes
- for stim_idx = 1:4
- for rec_idx = 1:4
- pval = pval_rms_n2_matrix(stim_idx, rec_idx);
- if ~isnan(pval)
- if pval < 0.0001
- text(stim_idx, rec_idx, 'p<0.0001', 'Color', 'k', ...
- 'HorizontalAlignment', 'center', 'FontSize', 12);
- else
- text(stim_idx, rec_idx, num2str(pval, '%.4f'), 'Color', 'k', ...
- 'HorizontalAlignment', 'center', 'FontSize', 12);
- end
- % Draw colored box if Bonferroni-corrected significant
- if pval < alpha_fam
- % Determine direction of effect: mean(ON) - mean(OFF)
- n_each = length(rms_n2_data_stim_rec{stim_idx, rec_idx}) / 2;
- if n_each > 0
- rms_vals = rms_n2_data_stim_rec{stim_idx, rec_idx};
- mean_off = mean(rms_vals(1:n_each));
- mean_on = mean(rms_vals(n_each+1:end));
- if mean_on < mean_off
- box_color = 'b'; % Blue: decrease from OFF to ON
- h_rmsN2(stim_idx, rec_idx) = -1;
- else
- box_color = 'r'; % Red: increase from OFF to ON
- h_rmsN2(stim_idx, rec_idx) = 1;
- end
- else
- box_color = 'k';
- end
- rectangle('Position', [stim_idx-0.5, rec_idx-0.5, 1, 1], ...
- 'EdgeColor', box_color, 'LineWidth', 2.5);
- end
- end
- end
- end
- sgtitle({'Linear Regression: ASM Effect on Connectivity (RMS ~ ASM_State + PatientID)'; ...
- sprintf('Columns = Stimulated Region | Rows = Recorded Region | Red box = p < %.6f (Bonferroni corrected)', alpha_fam)});
- %% Save figure and results
- res_dir = fullfile(Sbj_Metadatas{1}.project_root, 'COMBINED_RESULTS', 'offon_RMS_multi_v2');
- if ~isfolder(res_dir)
- mkdir(res_dir);
- end
- print(fullfile(res_dir, 'RMS_regression_connectivity_pvalues.png'), '-dpng', '-r300');
- %% Save results
- save(fullfile(res_dir, 'RMS_regression_connectivity_results.mat'), ...
- 'models_rms', 'models_rms_n1', 'models_rms_n2', ...
- 'pval_rms_matrix', 'pval_rms_n1_matrix', 'pval_rms_n2_matrix', ...
- 'rms_data_stim_rec', 'rms_n1_data_stim_rec', 'rms_n2_data_stim_rec', ...
- 'patient_id_stim_rec', 'alpha_fam', 'for_crisscross',...
- 'h_rms','h_rmsN1','h_rmsN2');
- fprintf('\n\nResults saved to: %s\n', res_dir);
- end
CCEP_offon_RMS_multi_v2.m at commit d5a7054, under GPL-3.0 · at the source
Overview
- Department of Neurology University of Alabama at Birmingham Birmingham Alabama USA
- Department of Biomedical Engineering University of Alabama at Birmingham Birmingham Alabama USA
- Department of Electrical and Computer Engineering University of Alabama at Birmingham Birmingham Alabama USA
- Birmingham VA Medical Center Neurology Service Birmingham Alabama USA
Abstract
Background: Anti‐seizure medications (ASMs) control seizures through distinct neuronal mechanisms. While suppressing seizures, putative spill‐over effects can lead to multiple cognitive side effects, some of which can be explained by the modulation of brain connectivity. This modulation can be studied with functional and effective connectivity. While functional connectivity provides information on statistical dependencies between two brain regions, effective connectivity as measured with cortico‐cortical evoked potentials (CCEPs) through single pulse electrical stimulation (SPES) can elucidate the underlying mechanisms of the effective connectivity with high temporal and spatial resolution. CCEPs are often performed while patients are on ASMs; however, the effect of ASMs on CCEPs is largely unknown given limited opportunity to experimentally study this in the human brain. We hypothesized that ASMs would alter the connectivity within the seizure network more often than in healthy brain areas.
Objective: We aimed to understand the effects of ASMs on functional and effective connectivity.
Methods: We recruited seven patients undergoing invasive monitoring with depth electrodes for medically refractory epilepsy, five of whom underwent SPES with 5 mA, 150 µsec per phase square wave pulses at 1 Hz frequency while the patients were on ASMs as part of ongoing research projects (ASM‐ON). Since patients did not have their typical seizures, a second SPES session was performed by the clinical team while off ASMs to reduce their seizure threshold (ASM‐OFF). We recorded a total of 565 bipolar channels and electrically stimulated a total of 17 seizure onset zone (SOZ), 6 early propagation zone (EPZ), 36 irritative zone (IZ), and 64 non‐involved zone (NIZ) electrode pairs across five patients. We compared the amplitude and latency of early and late voltage deflections (N1, N2) and root mean square values of CCEPs between two sessions. In a partly overlapping cohort of five patients, we also recorded 1‐h long rest sessions (ASM‐ON and ASM‐OFF) to show the changes in functional connectivity and graph theoretical measures obtained from the slow fluctuations in broadband high frequency activity.
Results: ASMs preferentially modulated excitability within the epileptic network, with the highest rates of significant CCEP amplitude changes observed for seizure network (SOZ→SOZ: 15.9% N1, 15.5% N2; EPZ→EPZ: 15.6% N1, 11.1% N2; IZ→IZ: 11.6% N1, 12.4% N2) compared to NIZ→NIZ (5.7% N1, 7.4% N2), and with amplitude effects consistently exceeding latency effects across all tissue class combinations (p < 0.05, group significance at q < 0.05). We also found that the RMS based connectivity and functional connectivity were altered more often outside of the seizure network.
Conclusions: Overall, we found that ASMs altered the effective connectivity within the seizure network more than within non‐involved regions, whereas functional connectivity was altered more often within non‐involved regions. This study is the first study revealing with high spatiotemporal resolution that ASMs can alter brain effective and functional connectivity in multiple different ways.
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 13 matches between paragraphs and lines of code.
sakkol/CCEP_ASM_connectivity
d5a705408d62a06db316e36fac2f15463ce26377, 3 April 2026Availability: 2 checks, the latest on 28 October 2026: the link answers
- 28 October 2026: the link answers
- 27 September 2026: the link answers
26 files
- CCEP_comp_offon.m, MATLAB, 222 lines
- CCEP_findSharedPairs.m, MATLAB, 45 lines
- CCEP_offon_RMS.m, MATLAB, 266 lines, 1 match
- CCEP_offon_RMS_multi_v2.
m , MATLAB, 389 lines, 3 matches - CCEP_offon_collect.m, MATLAB, 321 lines, 1 match
- CCEP_offon_collect_drect
ns.m , MATLAB, 446 lines - CCEP_offon_collect_drect
ns_perm.m , MATLAB, 382 lines, 2 matches - CCEP_offon_collect_multi
_v2.m , MATLAB, 271 lines - CCEP_processing.m, MATLAB, 100 lines, 1 match
- Figure1.m, MATLAB, 137 lines
- Figure2.m, MATLAB, 93 lines
- Figure3.m, MATLAB, 113 lines
- Figure4.m, MATLAB, 301 lines
- Figure5.m, MATLAB, 213 lines, 2 matches
- Pipeline_CCEP.m, MATLAB, 74 lines
- Pipeline_RestingState.m, MATLAB, 109 lines, 2 matches
- assign_classes.m, MATLAB, 65 lines
- ccep_N1N2.m, MATLAB, 31 lines, 1 match
- ccep_rms.m, MATLAB, 14 lines
- get_info_goodchans_bp.m, MATLAB, 22 lines
- get_info_nonartefactchan
s.m , MATLAB, 11 lines - master_smoothData.m, MATLAB, 60 lines
- shadedErrorBar.m, MATLAB, 253 lines
- strsplit_SA.m, MATLAB, 13 lines
- LICENSE, License, 674 lines
- README.md, Text, 24 lines
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;
- 24 scripts, each with its path and the digest of its content;
- 13 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 Availability Statement
The code used for analyses will be available at: 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 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 5 keywords, 16 MeSH terms, 4 funders, 70 references.
Cite
This paper
Akkol, S., Brinyark, H. E., Chatfield, R., Vaddiparti, A., Smith, R. J., & Cox, B. C. (2026). Anti-Seizure Medications Alter Functional and Effective Connectivity as Measured With Intracranial Electroencephalography. Brain and behavior, 16(6), e71507. https://
BibTeX
@article{akkol2026anti,
author = {Akkol, Serdar and Brinyark, Helen E. and Chatfield, Rebekah and Vaddiparti, Aparna and Smith, Rachel June and Cox, Benjamin C.},
title = {{Anti-Seizure Medications Alter Functional and Effective Connectivity as Measured With Intracranial Electroencephalography}}
journal = {Brain and behavior},
year = {2026},
month = jun,
volume = {16},
number = {6},
pages = {e71507},
publisher = {Wiley},
issn = {2162-3279},
doi = {10.1002/
url = {https://
pmid = {42204888},
pmcid = {PMC13240049}
}
RIS
TY - JOUR
AU - Akkol, Serdar
AU - Brinyark, Helen E.
AU - Chatfield, Rebekah
AU - Vaddiparti, Aparna
AU - Smith, Rachel June
AU - Cox, Benjamin C.
TI - Anti-Seizure Medications Alter Functional and Effective Connectivity as Measured With Intracranial Electroencephalography
T2 - Brain and behavior
J2 - Brain Behav
PY - 2026
DA - 2026/
VL - 16
IS - 6
SP - e71507
SN - 2162-3279
PB - Wiley
DO - 10.1002/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1002/
"type": "article-journal",
"title": "Anti-Seizure Medications Alter Functional and Effective Connectivity as Measured With Intracranial Electroencephalography",
"container-title": "Brain and behavior",
"author": [
{
"family": "Akkol",
"given": "Serdar"
},
{
"family": "Brinyark",
"given": "Helen E."
},
{
"family": "Chatfield",
"given": "Rebekah"
},
{
"family": "Vaddiparti",
"given": "Aparna"
},
{
"family": "Smith",
"given": "Rachel June"
},
{
"family": "Cox",
"given": "Benjamin C."
}
],
"container-title-short":
"volume": "16",
"issue": "6",
"page": "e71507",
"DOI": "10.1002/
"PMID": "42204888",
"PMCID": "PMC13240049",
"ISSN": "2162-3279",
"publisher": "Wiley",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
1
]
]
}
}
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-024-51443-1 [code]
- Theta-burst direct electrical stimulation remodels human brain networks.Journal: Nature communicationsIn common: FieldTrip, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, intracranial EEG (iEEG / ECoG / SEEG), epilepsy, EEG, 8 references
- [2] doi:10.1371/journal.pcbi.1011105 [code]
- Canonical Response Parameterization: Quantifying the structure of responses to single-pulse intracranial electrical brain stimulation.Journal: PLoS computational biologyIn common: Statistics and Machine Learning Toolbox, EEG, 8 references
- [3] doi:10.1038/s42003-026-10270-4 [code]
- Direct electrical stimulation of the human amygdala enhances recognition memory for objects but not scenes.Journal: Communications biologyIn common: Statistics and Machine Learning Toolbox, 7 references
- [4] doi:10.1038/s41467-025-58717-2 [code]
- Thalamic feedback shapes brain responses evoked by cortical stimulation in mice and humans.Journal: Nature communicationsIn common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 6 references
- [5] doi:10.1088/1741-2552/ad1385 [code]
- Single-pulse electrical stimulation artifact removal using the novel matching pursuit-based artifact reconstruction and removal method (MPARRM).Journal: Journal of neural engineeringIn common: FieldTrip, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, EEG, 5 references
- [6] doi:10.1016/j.ynirp.2025.100274 [code]
- Structural and effective brain connectivity in focal epilepsy.Journal: Neuroimage. ReportsIn common: FieldTrip, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, intracranial EEG (iEEG / ECoG / SEEG), epilepsy, 4 references
- [7] doi:10.1002/hbm.25749
- Imaging the effective networks associated with cortical function through intracranial high-frequency stimulation.Journal: Human brain mappingIn common: intracranial EEG (iEEG / ECoG / SEEG), epilepsy, 6 references
- [8] doi:10.1093/braincomms/fcaf127 [code]
- Co-activation of interictal epileptiform discharges localizes seizure onset zone and fluctuates with brain state.Journal: Brain communicationsIn common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, intracranial EEG (iEEG / ECoG / SEEG), epilepsy, 4 references
- [9] doi:10.1073/pnas.2316021121 [code]
- Cross-regional coordination of activity in the human brain during autobiographical self-referential processing.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: Statistics and Machine Learning Toolbox, intracranial EEG (iEEG / ECoG / SEEG), 5 references
- [10] doi:10.1093/brain/awac150 [code]
- Disorganization of language and working memory systems in frontal versus temporal lobe epilepsy.Journal: Brain : a journal of neurologyIn common: Statistics and Machine Learning Toolbox, epilepsy, 4 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, 24 scripts, and 13 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:5db6ad200eb8891a…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.1002/brb3.71507)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1002/brb3.71507.svg
:target: https://openscicode.org/badge/doi/10.1002/brb3.71507
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1002/brb3.71507"><img src="https://openscicode.org/badge/doi/10.1002/brb3.71507.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
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)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
