From afecddd760da50b1f601d5ba7c716de10e34223e Mon Sep 17 00:00:00 2001 From: shanemckeon Date: Fri, 1 Nov 2024 11:25:08 -0400 Subject: [PATCH] updating preproc function- anti --- .../coordinates/Analysis_script_CS.m | 0 .../coordinates/convertCoor.m | 0 .../coordinates/electrode2MNI.m | 0 .../coordinates/mni2orFROMxyz.m | 0 Preprocessing_Functions/epochlean.m | 2 +- Preprocessing_Functions/run_preprocessing_pipeline.m | 5 +++-- 6 files changed, 4 insertions(+), 3 deletions(-) rename {attic/Functions/SNR_processing => EEGcoordinates}/coordinates/Analysis_script_CS.m (100%) rename {attic/Functions/SNR_processing => EEGcoordinates}/coordinates/convertCoor.m (100%) rename {attic/Functions/SNR_processing => EEGcoordinates}/coordinates/electrode2MNI.m (100%) rename {attic/Functions/SNR_processing => EEGcoordinates}/coordinates/mni2orFROMxyz.m (100%) diff --git a/attic/Functions/SNR_processing/coordinates/Analysis_script_CS.m b/EEGcoordinates/coordinates/Analysis_script_CS.m similarity index 100% rename from attic/Functions/SNR_processing/coordinates/Analysis_script_CS.m rename to EEGcoordinates/coordinates/Analysis_script_CS.m diff --git a/attic/Functions/SNR_processing/coordinates/convertCoor.m b/EEGcoordinates/coordinates/convertCoor.m similarity index 100% rename from attic/Functions/SNR_processing/coordinates/convertCoor.m rename to EEGcoordinates/coordinates/convertCoor.m diff --git a/attic/Functions/SNR_processing/coordinates/electrode2MNI.m b/EEGcoordinates/coordinates/electrode2MNI.m similarity index 100% rename from attic/Functions/SNR_processing/coordinates/electrode2MNI.m rename to EEGcoordinates/coordinates/electrode2MNI.m diff --git a/attic/Functions/SNR_processing/coordinates/mni2orFROMxyz.m b/EEGcoordinates/coordinates/mni2orFROMxyz.m similarity index 100% rename from attic/Functions/SNR_processing/coordinates/mni2orFROMxyz.m rename to EEGcoordinates/coordinates/mni2orFROMxyz.m diff --git a/Preprocessing_Functions/epochlean.m b/Preprocessing_Functions/epochlean.m index 35f9c32..eb5e2a9 100755 --- a/Preprocessing_Functions/epochlean.m +++ b/Preprocessing_Functions/epochlean.m @@ -40,7 +40,7 @@ elseif task == "anti" - EEG = pop_epoch( EEG, {'1' '2' '3'}, [0 0.5], 'newname', [currentName '_epochs'], 'epochinfo', 'yes'); + EEG = pop_epoch( EEG, {'2'}, [-0.1 2], 'newname', [currentName '_epochs'], 'epochinfo', 'yes'); end diff --git a/Preprocessing_Functions/run_preprocessing_pipeline.m b/Preprocessing_Functions/run_preprocessing_pipeline.m index b389898..ff7a563 100755 --- a/Preprocessing_Functions/run_preprocessing_pipeline.m +++ b/Preprocessing_Functions/run_preprocessing_pipeline.m @@ -114,11 +114,12 @@ revisar = {}; for currentEEG = 1:size(EEGfileNames,1) + if currentEEG == 59 || currentEEG == 97 || currentEEG == 115 || currentEEG == 127 || currentEEG == 195 || currentEEG == 284 || currentEEG == 289% skipping error participants for now + continue + end filename = [EEGfileNames(currentEEG).name]; inputfile = [epoch_path,filename]; revisar{currentEEG} = epochlean(inputfile,epoch_folder,epoch_rj_marked_folder,task,taskdirectory); end end - -