OSCR

Anti-Seizure Medications Alter Functional and Effective Connectivity as Measured With Intracranial Electroencephalography.

Code ↔ Paper

13 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 13 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Methods › CCEP Parameters: N1, N2, and RMS ↔ CCEP_offon_RMS.m, lines 182–259 · score 0.89 · 85–250 ms, 10–300 ms, 10–30 ms, 85 ms, RMS, N1
  2. [2] § Methods › Calculating Functional Connectivity and Graph Theoretical Measures ↔ Figure5.m, lines 1–57 · score 0.85 · Global efficiency, Small worldness, Clustering coefficient, local efficiency, modularity, metrics
  3. [3] § Methods › Statistical Analyses on Effective and Functional Connectivity ↔ CCEP_offon_RMS_multi_v2.m, lines 143–206 · score 0.78 · stim rec pairs, linear regression, fitting, family, metrics, model
  4. [4] § Methods › Calculating Functional Connectivity and Graph Theoretical Measures ↔ Pipeline_RestingState.m, lines 12–86 · score 0.75 · bandpass filter, 0.1–1 Hz, cycles, transform, phase, power
  5. [5] § Results › Effects of ASMs on Graph Theoretical Measures ↔ Figure5.m, lines 1–57 · score 0.75 · global efficiency, small worldness, clustering coefficient, local efficiency, modularity, strength
  6. [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
  7. [7] § Results › Effects of ASMs on CCEPs ↔ CCEP_offon_collect_drectns_perm.m, lines 248–286 · score 0.69 · FDR correction, N1 latency, N2 latency, N1 amplitude, N2 amplitude, CCEPs
  8. [8] § Results › Effects of ASMs on CCEPs ↔ CCEP_offon_collect.m, lines 52–192 · score 0.63 · N1 latency, N2 latency, N1 amplitude, N2 amplitude, recording channel, peaks
  9. [9] § Results › Effects of ASMs on CCEPs ↔ CCEP_offon_RMS_multi_v2.m, lines 143–206 · score 0.58 · linear regression, ASM state, patient ID, variables, RMS, 50 ms
  10. [10] § Results › Effects of ASMs on Functional Connectivity ↔ Pipeline_RestingState.m, lines 12–86 · score 0.58 · 0.1–1 Hz, slow fluctuations, iEEG, 0.1 Hz, electrodes
  11. [11] § Results › Effects of ASMs on CCEPs ↔ CCEP_offon_RMS_multi_v2.m, lines 208–263 · score 0.55 · 10–300 ms, Stimulated channels, recording channels, box, RMS, 10 ms
  12. [12] § Methods › Statistical Analyses on Effective and Functional Connectivity ↔ CCEP_offon_collect_drectns_perm.m, lines 1–18 · score 0.52 · Benjamini Hochberg, FDR, permutation, epileptogenic, EPZ, N1
  13. [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

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 · 389 lines · 16 KB · GPL-3.0 · 3 matches

  1. function CCEP_offon_RMS_multi_v2(Sbj_Metadatas)
  2. % CCEP_offon_RMS_multi_v2: Linear regression to compare RMS between ASM-ON vs ASM-OFF
  3. % analyzing connectivity between stimulated and recorded regions
  4. %
  5. % Model per stim-rec pair: RMS ~ ASM_State + PatientID (main effects only)
  6. % Tests ASM effect on connectivity for each stim-rec combination
  7. % Family-wise Bonferroni correction across all 48 comparisons (16 cells × 3 metrics)
  8. %
  9. % Output: 4×4 heatmaps showing p-values (columns=stim, rows=rec)
  10. % v2: updated to analyze the data with linear regression
  11. % Initialize data collection structures
  12. for_crisscross = {'SOZ','EPZ','IZ','Healthy'};
  13. % Cell arrays to store data for each stim-rec pair
  14. % Dimensions: [4 stim types, 4 rec types]
  15. rms_data_stim_rec = cell(4, 4);
  16. rms_n1_data_stim_rec = cell(4, 4);
  17. rms_n2_data_stim_rec = cell(4, 4);
  18. patient_id_stim_rec = cell(4, 4);
  19. % Initialize cells
  20. for i1 = 1:4
  21. for i2 = 1:4
  22. rms_data_stim_rec{i1, i2} = [];
  23. rms_n1_data_stim_rec{i1, i2} = [];
  24. rms_n2_data_stim_rec{i1, i2} = [];
  25. patient_id_stim_rec{i1, i2} = {};
  26. end
  27. end
  28. %% Start the loop for subject metadata
  29. for s = 1:length(Sbj_Metadatas)
  30. Sbj_Metadata = Sbj_Metadatas{s};
  31. sbj_ID = Sbj_Metadata.sbj_ID;
  32. AllBlockInfo = readtable(fullfile(Sbj_Metadata.project_root,[Sbj_Metadata.project_name '_BlockInfo.xlsx']));
  33. offblocks = find(strcmp(AllBlockInfo.sbj_ID,sbj_ID) & strcmp(AllBlockInfo.task_type,'offmed'));
  34. onblocks = find(strcmp(AllBlockInfo.sbj_ID,sbj_ID) & strcmp(AllBlockInfo.task_type,'onmed'));
  35. offmed_block = AllBlockInfo.BlockList{offblocks(1)};
  36. onmed_block = AllBlockInfo.BlockList{onblocks(1)};
  37. %% Find analyzed channel pairs
  38. fileList = dir(fullfile(Sbj_Metadata.results,'off_on_peaks','peak_info_*.mat'));
  39. analyzed_chans = cellfun(@(x) erase(x, {'peak_info_','.mat'}), {fileList.name}', 'UniformOutput', false);
  40. %% Get good bipolar channels
  41. ref = 'bp';
  42. off_ccep = load(fullfile(Sbj_Metadata.iEEG_data,offmed_block, 'CCEPdir', [offmed_block '_ccep_' ref '_' analyzed_chans{1} '.mat']));
  43. bp_chans = off_ccep.CCEPs.label;
  44. clear off_ccep
  45. % Find non-artefactual channels in bipolar data
  46. off_info = load(fullfile(Sbj_Metadata.iEEG_data, offmed_block, [offmed_block '_info.mat']));
  47. on_info = load(fullfile(Sbj_Metadata.iEEG_data, onmed_block, [onmed_block '_info.mat']));
  48. bp_good_chans_off = get_info_goodchans_bp(off_info.info, bp_chans);
  49. bp_good_chans_on = get_info_goodchans_bp(on_info.info, bp_chans);
  50. bp_good_chans = bp_good_chans_off(ismember(bp_good_chans_off, bp_good_chans_on));
  51. %% Get channel characters for stimulation pairs
  52. importance = {'SOZ','EPZ','IZ','Healthy'};
  53. % Find character of each pair of analyzed (stimulated) electrodes
  54. events_chans = strcat(off_info.info.events.StimCh1,repmat({'-'},[length(off_info.info.events.StimCh1),1]),off_info.info.events.StimCh2);
  55. analyzed_chans_character = cell([length(analyzed_chans),1]);
  56. for c = 1:length(analyzed_chans_character)
  57. xxx=find(ismember(events_chans,analyzed_chans{c}));
  58. analyzed_chans_character(c) = off_info.info.events.elec_type(xxx(1));
  59. end
  60. analyzed_chans_split = strsplit_SA(analyzed_chans);
  61. %% Loop through each analyzed stim channel pair
  62. corrSheet = readtable(Sbj_Metadata.labelfile);
  63. for c = 1:length(analyzed_chans)
  64. % Load peak info for this stim pair
  65. load(fullfile(Sbj_Metadata.results,'off_on_peaks',['peak_info_' analyzed_chans{c} '.mat']),'peak_info')
  66. % Remove bad channels
  67. peak_info = peak_info(ismember(peak_info.label, bp_good_chans), :);
  68. % Remove stimulation channels themselves
  69. peak_info_spl = strsplit_SA(peak_info.label);
  70. peak_info = peak_info(~any(ismember(peak_info_spl, analyzed_chans_split(c,:)), 2), :);
  71. peak_info_spl = strsplit_SA(peak_info.label);
  72. % remove non-gray channels
  73. peakinfo_chan_WMvsGM = assign_classes(peak_info_spl(:,1), peak_info_spl(:,2), corrSheet.Label, lower(corrSheet.WMvsGM),{'gray','white','csf','skull'});
  74. peak_info = peak_info(~strcmp(peakinfo_chan_WMvsGM,'gray'),:);
  75. peak_info_spl = strsplit_SA(peak_info.label);
  76. % Get recording channel classes
  77. peakinfo_chan_classes = assign_classes(peak_info_spl(:,1), peak_info_spl(:,2), ...
  78. off_info.info.channelinfo.Label, off_info.info.channelinfo.chan_info, importance);
  79. % Extract RMS values (off and on states)
  80. rms_off = peak_info.off_rms;
  81. rms_on = peak_info.on_rms;
  82. rms_n1_off = peak_info.off_rmsN1;
  83. rms_n1_on = peak_info.on_rmsN1;
  84. rms_n2_off = peak_info.off_rmsN2;
  85. rms_n2_on = peak_info.on_rmsN2;
  86. % Get stimulation channel class index
  87. stim_chan_class_idx = find(strcmp(for_crisscross, analyzed_chans_character{c}));
  88. % For each recording channel class, accumulate data
  89. for rec_class_idx = 1:4
  90. rec_class = for_crisscross{rec_class_idx};
  91. % Find indices of recording channels in this class
  92. rec_idx = strcmp(peakinfo_chan_classes, rec_class);
  93. if sum(rec_idx) > 0
  94. % Combine OFF and ON data
  95. rms_combined = [rms_off(rec_idx); rms_on(rec_idx)];
  96. rms_n1_combined = [rms_n1_off(rec_idx); rms_n1_on(rec_idx)];
  97. rms_n2_combined = [rms_n2_off(rec_idx); rms_n2_on(rec_idx)];
  98. % ASM state indicator (0=off, 1=on)
  99. n_off = sum(rec_idx);
  100. n_on = sum(rec_idx);
  101. asm_state = [zeros(n_off, 1); ones(n_on, 1)];
  102. % Patient ID
  103. patient_ids = [repmat({sbj_ID}, n_off, 1); repmat({sbj_ID}, n_on, 1)];
  104. % Store in cell array
  105. rms_data_stim_rec{stim_chan_class_idx, rec_class_idx} = [rms_data_stim_rec{stim_chan_class_idx, rec_class_idx}; rms_combined];
  106. 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];
  107. 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];
  108. patient_id_stim_rec{stim_chan_class_idx, rec_class_idx} = [patient_id_stim_rec{stim_chan_class_idx, rec_class_idx}; patient_ids];
  109. end
  110. end
  111. end
  112. end
  113. %% Fit linear regression for each stim-rec pair and extract p-values
  114. fprintf('\n========== LINEAR REGRESSION RESULTS PER STIM-REC PAIR ==========\n');
  115. fprintf('Model: RMS ~ ASM_State + PatientID (main effects only)\n');
  116. fprintf('Family-wise Bonferroni correction: α = 0.05 / 48 = %.6f\n\n', 0.05/48);
  117. % Initialize p-value matrices for each metric
  118. pval_rms_matrix = nan(4, 4);
  119. pval_rms_n1_matrix = nan(4, 4);
  120. pval_rms_n2_matrix = nan(4, 4);
  121. % Store model results
  122. models_rms = cell(4, 4);
  123. models_rms_n1 = cell(4, 4);
  124. models_rms_n2 = cell(4, 4);
  125. % Alpha for family-wise correction
  126. alpha_fam = 0.05 / 48;
  127. for stim_idx = 1:4
  128. for rec_idx = 1:4
  129. % Get data for this stim-rec pair
  130. rms_data = cell2mat(rms_data_stim_rec{stim_idx, rec_idx});rms_data_stim_rec{stim_idx, rec_idx}=rms_data;
  131. 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;
  132. 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;
  133. patient_ids = patient_id_stim_rec{stim_idx, rec_idx};
  134. % Only fit model if we have data
  135. if ~isempty(rms_data)
  136. % Create ASM state vector (0=off, 1=on)
  137. n_data = length(rms_data);
  138. asm_state = [zeros(n_data/2, 1); ones(n_data/2, 1)];
  139. % Create tables for regression
  140. tbl_rms = table(categorical(asm_state), categorical(patient_ids), rms_data, ...
  141. 'VariableNames', {'ASM_State', 'PatientID', 'RMS'});
  142. tbl_rms_n1 = table(categorical(asm_state), categorical(patient_ids), rms_n1_data, ...
  143. 'VariableNames', {'ASM_State', 'PatientID', 'RMS_N1'});
  144. tbl_rms_n2 = table(categorical(asm_state), categorical(patient_ids), rms_n2_data, ...
  145. 'VariableNames', {'ASM_State', 'PatientID', 'RMS_N2'});
  146. % Fit models
  147. try
  148. mdl_rms = fitlm(tbl_rms, 'RMS ~ ASM_State + PatientID');
  149. mdl_rms_n1 = fitlm(tbl_rms_n1, 'RMS_N1 ~ ASM_State + PatientID');
  150. mdl_rms_n2 = fitlm(tbl_rms_n2, 'RMS_N2 ~ ASM_State + PatientID');
  151. % Store models
  152. models_rms{stim_idx, rec_idx} = mdl_rms;
  153. models_rms_n1{stim_idx, rec_idx} = mdl_rms_n1;
  154. models_rms_n2{stim_idx, rec_idx} = mdl_rms_n2;
  155. % Extract p-value for ASM_State effect (second row in coefficients)
  156. pval_rms_matrix(stim_idx, rec_idx) = mdl_rms.Coefficients.pValue(2);
  157. pval_rms_n1_matrix(stim_idx, rec_idx) = mdl_rms_n1.Coefficients.pValue(2);
  158. pval_rms_n2_matrix(stim_idx, rec_idx) = mdl_rms_n2.Coefficients.pValue(2);
  159. catch ME
  160. fprintf('Warning: Model fit failed for stim=%s, rec=%s\n', for_crisscross{stim_idx}, for_crisscross{rec_idx});
  161. fprintf(' Error: %s\n', ME.message);
  162. end
  163. end
  164. end
  165. end
  166. %% Create visualization (4x4 heatmaps with p-values)
  167. figure('position',[0 0 1800 500])
  168. h_rms = zeros(size(pval_rms_matrix));
  169. h_rmsN1 = zeros(size(pval_rms_matrix));
  170. h_rmsN2 = zeros(size(pval_rms_matrix));
  171. % Plot 1: RMS (10-300ms)
  172. subplot(1, 3, 1)
  173. imagesc(pval_rms_matrix', [0.0001 0.05])
  174. colormap(gca, master_ColorMaps('hawaii'))
  175. cbar1 = colorbar;
  176. cbar1.Label.String = 'p-value';
  177. set(gca, 'XTick', 1:4, 'XTickLabel', for_crisscross,'FontSize', 12);
  178. set(gca, 'YTick', 1:4, 'YTickLabel', for_crisscross);
  179. xlabel('Stimulation Channel');
  180. ylabel('Recording Channel');
  181. title('RMS (10-300ms)');
  182. grid off
  183. % Add p-values and significance boxes
  184. for stim_idx = 1:4
  185. for rec_idx = 1:4
  186. pval = pval_rms_matrix(stim_idx, rec_idx);
  187. if ~isnan(pval)
  188. if pval < 0.0001
  189. text(stim_idx, rec_idx, 'p<0.0001', 'Color', 'k', ...
  190. 'HorizontalAlignment', 'center', 'FontSize', 12);
  191. else
  192. text(stim_idx, rec_idx, num2str(pval, '%.4f'), 'Color', 'k', ...
  193. 'HorizontalAlignment', 'center', 'FontSize', 12);
  194. end
  195. % Draw colored box if Bonferroni-corrected significant
  196. if pval < alpha_fam
  197. % Determine direction of effect: mean(ON) - mean(OFF)
  198. n_each = length(rms_data_stim_rec{stim_idx, rec_idx}) / 2;
  199. if n_each > 0
  200. rms_vals = rms_data_stim_rec{stim_idx, rec_idx};
  201. mean_off = mean(rms_vals(1:n_each));
  202. mean_on = mean(rms_vals(n_each+1:end));
  203. if mean_on < mean_off
  204. box_color = 'b'; % Blue: decrease from OFF to ON
  205. h_rms(stim_idx, rec_idx) = -1;
  206. else
  207. box_color = 'r'; % Red: increase from OFF to ON
  208. h_rms(stim_idx, rec_idx) = 1;
  209. end
  210. else
  211. box_color = 'k';
  212. end
  213. rectangle('Position', [stim_idx-0.5, rec_idx-0.5, 1, 1], ...
  214. 'EdgeColor', box_color, 'LineWidth', 2.5);
  215. end
  216. end
  217. end
  218. end
  219. % Plot 2: RMS-N1 (10-30ms)
  220. subplot(1, 3, 2)
  221. imagesc(pval_rms_n1_matrix', [0.0001 0.05])
  222. colormap(gca, master_ColorMaps('hawaii'))
  223. cbar2 = colorbar;
  224. cbar2.Label.String = 'p-value';
  225. set(gca, 'XTick', 1:4, 'XTickLabel', for_crisscross,'FontSize', 12);
  226. set(gca, 'YTick', 1:4, 'YTickLabel', for_crisscross);
  227. xlabel('Stimulation Channel');
  228. ylabel('Recording Channel');
  229. title('RMS-N1 (10-30ms)');
  230. grid off
  231. % Add p-values and significance boxes
  232. for stim_idx = 1:4
  233. for rec_idx = 1:4
  234. pval = pval_rms_n1_matrix(stim_idx, rec_idx);
  235. if ~isnan(pval)
  236. if pval < 0.0001
  237. text(stim_idx, rec_idx, 'p<0.0001', 'Color', 'k', ...
  238. 'HorizontalAlignment', 'center', 'FontSize', 12);
  239. else
  240. text(stim_idx, rec_idx, num2str(pval, '%.4f'), 'Color', 'k', ...
  241. 'HorizontalAlignment', 'center', 'FontSize', 12);
  242. end
  243. % Draw colored box if Bonferroni-corrected significant
  244. if pval < alpha_fam
  245. % Determine direction of effect: mean(ON) - mean(OFF)
  246. n_each = length(rms_n1_data_stim_rec{stim_idx, rec_idx}) / 2;
  247. if n_each > 0
  248. rms_vals = rms_n1_data_stim_rec{stim_idx, rec_idx};
  249. mean_off = mean(rms_vals(1:n_each));
  250. mean_on = mean(rms_vals(n_each+1:end));
  251. if mean_on < mean_off
  252. box_color = 'b'; % Blue: decrease from OFF to ON
  253. h_rmsN1(stim_idx, rec_idx) = -1;
  254. else
  255. box_color = 'r'; % Red: increase from OFF to ON
  256. h_rmsN1(stim_idx, rec_idx) = 1;
  257. end
  258. else
  259. box_color = 'k';
  260. end
  261. rectangle('Position', [stim_idx-0.5, rec_idx-0.5, 1, 1], ...
  262. 'EdgeColor', box_color, 'LineWidth', 2.5);
  263. end
  264. end
  265. end
  266. end
  267. % Plot 3: RMS-N2 (85-250ms)
  268. subplot(1, 3, 3)
  269. imagesc(pval_rms_n2_matrix', [0.0001 0.05])
  270. colormap(gca, master_ColorMaps('hawaii'))
  271. cbar3 = colorbar;
  272. cbar3.Label.String = 'p-value';
  273. set(gca, 'XTick', 1:4, 'XTickLabel', for_crisscross,'FontSize', 12);
  274. set(gca, 'YTick', 1:4, 'YTickLabel', for_crisscross);
  275. xlabel('Stimulation Channel');
  276. ylabel('Recording Channel');
  277. title('RMS-N2 (85-250ms)');
  278. grid off
  279. % Add p-values and significance boxes
  280. for stim_idx = 1:4
  281. for rec_idx = 1:4
  282. pval = pval_rms_n2_matrix(stim_idx, rec_idx);
  283. if ~isnan(pval)
  284. if pval < 0.0001
  285. text(stim_idx, rec_idx, 'p<0.0001', 'Color', 'k', ...
  286. 'HorizontalAlignment', 'center', 'FontSize', 12);
  287. else
  288. text(stim_idx, rec_idx, num2str(pval, '%.4f'), 'Color', 'k', ...
  289. 'HorizontalAlignment', 'center', 'FontSize', 12);
  290. end
  291. % Draw colored box if Bonferroni-corrected significant
  292. if pval < alpha_fam
  293. % Determine direction of effect: mean(ON) - mean(OFF)
  294. n_each = length(rms_n2_data_stim_rec{stim_idx, rec_idx}) / 2;
  295. if n_each > 0
  296. rms_vals = rms_n2_data_stim_rec{stim_idx, rec_idx};
  297. mean_off = mean(rms_vals(1:n_each));
  298. mean_on = mean(rms_vals(n_each+1:end));
  299. if mean_on < mean_off
  300. box_color = 'b'; % Blue: decrease from OFF to ON
  301. h_rmsN2(stim_idx, rec_idx) = -1;
  302. else
  303. box_color = 'r'; % Red: increase from OFF to ON
  304. h_rmsN2(stim_idx, rec_idx) = 1;
  305. end
  306. else
  307. box_color = 'k';
  308. end
  309. rectangle('Position', [stim_idx-0.5, rec_idx-0.5, 1, 1], ...
  310. 'EdgeColor', box_color, 'LineWidth', 2.5);
  311. end
  312. end
  313. end
  314. end
  315. sgtitle({'Linear Regression: ASM Effect on Connectivity (RMS ~ ASM_State + PatientID)'; ...
  316. sprintf('Columns = Stimulated Region | Rows = Recorded Region | Red box = p < %.6f (Bonferroni corrected)', alpha_fam)});
  317. %% Save figure and results
  318. res_dir = fullfile(Sbj_Metadatas{1}.project_root, 'COMBINED_RESULTS', 'offon_RMS_multi_v2');
  319. if ~isfolder(res_dir)
  320. mkdir(res_dir);
  321. end
  322. print(fullfile(res_dir, 'RMS_regression_connectivity_pvalues.png'), '-dpng', '-r300');
  323. %% Save results
  324. save(fullfile(res_dir, 'RMS_regression_connectivity_results.mat'), ...
  325. 'models_rms', 'models_rms_n1', 'models_rms_n2', ...
  326. 'pval_rms_matrix', 'pval_rms_n1_matrix', 'pval_rms_n2_matrix', ...
  327. 'rms_data_stim_rec', 'rms_n1_data_stim_rec', 'rms_n2_data_stim_rec', ...
  328. 'patient_id_stim_rec', 'alpha_fam', 'for_crisscross',...
  329. 'h_rms','h_rmsN1','h_rmsN2');
  330. fprintf('\n\nResults saved to: %s\n', res_dir);
  331. end

CCEP_offon_RMS_multi_v2.m at commit d5a7054, under GPL-3.0 · at the source

Overview

Authors: Serdar Akkol1, Helen E. Brinyark2, Rebekah Chatfield1,3, Aparna Vaddiparti1, Rachel June Smith3, Benjamin C. Cox1,4
  1. Department of Neurology University of Alabama at Birmingham Birmingham Alabama USA
  2. Department of Biomedical Engineering University of Alabama at Birmingham Birmingham Alabama USA
  3. Department of Electrical and Computer Engineering University of Alabama at Birmingham Birmingham Alabama USA
  4. Birmingham VA Medical Center Neurology Service Birmingham Alabama USA
Institutions: University of Alabama at Birmingham (United States); UAB Medicine; Birmingham VA Medical Center (United States)
Journal: Brain and behavior, volume 16, issue 6, article e71507
Dates: received 24 November 2025; accepted 6 May 2026; published online 27 May 2026; in print June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1002/brb3.71507 · PMID 42204888 · PMCID PMC13240049 · OpenAlex W7162634591
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), intracranial EEG (iEEG / ECoG / SEEG) (modality), human (organism), epilepsy (population)
Methods: Spectral & time-frequency, Preprocessing, Statistics, Connectivity, Graphs, Physiology & signal measures
Keywords: broadband high frequency activity, graph theoretical measures, medication side effect, non‐involved zone, seizure onset zone
MeSH: Anticonvulsants*, Brain*, Drug Resistant Epilepsy*, Nerve Net*, Seizures*, Adult, Electric Stimulation, Electrocorticography, Electroencephalography, Evoked Potentials, Female, Humans, Male, Middle Aged, Neural Pathways, Young Adult (* major topic)
Topic: EEG and Brain-Computer Interfaces (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: American Epilepsy Society Junior Investigator Award (1042632); CURE Epilepsy Taking Flight Award (1061181)); Citizens United for Research in Epilepsy (CURE); American Epilepsy Society
Citations: not cited yet (Europe PMC); 70 references in the paper

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

License: GPL-3.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: d5a705408d62a06db316e36fac2f15463ce26377, 3 April 2026
Languages: MATLAB (24)
Size: 26 files, 24 scripts
Software Heritage: not archived
Found in: “Data Availability Statement”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
26 files

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://github.com/sakkol/CCEP_ASM_connectivity. The dataset used for the current study is available from the corresponding author on reasonable request. The data are not publicly available due to privacy or ethical restrictions.

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://doi.org/10.1002/brb3.71507

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/brb3.71507},
url = {https://doi.org/10.1002/brb3.71507},
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/06/01
VL - 16
IS - 6
SP - e71507
SN - 2162-3279
PB - Wiley
DO - 10.1002/brb3.71507
UR - https://doi.org/10.1002/brb3.71507
LA - en
ER -

CSL-JSON

{
"id": "10.1002/brb3.71507",
"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": "Brain Behav",
"volume": "16",
"issue": "6",
"page": "e71507",
"DOI": "10.1002/brb3.71507",
"PMID": "42204888",
"PMCID": "PMC13240049",
"ISSN": "2162-3279",
"publisher": "Wiley",
"URL": "https://doi.org/10.1002/brb3.71507",
"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/s42003-026-10270-4 [code]
Direct electrical stimulation of the human amygdala enhances recognition memory for objects but not scenes.
Journal: Communications biology
In common: Statistics and Machine Learning Toolbox, 7 references
[2] doi:10.1038/s41467-026-75359-0 [code]
Neural mechanisms of time-forward predictions for naturalistic auditory tone sequences.
Journal: Nature communications
In common: shadedErrorBar, FieldTrip, Signal Processing Toolbox, 1 other tool, EEG, 2 references
[3] doi:10.1093/braincomms/fcag187 [code]
50 Hz Cortical stimulation increases interictal epileptiform discharges at the seizure onset zone.
Journal: Brain communications
In common: intracranial EEG (iEEG / ECoG / SEEG), epilepsy, 4 references
[4] doi:10.1038/s41598-026-49900-6 [code]
Global neural oscillations underlie performance variability and attentional state fluctuations in humans.
Journal: Scientific reports
In common: FieldTrip, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, intracranial EEG (iEEG / ECoG / SEEG), 2 references
[5] doi:10.64898/2026.03.12.710517 [code]
Cortical excitability inversely modulates fMRI connectivity via low-frequency neuronal coupling
Journal: bioRxiv (preprint)
In common: shadedErrorBar, FieldTrip, Signal Processing Toolbox, 1 other tool, 1 reference
[6] doi:10.1371/journal.pbio.3003938 [code]
Theta oscillations tag episodic memories for sleep-dependent consolidation.
Journal: PLoS biology
In common: shadedErrorBar, FieldTrip, Signal Processing Toolbox, 1 other tool, EEG, 1 reference
[7] doi:10.7554/elife.111114 [code]
Theta beta ratio in attention deficit hyperactivity disorder using a multiverse analysis.
Journal: eLife
In common: shadedErrorBar, FieldTrip, Signal Processing Toolbox, 1 other tool, EEG, 1 reference
[8] doi:10.1111/ejn.70660 [code]
Intracranial Electrical Stimulation of the Superior Temporal Gyrus Evokes Rapid Responses in Human Visual Cortex.
Journal: The European journal of neuroscience
In common: intracranial EEG (iEEG / ECoG / SEEG), 4 references
[9] doi:10.1162/netn.a.554 [code]
The turbulent brain: Modeling vortex interactions for understanding human cognition.
Journal: Network neuroscience (Cambridge, Mass.)
In common: shadedErrorBar, FieldTrip, Signal Processing Toolbox, 1 other tool, 1 reference
[10] doi:10.1126/sciadv.aee1002 [code]
Theta oscillations are an organizational unit of odor processing in the olfactory bulb.
Journal: Science advances
In common: shadedErrorBar, FieldTrip, Signal Processing Toolbox, 1 other tool, 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.

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.