From 0971bbf316e5d90b1e3042bc0f3ec372518f5e1e Mon Sep 17 00:00:00 2001 From: dorahermes Date: Wed, 17 Jul 2024 13:14:03 -0500 Subject: [PATCH] updated preprocessing script --- .gitignore | 10 +++++++++- script01_preprocNSDMef.m | 28 ++++++++++++++-------------- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 337276f..cab582f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,14 @@ + +% ignore folders with data and temporary tests data/ output/ +testing/ + +% ignore personal data path personalDataPath.m + +% ignore storage files .DS_Store */.DS_Store -*.asv \ No newline at end of file +*.asv +*.m~ diff --git a/script01_preprocNSDMef.m b/script01_preprocNSDMef.m index 553b28e..5a693e0 100644 --- a/script01_preprocNSDMef.m +++ b/script01_preprocNSDMef.m @@ -187,9 +187,9 @@ localDataPath = setLocalDataPath(1); % runs local PersonalDataPath (gitignored) addpath('functions'); -subjects = {'01','02','03','04','05','06'}; +subjects = {'01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17'}; -ss = 5; +ss = 13; sub_label = subjects{ss}; ses_label = 'ieeg01'; @@ -280,11 +280,11 @@ if hh==1 hemi = 'l'; g = gL_infl; - views_plot = {[40,-30],[-45,-10],[-90,20]}; + views_plot = {[40,-30],[-45,-10],[-90,20],[90 0]}; elseif hh==2 hemi = 'r'; g = gR_infl; - views_plot = {[-40,-30],[45,-10],[90,20]}; + views_plot = {[-40,-30],[45,-10],[90,20],[270 0]}; end % surface labels @@ -331,16 +331,16 @@ print('-dpng','-r300',fullfile(localDataPath.input,'derivatives','render',['sub-' sub_label],... ['inflated_labels_sub-' sub_label '_WangAreas_v' int2str(v_d(1)) '_' int2str(v_d(2)) '_' hemi])) -% % with activity -% figure -% tH = ieeg_RenderGiftiLabels(g,vert_label,cmap,Wang_ROI_Names,sulcal_labels); -% all_chan_snr_plot = all_chan_snr; -% all_chan_snr_plot(all_chan_snr_plot<.2) = 0; -% ieeg_elAdd_sizable(els_pop(electrodes_thisHemi,:),all_chan_snr_plot(electrodes_thisHemi),.8,40) % add electrode positions -% ieeg_viewLight(v_d(1),v_d(2)) % change viewing angle -% set(gcf,'PaperPositionMode','auto') -% print('-dpng','-r300',fullfile(localDataPath.input,'derivatives','render',['sub-' sub_label],... -% ['NCSNR_sub-' sub_label '_WangAreas_v' int2str(v_d(1)) '_' int2str(v_d(2)) '_' hemi])) + % with activity + figure + tH = ieeg_RenderGiftiLabels(g,vert_label,cmap,Wang_ROI_Names,sulcal_labels); + all_chan_snr_plot = all_chan_snr; + all_chan_snr_plot(all_chan_snr_plot<.2) = 0; + ieeg_elAdd_sizable(els_pop(electrodes_thisHemi,:),all_chan_snr_plot(electrodes_thisHemi),.8,40) % add electrode positions + ieeg_viewLight(v_d(1),v_d(2)) % change viewing angle + set(gcf,'PaperPositionMode','auto') + print('-dpng','-r300',fullfile(localDataPath.input,'derivatives','render',['sub-' sub_label],... + ['NCSNR_sub-' sub_label '_WangAreas_v' int2str(v_d(1)) '_' int2str(v_d(2)) '_' hemi])) end close all