Impaired midfrontal‑motor theta phase synchronization characterizes maladaptive motivational behavior in people with obsessive‑compulsive disorder.
The 12 matches · 1 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
- [1] § Materials and methods › Time–frequency decomposition ↔ code/ISPS/TF_singletrial_grouplevel.m, lines 310–330 · score 0.79 · 400–650 ms, 424–800 ms, theta band, 424 ms, 4–8 Hz, 400 ms
- [2] § Materials and methods › Statistical analyses ↔ code/ISPS/TF_singletrial_grouplevel.m, lines 310–330 · score 0.78 · 400–650 ms, 424–800 ms, theta band, 424 ms, bilateral, 400 ms
- [3] § Materials and methods › Individual regulatory orientation ↔ code/Regulatory orientation/relation.m, lines 338–474 · score 0.71 · partial Spearman, residual, BIS, covariates, BAI, BDI
- [4] § Results › Heterogeneous regulatory orientations of midfrontal‑motor coupling and their clinical relevance in OCD ↔ code/Regulatory orientation/Φreg plot.m, lines 239–253 · score 0.63 · white triangles, regulatory orientation, ISPS motor, instrumental action, contours, axis
- [5] § Results › Compared with healthy controls, people with OCD showed heightened Pavlovian bias and reduced learning rates ↔ code/computational_modelling/plot/M5_hcvsocd/DrawCombined_AllInOne2.m, lines 397–470 · score 0.58 · instrumental learning bias, feedback sensitivity, Go bias, Pavlovian bias, HDI, post
- [6] § Materials and methods › Time–frequency decomposition ↔ code/EEGprocessing/TF (group-level).m, lines 754–813 · score 0.58 · Post hoc, electrodes contributed, clusters, congruent, theta
- [7] § Results › Midfrontal theta in OCD supports conflict detection and modulation of motivational biases ↔ code/ISPS/TF_singletrial_grouplevel.m, lines 20–40 · score 0.55 · 400–650 ms, 4–8 Hz, band, 400 ms, electroencephalography, windows
- [8] § Results › Heterogeneous regulatory orientations of midfrontal‑motor coupling and their clinical relevance in OCD ↔ code/Regulatory orientation/Φreg plot.m, lines 91–114 · score 0.53 · regulatory orientation, lPFC, instrumental action, Pavlovian bias, beta, motor
- [9] § Materials and methods › EEG preprocessing ↔ code/EEGprocessing/eegpreprocess.m, lines 179–203 · score 0.52 · EEGLAB, PCA, runica, epoched, cue
- [10] § Materials and methods › EEG preprocessing ↔ code/ISPS/ISPS (subject-level).m, the whole file · a weak match · score 0.52 · EEGLAB, phase synchrony, spline, Laplacian, preprocessing, baseline
- [11] § Results › Compared with healthy controls, people with OCD showed heightened Pavlovian bias and reduced learning rates ↔ code/computational_modelling/modelrun/models4stan.R, lines 810–870 · score 0.51 · feedback sensitivity, Go bias, Pavlovian bias, M3a, M1, likelihood
- [12] § Materials and methods › Computational models ↔ code/computational_modelling/modelrun/models4stan.R, lines 810–870 · score 0.51 · feedback sensitivity, Go bias, M3a, M1, cue, Pavlovian
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 · 718 lines · 27 KB · MIT · 3 matches
- %%%%%%%%%%%%%%%%%%%%% Vectorize all trials at once %%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %% =========================================================================
- % Trial-level midfrontal theta POWER + Inter-channel Phase Coherence (ICPC)
- % Adapted from Swart et al. (2017, DCCN, Nijmegen)
- % For OCD dataset (EEGLAB → FieldTrip) [vectorized version: ICPC computed for all trials at once]
- % =========================================================================
- clear; clc; close all;
- dbstop if error
- %% ====== Paths and dependencies ======
- data_dir = 'H:\MT_all(afterqujizhi)\cueoriandbu\error\HC';
- fileList = dir(fullfile(data_dir, '*.set'));
- nSub = numel(fileList);
- addpath('D:\MATLAB\toolbox\eeglab_current\eeglab2022.0_old');
- addpath('D:\MATLAB\toolbox\fieldtrip-20211209\fieldtrip-20211209');
- ft_defaults;
- %% ====== Analysis parameters ======
- freqRange = [4 8]; % theta band
- timeWin = [0.40 0.65]; % time window of interest (keep 0.40–0.65 s as requested)
- % ---- Electrode group definitions ----
- seedChans = {'E6','E129'}; % Midfrontal (FCz, Cz)
- pfcChans = {'E23','E24','E26','E27','E2','E3','E123','E124'}; % bilateral PFC
- lMotorCh = {'E36','E42','E41','E47'}; % left motor area
- rMotorCh = {'E93','E98','E103','E104'}; % right motor area
- % ---- Group weights (unchanged) ----
- seedweights = [2.9194, 3.4082]; % Midfrontal weights
- tweights_pfc = [0.7948 2.4114 1.2002 4.2642 3.9349 0.3577 1.0100 -1.0324];
- tweights_motor_L = [-1.0139 0.6538 0.8044 0.2330];
- tweights_motor_R = [1.2122 1.0770 0.5535 2.1191];
- % Normalize weights (seed & t-weights) for vectorized use
- sw = seedweights ./ sum(seedweights);
- tw_pfc = tweights_pfc ./ sum(tweights_pfc);
- tw_L = tweights_motor_L ./ sum(tweights_motor_L);
- tw_R = tweights_motor_R ./ sum(tweights_motor_R);
- %% ====== Initialize output matrices ======
- trial2use = cell(nSub,1);
- MFpower = cell(nSub,1);
- ICPC_pfc = cell(nSub,1);
- ICPC_motor_L = cell(nSub,1);
- ICPC_motor_R = cell(nSub,1);
- %% ====== Main loop ======
- for s = 1:nSub
- fprintf('\n=== Processing %s (%d/%d) ===\n', fileList(s).name, s, nSub);
- % --- Step 1: load and convert ---
- EEG = pop_loadset('filename', fileList(s).name, 'filepath', data_dir);
- ft_data = eeglab2fieldtrip(EEG, 'preprocessing');
- % --- Step 2: Laplacian (CSD) ---
- cfg = [];
- cfg.method = 'spline';
- cfg.elec = ft_data.elec;
- scd = ft_scalpcurrentdensity(cfg, ft_data);
- nTrial = numel(scd.trial);
- trial2use{s} = ones(1,nTrial); % Update here if trial exclusion is needed
- %% ===============================================================
- % ① Midfrontal θ Power (trial-wise) —— keep original implementation
- % ===============================================================
- cfg = [];
- cfg.channel = seedChans;
- cfg.bpfilter = 'yes';
- cfg.bpfreq = freqRange;
- filtered = ft_preprocessing(cfg, scd);
- % Hilbert amplitude → square to get power
- cfg = [];
- cfg.hilbert = 'abs';
- hilbertData = ft_preprocessing(cfg, filtered);
- for tr = 1:nTrial
- hilbertData.trial{tr} = hilbertData.trial{tr}.^2;
- end
- % Concatenate + weighted average + zscore
- allP = [hilbertData.trial{:}]; % chan × (time*trial)
- weights4power = repmat(seedweights',1,size(allP,2));
- st_power = zscore(mean(weights4power .* allP,1));
- nTime = size(hilbertData.trial{1},2);
- st_power = reshape(st_power,[nTime,nTrial]);
- % Extract mean within the time window
- iTime = dsearchn(hilbertData.time{1}',timeWin(1)) : ...
- dsearchn(hilbertData.time{1}',timeWin(2));
- MFpower{s} = squeeze(mean(st_power(iTime,:),1)); % 1×nTrial
- %% ===============================================================
- % ② Midfrontal–Lateral PFC ICPC (trial-wise) —— vectorized implementation
- % ===============================================================
- cfg = [];
- cfg.channel = [seedChans pfcChans];
- cfg.bpfilter = 'yes'; cfg.bpfreq = freqRange;
- filtered = ft_preprocessing(cfg, scd);
- cfg = []; cfg.hilbert = 'angle';
- hilbertdata = ft_preprocessing(cfg, filtered);
- % Assemble as [nChan × nTime × nTrial]
- nChan = numel(hilbertdata.label);
- nTime = size(hilbertdata.trial{1},2);
- nTrial = numel(hilbertdata.trial);
- ang = reshape([hilbertdata.trial{:}], nChan, nTime, nTrial);
- % Time-window indices (same as θ power)
- iTime = dsearchn(hilbertdata.time{1}',timeWin(1)) : ...
- dsearchn(hilbertdata.time{1}',timeWin(2));
- % Compute all targets (PFC) and all trials at once:
- % diff1/2: [nTarget × |iTime| × nTrial]
- diff1_all = ang(1, iTime, :) - ang(3:end, iTime, :);
- diff2_all = ang(2, iTime, :) - ang(3:end, iTime, :);
- % PLV (mean across time) → [nTarget × 1 × nTrial]
- plv1 = abs(mean(exp(1i*diff1_all), 2));
- plv2 = abs(mean(exp(1i*diff2_all), 2));
- % Weighted combination of the two seeds → [nTarget × nTrial]
- plv_pfc = squeeze(sw(1).*plv1 + sw(2).*plv2); % after squeeze: [nTarget × nTrial]
- % Linear combination with t-weights (signed) across targets → [1 × nTrial]
- ICPC_pfc_vals = (tw_pfc * plv_pfc); % 1×nTrial
- ICPC_pfc{s} = ICPC_pfc_vals;
- %% ===============================================================
- % ③ Midfrontal–Motor ICPC (Left / Right) —— vectorized implementation
- % ===============================================================
- cfg = [];
- cfg.channel = [seedChans lMotorCh rMotorCh];
- cfg.bpfilter = 'yes'; cfg.bpfreq = freqRange;
- filtered = ft_preprocessing(cfg, scd);
- cfg = []; cfg.hilbert = 'angle';
- hilbertdata = ft_preprocessing(cfg, filtered);
- % Assemble as [nChan × nTime × nTrial]
- nChan = numel(hilbertdata.label);
- nTime = size(hilbertdata.trial{1},2);
- nTrial = numel(hilbertdata.trial);
- ang = reshape([hilbertdata.trial{:}], nChan, nTime, nTrial);
- % Time-window indices
- iTime = dsearchn(hilbertdata.time{1}',timeWin(1)) : ...
- dsearchn(hilbertdata.time{1}',timeWin(2));
- % ---- Left motor (target indices 3:6) ----
- diff1_L = ang(1, iTime, :) - ang(3:6, iTime, :); % [4 × |iTime| × nTrial]
- diff2_L = ang(2, iTime, :) - ang(3:6, iTime, :);
- plv1_L = abs(mean(exp(1i*diff1_L), 2)); % [4 × 1 × nTrial]
- plv2_L = abs(mean(exp(1i*diff2_L), 2));
- plv_L = squeeze(sw(1).*plv1_L + sw(2).*plv2_L); % [4 × nTrial]
- Lvals = (tw_L * plv_L); % [1 × nTrial]
- ICPC_motor_L{s} = Lvals;
- % ---- Right motor (target indices 7:10) ----
- diff1_R = ang(1, iTime, :) - ang(7:10, iTime, :); % [4 × |iTime| × nTrial]
- diff2_R = ang(2, iTime, :) - ang(7:10, iTime, :);
- plv1_R = abs(mean(exp(1i*diff1_R), 2));
- plv2_R = abs(mean(exp(1i*diff2_R), 2));
- plv_R = squeeze(sw(1).*plv1_R + sw(2).*plv2_R); % [4 × nTrial]
- Rvals = (tw_R * plv_R); % [1 × nTrial]
- ICPC_motor_R{s} = Rvals;
- end
- %% ====== Save results ======
- save(fullfile(data_dir,'TrialLevel_MFpower_ICPC.mat'), ...
- 'MFpower','ICPC_pfc','ICPC_motor_L','ICPC_motor_R','trial2use');
- fprintf('Saved trial-level θ-power and ICPC results (ICPC was computed with vectorization).\n');
- %% Export the full CSV data
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %% ================== Configuration ==================
- data_dir = 'H:\MT_all(afterqujizhi)\cueoriandbu\error\HC';
- mat_file = fullfile(data_dir, 'TrialLevel_MFpower_ICPC.mat');
- out_csv = fullfile(data_dir, 'TrialLevel_MFpower_ICPC.csv');
- %% ================== Load data ==================
- S = load(mat_file, 'MFpower','ICPC_pfc','ICPC_motor_L','ICPC_motor_R','trial2use');
- MFpower = S.MFpower;
- ICPC_pfc = S.ICPC_pfc;
- ICPC_motor_L = S.ICPC_motor_L;
- ICPC_motor_R = S.ICPC_motor_R;
- trial2use = S.trial2use;
- % File order consistent with the original computation (.set order in the folder)
- fileList = dir(fullfile(data_dir, '*.set'));
- nSub = numel(fileList);
- % Basic consistency check (optional)
- if nSub ~= numel(MFpower)
- warning('fileList count (%d) does not match MFpower subject count (%d). The smaller one will be used.', nSub, numel(MFpower));
- end
- nSub_use = min([nSub, numel(MFpower), numel(ICPC_pfc), numel(ICPC_motor_L), numel(ICPC_motor_R), numel(trial2use)]);
- %% ================== Count total rows and preallocate ==================
- rowsPerSub = zeros(nSub_use,1);
- for s = 1:nSub_use
- if ~isempty(MFpower{s})
- rowsPerSub(s) = numel(MFpower{s});
- else
- rowsPerSub(s) = 0;
- end
- end
- N = sum(rowsPerSub);
- sub_col = strings(N,1);
- trial_col = zeros(N,1);
- MFpower_col = nan(N,1);
- ICPCpfc_col = nan(N,1);
- l_ICPCmotor_col = nan(N,1);
- r_ICPCmotor_col = nan(N,1);
- trial2use_col = nan(N,1);
- %% ================== Expand to long table ==================
- ptr = 1;
- for s = 1:nSub_use
- % Get the four measures and trial2use for this subject (all are 1×nTrial)
- mp = MFpower{s};
- pf = ICPC_pfc{s};
- lmo = ICPC_motor_L{s};
- rmo = ICPC_motor_R{s};
- tuse = trial2use{s};
- if isempty(mp)
- continue; % Skip empty subject
- end
- nTrial = numel(mp);
- % sub: first four characters of each filename (without extension)
- fname = fileList(s).name; % e.g. 'OCD01.set' or 'x130.set'
- base = erase(string(fname), '.set'); % remove extension
- if strlength(base) >= 4
- subID = extractBetween(base, 1, 4);
- else
- subID = base; % use original if length is < 4
- end
- % Write index range
- idx = ptr:(ptr + nTrial - 1);
- sub_col(idx) = repmat(subID, nTrial, 1);
- trial_col(idx) = (1:nTrial).'; % trial index starts from 1
- MFpower_col(idx) = mp(:);
- ICPCpfc_col(idx) = pf(:);
- l_ICPCmotor_col(idx) = lmo(:);
- r_ICPCmotor_col(idx) = rmo(:);
- % trial2use may be 1×nTrial or empty; set to 0 if empty
- if ~isempty(tuse)
- trial2use_col(idx) = tuse(:);
- else
- trial2use_col(idx) = 0;
- end
- ptr = ptr + nTrial;
- end
- %% ================== Build table and write CSV ==================
- T = table( ...
- sub_col, trial_col, ...
- MFpower_col, ICPCpfc_col, l_ICPCmotor_col, r_ICPCmotor_col, trial2use_col, ...
- 'VariableNames', {'sub','trial','MFpower','ICPCpfc','l_ICPCmotor','r_ICPCmotor','trial2use'} ...
- );
- writetable(T, out_csv);
- fprintf('CSV written: %s\nTotal rows = %d (sub×trial long table)\n', out_csv, height(T));
- %% OCD
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%%% Vectorize all trials at once %%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %% =========================================================================
- % Trial-level midfrontal theta POWER + Inter-channel Phase Coherence (ICPC)
- % Adapted from Swart et al. (2017, DCCN, Nijmegen)
- % For OCD dataset (EEGLAB → FieldTrip) [vectorized version: ICPC computed for all trials at once]
- % =========================================================================
- clear; clc; close all;
- dbstop if error
- %% ====== Paths and dependencies ======
- data_dir = 'H:\MT_all(afterqujizhi)\cueoriandbu\error\OCD';
- fileList = dir(fullfile(data_dir, '*.set'));
- nSub = numel(fileList);
- addpath('D:\MATLAB\toolbox\eeglab_current\eeglab2022.0_old');
- addpath('D:\MATLAB\toolbox\fieldtrip-20211209\fieldtrip-20211209');
- ft_defaults;
- %% ====== Analysis parameters ======
- freqRange = [4 8]; % theta band
- timeWin = [0.424 0.8]; % time window of interest (keep 0.40–0.65 s as requested)
- % ---- Electrode group definitions ----
- seedChans = {'E6','E129'}; % Midfrontal (FCz, Cz)
- pfcChans = {'E23','E24','E26','E27','E2','E3','E123','E124'}; % bilateral PFC
- lMotorCh = {'E36','E42','E41','E47'}; % left motor area
- rMotorCh = {'E93','E98','E103','E104'}; % right motor area
- % ---- Group weights (unchanged) ----
- seedweights = [3.4548, 4.4553]; % Midfrontal weights
- tweights_pfc = [0.4255 2.1589 -0.2652 1.4101 0.8377 2.5389 1.6312 2.8189];
- tweights_motor_L = [-1.1191 0.0210 1.1295 0.1666];
- tweights_motor_R = [1.4087 0.7652 0.1929 0.0753];
- % Normalize weights (seed & t-weights) for vectorized use
- sw = seedweights ./ sum(seedweights);
- tw_pfc = tweights_pfc ./ sum(tweights_pfc);
- tw_L = tweights_motor_L ./ sum(tweights_motor_L);
- tw_R = tweights_motor_R ./ sum(tweights_motor_R);
- %% ====== Initialize output matrices ======
- trial2use = cell(nSub,1);
- MFpower = cell(nSub,1);
- ICPC_pfc = cell(nSub,1);
- ICPC_motor_L = cell(nSub,1);
- ICPC_motor_R = cell(nSub,1);
- %% ====== Main loop ======
- for s = 1:nSub
- fprintf('\n=== Processing %s (%d/%d) ===\n', fileList(s).name, s, nSub);
- % --- Step 1: load and convert ---
- EEG = pop_loadset('filename', fileList(s).name, 'filepath', data_dir);
- ft_data = eeglab2fieldtrip(EEG, 'preprocessing');
- % --- Step 2: Laplacian (CSD) ---
- cfg = [];
- cfg.method = 'spline';
- cfg.elec = ft_data.elec;
- scd = ft_scalpcurrentdensity(cfg, ft_data);
- nTrial = numel(scd.trial);
- trial2use{s} = ones(1,nTrial); % Update here if trial exclusion is needed
- %% ===============================================================
- % ① Midfrontal θ Power (trial-wise) —— keep original implementation
- % ===============================================================
- cfg = [];
- cfg.channel = seedChans;
- cfg.bpfilter = 'yes';
- cfg.bpfreq = freqRange;
- filtered = ft_preprocessing(cfg, scd);
- % Hilbert amplitude → square to get power
- cfg = [];
- cfg.hilbert = 'abs';
- hilbertData = ft_preprocessing(cfg, filtered);
- for tr = 1:nTrial
- hilbertData.trial{tr} = hilbertData.trial{tr}.^2;
- end
- % Concatenate + weighted average + zscore
- allP = [hilbertData.trial{:}]; % chan × (time*trial)
- weights4power = repmat(seedweights',1,size(allP,2));
- st_power = zscore(mean(weights4power .* allP,1));
- nTime = size(hilbertData.trial{1},2);
- st_power = reshape(st_power,[nTime,nTrial]);
- % Extract mean within the time window
- iTime = dsearchn(hilbertData.time{1}',timeWin(1)) : ...
- dsearchn(hilbertData.time{1}',timeWin(2));
- MFpower{s} = squeeze(mean(st_power(iTime,:),1)); % 1×nTrial
- %% ===============================================================
- % ② Midfrontal–Lateral PFC ICPC (trial-wise) —— vectorized implementation
- % ===============================================================
- cfg = [];
- cfg.channel = [seedChans pfcChans];
- cfg.bpfilter = 'yes'; cfg.bpfreq = freqRange;
- filtered = ft_preprocessing(cfg, scd);
- cfg = []; cfg.hilbert = 'angle';
- hilbertdata = ft_preprocessing(cfg, filtered);
- % Assemble as [nChan × nTime × nTrial]
- nChan = numel(hilbertdata.label);
- nTime = size(hilbertdata.trial{1},2);
- nTrial = numel(hilbertdata.trial);
- ang = reshape([hilbertdata.trial{:}], nChan, nTime, nTrial);
- % Time-window indices (same as θ power)
- iTime = dsearchn(hilbertdata.time{1}',timeWin(1)) : ...
- dsearchn(hilbertdata.time{1}',timeWin(2));
- % Compute all targets (PFC) and all trials at once:
- % diff1/2: [nTarget × |iTime| × nTrial]
- diff1_all = ang(1, iTime, :) - ang(3:end, iTime, :);
- diff2_all = ang(2, iTime, :) - ang(3:end, iTime, :);
- % PLV (mean across time) → [nTarget × 1 × nTrial]
- plv1 = abs(mean(exp(1i*diff1_all), 2));
- plv2 = abs(mean(exp(1i*diff2_all), 2));
- % Weighted combination of the two seeds → [nTarget × nTrial]
- plv_pfc = squeeze(sw(1).*plv1 + sw(2).*plv2); % after squeeze: [nTarget × nTrial]
- % Linear combination with t-weights (signed) across targets → [1 × nTrial]
- ICPC_pfc_vals = (tw_pfc * plv_pfc); % 1×nTrial
- ICPC_pfc{s} = ICPC_pfc_vals;
- %% ===============================================================
- % ③ Midfrontal–Motor ICPC (Left / Right) —— vectorized implementation
- % ===============================================================
- cfg = [];
- cfg.channel = [seedChans lMotorCh rMotorCh];
- cfg.bpfilter = 'yes'; cfg.bpfreq = freqRange;
- filtered = ft_preprocessing(cfg, scd);
- cfg = []; cfg.hilbert = 'angle';
- hilbertdata = ft_preprocessing(cfg, filtered);
- % Assemble as [nChan × nTime × nTrial]
- nChan = numel(hilbertdata.label);
- nTime = size(hilbertdata.trial{1},2);
- nTrial = numel(hilbertdata.trial);
- ang = reshape([hilbertdata.trial{:}], nChan, nTime, nTrial);
- % Time-window indices
- iTime = dsearchn(hilbertdata.time{1}',timeWin(1)) : ...
- dsearchn(hilbertdata.time{1}',timeWin(2));
- % ---- Left motor (target indices 3:6) ----
- diff1_L = ang(1, iTime, :) - ang(3:6, iTime, :); % [4 × |iTime| × nTrial]
- diff2_L = ang(2, iTime, :) - ang(3:6, iTime, :);
- plv1_L = abs(mean(exp(1i*diff1_L), 2)); % [4 × 1 × nTrial]
- plv2_L = abs(mean(exp(1i*diff2_L), 2));
- plv_L = squeeze(sw(1).*plv1_L + sw(2).*plv2_L); % [4 × nTrial]
- Lvals = (tw_L * plv_L); % [1 × nTrial]
- ICPC_motor_L{s} = Lvals;
- % ---- Right motor (target indices 7:10) ----
- diff1_R = ang(1, iTime, :) - ang(7:10, iTime, :); % [4 × |iTime| × nTrial]
- diff2_R = ang(2, iTime, :) - ang(7:10, iTime, :);
- plv1_R = abs(mean(exp(1i*diff1_R), 2));
- plv2_R = abs(mean(exp(1i*diff2_R), 2));
- plv_R = squeeze(sw(1).*plv1_R + sw(2).*plv2_R); % [4 × nTrial]
- Rvals = (tw_R * plv_R); % [1 × nTrial]
- ICPC_motor_R{s} = Rvals;
- end
- %% ====== Save results ======
- save(fullfile(data_dir,'TrialLevel_MFpower_ICPC.mat'), ...
- 'MFpower','ICPC_pfc','ICPC_motor_L','ICPC_motor_R','trial2use');
- fprintf('Saved trial-level θ-power and ICPC results (ICPC was computed with vectorization).\n');
- clc; clear;
- %% Export the full CSV data
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %% ================== Configuration ==================
- data_dir = 'H:\MT_all(afterqujizhi)\cueoriandbu\error\OCD';
- mat_file = fullfile(data_dir, 'TrialLevel_MFpower_ICPC.mat');
- out_csv = fullfile(data_dir, 'TrialLevel_MFpower_ICPC.csv');
- %% ================== Load data ==================
- S = load(mat_file, 'MFpower','ICPC_pfc','ICPC_motor_L','ICPC_motor_R','trial2use');
- MFpower = S.MFpower;
- ICPC_pfc = S.ICPC_pfc;
- ICPC_motor_L = S.ICPC_motor_L;
- ICPC_motor_R = S.ICPC_motor_R;
- trial2use = S.trial2use;
- % File order consistent with the original computation (.set order in the folder)
- fileList = dir(fullfile(data_dir, '*.set'));
- nSub = numel(fileList);
- % Basic consistency check (optional)
- if nSub ~= numel(MFpower)
- warning('fileList count (%d) does not match MFpower subject count (%d). The smaller one will be used.', nSub, numel(MFpower));
- end
- nSub_use = min([nSub, numel(MFpower), numel(ICPC_pfc), numel(ICPC_motor_L), numel(ICPC_motor_R), numel(trial2use)]);
- %% ================== Count total rows and preallocate ==================
- rowsPerSub = zeros(nSub_use,1);
- for s = 1:nSub_use
- if ~isempty(MFpower{s})
- rowsPerSub(s) = numel(MFpower{s});
- else
- rowsPerSub(s) = 0;
- end
- end
- N = sum(rowsPerSub);
- sub_col = strings(N,1);
- trial_col = zeros(N,1);
- MFpower_col = nan(N,1);
- ICPCpfc_col = nan(N,1);
- l_ICPCmotor_col = nan(N,1);
- r_ICPCmotor_col = nan(N,1);
- trial2use_col = nan(N,1);
- %% ================== Expand to long table ==================
- ptr = 1;
- for s = 1:nSub_use
- % Get the four measures and trial2use for this subject (all are 1×nTrial)
- mp = MFpower{s};
- pf = ICPC_pfc{s};
- lmo = ICPC_motor_L{s};
- rmo = ICPC_motor_R{s};
- tuse = trial2use{s};
- if isempty(mp)
- continue; % Skip empty subject
- end
- nTrial = numel(mp);
- % sub: first four characters of each filename (without extension)
- fname = fileList(s).name; % e.g. 'OCD01.set' or 'x130.set'
- base = erase(string(fname), '.set'); % remove extension
- if strlength(base) >= 5
- subID = extractBetween(base, 1, 5);
- else
- subID = base; % use original if length is < 4
- end
- % Write index range
- idx = ptr:(ptr + nTrial - 1);
- sub_col(idx) = repmat(subID, nTrial, 1);
- trial_col(idx) = (1:nTrial).'; % trial index starts from 1
- MFpower_col(idx) = mp(:);
- ICPCpfc_col(idx) = pf(:);
- l_ICPCmotor_col(idx) = lmo(:);
- r_ICPCmotor_col(idx) = rmo(:);
- % trial2use may be 1×nTrial or empty; set to 0 if empty
- if ~isempty(tuse)
- trial2use_col(idx) = tuse(:);
- else
- trial2use_col(idx) = 0;
- end
- ptr = ptr + nTrial;
- end
- %% ================== Build table and write CSV ==================
- T = table( ...
- sub_col, trial_col, ...
- MFpower_col, ICPCpfc_col, l_ICPCmotor_col, r_ICPCmotor_col, trial2use_col, ...
- 'VariableNames', {'sub','trial','MFpower','ICPCpfc','l_ICPCmotor','r_ICPCmotor','trial2use'} ...
- );
- writetable(T, out_csv);
- fprintf('CSV written: %s\nTotal rows = %d (sub×trial long table)\n', out_csv, height(T));
- clc; clear;
- %% Generate CSV and MAT data for model fitting
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %% ================== Configuration ==================
- xlsx_file = 'H:\MT_all(afterqujizhi)\PIT_model.xlsx';
- in_sheet = 'model';
- out_csv = 'H:\MT_all(afterqujizhi)\TrialLevel_MFpower_ICPC.csv';
- out_mat = 'H:\MT_all(afterqujizhi)\TrialLevel_MFpower_ICPC.mat';
- TARGET_N = 73; % Target output is 73×1 cell
- %% ================== Load and basic check ==================
- T = readtable(xlsx_file, 'Sheet', in_sheet);
- % Required columns (case-insensitive)
- needCols = {'sub','group','trial','stimulus','MFpower','ICPCpfc', ...
- 'l_ICPCmotor','r_ICPCmotor','IVleft','IVright','trial2use'};
- % Helper function for case-insensitive column access
- getVar = @(tbl,name) tbl.(tbl.Properties.VariableNames{ ...
- find(strcmpi(tbl.Properties.VariableNames,name),1)});
- % Verify that all columns exist
- for k = 1:numel(needCols)
- if ~any(strcmpi(T.Properties.VariableNames, needCols{k}))
- error('Column "%s" was not found (sheet %s).', needCols{k}, in_sheet);
- end
- end
- %% ===== Helper: safely convert any column to double; unparseable values (empty/non-numeric) -> NaN =====
- numify = @(v) ( ...
- (isnumeric(v) .* double(v)) + ...
- (~isnumeric(v) .* str2double(string(v))) );
- % Note: for strings/categorical/cells, use string(...) then str2double(...);
- % blanks/unparseable values become NaN
- %% ===== Clean the four measure columns: empty/missing -> NaN (used for both CSV and MAT) =====
- MFpower_all = numify(getVar(T,'MFpower'));
- ICPCpfc_all = numify(getVar(T,'ICPCpfc'));
- lICPC_all = numify(getVar(T,'l_ICPCmotor'));
- rICPC_all = numify(getVar(T,'r_ICPCmotor'));
- %% ================== 1) Export CSV (in the specified column order) ==================
- Tout = table();
- for k = 1:numel(needCols)
- Tout.(needCols{k}) = getVar(T, needCols{k});
- end
- % Overwrite the original four columns with cleaned versions so empty values are written as NaN in CSV
- Tout.MFpower = MFpower_all;
- Tout.ICPCpfc = ICPCpfc_all;
- Tout.l_ICPCmotor = lICPC_all;
- Tout.r_ICPCmotor = rICPC_all;
- writetable(Tout, out_csv);
- fprintf('CSV exported: %s (%d rows × %d columns)\n', out_csv, height(Tout), width(Tout));
- %% ================== 2) Build 73×1 cell structure and save MAT ==================
- % —— Get and convert the other columns ——
- sub_raw = getVar(T, 'sub');
- group_raw = getVar(T, 'group');
- trial_all = numify(getVar(T, 'trial'));
- stim_all = numify(getVar(T, 'stimulus'));
- IVleft_all = numify(getVar(T, 'IVleft'));
- IVright_all = numify(getVar(T, 'IVright'));
- trial2use_all = numify(getVar(T, 'trial2use'));
- % —— Convert sub to string for grouping; also generate a numeric sub label for each row ——
- sub_str = string(sub_raw);
- sub_num_all = nan(height(T),1);
- tryDigits = regexp(sub_str, '(\d+)', 'match', 'once'); % extract digits, e.g. 'HC30'->'30'
- hasDigits = ~cellfun(@isempty, tryDigits);
- sub_num_all(hasDigits) = str2double(string(tryDigits(hasDigits)));
- % For rows where digits cannot be extracted, try direct numeric conversion
- isnanMask = isnan(sub_num_all);
- sub_num_all(isnanMask) = str2double(sub_str(isnanMask));
- % —— Map group to numeric: HC->0, OCD->1; otherwise try numeric conversion ——
- group_str = upper(strtrim(string(group_raw)));
- group_num_all = nan(height(T),1);
- group_num_all(group_str=="HC") = 0;
- group_num_all(group_str=="OCD") = 1;
- mask_nan = isnan(group_num_all);
- group_num_all(mask_nan) = str2double(group_str(mask_nan));
- % —— Group by sub_str (stable order) ——
- [subs_unique, ~, G] = unique(sub_str, 'stable'); % G: group index for each row
- nSub_actual = numel(subs_unique);
- % Preallocate cell: first by actual subject count, then align to 73
- fields = {'sub','group','trial','stimulus','MFpower','ICPCpfc', ...
- 'l_ICPCmotor','r_ICPCmotor','IVleft','IVright','trial2use'};
- S = struct();
- for f = 1:numel(fields)
- S.(fields{f}) = cell(nSub_actual,1);
- end
- % —— Fill each cell by subject (1×trial row) ——
- for i = 1:nSub_actual
- idx = (G == i);
- % Sort by trial to keep consistent order
- [trial_i, order] = sort(trial_all(idx));
- pick = find(idx);
- pick = pick(order);
- % sub: use the numeric sub label; if all NaN, fall back to group index i
- sub_num_i = sub_num_all(pick);
- if all(isnan(sub_num_i))
- sub_num_i = repmat(double(i), numel(pick), 1);
- end
- % group: numeric value (HC=0/OCD=1/otherwise try numeric conversion/still NaN -> NaN)
- group_num_i = group_num_all(pick);
- % Write into structure (convert to 1×N row); all fields are double row vectors
- S.sub{i} = sub_num_i(:).';
- S.group{i} = group_num_i(:).';
- S.trial{i} = trial_i(:).';
- S.stimulus{i} = stim_all(pick).';
- S.MFpower{i} = MFpower_all(pick).';
- S.ICPCpfc{i} = ICPCpfc_all(pick).';
- S.l_ICPCmotor{i} = lICPC_all(pick).';
- S.r_ICPCmotor{i} = rICPC_all(pick).';
- S.IVleft{i} = IVleft_all(pick).';
- S.IVright{i} = IVright_all(pick).';
- S.trial2use{i} = trial2use_all(pick).';
- end
- % —— Align to 73×1 cell: pad with empty cells if fewer, keep all if more ——
- if nSub_actual < TARGET_N
- padN = TARGET_N - nSub_actual;
- for f = 1:numel(fields)
- S.(fields{f}) = [S.(fields{f}); repmat({[]}, padN, 1)];
- end
- fprintf('Actual subject count %d < %d, padded with empty cells to %d×1.\n', nSub_actual, TARGET_N, TARGET_N);
- elseif nSub_actual > TARGET_N
- fprintf('Actual subject count %d > %d, saving the actual subject count without truncation.\n', nSub_actual, TARGET_N);
- end
- % —— Save MAT ——
- save(out_mat, '-struct', 'S');
- fprintf('MAT saved: %s\nFields: %s\nSize: %d×1 cell (if >73, actual subject count is kept)\n', ...
- out_mat, strjoin(fields, ', '), max(TARGET_N, nSub_actual));
TF_singletrial_grouplevel.m at commit 3eae95c, under MIT · at the source
Overview
- School of Psychology, South China Normal University, Guangzhou, China
- Department of Psychiatry, Zhejiang Key Laboratory of Drug Addiction & Brain Health, Affiliated Kangning Hospital of Ningbo University (Ningbo Kangning Hospital), Ningbo, China
- School of Psychology, Key Laboratory of Brain Cognition and Emotional Health of Guangdong Higher Education Institutes, and Shenzhen Key Laboratory of Affective and Social Cognitive Science, Shenzhen University, Shenzhen, China
- Department of Psychology, Colorado State University, Fort Collins, Colorado, United States of America
Abstract
Obsessive‑compulsive disorder (OCD) is characterized by an insight‑action dissociation, in which people with OCD recognize that their behavior is irrational but still struggle to inhibit habitual responses. This dissociation may be related to abnormally strong motivational biases, reflected in excessive tendencies to approach reward and avoid punishment. We employed a motivational Go/
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 12 matches between paragraphs and lines of code.
Zenodo 21964069
Availability: 1 check, the latest on 26 September 2026: the link answers (HTTP 200)
- 26 September 2026: the link answers (HTTP 200)
62 files
- code/
EEGprocessing/ , R, 147 linesBayesFactor ANOVA.R - code/
EEGprocessing/ , SPSS, 237 linesEEGpav_accuracy.sps - code/
EEGprocessing/ , R, 623 linesEEGpav_mixedmodels.R - code/
EEGprocessing/ , MATLAB, 1,533 linesTF (group-level).m - code/
EEGprocessing/ , MATLAB, 265 linesTF (subject-level).m - code/
EEGprocessing/ , MATLAB, 868 lineseegfigureplot.m - code/
EEGprocessing/ , MATLAB, 203 lineseegpreprocess.m - code/
EEGprocessing/ , SPSS, 63 linesfeedback_spss.sps - code/
EEGprocessing/ , R, 15 linessimpef.R - code/
ISPS/ , SPSS, 126 linesEEGpav_icpc_hc.sps - code/
ISPS/ , SPSS, 109 linesEEGpav_icpc_ocddelete6.s ps - code/
ISPS/ , SPSS, 102 linesEEGpav_icpchc& ocd.sps - code/
ISPS/ , MATLAB, 1,327 linesISPS (group-level).m - code/
ISPS/ , MATLAB, 137 linesISPS (subject-level).m - code/
ISPS/ , MATLAB, 613 linesISPSplot.m - code/
ISPS/ , MATLAB, 718 linesTF_singletrial_groupleve l.m - code/
Regulatory orientation/ , MATLAB, 486 linesrelation.m - code/
Regulatory orientation/ , R, 185 linesΦreg Calculation.R - code/
Regulatory orientation/ , MATLAB, 470 lines, 2 matchesΦreg plot.m - code/
behavior/ , R, 1,078 linesEEGpav_mixedmodels.R - code/
behavior/ , MATLAB, 102 linesEEGpav_prepStan4Reeg.m - code/
behavior/ , MATLAB, 236 linesbehaviorplot.m - code/
behavior/ , MATLAB, 501 linesboundedline.m - code/
behavior/ , MATLAB, 360 linesdata.m - code/
behavior/ , R, 15 linessimpef.R - code/
computational_modelling/ , R, 144 linesRunR.R - code/
computational_modelling/ , R, 115 lineseegRdatarun.R - code/
computational_modelling/ , MATLAB, 385 lineshelpfunctions/ boundedline.m - code/
computational_modelling/ , MATLAB, 14 lineshelpfunctions/ mycsvwrite.m - code/
computational_modelling/ , MATLAB, 23 lineshelpfunctions/ plot_model.m - code/
computational_modelling/ , R, 34 linesmodelrun/ extractEstimates.R - code/
computational_modelling/ , R, 117 linesmodelrun/ fitmodel.R - code/
computational_modelling/ , R, 23 linesmodelrun/ getWAIC.R - code/
computational_modelling/ , R, 4,028 linesmodelrun/ models4stan.R - code/
computational_modelling/ , R, 36 linesmodelrun/ plotFits.R - code/
computational_modelling/ , R, 49 linesmodelrun/ waic.R - code/
computational_modelling/ , R, 134 linesplot/ M12M16M19M21beta_output. R - code/
computational_modelling/ , R, 346 linesplot/ M3c_theta& conflictoutput.R - code/
computational_modelling/ , MATLAB, 554 linesplot/ M5_hcvsocd/ DrawCombined_AllInOne2.m - code/
computational_modelling/ , R, 306 linesplot/ M5_hcvsocd/ M5dataoutput.R - code/
computational_modelling/ , MATLAB, 181 linesplot/ WAICplot/ DrawHC_WAIC_Set1.m - code/
computational_modelling/ , MATLAB, 186 linesplot/ WAICplot/ DrawHC_WAIC_Set2.m - code/
computational_modelling/ , MATLAB, 178 linesplot/ WAICplot/ DrawHC_WAIC_Set3.m - code/
computational_modelling/ , MATLAB, 197 linesplot/ WAICplot/ DrawOCD_WAIC_Set1.m - code/
computational_modelling/ , MATLAB, 211 linesplot/ WAICplot/ DrawOCD_WAIC_Set2right.m - code/
computational_modelling/ , MATLAB, 209 linesplot/ WAICplot/ DrawOCD_WAIC_Set3right.m - code/
computational_modelling/ , R, 128 linesplot/ WAICplot/ WAIC_output.R - code/
computational_modelling/ , R, 52 linesplot/ checkRhat.R - code/
computational_modelling/ , R, 94 linesplot/ extractEstimates.R - code/
computational_modelling/ , R, 99 linesplot/ extractPosteriors.R - code/
computational_modelling/ , R, 116 linesplot/ rebuttal_computeR2.R - code/
computational_modelling/ , MATLAB, 368 linesplot/ theta& conflictplot.m - code/
computational_modelling/ , MATLAB, 276 linesplot/ βplot/ HCdraw_m12_plot26.m - code/
computational_modelling/ , MATLAB, 262 linesplot/ βplot/ HCdraw_m16_plot26.m - code/
computational_modelling/ , MATLAB, 261 linesplot/ βplot/ HCdraw_m19_plot26.m - code/
computational_modelling/ , MATLAB, 213 linesplot/ βplot/ OCDdraw_m12_plot26.m - code/
computational_modelling/ , MATLAB, 264 linesplot/ βplot/ OCDdraw_m16_plot26.m - code/
computational_modelling/ , MATLAB, 284 linesplot/ βplot/ OCDdraw_m21_plot26.m - code/
computational_modelling/ , R, 63 linesplot/ βplot/ βdataoutput_plot.R - code/
computational_modelling/ , R, 148 linesprepEEG4stan.R - LICENSE.txt, License, 21 lines
- README.md, Text, 143 lines
yupang11/motivational-biases-in-ocd
3eae95c040fba849171a37264ea861c440dfe66d, 16 August 2026Availability: 1 check, the latest on 26 September 2026: the link answers
- 26 September 2026: the link answers
53 files
- code/
EEGprocessing/ , R, 147 linesBayesFactor ANOVA.R - code/
EEGprocessing/ , SPSS, 237 linesEEGpav_accuracy.sps - code/
EEGprocessing/ , R, 623 linesEEGpav_mixedmodels.R - code/
EEGprocessing/ , MATLAB, 1,533 lines, 1 matchTF (group-level).m - code/
EEGprocessing/ , MATLAB, 265 linesTF (subject-level).m - code/
EEGprocessing/ , MATLAB, 868 lineseegfigureplot.m - code/
EEGprocessing/ , MATLAB, 203 lines, 1 matcheegpreprocess.m - code/
EEGprocessing/ , SPSS, 63 linesfeedback_spss.sps - code/
EEGprocessing/ , R, 15 linessimpef.R - code/
ISPS/ , SPSS, 126 linesEEGpav_icpc_hc.sps - code/
ISPS/ , SPSS, 109 linesEEGpav_icpc_ocddelete6.s ps - code/
ISPS/ , SPSS, 102 linesEEGpav_icpchc& ocd.sps - code/
ISPS/ , MATLAB, 1,327 linesISPS (group-level).m - code/
ISPS/ , MATLAB, 137 lines, 1 matchISPS (subject-level).m - code/
ISPS/ , MATLAB, 613 linesISPSplot.m - code/
ISPS/ , MATLAB, 718 lines, 3 matchesTF_singletrial_groupleve l.m - code/
Regulatory orientation/ , MATLAB, 486 lines, 1 matchrelation.m - code/
behavior/ , R, 1,078 linesEEGpav_mixedmodels.R - code/
behavior/ , MATLAB, 102 linesEEGpav_prepStan4Reeg.m - code/
behavior/ , MATLAB, 236 linesbehaviorplot.m - code/
behavior/ , MATLAB, 501 linesboundedline.m - code/
behavior/ , MATLAB, 360 linesdata.m - code/
behavior/ , R, 15 linessimpef.R - code/
computational_modelling/ , R, 144 linesRunR.R - code/
computational_modelling/ , R, 115 lineseegRdatarun.R - code/
computational_modelling/ , MATLAB, 385 lineshelpfunctions/ boundedline.m - code/
computational_modelling/ , MATLAB, 14 lineshelpfunctions/ mycsvwrite.m - code/
computational_modelling/ , MATLAB, 23 lineshelpfunctions/ plot_model.m - code/
computational_modelling/ , R, 34 linesmodelrun/ extractEstimates.R - code/
computational_modelling/ , R, 117 linesmodelrun/ fitmodel.R - code/
computational_modelling/ , R, 23 linesmodelrun/ getWAIC.R - code/
computational_modelling/ , R, 4,028 lines, 2 matchesmodelrun/ models4stan.R - code/
computational_modelling/ , R, 36 linesmodelrun/ plotFits.R - code/
computational_modelling/ , R, 49 linesmodelrun/ waic.R - code/
computational_modelling/ , R, 134 linesplot/ M12M16M19M21beta_output. R - code/
computational_modelling/ , R, 346 linesplot/ M3c_theta& conflictoutput.R - code/
computational_modelling/ , MATLAB, 554 lines, 1 matchplot/ M5_hcvsocd/ DrawCombined_AllInOne2.m - code/
computational_modelling/ , R, 306 linesplot/ M5_hcvsocd/ M5dataoutput.R - code/
computational_modelling/ , MATLAB, 181 linesplot/ WAICplot/ DrawHC_WAIC_Set1.m - code/
computational_modelling/ , MATLAB, 186 linesplot/ WAICplot/ DrawHC_WAIC_Set2.m - code/
computational_modelling/ , MATLAB, 178 linesplot/ WAICplot/ DrawHC_WAIC_Set3.m - code/
computational_modelling/ , MATLAB, 197 linesplot/ WAICplot/ DrawOCD_WAIC_Set1.m - code/
computational_modelling/ , MATLAB, 211 linesplot/ WAICplot/ DrawOCD_WAIC_Set2right.m - code/
computational_modelling/ , MATLAB, 209 linesplot/ WAICplot/ DrawOCD_WAIC_Set3right.m - code/
computational_modelling/ , R, 128 linesplot/ WAICplot/ WAIC_output.R - code/
computational_modelling/ , R, 52 linesplot/ checkRhat.R - code/
computational_modelling/ , R, 94 linesplot/ extractEstimates.R - code/
computational_modelling/ , R, 99 linesplot/ extractPosteriors.R - code/
computational_modelling/ , R, 116 linesplot/ rebuttal_computeR2.R - code/
computational_modelling/ , MATLAB, 368 linesplot/ theta& conflictplot.m - code/
computational_modelling/ , R, 148 linesprepEEG4stan.R - LICENSE.txt, License, 21 lines
- README.md, Text, 143 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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 111 scripts, each with its path and the digest of its content;
- 12 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
The individual numerical data underlying the main figures are provided in the Supporting information files (S1–S6 Data). All analysis code and raw data 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 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 12 MeSH terms, 2 funders, 148 references.
Cite
This paper
Pang, Y., Zhou, D., Peng, Z., Liu, W., Huang, R., Seger, C. A., & Chen, Q. (2026). Impaired midfrontal‑motor theta phase synchronization characterizes maladaptive motivational behavior in people with obsessive‑compulsive disorder. PLoS biology, 24(9), e3003979. https://
BibTeX
@article{pang2026impaire
author = {Pang, Yu and Zhou, Dongsheng and Peng, Ziwen and Liu, Wanting and Huang, Ruojie and Seger, Carol A and Chen, Qi},
title = {{Impaired midfrontal‑motor theta phase synchronization characterizes maladaptive motivational behavior in people with obsessive‑compulsive disorder}},
journal = {PLoS biology},
year = {2026},
month = sep,
volume = {24},
number = {9},
pages = {e3003979},
publisher = {PLOS},
issn = {1544-9173},
doi = {10.1371/
url = {https://
pmid = {42678993},
pmcid = {PMC13568527}
}
RIS
TY - JOUR
AU - Pang, Yu
AU - Zhou, Dongsheng
AU - Peng, Ziwen
AU - Liu, Wanting
AU - Huang, Ruojie
AU - Seger, Carol A
AU - Chen, Qi
TI - Impaired midfrontal‑motor theta phase synchronization characterizes maladaptive motivational behavior in people with obsessive‑compulsive disorder
T2 - PLoS biology
J2 - PLoS Biol
PY - 2026
DA - 2026/
VL - 24
IS - 9
SP - e3003979
SN - 1544-9173
PB - PLOS
DO - 10.1371/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1371/
"type": "article-journal",
"title": "Impaired midfrontal‑motor theta phase synchronization characterizes maladaptive motivational behavior in people with obsessive‑compulsive disorder",
"container-title": "PLoS biology",
"author": [
{
"family": "Pang",
"given": "Yu"
},
{
"family": "Zhou",
"given": "Dongsheng"
},
{
"family": "Peng",
"given": "Ziwen"
},
{
"family": "Liu",
"given": "Wanting"
},
{
"family": "Huang",
"given": "Ruojie"
},
{
"family": "Seger",
"given": "Carol A"
},
{
"family": "Chen",
"given": "Qi"
}
],
"container-title-short":
"volume": "24",
"issue": "9",
"page": "e3003979",
"DOI": "10.1371/
"PMID": "42678993",
"PMCID": "PMC13568527",
"ISSN": "1544-9173",
"publisher": "PLOS",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
9,
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.1371/journal.pbio.3003767 [code]
- Ultrasound neuromodulation reveals distinct roles of the dorsal anterior cingulate cortex and anterior insula in learning.Journal: PLoS biologyIn common: afex, boundedline, psych, 7 other tools, 7 references
- [2] doi:10.1016/j.neuroimage.2026.122115 [code]
- Midfrontal theta power relates to response speeding following frustrative nonreward.Journal: NeuroImageIn common: psych, car, EEGLAB, 6 other tools, EEG, 4 references
- [3] doi:10.1371/journal.pone.0353990 [code]
- Positive mood enhances accessibility of unrelated concepts in the first language but not in the foreign language.Journal: PloS oneIn common: afex, psych, car, 6 other tools, EEG, 3 references
- [4] doi:10.1038/s41598-026-53424-4 [code]
- Cognitive control networks causally support implicit emotion regulation: evidence from dlPFC stimulation and directed functional connectivity.Journal: Scientific reportsIn common: BayesFactor, car, FieldTrip, 4 other tools, EEG, 5 references
- [5] doi:10.1038/s41467-026-75799-8 [code]
- Behaviourally driven closed-loop beta-tACS enhances beta activity and motor behaviour.Journal: Nature communicationsIn common: afex, car, EEGLAB, 7 other tools, systems, 1 reference
- [6] doi:10.1016/j.celrep.2026.117646 [code]
- Medial entorhinal-hippocampal desynchronization parallels the emergence of memory impairment in a mouse model of Alzheimer's disease pathology.Journal: Cell reportsIn common: boundedline, car, EEGLAB, 7 other tools, systems
- [7] doi:10.1038/s41467-026-74565-0 [code]
- The functional neurobiology of dispositions towards negative emotions.Journal: Nature communicationsIn common: BayesFactor, afex, boundedline, 6 other tools
- [8] doi:10.1162/imag.a.105 [code]
- Right posterior theta reflects human parahippocampal phase resetting by salient cues during goal-directed navigationJournal: n/aIn common: psych, car, EEGLAB, 5 other tools, EEG, 3 references
- [9] doi:10.1126/sciadv.aec9291 [code]
- Computational mechanisms of perception in autism revealed using games inspired by rodent operant tasks.Journal: Science advancesIn common: afex, Stan, psych, 6 other tools
- [10] doi:10.1523/eneuro.0076-26.2026 [code]
- Exogenously Driven Neural Reactivation of Spatially Matching Visual Working-Memory Contents.Journal: eNeuroIn common: BayesFactor, car, FieldTrip, 6 other tools, EEG, 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, 111 scripts, and 12 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:f9c3c702c4a62657…
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.
