Skip to content

Commit

Permalink
Output corrected p-values for supplementary figures 6 and 7
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxvandenBoom committed Feb 2, 2023
1 parent 06c2790 commit 54d92ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/makeSupFig6and7_exploreSOZ.m
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@
[~, ~, ~, p_vals_resp_FDR] = fdr_bh([n1Latencies(p_indices_resp).respSOZ_p], 0.05, 'pdep');
[~, ~, ~, p_vals_stim_FDR] = fdr_bh([n1Latencies(p_indices_stim).stimSOZ_p], 0.05, 'pdep');

% print the FDR correct p-values
disp(['Response SOZvsNon-SOZ corrected p-values: ', char(strjoin(string(p_vals_resp_FDR), ', '))]);
disp(['Stim SOZvsNon-SOZ corrected p-values: ', char(strjoin(string(p_vals_stim_FDR), ', '))]);

% put FDR p-values back into the table
for respIdx = 1:length(p_indices_resp)
n1Latencies(p_indices_resp(respIdx)).respSOZ_pFDR = p_vals_resp_FDR(respIdx);
Expand Down

0 comments on commit 54d92ec

Please sign in to comment.