diff --git a/raw_data/PD1239.vhdr b/raw_data/PD1239.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..853c9c910b75cf767efe8f76b5bbfc93ec11233d --- /dev/null +++ b/raw_data/PD1239.vhdr @@ -0,0 +1,327 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1239.eeg +MarkerFile=PD1239.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17050803 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 16101400 --- + --- Module 2 (5010): S/N 16101402 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +No impedance values available at 12:59:44! diff --git a/raw_data/PD1239.vmrk b/raw_data/PD1239.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..7649a5c16e03e6240af2a7a114aa138f036935fd --- /dev/null +++ b/raw_data/PD1239.vmrk @@ -0,0 +1,114 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1239.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20180619125944197897 +Mk2=Stimulus,S 1,4552,1,0 +Mk3=Stimulus,S 2,5518,1,0 +Mk4=Stimulus,S 1,7034,1,0 +Mk5=Stimulus,S 2,7859,1,0 +Mk6=Stimulus,S 1,9375,1,0 +Mk7=Stimulus,S 1,11450,1,0 +Mk8=Stimulus,S 1,13616,1,0 +Mk9=Stimulus,S 2,14399,1,0 +Mk10=Stimulus,S 1,15915,1,0 +Mk11=Stimulus,S 2,16908,1,0 +Mk12=Stimulus,S 1,20930,1,0 +Mk13=Stimulus,S 1,23038,1,0 +Mk14=Stimulus,S 1,25554,1,0 +Mk15=Stimulus,S 2,26547,1,0 +Mk16=Stimulus,S 1,28061,1,0 +Mk17=Stimulus,S 2,28811,1,0 +Mk18=Stimulus,S 1,30327,1,0 +Mk19=Stimulus,S 2,31235,1,0 +Mk20=Stimulus,S 1,34851,1,0 +Mk21=Stimulus,S 2,35568,1,0 +Mk22=Stimulus,S 2,38050,1,0 +Mk23=Stimulus,S 1,39566,1,0 +Mk24=Stimulus,S 2,40474,1,0 +Mk25=Stimulus,S 1,41990,1,0 +Mk26=Stimulus,S 1,44498,1,0 +Mk27=Stimulus,S 2,45331,1,0 +Mk28=Stimulus,S 1,46847,1,0 +Mk29=Stimulus,S 2,47372,1,0 +Mk30=Stimulus,S 1,48888,1,0 +Mk31=Stimulus,S 2,49821,1,0 +Mk32=Stimulus,S 2,52312,1,0 +Mk33=Stimulus,S 1,53828,1,0 +Mk34=Stimulus,S 2,54678,1,0 +Mk35=Stimulus,S 1,56194,1,0 +Mk36=Stimulus,S 1,58602,1,0 +Mk37=Stimulus,S 2,59485,1,0 +Mk38=Stimulus,S 1,61001,1,0 +Mk39=Stimulus,S 2,61709,1,0 +Mk40=Stimulus,S 1,63225,1,0 +Mk41=Stimulus,S 2,64059,1,0 +Mk42=Stimulus,S 2,66167,1,0 +Mk43=Stimulus,S 1,67682,1,0 +Mk44=Stimulus,S 2,68541,1,0 +Mk45=Stimulus,S 2,70581,1,0 +Mk46=Stimulus,S 2,72747,1,0 +Mk47=Stimulus,S 1,77008,1,0 +Mk48=Stimulus,S 2,77538,1,0 +Mk49=Stimulus,S 1,79054,1,0 +Mk50=Stimulus,S 2,79612,1,0 +Mk51=Stimulus,S 1,81128,1,0 +Mk52=Stimulus,S 2,82053,1,0 +Mk53=Stimulus,S 1,83569,1,0 +Mk54=Stimulus,S 2,84427,1,0 +Mk55=Stimulus,S 1,85943,1,0 +Mk56=Stimulus,S 2,86610,1,0 +Mk57=Stimulus,S 1,88126,1,0 +Mk58=Stimulus,S 2,89109,1,0 +Mk59=Stimulus,S 1,90625,1,0 +Mk60=Stimulus,S 2,91150,1,0 +Mk61=Stimulus,S 1,92666,1,0 +Mk62=Stimulus,S 2,93392,1,0 +Mk63=Stimulus,S 1,94907,1,0 +Mk64=Stimulus,S 2,95607,1,0 +Mk65=Stimulus,S 1,97123,1,0 +Mk66=Stimulus,S 1,99531,1,0 +Mk67=Stimulus,S 2,100439,1,0 +Mk68=Stimulus,S 1,101955,1,0 +Mk69=Stimulus,S 2,102555,1,0 +Mk70=Stimulus,S 1,104071,1,0 +Mk71=Stimulus,S 2,104821,1,0 +Mk72=Stimulus,S 1,106337,1,0 +Mk73=Stimulus,S 2,107070,1,0 +Mk74=Stimulus,S 1,108586,1,0 +Mk75=Stimulus,S 2,109419,1,0 +Mk76=Stimulus,S 2,111802,1,0 +Mk77=Stimulus,S 1,113318,1,0 +Mk78=Stimulus,S 2,114202,1,0 +Mk79=Stimulus,S 1,115717,1,0 +Mk80=Stimulus,S 2,116367,1,0 +Mk81=Stimulus,S 1,117883,1,0 +Mk82=Stimulus,S 2,118733,1,0 +Mk83=Stimulus,S 1,120249,1,0 +Mk84=Stimulus,S 2,121083,1,0 +Mk85=Stimulus,S 2,123190,1,0 +Mk86=Stimulus,S 1,124706,1,0 +Mk87=Stimulus,S 2,125273,1,0 +Mk88=Stimulus,S 1,126789,1,0 +Mk89=Stimulus,S 2,127547,1,0 +Mk90=Stimulus,S 1,129063,1,0 +Mk91=Stimulus,S 2,130056,1,0 +Mk92=Stimulus,S 1,131571,1,0 +Mk93=Stimulus,S 2,132254,1,0 +Mk94=Stimulus,S 1,133770,1,0 +Mk95=Stimulus,S 2,134570,1,0 +Mk96=Stimulus,S 1,136086,1,0 +Mk97=Stimulus,S 2,136711,1,0 +Mk98=Stimulus,S 1,138227,1,0 +Mk99=Stimulus,S 2,139110,1,0 +Mk100=Stimulus,S 1,140626,1,0 +Mk101=Stimulus,S 2,141260,1,0 +Mk102=Stimulus,S 1,142776,1,0 +Mk103=Stimulus,S 2,143534,1,0 diff --git a/raw_data/PD1249.vhdr b/raw_data/PD1249.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..b4a5e8ae7e240878d39e8544b7de4357ee200bba --- /dev/null +++ b/raw_data/PD1249.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1249.eeg +MarkerFile=PD1249.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17050803 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 16101400 --- + --- Module 2 (5010): S/N 16101402 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 11:08:58 : +Fp1: 14 +Fz: 3 +F3: 2 +F7: 2 +Aa: 0 +FC5: 5 +FC1: 6 +C3: 9 +T7: 9 +TP9: 9 +CP5: 13 +CP1: 7 +Pz: 6 +P3: 7 +P7: 2 +O1: 9 +Oz: 10 +O2: 2 +P4: 4 +P8: 3 +TP10: 12 +CP6: 11 +CP2: 4 +Cz: 1 +C4: 11 +T8: 9 +FT10: 8 +FC6: 16 +FC2: 2 +F4: 2 +F8: 1 +Fp2: 1 +AF7: 0 +AF3: 4 +AFz: 2 +F1: 13 +F5: 2 +FT7: 6 +FC3: 4 +C1: 2 +C5: 10 +TP7: 10 +CP3: 10 +P1: 9 +P5: 3 +PO7: 15 +Bb: 4 +POz: 10 +Cc: 2 +PO8: 5 +P6: 4 +P2: 10 +CPz: 1 +CP4: 7 +TP8: 15 +C6: 17 +C2: 1 +FC4: 9 +FT8: 10 +F6: 1 +AF8: 1 +AF4: 2 +F2: 1 +FCz: 1 +Gnd: 9 diff --git a/raw_data/PD1249.vmrk b/raw_data/PD1249.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..ba6adc1a207266cbb83f4050dcf54031a8d1e529 --- /dev/null +++ b/raw_data/PD1249.vmrk @@ -0,0 +1,106 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1249.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20180626140806408588 +Mk2=Stimulus,S 1,5239,1,0 +Mk3=Stimulus,S 1,7722,1,0 +Mk4=Stimulus,S 1,10063,1,0 +Mk5=Stimulus,S 2,10621,1,0 +Mk6=Stimulus,S 1,12137,1,0 +Mk7=Stimulus,S 2,12787,1,0 +Mk8=Stimulus,S 1,14303,1,0 +Mk9=Stimulus,S 2,15086,1,0 +Mk10=Stimulus,S 1,16602,1,0 +Mk11=Stimulus,S 2,17597,1,0 +Mk12=Stimulus,S 1,19110,1,0 +Mk13=Stimulus,S 2,20101,1,0 +Mk14=Stimulus,S 1,21612,1,0 +Mk15=Stimulus,S 1,23717,1,0 +Mk16=Stimulus,S 1,26233,1,0 +Mk17=Stimulus,S 2,27226,1,0 +Mk18=Stimulus,S 1,28740,1,0 +Mk19=Stimulus,S 2,29490,1,0 +Mk20=Stimulus,S 1,31006,1,0 +Mk21=Stimulus,S 2,31914,1,0 +Mk22=Stimulus,S 1,35530,1,0 +Mk23=Stimulus,S 2,36247,1,0 +Mk24=Stimulus,S 2,38729,1,0 +Mk25=Stimulus,S 1,40245,1,0 +Mk26=Stimulus,S 2,41153,1,0 +Mk27=Stimulus,S 1,42669,1,0 +Mk28=Stimulus,S 1,45177,1,0 +Mk29=Stimulus,S 2,46010,1,0 +Mk30=Stimulus,S 1,47526,1,0 +Mk31=Stimulus,S 2,48051,1,0 +Mk32=Stimulus,S 1,49567,1,0 +Mk33=Stimulus,S 2,50500,1,0 +Mk34=Stimulus,S 1,52016,1,0 +Mk35=Stimulus,S 2,52991,1,0 +Mk36=Stimulus,S 1,54507,1,0 +Mk37=Stimulus,S 2,55357,1,0 +Mk38=Stimulus,S 1,56873,1,0 +Mk39=Stimulus,S 2,57765,1,0 +Mk40=Stimulus,S 1,59281,1,0 +Mk41=Stimulus,S 2,60164,1,0 +Mk42=Stimulus,S 1,61680,1,0 +Mk43=Stimulus,S 2,62388,1,0 +Mk44=Stimulus,S 1,63904,1,0 +Mk45=Stimulus,S 2,64738,1,0 +Mk46=Stimulus,S 2,66846,1,0 +Mk47=Stimulus,S 1,68361,1,0 +Mk48=Stimulus,S 2,69220,1,0 +Mk49=Stimulus,S 2,71260,1,0 +Mk50=Stimulus,S 2,73426,1,0 +Mk51=Stimulus,S 1,82082,1,0 +Mk52=Stimulus,S 2,82615,1,0 +Mk53=Stimulus,S 1,84131,1,0 +Mk54=Stimulus,S 1,86206,1,0 +Mk55=Stimulus,S 1,88647,1,0 +Mk56=Stimulus,S 2,89505,1,0 +Mk57=Stimulus,S 1,91021,1,0 +Mk58=Stimulus,S 2,91687,1,0 +Mk59=Stimulus,S 1,95703,1,0 +Mk60=Stimulus,S 2,96228,1,0 +Mk61=Stimulus,S 1,97744,1,0 +Mk62=Stimulus,S 2,98469,1,0 +Mk63=Stimulus,S 1,99985,1,0 +Mk64=Stimulus,S 1,102201,1,0 +Mk65=Stimulus,S 2,103092,1,0 +Mk66=Stimulus,S 1,104608,1,0 +Mk67=Stimulus,S 2,105516,1,0 +Mk68=Stimulus,S 2,107633,1,0 +Mk69=Stimulus,S 1,109149,1,0 +Mk70=Stimulus,S 2,109898,1,0 +Mk71=Stimulus,S 1,113664,1,0 +Mk72=Stimulus,S 2,114497,1,0 +Mk73=Stimulus,S 1,116013,1,0 +Mk74=Stimulus,S 1,118396,1,0 +Mk75=Stimulus,S 2,119279,1,0 +Mk76=Stimulus,S 1,120795,1,0 +Mk77=Stimulus,S 2,121445,1,0 +Mk78=Stimulus,S 1,122961,1,0 +Mk79=Stimulus,S 2,123811,1,0 +Mk80=Stimulus,S 1,125327,1,0 +Mk81=Stimulus,S 2,126161,1,0 +Mk82=Stimulus,S 1,127676,1,0 +Mk83=Stimulus,S 1,129784,1,0 +Mk84=Stimulus,S 2,130351,1,0 +Mk85=Stimulus,S 1,134141,1,0 +Mk86=Stimulus,S 2,135134,1,0 +Mk87=Stimulus,S 1,136648,1,0 +Mk88=Stimulus,S 1,138848,1,0 +Mk89=Stimulus,S 2,139647,1,0 +Mk90=Stimulus,S 1,141164,1,0 +Mk91=Stimulus,S 1,143305,1,0 +Mk92=Stimulus,S 1,145704,1,0 +Mk93=Stimulus,S 2,146338,1,0 +Mk94=Stimulus,S 1,147853,1,0 +Mk95=Stimulus,S 2,148612,1,0 diff --git a/raw_data/PD1259.vhdr b/raw_data/PD1259.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..6c3d51e19db0f592996bbdaa449d83c372a80b58 --- /dev/null +++ b/raw_data/PD1259.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1259.eeg +MarkerFile=PD1259.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17050803 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 16101400 --- + --- Module 2 (5010): S/N 16101402 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 09:17:53 : +Fp1: 2 +Fz: 3 +F3: 2 +F7: 2 +Aa: 18 +FC5: 6 +FC1: 4 +C3: 7 +T7: 8 +TP9: 6 +CP5: 9 +CP1: 10 +Pz: 7 +P3: 8 +P7: 8 +O1: 9 +Oz: 5 +O2: 9 +P4: 5 +P8: 8 +TP10: 5 +CP6: 5 +CP2: 5 +Cz: 4 +C4: 16 +T8: 5 +FT10: 8 +FC6: 9 +FC2: 3 +F4: 6 +F8: 2 +Fp2: 3 +AF7: 2 +AF3: 2 +AFz: 0 +F1: 3 +F5: 2 +FT7: 4 +FC3: 5 +C1: 5 +C5: 9 +TP7: 6 +CP3: 10 +P1: 6 +P5: 9 +PO7: 7 +Bb: 9 +POz: 6 +Cc: 17 +PO8: 8 +P6: 6 +P2: 7 +CPz: 6 +CP4: 7 +TP8: 4 +C6: 18 +C2: 3 +FC4: 9 +FT8: 7 +F6: 3 +AF8: 3 +AF4: 4 +F2: 6 +FCz: 2 +Gnd: 0 diff --git a/raw_data/PD1259.vmrk b/raw_data/PD1259.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..071d0dc26cd402c1e92bc745db573e057106ad66 --- /dev/null +++ b/raw_data/PD1259.vmrk @@ -0,0 +1,116 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1259.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20180711111752439017 +Mk2=Stimulus,S 1,2562,1,0 +Mk3=Stimulus,S 2,3528,1,0 +Mk4=Stimulus,S 1,5045,1,0 +Mk5=Stimulus,S 2,5869,1,0 +Mk6=Stimulus,S 2,7944,1,0 +Mk7=Stimulus,S 1,9455,1,0 +Mk8=Stimulus,S 2,10102,1,0 +Mk9=Stimulus,S 1,11618,1,0 +Mk10=Stimulus,S 2,12401,1,0 +Mk11=Stimulus,S 1,13917,1,0 +Mk12=Stimulus,S 2,14912,1,0 +Mk13=Stimulus,S 1,16425,1,0 +Mk14=Stimulus,S 2,17416,1,0 +Mk15=Stimulus,S 1,18932,1,0 +Mk16=Stimulus,S 2,19523,1,0 +Mk17=Stimulus,S 1,21040,1,0 +Mk18=Stimulus,S 2,22039,1,0 +Mk19=Stimulus,S 2,24549,1,0 +Mk20=Stimulus,S 1,26063,1,0 +Mk21=Stimulus,S 2,26813,1,0 +Mk22=Stimulus,S 1,28329,1,0 +Mk23=Stimulus,S 1,30753,1,0 +Mk24=Stimulus,S 2,31336,1,0 +Mk25=Stimulus,S 1,32853,1,0 +Mk26=Stimulus,S 2,33570,1,0 +Mk27=Stimulus,S 1,35085,1,0 +Mk28=Stimulus,S 2,36052,1,0 +Mk29=Stimulus,S 1,37568,1,0 +Mk30=Stimulus,S 2,38476,1,0 +Mk31=Stimulus,S 1,39992,1,0 +Mk32=Stimulus,S 2,40986,1,0 +Mk33=Stimulus,S 1,42500,1,0 +Mk34=Stimulus,S 2,43333,1,0 +Mk35=Stimulus,S 1,44849,1,0 +Mk36=Stimulus,S 2,45374,1,0 +Mk37=Stimulus,S 1,46890,1,0 +Mk38=Stimulus,S 2,47823,1,0 +Mk39=Stimulus,S 1,49339,1,0 +Mk40=Stimulus,S 2,50314,1,0 +Mk41=Stimulus,S 1,51830,1,0 +Mk42=Stimulus,S 2,52680,1,0 +Mk43=Stimulus,S 1,54196,1,0 +Mk44=Stimulus,S 2,55087,1,0 +Mk45=Stimulus,S 1,56604,1,0 +Mk46=Stimulus,S 2,57487,1,0 +Mk47=Stimulus,S 1,59003,1,0 +Mk48=Stimulus,S 2,59711,1,0 +Mk49=Stimulus,S 1,61227,1,0 +Mk50=Stimulus,S 2,62061,1,0 +Mk51=Stimulus,S 2,64168,1,0 +Mk52=Stimulus,S 1,65684,1,0 +Mk53=Stimulus,S 2,66543,1,0 +Mk54=Stimulus,S 1,68058,1,0 +Mk55=Stimulus,S 2,68583,1,0 +Mk56=Stimulus,S 1,70099,1,0 +Mk57=Stimulus,S 2,70749,1,0 +Mk58=Stimulus,S 1,85778,1,0 +Mk59=Stimulus,S 2,86311,1,0 +Mk60=Stimulus,S 1,87827,1,0 +Mk61=Stimulus,S 2,88385,1,0 +Mk62=Stimulus,S 1,89902,1,0 +Mk63=Stimulus,S 2,90826,1,0 +Mk64=Stimulus,S 1,94717,1,0 +Mk65=Stimulus,S 2,95383,1,0 +Mk66=Stimulus,S 1,99399,1,0 +Mk67=Stimulus,S 1,101440,1,0 +Mk68=Stimulus,S 2,102165,1,0 +Mk69=Stimulus,S 1,103681,1,0 +Mk70=Stimulus,S 2,104380,1,0 +Mk71=Stimulus,S 1,105897,1,0 +Mk72=Stimulus,S 2,106788,1,0 +Mk73=Stimulus,S 1,108304,1,0 +Mk74=Stimulus,S 2,109212,1,0 +Mk75=Stimulus,S 2,111329,1,0 +Mk76=Stimulus,S 2,113595,1,0 +Mk77=Stimulus,S 1,117360,1,0 +Mk78=Stimulus,S 2,118193,1,0 +Mk79=Stimulus,S 1,119709,1,0 +Mk80=Stimulus,S 2,120575,1,0 +Mk81=Stimulus,S 1,122092,1,0 +Mk82=Stimulus,S 2,122975,1,0 +Mk83=Stimulus,S 1,124491,1,0 +Mk84=Stimulus,S 2,125141,1,0 +Mk85=Stimulus,S 1,126657,1,0 +Mk86=Stimulus,S 1,129023,1,0 +Mk87=Stimulus,S 2,129856,1,0 +Mk88=Stimulus,S 1,131372,1,0 +Mk89=Stimulus,S 2,131964,1,0 +Mk90=Stimulus,S 1,133480,1,0 +Mk91=Stimulus,S 2,134046,1,0 +Mk92=Stimulus,S 1,137837,1,0 +Mk93=Stimulus,S 2,138830,1,0 +Mk94=Stimulus,S 1,140344,1,0 +Mk95=Stimulus,S 2,141027,1,0 +Mk96=Stimulus,S 1,142544,1,0 +Mk97=Stimulus,S 2,143344,1,0 +Mk98=Stimulus,S 1,144860,1,0 +Mk99=Stimulus,S 2,145484,1,0 +Mk100=Stimulus,S 1,147001,1,0 +Mk101=Stimulus,S 2,147884,1,0 +Mk102=Stimulus,S 1,149400,1,0 +Mk103=Stimulus,S 2,150034,1,0 +Mk104=Stimulus,S 1,151549,1,0 +Mk105=Stimulus,S 2,152308,1,0 diff --git a/raw_data/PD1279.vhdr b/raw_data/PD1279.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..f250406dd0fb02c6021e6091378c566f55e06a30 --- /dev/null +++ b/raw_data/PD1279.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1279.eeg +MarkerFile=PD1279.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17060817 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 17061539 --- + --- Module 2 (5010): S/N 17061540 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 12:16:13 : +Fp1: 3 +Fz: 4 +F3: 3 +F7: 4 +Aa: 7 +FC5: 4 +FC1: 5 +C3: 5 +T7: 9 +TP9: 2 +CP5: 1 +CP1: 4 +Pz: 1 +P3: 6 +P7: 6 +O1: 5 +Oz: 4 +O2: 4 +P4: 3 +P8: 3 +TP10: 9 +CP6: 4 +CP2: 1 +Cz: 2 +C4: 5 +T8: 6 +FT10: 7 +FC6: 25 +FC2: 1 +F4: 1 +F8: 3 +Fp2: 4 +AF7: 3 +AF3: 2 +AFz: 9 +F1: 4 +F5: 3 +FT7: 4 +FC3: 10 +C1: 4 +C5: 2 +TP7: 1 +CP3: 2 +P1: 2 +P5: 5 +PO7: 5 +Bb: 6 +POz: 8 +Cc: 6 +PO8: 5 +P6: 2 +P2: 3 +CPz: 0 +CP4: 7 +TP8: 3 +C6: 12 +C2: 1 +FC4: 1 +FT8: 6 +F6: 1 +AF8: 4 +AF4: 7 +F2: 2 +FCz: 3 +Gnd: 6 diff --git a/raw_data/PD1279.vmrk b/raw_data/PD1279.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..f61da83934358789cd9366dc21395c2fede8eb3a --- /dev/null +++ b/raw_data/PD1279.vmrk @@ -0,0 +1,119 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1279.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20180801143036391760 +Mk2=Stimulus,S 1,15658,1,0 +Mk3=Stimulus,S 2,16292,1,0 +Mk4=Stimulus,S 1,17808,1,0 +Mk5=Stimulus,S 2,18566,1,0 +Mk6=Stimulus,S 1,20082,1,0 +Mk7=Stimulus,S 2,20940,1,0 +Mk8=Stimulus,S 1,22456,1,0 +Mk9=Stimulus,S 2,23414,1,0 +Mk10=Stimulus,S 1,24930,1,0 +Mk11=Stimulus,S 2,25924,1,0 +Mk12=Stimulus,S 1,27438,1,0 +Mk13=Stimulus,S 2,28221,1,0 +Mk14=Stimulus,S 1,29737,1,0 +Mk15=Stimulus,S 2,30312,1,0 +Mk16=Stimulus,S 1,31828,1,0 +Mk17=Stimulus,S 2,32411,1,0 +Mk18=Stimulus,S 2,34569,1,0 +Mk19=Stimulus,S 1,36085,1,0 +Mk20=Stimulus,S 2,37018,1,0 +Mk21=Stimulus,S 1,38534,1,0 +Mk22=Stimulus,S 2,39168,1,0 +Mk23=Stimulus,S 1,40684,1,0 +Mk24=Stimulus,S 2,41600,1,0 +Mk25=Stimulus,S 1,43116,1,0 +Mk26=Stimulus,S 2,43749,1,0 +Mk27=Stimulus,S 2,46240,1,0 +Mk28=Stimulus,S 1,47756,1,0 +Mk29=Stimulus,S 1,49956,1,0 +Mk30=Stimulus,S 2,50564,1,0 +Mk31=Stimulus,S 1,52080,1,0 +Mk32=Stimulus,S 2,52713,1,0 +Mk33=Stimulus,S 1,54229,1,0 +Mk34=Stimulus,S 1,56562,1,0 +Mk35=Stimulus,S 1,58828,1,0 +Mk36=Stimulus,S 2,59511,1,0 +Mk37=Stimulus,S 1,61027,1,0 +Mk38=Stimulus,S 2,61952,1,0 +Mk39=Stimulus,S 1,63468,1,0 +Mk40=Stimulus,S 2,64268,1,0 +Mk41=Stimulus,S 1,65784,1,0 +Mk42=Stimulus,S 2,66567,1,0 +Mk43=Stimulus,S 1,68083,1,0 +Mk44=Stimulus,S 1,70566,1,0 +Mk45=Stimulus,S 2,71215,1,0 +Mk46=Stimulus,S 1,72732,1,0 +Mk47=Stimulus,S 2,73623,1,0 +Mk48=Stimulus,S 1,75139,1,0 +Mk49=Stimulus,S 2,76023,1,0 +Mk50=Stimulus,S 2,78238,1,0 +Mk51=Stimulus,S 1,79754,1,0 +Mk52=Stimulus,S 2,80546,1,0 +Mk53=Stimulus,S 1,82062,1,0 +Mk54=Stimulus,S 2,82612,1,0 +Mk55=Stimulus,S 1,86202,1,0 +Mk56=Stimulus,S 2,86736,1,0 +Mk57=Stimulus,S 1,88252,1,0 +Mk58=Stimulus,S 2,89026,1,0 +Mk59=Stimulus,S 2,91442,1,0 +Mk60=Stimulus,S 2,93933,1,0 +Mk61=Stimulus,S 1,95449,1,0 +Mk62=Stimulus,S 2,96024,1,0 +Mk63=Stimulus,S 1,97540,1,0 +Mk64=Stimulus,S 2,98332,1,0 +Mk65=Stimulus,S 1,99848,1,0 +Mk66=Stimulus,S 2,100598,1,0 +Mk67=Stimulus,S 1,102114,1,0 +Mk68=Stimulus,S 2,102630,1,0 +Mk69=Stimulus,S 2,104822,1,0 +Mk70=Stimulus,S 2,106929,1,0 +Mk71=Stimulus,S 1,108445,1,0 +Mk72=Stimulus,S 2,109353,1,0 +Mk73=Stimulus,S 1,110869,1,0 +Mk74=Stimulus,S 2,111536,1,0 +Mk75=Stimulus,S 1,113052,1,0 +Mk76=Stimulus,S 2,113827,1,0 +Mk77=Stimulus,S 1,115343,1,0 +Mk78=Stimulus,S 2,115935,1,0 +Mk79=Stimulus,S 1,117451,1,0 +Mk80=Stimulus,S 2,118259,1,0 +Mk81=Stimulus,S 1,119775,1,0 +Mk82=Stimulus,S 2,120416,1,0 +Mk83=Stimulus,S 2,122766,1,0 +Mk84=Stimulus,S 1,124282,1,0 +Mk85=Stimulus,S 2,125132,1,0 +Mk86=Stimulus,S 1,126648,1,0 +Mk87=Stimulus,S 2,127531,1,0 +Mk88=Stimulus,S 1,129047,1,0 +Mk89=Stimulus,S 2,129780,1,0 +Mk90=Stimulus,S 1,131296,1,0 +Mk91=Stimulus,S 2,131846,1,0 +Mk92=Stimulus,S 1,133362,1,0 +Mk93=Stimulus,S 2,133987,1,0 +Mk94=Stimulus,S 1,135503,1,0 +Mk95=Stimulus,S 1,137986,1,0 +Mk96=Stimulus,S 2,138569,1,0 +Mk97=Stimulus,S 1,140085,1,0 +Mk98=Stimulus,S 2,141010,1,0 +Mk99=Stimulus,S 1,142526,1,0 +Mk100=Stimulus,S 2,143301,1,0 +Mk101=Stimulus,S 1,144817,1,0 +Mk102=Stimulus,S 2,145825,1,0 +Mk103=Stimulus,S 1,147341,1,0 +Mk104=Stimulus,S 2,147891,1,0 +Mk105=Stimulus,S 1,149407,1,0 +Mk106=Stimulus,S 2,150140,1,0 +Mk107=Stimulus,S 1,151656,1,0 +Mk108=Stimulus,S 2,152215,1,0 diff --git a/raw_data/PD1299.vhdr b/raw_data/PD1299.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..0d51dd15bbb99b2b53acc295901a460c5ef398ef --- /dev/null +++ b/raw_data/PD1299.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1299.eeg +MarkerFile=PD1299.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17060817 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 17061539 --- + --- Module 2 (5010): S/N 17061540 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 10:33:08 : +Fp1: 2 +Fz: 0 +F3: 1 +F7: 2 +Aa: 22 +FC5: 15 +FC1: 0 +C3: 15 +T7: 3 +TP9: 2 +CP5: 9 +CP1: 2 +Pz: 4 +P3: 4 +P7: 6 +O1: 13 +Oz: 7 +O2: 23 +P4: 2 +P8: 43 +TP10: 18 +CP6: 17 +CP2: 3 +Cz: 7 +C4: 8 +T8: 15 +FT10: 16 +FC6: 25 +FC2: 8 +F4: 1 +F8: 5 +Fp2: 21 +AF7: 2 +AF3: 6 +AFz: 8 +F1: 0 +F5: 3 +FT7: 16 +FC3: 1 +C1: 5 +C5: 7 +TP7: 10 +CP3: 1 +P1: 7 +P5: 4 +PO7: 13 +Bb: 21 +POz: 7 +Cc: 10 +PO8: 24 +P6: 31 +P2: 2 +CPz: 7 +CP4: 15 +TP8: 33 +C6: 45 +C2: 3 +FC4: 2 +FT8: 18 +F6: 29 +AF8: 1 +AF4: 14 +F2: 1 +FCz: 3 +Gnd: 2 diff --git a/raw_data/PD1299.vmrk b/raw_data/PD1299.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..3c72feeefc2912b47cbe7a9aa82d80b4d1925d7a --- /dev/null +++ b/raw_data/PD1299.vmrk @@ -0,0 +1,113 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1299.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20180807131717023836 +Mk2=Stimulus,S 1,3206,1,0 +Mk3=Stimulus,S 2,4172,1,0 +Mk4=Stimulus,S 1,5688,1,0 +Mk5=Stimulus,S 1,8029,1,0 +Mk6=Stimulus,S 2,8587,1,0 +Mk7=Stimulus,S 1,10103,1,0 +Mk8=Stimulus,S 2,10753,1,0 +Mk9=Stimulus,S 1,12269,1,0 +Mk10=Stimulus,S 2,13052,1,0 +Mk11=Stimulus,S 1,14568,1,0 +Mk12=Stimulus,S 2,15563,1,0 +Mk13=Stimulus,S 1,17076,1,0 +Mk14=Stimulus,S 2,18067,1,0 +Mk15=Stimulus,S 1,19583,1,0 +Mk16=Stimulus,S 2,20175,1,0 +Mk17=Stimulus,S 1,21691,1,0 +Mk18=Stimulus,S 1,24207,1,0 +Mk19=Stimulus,S 1,26714,1,0 +Mk20=Stimulus,S 2,27464,1,0 +Mk21=Stimulus,S 1,28980,1,0 +Mk22=Stimulus,S 2,29888,1,0 +Mk23=Stimulus,S 1,33504,1,0 +Mk24=Stimulus,S 2,34221,1,0 +Mk25=Stimulus,S 1,35736,1,0 +Mk26=Stimulus,S 2,36703,1,0 +Mk27=Stimulus,S 1,38219,1,0 +Mk28=Stimulus,S 2,39127,1,0 +Mk29=Stimulus,S 1,40643,1,0 +Mk30=Stimulus,S 1,43151,1,0 +Mk31=Stimulus,S 2,43984,1,0 +Mk32=Stimulus,S 1,45500,1,0 +Mk33=Stimulus,S 2,46025,1,0 +Mk34=Stimulus,S 1,47541,1,0 +Mk35=Stimulus,S 2,48474,1,0 +Mk36=Stimulus,S 1,49990,1,0 +Mk37=Stimulus,S 2,50965,1,0 +Mk38=Stimulus,S 1,52481,1,0 +Mk39=Stimulus,S 2,53331,1,0 +Mk40=Stimulus,S 1,54847,1,0 +Mk41=Stimulus,S 2,55738,1,0 +Mk42=Stimulus,S 1,59654,1,0 +Mk43=Stimulus,S 2,60362,1,0 +Mk44=Stimulus,S 1,61878,1,0 +Mk45=Stimulus,S 2,62712,1,0 +Mk46=Stimulus,S 1,64227,1,0 +Mk47=Stimulus,S 2,64819,1,0 +Mk48=Stimulus,S 1,66335,1,0 +Mk49=Stimulus,S 2,67194,1,0 +Mk50=Stimulus,S 1,68709,1,0 +Mk51=Stimulus,S 2,69234,1,0 +Mk52=Stimulus,S 1,70750,1,0 +Mk53=Stimulus,S 2,71400,1,0 +Mk54=Stimulus,S 1,77198,1,0 +Mk55=Stimulus,S 2,77731,1,0 +Mk56=Stimulus,S 1,79247,1,0 +Mk57=Stimulus,S 1,81322,1,0 +Mk58=Stimulus,S 2,82246,1,0 +Mk59=Stimulus,S 1,83763,1,0 +Mk60=Stimulus,S 1,86137,1,0 +Mk61=Stimulus,S 1,90819,1,0 +Mk62=Stimulus,S 1,92860,1,0 +Mk63=Stimulus,S 2,93585,1,0 +Mk64=Stimulus,S 1,95101,1,0 +Mk65=Stimulus,S 2,95801,1,0 +Mk66=Stimulus,S 2,98208,1,0 +Mk67=Stimulus,S 1,99724,1,0 +Mk68=Stimulus,S 2,100632,1,0 +Mk69=Stimulus,S 1,102148,1,0 +Mk70=Stimulus,S 2,102749,1,0 +Mk71=Stimulus,S 1,104264,1,0 +Mk72=Stimulus,S 2,105015,1,0 +Mk73=Stimulus,S 1,106530,1,0 +Mk74=Stimulus,S 2,107263,1,0 +Mk75=Stimulus,S 1,111129,1,0 +Mk76=Stimulus,S 2,111995,1,0 +Mk77=Stimulus,S 2,114395,1,0 +Mk78=Stimulus,S 1,115911,1,0 +Mk79=Stimulus,S 2,116560,1,0 +Mk80=Stimulus,S 1,118077,1,0 +Mk81=Stimulus,S 2,118926,1,0 +Mk82=Stimulus,S 2,121276,1,0 +Mk83=Stimulus,S 1,122792,1,0 +Mk84=Stimulus,S 2,123383,1,0 +Mk85=Stimulus,S 1,124899,1,0 +Mk86=Stimulus,S 2,125466,1,0 +Mk87=Stimulus,S 1,126982,1,0 +Mk88=Stimulus,S 2,127740,1,0 +Mk89=Stimulus,S 1,129256,1,0 +Mk90=Stimulus,S 2,130249,1,0 +Mk91=Stimulus,S 1,131764,1,0 +Mk92=Stimulus,S 2,132447,1,0 +Mk93=Stimulus,S 1,133963,1,0 +Mk94=Stimulus,S 2,134763,1,0 +Mk95=Stimulus,S 1,136279,1,0 +Mk96=Stimulus,S 2,136904,1,0 +Mk97=Stimulus,S 1,138420,1,0 +Mk98=Stimulus,S 2,139303,1,0 +Mk99=Stimulus,S 1,140819,1,0 +Mk100=Stimulus,S 2,141453,1,0 +Mk101=Stimulus,S 1,142969,1,0 +Mk102=Stimulus,S 2,143727,1,0 diff --git a/raw_data/PD1309.vhdr b/raw_data/PD1309.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..3f426623e6395629348bf72b880d3b8ec7f5e3b1 --- /dev/null +++ b/raw_data/PD1309.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1309.eeg +MarkerFile=PD1309.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17060817 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 17061539 --- + --- Module 2 (5010): S/N 17061540 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 11:40:52 : +Fp1: 0 +Fz: 4 +F3: 2 +F7: 6 +Aa: 6 +FC5: 19 +FC1: 9 +C3: 10 +T7: 19 +TP9: 5 +CP5: 32 +CP1: 6 +Pz: 28 +P3: 13 +P7: 15 +O1: 4 +Oz: 12 +O2: 24 +P4: 21 +P8: 10 +TP10: 6 +CP6: 19 +CP2: 14 +Cz: 30 +C4: 19 +T8: 4 +FT10: 13 +FC6: 15 +FC2: 3 +F4: 6 +F8: 11 +Fp2: 7 +AF7: 0 +AF3: 2 +AFz: 19 +F1: 3 +F5: 2 +FT7: 20 +FC3: 16 +C1: 1 +C5: 10 +TP7: 3 +CP3: 10 +P1: 13 +P5: 8 +PO7: 5 +Bb: 5 +POz: 25 +Cc: 16 +PO8: 10 +P6: 9 +P2: 29 +CPz: 41 +CP4: 6 +TP8: 14 +C6: 22 +C2: 3 +FC4: 5 +FT8: 3 +F6: 10 +AF8: 2 +AF4: 8 +F2: 6 +FCz: 5 +Gnd: 1 diff --git a/raw_data/PD1309.vmrk b/raw_data/PD1309.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..932996c3d523878154f3853d2834284bf525f602 --- /dev/null +++ b/raw_data/PD1309.vmrk @@ -0,0 +1,112 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1309.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20180822131715981653 +Mk2=Stimulus,S 2,4419,1,0 +Mk3=Stimulus,S 1,5935,1,0 +Mk4=Stimulus,S 2,6760,1,0 +Mk5=Stimulus,S 1,8276,1,0 +Mk6=Stimulus,S 2,8834,1,0 +Mk7=Stimulus,S 1,10350,1,0 +Mk8=Stimulus,S 2,11000,1,0 +Mk9=Stimulus,S 1,12516,1,0 +Mk10=Stimulus,S 2,13299,1,0 +Mk11=Stimulus,S 2,15810,1,0 +Mk12=Stimulus,S 1,17323,1,0 +Mk13=Stimulus,S 2,18319,1,0 +Mk14=Stimulus,S 1,19839,1,0 +Mk15=Stimulus,S 2,20430,1,0 +Mk16=Stimulus,S 2,22946,1,0 +Mk17=Stimulus,S 1,24462,1,0 +Mk18=Stimulus,S 2,25456,1,0 +Mk19=Stimulus,S 1,26970,1,0 +Mk20=Stimulus,S 2,27720,1,0 +Mk21=Stimulus,S 1,29236,1,0 +Mk22=Stimulus,S 2,30144,1,0 +Mk23=Stimulus,S 1,31660,1,0 +Mk24=Stimulus,S 2,32243,1,0 +Mk25=Stimulus,S 1,33759,1,0 +Mk26=Stimulus,S 2,34476,1,0 +Mk27=Stimulus,S 1,35992,1,0 +Mk28=Stimulus,S 2,36958,1,0 +Mk29=Stimulus,S 1,40899,1,0 +Mk30=Stimulus,S 2,41892,1,0 +Mk31=Stimulus,S 1,43406,1,0 +Mk32=Stimulus,S 2,44240,1,0 +Mk33=Stimulus,S 2,46280,1,0 +Mk34=Stimulus,S 1,47797,1,0 +Mk35=Stimulus,S 1,50246,1,0 +Mk36=Stimulus,S 2,51220,1,0 +Mk37=Stimulus,S 1,52737,1,0 +Mk38=Stimulus,S 2,53586,1,0 +Mk39=Stimulus,S 2,55994,1,0 +Mk40=Stimulus,S 1,57510,1,0 +Mk41=Stimulus,S 2,58393,1,0 +Mk42=Stimulus,S 1,59909,1,0 +Mk43=Stimulus,S 2,60617,1,0 +Mk44=Stimulus,S 2,62967,1,0 +Mk45=Stimulus,S 1,64483,1,0 +Mk46=Stimulus,S 2,65075,1,0 +Mk47=Stimulus,S 2,67449,1,0 +Mk48=Stimulus,S 1,68965,1,0 +Mk49=Stimulus,S 1,71006,1,0 +Mk50=Stimulus,S 1,75979,1,0 +Mk51=Stimulus,S 2,76512,1,0 +Mk52=Stimulus,S 1,80103,1,0 +Mk53=Stimulus,S 1,82544,1,0 +Mk54=Stimulus,S 2,83402,1,0 +Mk55=Stimulus,S 2,85576,1,0 +Mk56=Stimulus,S 1,87092,1,0 +Mk57=Stimulus,S 2,88075,1,0 +Mk58=Stimulus,S 1,89591,1,0 +Mk59=Stimulus,S 2,90116,1,0 +Mk60=Stimulus,S 2,92358,1,0 +Mk61=Stimulus,S 1,93873,1,0 +Mk62=Stimulus,S 2,94573,1,0 +Mk63=Stimulus,S 1,96089,1,0 +Mk64=Stimulus,S 2,96981,1,0 +Mk65=Stimulus,S 1,98497,1,0 +Mk66=Stimulus,S 2,99405,1,0 +Mk67=Stimulus,S 1,100921,1,0 +Mk68=Stimulus,S 2,101521,1,0 +Mk69=Stimulus,S 1,103037,1,0 +Mk70=Stimulus,S 2,103787,1,0 +Mk71=Stimulus,S 1,105303,1,0 +Mk72=Stimulus,S 2,106036,1,0 +Mk73=Stimulus,S 1,107552,1,0 +Mk74=Stimulus,S 2,108385,1,0 +Mk75=Stimulus,S 2,110768,1,0 +Mk76=Stimulus,S 1,112284,1,0 +Mk77=Stimulus,S 2,113168,1,0 +Mk78=Stimulus,S 1,114683,1,0 +Mk79=Stimulus,S 2,115333,1,0 +Mk80=Stimulus,S 1,116849,1,0 +Mk81=Stimulus,S 2,117699,1,0 +Mk82=Stimulus,S 1,119215,1,0 +Mk83=Stimulus,S 2,120049,1,0 +Mk84=Stimulus,S 2,122156,1,0 +Mk85=Stimulus,S 1,123672,1,0 +Mk86=Stimulus,S 2,124239,1,0 +Mk87=Stimulus,S 1,125755,1,0 +Mk88=Stimulus,S 2,126513,1,0 +Mk89=Stimulus,S 1,128029,1,0 +Mk90=Stimulus,S 2,129022,1,0 +Mk91=Stimulus,S 1,130537,1,0 +Mk92=Stimulus,S 2,131220,1,0 +Mk93=Stimulus,S 1,132736,1,0 +Mk94=Stimulus,S 2,133536,1,0 +Mk95=Stimulus,S 1,135052,1,0 +Mk96=Stimulus,S 1,137193,1,0 +Mk97=Stimulus,S 2,138076,1,0 +Mk98=Stimulus,S 1,139592,1,0 +Mk99=Stimulus,S 2,140226,1,0 +Mk100=Stimulus,S 1,141741,1,0 +Mk101=Stimulus,S 2,142500,1,0 diff --git a/raw_data/PD1319.vhdr b/raw_data/PD1319.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..1a2d30d3ede4a73d0bc75f8c1c419c57387635c9 --- /dev/null +++ b/raw_data/PD1319.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1319.eeg +MarkerFile=PD1319.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17060817 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 17061539 --- + --- Module 2 (5010): S/N 17061540 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 10:26:43 : +Fp1: 9 +Fz: 7 +F3: 6 +F7: 16 +Aa: 4 +FC5: 2 +FC1: 9 +C3: 2 +T7: 2 +TP9: 4 +CP5: 0 +CP1: 0 +Pz: 5 +P3: 1 +P7: 0 +O1: 3 +Oz: 2 +O2: 3 +P4: 2 +P8: 5 +TP10: 23 +CP6: 0 +CP2: 10 +Cz: 7 +C4: 10 +T8: 6 +FT10: 10 +FC6: 7 +FC2: 9 +F4: 3 +F8: 18 +Fp2: 4 +AF7: 10 +AF3: 13 +AFz: 10 +F1: 7 +F5: 6 +FT7: 2 +FC3: 26 +C1: 8 +C5: 0 +TP7: 5 +CP3: 0 +P1: 1 +P5: 1 +PO7: 0 +Bb: 5 +POz: 3 +Cc: 2 +PO8: 4 +P6: 1 +P2: 8 +CPz: 15 +CP4: 0 +TP8: 12 +C6: 16 +C2: 2 +FC4: 24 +FT8: 7 +F6: 16 +AF8: 11 +AF4: 9 +F2: 2 +FCz: 8 +Gnd: 3 diff --git a/raw_data/PD1319.vmrk b/raw_data/PD1319.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..95608ddfb805266d63bb300f788e9729550539f2 --- /dev/null +++ b/raw_data/PD1319.vmrk @@ -0,0 +1,107 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1319.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20180824123541579939 +Mk2=Stimulus,S 1,1432,1,0 +Mk3=Stimulus,S 2,2398,1,0 +Mk4=Stimulus,S 2,4739,1,0 +Mk5=Stimulus,S 1,6251,1,0 +Mk6=Stimulus,S 2,6807,1,0 +Mk7=Stimulus,S 1,8322,1,0 +Mk8=Stimulus,S 2,8971,1,0 +Mk9=Stimulus,S 1,12787,1,0 +Mk10=Stimulus,S 2,13780,1,0 +Mk11=Stimulus,S 1,15294,1,0 +Mk12=Stimulus,S 2,16289,1,0 +Mk13=Stimulus,S 1,17802,1,0 +Mk14=Stimulus,S 2,18393,1,0 +Mk15=Stimulus,S 2,20909,1,0 +Mk16=Stimulus,S 1,22425,1,0 +Mk17=Stimulus,S 2,23418,1,0 +Mk18=Stimulus,S 1,24933,1,0 +Mk19=Stimulus,S 2,25683,1,0 +Mk20=Stimulus,S 1,27199,1,0 +Mk21=Stimulus,S 2,28107,1,0 +Mk22=Stimulus,S 1,29623,1,0 +Mk23=Stimulus,S 2,30206,1,0 +Mk24=Stimulus,S 1,31722,1,0 +Mk25=Stimulus,S 2,32439,1,0 +Mk26=Stimulus,S 1,33955,1,0 +Mk27=Stimulus,S 2,34921,1,0 +Mk28=Stimulus,S 1,38862,1,0 +Mk29=Stimulus,S 1,41369,1,0 +Mk30=Stimulus,S 2,42203,1,0 +Mk31=Stimulus,S 1,43719,1,0 +Mk32=Stimulus,S 2,44243,1,0 +Mk33=Stimulus,S 1,48209,1,0 +Mk34=Stimulus,S 2,49183,1,0 +Mk35=Stimulus,S 2,51549,1,0 +Mk36=Stimulus,S 1,53065,1,0 +Mk37=Stimulus,S 2,53957,1,0 +Mk38=Stimulus,S 1,55473,1,0 +Mk39=Stimulus,S 2,56356,1,0 +Mk40=Stimulus,S 1,57864,1,0 +Mk41=Stimulus,S 2,58572,1,0 +Mk42=Stimulus,S 1,60088,1,0 +Mk43=Stimulus,S 2,60922,1,0 +Mk44=Stimulus,S 1,62437,1,0 +Mk45=Stimulus,S 2,63029,1,0 +Mk46=Stimulus,S 1,64545,1,0 +Mk47=Stimulus,S 2,65404,1,0 +Mk48=Stimulus,S 1,66919,1,0 +Mk49=Stimulus,S 2,67444,1,0 +Mk50=Stimulus,S 1,68960,1,0 +Mk51=Stimulus,S 2,69610,1,0 +Mk52=Stimulus,S 1,74550,1,0 +Mk53=Stimulus,S 2,75083,1,0 +Mk54=Stimulus,S 1,78674,1,0 +Mk55=Stimulus,S 1,81115,1,0 +Mk56=Stimulus,S 2,81973,1,0 +Mk57=Stimulus,S 1,83489,1,0 +Mk58=Stimulus,S 2,84155,1,0 +Mk59=Stimulus,S 1,88171,1,0 +Mk60=Stimulus,S 1,90212,1,0 +Mk61=Stimulus,S 2,90937,1,0 +Mk62=Stimulus,S 1,92453,1,0 +Mk63=Stimulus,S 2,93153,1,0 +Mk64=Stimulus,S 1,94669,1,0 +Mk65=Stimulus,S 2,95560,1,0 +Mk66=Stimulus,S 1,97076,1,0 +Mk67=Stimulus,S 2,97984,1,0 +Mk68=Stimulus,S 2,100101,1,0 +Mk69=Stimulus,S 2,102367,1,0 +Mk70=Stimulus,S 1,103882,1,0 +Mk71=Stimulus,S 1,106132,1,0 +Mk72=Stimulus,S 2,106965,1,0 +Mk73=Stimulus,S 1,108481,1,0 +Mk74=Stimulus,S 2,109347,1,0 +Mk75=Stimulus,S 2,111747,1,0 +Mk76=Stimulus,S 1,113263,1,0 +Mk77=Stimulus,S 1,115429,1,0 +Mk78=Stimulus,S 2,116278,1,0 +Mk79=Stimulus,S 2,118628,1,0 +Mk80=Stimulus,S 1,120144,1,0 +Mk81=Stimulus,S 2,120735,1,0 +Mk82=Stimulus,S 1,124334,1,0 +Mk83=Stimulus,S 2,125092,1,0 +Mk84=Stimulus,S 1,126608,1,0 +Mk85=Stimulus,S 1,129116,1,0 +Mk86=Stimulus,S 2,129799,1,0 +Mk87=Stimulus,S 1,131315,1,0 +Mk88=Stimulus,S 2,132115,1,0 +Mk89=Stimulus,S 1,133631,1,0 +Mk90=Stimulus,S 2,134256,1,0 +Mk91=Stimulus,S 1,135772,1,0 +Mk92=Stimulus,S 2,136655,1,0 +Mk93=Stimulus,S 1,138171,1,0 +Mk94=Stimulus,S 2,138805,1,0 +Mk95=Stimulus,S 1,140321,1,0 +Mk96=Stimulus,S 2,141079,1,0 diff --git a/raw_data/PD1329.vhdr b/raw_data/PD1329.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..0c409dac7c56ed3da97d2df3eb19fe44437d9372 --- /dev/null +++ b/raw_data/PD1329.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1329.eeg +MarkerFile=PD1329.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17060817 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 17061539 --- + --- Module 2 (5010): S/N 17061540 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 11:54:41 : +Fp1: 4 +Fz: 3 +F3: 2 +F7: 4 +Aa: 2 +FC5: 11 +FC1: 1 +C3: 5 +T7: 12 +TP9: 20 +CP5: 14 +CP1: 2 +Pz: 3 +P3: 6 +P7: 10 +O1: 9 +Oz: 8 +O2: 5 +P4: 6 +P8: 1 +TP10: 2 +CP6: 1 +CP2: 2 +Cz: 2 +C4: 4 +T8: 6 +FT10: 9 +FC6: 6 +FC2: 8 +F4: 12 +F8: 5 +Fp2: 6 +AF7: 7 +AF3: 8 +AFz: 7 +F1: 3 +F5: 2 +FT7: 12 +FC3: 7 +C1: 2 +C5: 16 +TP7: 10 +CP3: 4 +P1: 4 +P5: 8 +PO7: 10 +Bb: 6 +POz: 7 +Cc: 2 +PO8: 6 +P6: 1 +P2: 3 +CPz: 1 +CP4: 2 +TP8: 1 +C6: 3 +C2: 4 +FC4: 5 +FT8: 7 +F6: 5 +AF8: 9 +AF4: 12 +F2: 10 +FCz: 2 +Gnd: 4 diff --git a/raw_data/PD1329.vmrk b/raw_data/PD1329.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..b6951df2fbf46d1e65fe81f8dde514d6e503beba --- /dev/null +++ b/raw_data/PD1329.vmrk @@ -0,0 +1,113 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1329.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20180828141013076308 +Mk2=Stimulus,S 1,4017,1,0 +Mk3=Stimulus,S 2,4983,1,0 +Mk4=Stimulus,S 1,6499,1,0 +Mk5=Stimulus,S 2,7324,1,0 +Mk6=Stimulus,S 1,8840,1,0 +Mk7=Stimulus,S 2,9398,1,0 +Mk8=Stimulus,S 2,11564,1,0 +Mk9=Stimulus,S 1,15380,1,0 +Mk10=Stimulus,S 2,16373,1,0 +Mk11=Stimulus,S 1,17887,1,0 +Mk12=Stimulus,S 2,18882,1,0 +Mk13=Stimulus,S 1,20395,1,0 +Mk14=Stimulus,S 2,20986,1,0 +Mk15=Stimulus,S 1,22502,1,0 +Mk16=Stimulus,S 2,23502,1,0 +Mk17=Stimulus,S 1,25018,1,0 +Mk18=Stimulus,S 2,26011,1,0 +Mk19=Stimulus,S 1,27526,1,0 +Mk20=Stimulus,S 2,28276,1,0 +Mk21=Stimulus,S 1,29792,1,0 +Mk22=Stimulus,S 2,30700,1,0 +Mk23=Stimulus,S 1,32216,1,0 +Mk24=Stimulus,S 2,32799,1,0 +Mk25=Stimulus,S 1,34315,1,0 +Mk26=Stimulus,S 2,35032,1,0 +Mk27=Stimulus,S 1,36548,1,0 +Mk28=Stimulus,S 2,37514,1,0 +Mk29=Stimulus,S 1,41449,1,0 +Mk30=Stimulus,S 2,42438,1,0 +Mk31=Stimulus,S 1,43954,1,0 +Mk32=Stimulus,S 2,44787,1,0 +Mk33=Stimulus,S 1,46303,1,0 +Mk34=Stimulus,S 2,46828,1,0 +Mk35=Stimulus,S 1,48344,1,0 +Mk36=Stimulus,S 2,49277,1,0 +Mk37=Stimulus,S 1,50793,1,0 +Mk38=Stimulus,S 2,51768,1,0 +Mk39=Stimulus,S 1,53284,1,0 +Mk40=Stimulus,S 2,54134,1,0 +Mk41=Stimulus,S 1,55650,1,0 +Mk42=Stimulus,S 2,56541,1,0 +Mk43=Stimulus,S 1,58058,1,0 +Mk44=Stimulus,S 1,60457,1,0 +Mk45=Stimulus,S 2,61165,1,0 +Mk46=Stimulus,S 1,62681,1,0 +Mk47=Stimulus,S 2,63515,1,0 +Mk48=Stimulus,S 1,65030,1,0 +Mk49=Stimulus,S 2,65622,1,0 +Mk50=Stimulus,S 1,67138,1,0 +Mk51=Stimulus,S 2,67997,1,0 +Mk52=Stimulus,S 1,69512,1,0 +Mk53=Stimulus,S 2,70037,1,0 +Mk54=Stimulus,S 1,71553,1,0 +Mk55=Stimulus,S 2,72203,1,0 +Mk56=Stimulus,S 1,104909,1,0 +Mk57=Stimulus,S 2,105442,1,0 +Mk58=Stimulus,S 2,107517,1,0 +Mk59=Stimulus,S 1,109033,1,0 +Mk60=Stimulus,S 2,109958,1,0 +Mk61=Stimulus,S 1,111474,1,0 +Mk62=Stimulus,S 2,112332,1,0 +Mk63=Stimulus,S 1,113848,1,0 +Mk64=Stimulus,S 1,116031,1,0 +Mk65=Stimulus,S 2,117014,1,0 +Mk66=Stimulus,S 1,118530,1,0 +Mk67=Stimulus,S 2,119055,1,0 +Mk68=Stimulus,S 1,120571,1,0 +Mk69=Stimulus,S 2,121296,1,0 +Mk70=Stimulus,S 1,122812,1,0 +Mk71=Stimulus,S 2,123512,1,0 +Mk72=Stimulus,S 1,125028,1,0 +Mk73=Stimulus,S 2,125919,1,0 +Mk74=Stimulus,S 1,127435,1,0 +Mk75=Stimulus,S 2,128343,1,0 +Mk76=Stimulus,S 2,132726,1,0 +Mk77=Stimulus,S 1,136491,1,0 +Mk78=Stimulus,S 2,137324,1,0 +Mk79=Stimulus,S 1,138840,1,0 +Mk80=Stimulus,S 2,139706,1,0 +Mk81=Stimulus,S 2,142106,1,0 +Mk82=Stimulus,S 1,143622,1,0 +Mk83=Stimulus,S 1,145788,1,0 +Mk84=Stimulus,S 1,148154,1,0 +Mk85=Stimulus,S 2,148987,1,0 +Mk86=Stimulus,S 1,150503,1,0 +Mk87=Stimulus,S 2,151094,1,0 +Mk88=Stimulus,S 2,153177,1,0 +Mk89=Stimulus,S 1,154693,1,0 +Mk90=Stimulus,S 2,155451,1,0 +Mk91=Stimulus,S 2,157961,1,0 +Mk92=Stimulus,S 1,159475,1,0 +Mk93=Stimulus,S 2,160158,1,0 +Mk94=Stimulus,S 1,161674,1,0 +Mk95=Stimulus,S 2,162474,1,0 +Mk96=Stimulus,S 1,163990,1,0 +Mk97=Stimulus,S 2,164615,1,0 +Mk98=Stimulus,S 1,166131,1,0 +Mk99=Stimulus,S 2,167015,1,0 +Mk100=Stimulus,S 2,169164,1,0 +Mk101=Stimulus,S 1,170680,1,0 +Mk102=Stimulus,S 2,171438,1,0 diff --git a/raw_data/PD1339.vhdr b/raw_data/PD1339.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..d90d49e44a4de76771144b0fe1dfee86ece2cc2d --- /dev/null +++ b/raw_data/PD1339.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1339.eeg +MarkerFile=PD1339.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17060817 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 17061539 --- + --- Module 2 (5010): S/N 17061540 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 11:53:53 : +Fp1: 2 +Fz: 2 +F3: 3 +F7: 5 +Aa: 13 +FC5: 6 +FC1: 1 +C3: 4 +T7: 16 +TP9: 11 +CP5: 11 +CP1: 1 +Pz: 3 +P3: 1 +P7: 3 +O1: 3 +Oz: 9 +O2: 7 +P4: 2 +P8: 3 +TP10: 13 +CP6: 8 +CP2: 5 +Cz: 2 +C4: 7 +T8: 9 +FT10: 8 +FC6: 7 +FC2: 5 +F4: 11 +F8: 13 +Fp2: 4 +AF7: 3 +AF3: 4 +AFz: 11 +F1: 1 +F5: 3 +FT7: 4 +FC3: 2 +C1: 2 +C5: 5 +TP7: 12 +CP3: 6 +P1: 2 +P5: 3 +PO7: 1 +Bb: 15 +POz: 9 +Cc: 12 +PO8: 3 +P6: 2 +P2: 3 +CPz: 0 +CP4: 10 +TP8: 1 +C6: 8 +C2: 4 +FC4: 10 +FT8: 7 +F6: 6 +AF8: 6 +AF4: 5 +F2: 8 +FCz: 8 +Gnd: 7 diff --git a/raw_data/PD1339.vmrk b/raw_data/PD1339.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..d355923d3227f4e5468a905d9539e85288d8c1bf --- /dev/null +++ b/raw_data/PD1339.vmrk @@ -0,0 +1,111 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1339.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20180904143105300725 +Mk2=Stimulus,S 1,2979,1,0 +Mk3=Stimulus,S 1,5458,1,0 +Mk4=Stimulus,S 2,6285,1,0 +Mk5=Stimulus,S 1,7798,1,0 +Mk6=Stimulus,S 1,9870,1,0 +Mk7=Stimulus,S 2,10517,1,0 +Mk8=Stimulus,S 1,12030,1,0 +Mk9=Stimulus,S 2,12810,1,0 +Mk10=Stimulus,S 1,14329,1,0 +Mk11=Stimulus,S 2,15320,1,0 +Mk12=Stimulus,S 1,16835,1,0 +Mk13=Stimulus,S 2,17830,1,0 +Mk14=Stimulus,S 1,19341,1,0 +Mk15=Stimulus,S 2,19927,1,0 +Mk16=Stimulus,S 1,21440,1,0 +Mk17=Stimulus,S 2,22440,1,0 +Mk18=Stimulus,S 2,24939,1,0 +Mk19=Stimulus,S 1,26452,1,0 +Mk20=Stimulus,S 2,27205,1,0 +Mk21=Stimulus,S 2,29624,1,0 +Mk22=Stimulus,S 1,31137,1,0 +Mk23=Stimulus,S 2,33949,1,0 +Mk24=Stimulus,S 1,35462,1,0 +Mk25=Stimulus,S 2,36428,1,0 +Mk26=Stimulus,S 1,37942,1,0 +Mk27=Stimulus,S 2,41347,1,0 +Mk28=Stimulus,S 1,42860,1,0 +Mk29=Stimulus,S 2,43699,1,0 +Mk30=Stimulus,S 1,45212,1,0 +Mk31=Stimulus,S 2,45739,1,0 +Mk32=Stimulus,S 1,47252,1,0 +Mk33=Stimulus,S 2,48185,1,0 +Mk34=Stimulus,S 1,49698,1,0 +Mk35=Stimulus,S 2,50671,1,0 +Mk36=Stimulus,S 1,52183,1,0 +Mk37=Stimulus,S 2,53030,1,0 +Mk38=Stimulus,S 1,54543,1,0 +Mk39=Stimulus,S 2,55429,1,0 +Mk40=Stimulus,S 1,56942,1,0 +Mk41=Stimulus,S 1,59334,1,0 +Mk42=Stimulus,S 2,60041,1,0 +Mk43=Stimulus,S 1,61554,1,0 +Mk44=Stimulus,S 2,62387,1,0 +Mk45=Stimulus,S 2,64493,1,0 +Mk46=Stimulus,S 2,66866,1,0 +Mk47=Stimulus,S 1,68378,1,0 +Mk48=Stimulus,S 2,71064,1,0 +Mk49=Stimulus,S 2,78368,1,0 +Mk50=Stimulus,S 1,79881,1,0 +Mk51=Stimulus,S 2,80801,1,0 +Mk52=Stimulus,S 1,82314,1,0 +Mk53=Stimulus,S 2,83167,1,0 +Mk54=Stimulus,S 1,84680,1,0 +Mk55=Stimulus,S 2,85346,1,0 +Mk56=Stimulus,S 1,86859,1,0 +Mk57=Stimulus,S 2,87845,1,0 +Mk58=Stimulus,S 1,89358,1,0 +Mk59=Stimulus,S 1,91397,1,0 +Mk60=Stimulus,S 2,92124,1,0 +Mk61=Stimulus,S 1,93637,1,0 +Mk62=Stimulus,S 2,94336,1,0 +Mk63=Stimulus,S 1,95849,1,0 +Mk64=Stimulus,S 2,96742,1,0 +Mk65=Stimulus,S 1,98255,1,0 +Mk66=Stimulus,S 2,99162,1,0 +Mk67=Stimulus,S 1,100674,1,0 +Mk68=Stimulus,S 2,101275,1,0 +Mk69=Stimulus,S 1,102787,1,0 +Mk70=Stimulus,S 2,103540,1,0 +Mk71=Stimulus,S 1,105053,1,0 +Mk72=Stimulus,S 2,105786,1,0 +Mk73=Stimulus,S 1,107299,1,0 +Mk74=Stimulus,S 2,108132,1,0 +Mk75=Stimulus,S 1,109645,1,0 +Mk76=Stimulus,S 2,112904,1,0 +Mk77=Stimulus,S 1,114417,1,0 +Mk78=Stimulus,S 2,115063,1,0 +Mk79=Stimulus,S 1,116576,1,0 +Mk80=Stimulus,S 2,117423,1,0 +Mk81=Stimulus,S 1,118935,1,0 +Mk82=Stimulus,S 2,119769,1,0 +Mk83=Stimulus,S 1,121281,1,0 +Mk84=Stimulus,S 2,121868,1,0 +Mk85=Stimulus,S 1,123380,1,0 +Mk86=Stimulus,S 2,123947,1,0 +Mk87=Stimulus,S 1,125460,1,0 +Mk88=Stimulus,S 1,127733,1,0 +Mk89=Stimulus,S 2,128719,1,0 +Mk90=Stimulus,S 1,130232,1,0 +Mk91=Stimulus,S 2,130911,1,0 +Mk92=Stimulus,S 1,132424,1,0 +Mk93=Stimulus,S 2,133224,1,0 +Mk94=Stimulus,S 1,134737,1,0 +Mk95=Stimulus,S 1,136870,1,0 +Mk96=Stimulus,S 2,137756,1,0 +Mk97=Stimulus,S 1,139269,1,0 +Mk98=Stimulus,S 2,139902,1,0 +Mk99=Stimulus,S 1,141415,1,0 +Mk100=Stimulus,S 2,142175,1,0 diff --git a/raw_data/PD1349.vhdr b/raw_data/PD1349.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..5901f05a9fa0b5e721861b19a252a036585c9f82 --- /dev/null +++ b/raw_data/PD1349.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1349.eeg +MarkerFile=PD1349.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling task +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17060817 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 17061539 --- + --- Module 2 (5010): S/N 17061540 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 11:09:55 : +Fp1: not connected +Fz: not connected +F3: not connected +F7: not connected +Aa: not connected +FC5: not connected +FC1: not connected +C3: not connected +T7: not connected +TP9: not connected +CP5: not connected +CP1: not connected +Pz: not connected +P3: not connected +P7: not connected +O1: not connected +Oz: not connected +O2: not connected +P4: not connected +P8: not connected +TP10: not connected +CP6: not connected +CP2: not connected +Cz: not connected +C4: not connected +T8: not connected +FT10: not connected +FC6: not connected +FC2: not connected +F4: not connected +F8: not connected +Fp2: not connected +AF7: not connected +AF3: not connected +AFz: not connected +F1: not connected +F5: not connected +FT7: not connected +FC3: not connected +C1: not connected +C5: not connected +TP7: not connected +CP3: not connected +P1: not connected +P5: not connected +PO7: not connected +Bb: not connected +POz: not connected +Cc: not connected +PO8: not connected +P6: not connected +P2: not connected +CPz: not connected +CP4: not connected +TP8: not connected +C6: not connected +C2: not connected +FC4: not connected +FT8: not connected +F6: not connected +AF8: not connected +AF4: not connected +F2: not connected +FCz: not connected +Gnd: not connected diff --git a/raw_data/PD1349.vmrk b/raw_data/PD1349.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..87a7444f36f35cdd383de338f9dd2a5e3095c393 --- /dev/null +++ b/raw_data/PD1349.vmrk @@ -0,0 +1,129 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1349.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20180911131852040342 +Mk2=New Segment,,1611,1,0,20180911131901480469 +Mk3=New Segment,,2591,1,0,20180911132027701627 +Mk4=Stimulus,S 1,20217,1,0 +Mk5=Stimulus,S 1,22450,1,0 +Mk6=Stimulus,S 2,23136,1,0 +Mk7=Stimulus,S 1,24643,1,0 +Mk8=Stimulus,S 2,25409,1,0 +Mk9=Stimulus,S 1,26915,1,0 +Mk10=Stimulus,S 2,27521,1,0 +Mk11=Stimulus,S 1,29028,1,0 +Mk12=Stimulus,S 2,29874,1,0 +Mk13=Stimulus,S 1,31381,1,0 +Mk14=Stimulus,S 2,32313,1,0 +Mk15=Stimulus,S 1,33820,1,0 +Mk16=Stimulus,S 2,34713,1,0 +Mk17=Stimulus,S 1,36219,1,0 +Mk18=Stimulus,S 2,36858,1,0 +Mk19=Stimulus,S 1,38365,1,0 +Mk20=Stimulus,S 2,39291,1,0 +Mk21=Stimulus,S 1,40798,1,0 +Mk22=Stimulus,S 2,41537,1,0 +Mk23=Stimulus,S 1,43044,1,0 +Mk24=Stimulus,S 2,43903,1,0 +Mk25=Stimulus,S 1,45409,1,0 +Mk26=Stimulus,S 2,46136,1,0 +Mk27=Stimulus,S 1,47642,1,0 +Mk28=Stimulus,S 2,48241,1,0 +Mk29=Stimulus,S 1,49748,1,0 +Mk30=Stimulus,S 2,50748,1,0 +Mk31=Stimulus,S 1,52254,1,0 +Mk32=Stimulus,S 2,52907,1,0 +Mk33=Stimulus,S 1,54413,1,0 +Mk34=Stimulus,S 2,55386,1,0 +Mk35=Stimulus,S 1,56893,1,0 +Mk36=Stimulus,S 2,57412,1,0 +Mk37=Stimulus,S 1,58919,1,0 +Mk38=Stimulus,S 2,59631,1,0 +Mk39=Stimulus,S 1,61138,1,0 +Mk40=Stimulus,S 1,63631,1,0 +Mk41=Stimulus,S 2,64516,1,0 +Mk42=Stimulus,S 1,66023,1,0 +Mk43=Stimulus,S 2,66716,1,0 +Mk44=Stimulus,S 1,68222,1,0 +Mk45=Stimulus,S 2,68749,1,0 +Mk46=Stimulus,S 1,70261,1,0 +Mk47=Stimulus,S 2,71194,1,0 +Mk48=Stimulus,S 1,72701,1,0 +Mk49=Stimulus,S 2,73580,1,0 +Mk50=Stimulus,S 1,75087,1,0 +Mk51=Stimulus,S 2,75806,1,0 +Mk52=Stimulus,S 1,77313,1,0 +Mk53=Stimulus,S 2,77972,1,0 +Mk54=Stimulus,S 1,79479,1,0 +Mk55=Stimulus,S 2,80158,1,0 +Mk56=Stimulus,S 1,81664,1,0 +Mk57=Stimulus,S 1,83970,1,0 +Mk58=Stimulus,S 1,86476,1,0 +Mk59=Stimulus,S 2,87409,1,0 +Mk60=Stimulus,S 1,93540,1,0 +Mk61=Stimulus,S 1,95573,1,0 +Mk62=Stimulus,S 2,96266,1,0 +Mk63=Stimulus,S 1,97772,1,0 +Mk64=Stimulus,S 2,98312,1,0 +Mk65=Stimulus,S 1,99818,1,0 +Mk66=Stimulus,S 2,100805,1,0 +Mk67=Stimulus,S 1,102311,1,0 +Mk68=Stimulus,S 2,103158,1,0 +Mk69=Stimulus,S 1,104664,1,0 +Mk70=Stimulus,S 2,105616,1,0 +Mk71=Stimulus,S 1,107123,1,0 +Mk72=Stimulus,S 2,107909,1,0 +Mk73=Stimulus,S 1,109416,1,0 +Mk74=Stimulus,S 2,110369,1,0 +Mk75=Stimulus,S 1,111875,1,0 +Mk76=Stimulus,S 2,112701,1,0 +Mk77=Stimulus,S 1,114207,1,0 +Mk78=Stimulus,S 2,115120,1,0 +Mk79=Stimulus,S 1,116627,1,0 +Mk80=Stimulus,S 2,117400,1,0 +Mk81=Stimulus,S 1,118906,1,0 +Mk82=Stimulus,S 2,119479,1,0 +Mk83=Stimulus,S 1,120985,1,0 +Mk84=Stimulus,S 2,121858,1,0 +Mk85=Stimulus,S 1,123364,1,0 +Mk86=Stimulus,S 2,124118,1,0 +Mk87=Stimulus,S 1,125623,1,0 +Mk88=Stimulus,S 2,126530,1,0 +Mk89=Stimulus,S 1,128036,1,0 +Mk90=Stimulus,S 2,128849,1,0 +Mk91=Stimulus,S 1,130355,1,0 +Mk92=Stimulus,S 2,131162,1,0 +Mk93=Stimulus,S 1,132668,1,0 +Mk94=Stimulus,S 2,133374,1,0 +Mk95=Stimulus,S 1,134881,1,0 +Mk96=Stimulus,S 2,135480,1,0 +Mk97=Stimulus,S 1,136987,1,0 +Mk98=Stimulus,S 2,137986,1,0 +Mk99=Stimulus,S 1,139493,1,0 +Mk100=Stimulus,S 2,140085,1,0 +Mk101=Stimulus,S 1,141592,1,0 +Mk102=Stimulus,S 2,142478,1,0 +Mk103=Stimulus,S 1,143984,1,0 +Mk104=Stimulus,S 2,144571,1,0 +Mk105=Stimulus,S 1,146077,1,0 +Mk106=Stimulus,S 2,146690,1,0 +Mk107=Stimulus,S 1,148197,1,0 +Mk108=Stimulus,S 2,148956,1,0 +Mk109=Stimulus,S 1,150462,1,0 +Mk110=Stimulus,S 2,150975,1,0 +Mk111=Stimulus,S 1,152482,1,0 +Mk112=Stimulus,S 2,153015,1,0 +Mk113=Stimulus,S 1,154521,1,0 +Mk114=Stimulus,S 2,155034,1,0 +Mk115=Stimulus,S 1,156540,1,0 +Mk116=Stimulus,S 2,157167,1,0 +Mk117=Stimulus,S 1,158673,1,0 +Mk118=Stimulus,S 2,159566,1,0 diff --git a/raw_data/PD1359.vhdr b/raw_data/PD1359.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..d19e87a89c6067a0bbe2f4d2ac1e23d4bccf40f3 --- /dev/null +++ b/raw_data/PD1359.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1359.eeg +MarkerFile=PD1359.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17060817 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 17061539 --- + --- Module 2 (5010): S/N 17061540 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 10:20:32 : +Fp1: 0 +Fz: 1 +F3: 2 +F7: 5 +Aa: 5 +FC5: 13 +FC1: 1 +C3: 2 +T7: 7 +TP9: 9 +CP5: 5 +CP1: 11 +Pz: 2 +P3: 7 +P7: 7 +O1: 16 +Oz: 6 +O2: 2 +P4: 5 +P8: 4 +TP10: 5 +CP6: 3 +CP2: 8 +Cz: 3 +C4: 1 +T8: 1 +FT10: 16 +FC6: 2 +FC2: 1 +F4: 1 +F8: 1 +Fp2: 0 +AF7: 1 +AF3: 1 +AFz: 2 +F1: 0 +F5: 3 +FT7: 5 +FC3: 3 +C1: 3 +C5: 12 +TP7: 6 +CP3: 15 +P1: 3 +P5: 7 +PO7: 8 +Bb: 15 +POz: 5 +Cc: 2 +PO8: 5 +P6: 3 +P2: 11 +CPz: 6 +CP4: 3 +TP8: 4 +C6: 0 +C2: 3 +FC4: 1 +FT8: 2 +F6: 0 +AF8: 0 +AF4: 2 +F2: 0 +FCz: 2 +Gnd: 0 diff --git a/raw_data/PD1359.vmrk b/raw_data/PD1359.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..a0aede07dfb513a495c40119afd4e788bb9f2d7c --- /dev/null +++ b/raw_data/PD1359.vmrk @@ -0,0 +1,114 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1359.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20180925131834428335 +Mk2=Stimulus,S 1,6624,1,0 +Mk3=Stimulus,S 2,7590,1,0 +Mk4=Stimulus,S 1,9106,1,0 +Mk5=Stimulus,S 2,9931,1,0 +Mk6=Stimulus,S 1,11440,1,0 +Mk7=Stimulus,S 2,11997,1,0 +Mk8=Stimulus,S 1,13505,1,0 +Mk9=Stimulus,S 2,14154,1,0 +Mk10=Stimulus,S 2,16445,1,0 +Mk11=Stimulus,S 2,18944,1,0 +Mk12=Stimulus,S 1,20452,1,0 +Mk13=Stimulus,S 2,21444,1,0 +Mk14=Stimulus,S 1,22952,1,0 +Mk15=Stimulus,S 2,23543,1,0 +Mk16=Stimulus,S 1,25051,1,0 +Mk17=Stimulus,S 2,26043,1,0 +Mk18=Stimulus,S 2,28550,1,0 +Mk19=Stimulus,S 1,30058,1,0 +Mk20=Stimulus,S 2,30815,1,0 +Mk21=Stimulus,S 1,32324,1,0 +Mk22=Stimulus,S 1,34739,1,0 +Mk23=Stimulus,S 2,35322,1,0 +Mk24=Stimulus,S 2,37547,1,0 +Mk25=Stimulus,S 1,39063,1,0 +Mk26=Stimulus,S 2,40029,1,0 +Mk27=Stimulus,S 1,41537,1,0 +Mk28=Stimulus,S 2,42445,1,0 +Mk29=Stimulus,S 1,43953,1,0 +Mk30=Stimulus,S 2,44944,1,0 +Mk31=Stimulus,S 2,47293,1,0 +Mk32=Stimulus,S 1,48801,1,0 +Mk33=Stimulus,S 2,49326,1,0 +Mk34=Stimulus,S 2,51775,1,0 +Mk35=Stimulus,S 1,53283,1,0 +Mk36=Stimulus,S 2,54258,1,0 +Mk37=Stimulus,S 1,55766,1,0 +Mk38=Stimulus,S 2,56615,1,0 +Mk39=Stimulus,S 1,58123,1,0 +Mk40=Stimulus,S 2,59014,1,0 +Mk41=Stimulus,S 1,60522,1,0 +Mk42=Stimulus,S 2,61405,1,0 +Mk43=Stimulus,S 1,62913,1,0 +Mk44=Stimulus,S 2,63621,1,0 +Mk45=Stimulus,S 1,65129,1,0 +Mk46=Stimulus,S 2,65970,1,0 +Mk47=Stimulus,S 2,68070,1,0 +Mk48=Stimulus,S 1,69578,1,0 +Mk49=Stimulus,S 2,70444,1,0 +Mk50=Stimulus,S 1,71952,1,0 +Mk51=Stimulus,S 2,72476,1,0 +Mk52=Stimulus,S 1,73985,1,0 +Mk53=Stimulus,S 2,74634,1,0 +Mk54=Stimulus,S 1,87221,1,0 +Mk55=Stimulus,S 2,87755,1,0 +Mk56=Stimulus,S 1,91329,1,0 +Mk57=Stimulus,S 2,92253,1,0 +Mk58=Stimulus,S 1,93761,1,0 +Mk59=Stimulus,S 2,94619,1,0 +Mk60=Stimulus,S 1,96128,1,0 +Mk61=Stimulus,S 2,96794,1,0 +Mk62=Stimulus,S 1,98302,1,0 +Mk63=Stimulus,S 2,99284,1,0 +Mk64=Stimulus,S 1,100792,1,0 +Mk65=Stimulus,S 2,101317,1,0 +Mk66=Stimulus,S 1,102825,1,0 +Mk67=Stimulus,S 1,105066,1,0 +Mk68=Stimulus,S 2,105765,1,0 +Mk69=Stimulus,S 1,107273,1,0 +Mk70=Stimulus,S 2,108164,1,0 +Mk71=Stimulus,S 1,109673,1,0 +Mk72=Stimulus,S 2,110580,1,0 +Mk73=Stimulus,S 2,112688,1,0 +Mk74=Stimulus,S 2,114962,1,0 +Mk75=Stimulus,S 1,116470,1,0 +Mk76=Stimulus,S 2,117203,1,0 +Mk77=Stimulus,S 1,118711,1,0 +Mk78=Stimulus,S 2,119544,1,0 +Mk79=Stimulus,S 1,121052,1,0 +Mk80=Stimulus,S 2,121918,1,0 +Mk81=Stimulus,S 1,123426,1,0 +Mk82=Stimulus,S 2,124310,1,0 +Mk83=Stimulus,S 1,125817,1,0 +Mk84=Stimulus,S 1,127975,1,0 +Mk85=Stimulus,S 2,128824,1,0 +Mk86=Stimulus,S 1,130332,1,0 +Mk87=Stimulus,S 2,131166,1,0 +Mk88=Stimulus,S 1,132682,1,0 +Mk89=Stimulus,S 2,133273,1,0 +Mk90=Stimulus,S 2,135347,1,0 +Mk91=Stimulus,S 1,136855,1,0 +Mk92=Stimulus,S 2,137613,1,0 +Mk93=Stimulus,S 1,139121,1,0 +Mk94=Stimulus,S 2,140112,1,0 +Mk95=Stimulus,S 1,141620,1,0 +Mk96=Stimulus,S 2,142303,1,0 +Mk97=Stimulus,S 1,143811,1,0 +Mk98=Stimulus,S 1,146119,1,0 +Mk99=Stimulus,S 2,146743,1,0 +Mk100=Stimulus,S 1,148252,1,0 +Mk101=Stimulus,S 2,149134,1,0 +Mk102=Stimulus,S 1,150642,1,0 +Mk103=Stimulus,S 1,152791,1,0 diff --git a/raw_data/PD1369.vhdr b/raw_data/PD1369.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..e865405f1dad2f043fc79744d6d3b1648ba4d0d5 --- /dev/null +++ b/raw_data/PD1369.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1369.eeg +MarkerFile=PD1369.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17060817 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 17061539 --- + --- Module 2 (5010): S/N 17061540 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 14:20:02 : +Fp1: 8 +Fz: 3 +F3: 3 +F7: 22 +Aa: 5 +FC5: 12 +FC1: 3 +C3: 1 +T7: 11 +TP9: 23 +CP5: 18 +CP1: 9 +Pz: 13 +P3: 15 +P7: 6 +O1: 4 +Oz: 13 +O2: 7 +P4: 12 +P8: 42 +TP10: 16 +CP6: 34 +CP2: 6 +Cz: 6 +C4: 6 +T8: 7 +FT10: 2 +FC6: 9 +FC2: 22 +F4: 2 +F8: 4 +Fp2: 3 +AF7: 17 +AF3: 10 +AFz: 1 +F1: 3 +F5: 13 +FT7: 38 +FC3: 6 +C1: 2 +C5: 6 +TP7: 22 +CP3: 374 +P1: 21 +P5: 5 +PO7: 4 +Bb: 5 +POz: 11 +Cc: 6 +PO8: 11 +P6: 13 +P2: 151 +CPz: 14 +CP4: 17 +TP8: 15 +C6: 18 +C2: 6 +FC4: 26 +FT8: 3 +F6: 3 +AF8: 10 +AF4: 7 +F2: 3 +FCz: 0 +Gnd: 4 diff --git a/raw_data/PD1369.vmrk b/raw_data/PD1369.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..c0f25b66d083818310f62d791cd6597839f65255 --- /dev/null +++ b/raw_data/PD1369.vmrk @@ -0,0 +1,116 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1369.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20181011144929287613 +Mk2=Stimulus,S 2,4205,1,0 +Mk3=Stimulus,S 2,6545,1,0 +Mk4=Stimulus,S 1,8062,1,0 +Mk5=Stimulus,S 2,8619,1,0 +Mk6=Stimulus,S 1,10128,1,0 +Mk7=Stimulus,S 2,10777,1,0 +Mk8=Stimulus,S 1,12286,1,0 +Mk9=Stimulus,S 2,13068,1,0 +Mk10=Stimulus,S 1,14576,1,0 +Mk11=Stimulus,S 2,15567,1,0 +Mk12=Stimulus,S 1,17075,1,0 +Mk13=Stimulus,S 2,18066,1,0 +Mk14=Stimulus,S 1,21674,1,0 +Mk15=Stimulus,S 2,22665,1,0 +Mk16=Stimulus,S 1,24174,1,0 +Mk17=Stimulus,S 2,25164,1,0 +Mk18=Stimulus,S 1,26672,1,0 +Mk19=Stimulus,S 2,27430,1,0 +Mk20=Stimulus,S 1,28938,1,0 +Mk21=Stimulus,S 2,29846,1,0 +Mk22=Stimulus,S 1,31354,1,0 +Mk23=Stimulus,S 1,33445,1,0 +Mk24=Stimulus,S 2,34161,1,0 +Mk25=Stimulus,S 1,35669,1,0 +Mk26=Stimulus,S 2,36635,1,0 +Mk27=Stimulus,S 1,38143,1,0 +Mk28=Stimulus,S 2,39051,1,0 +Mk29=Stimulus,S 1,40559,1,0 +Mk30=Stimulus,S 2,41550,1,0 +Mk31=Stimulus,S 1,43058,1,0 +Mk32=Stimulus,S 2,43899,1,0 +Mk33=Stimulus,S 1,45416,1,0 +Mk34=Stimulus,S 2,45940,1,0 +Mk35=Stimulus,S 1,47448,1,0 +Mk36=Stimulus,S 2,48381,1,0 +Mk37=Stimulus,S 1,49889,1,0 +Mk38=Stimulus,S 2,50864,1,0 +Mk39=Stimulus,S 1,52372,1,0 +Mk40=Stimulus,S 2,53221,1,0 +Mk41=Stimulus,S 1,54729,1,0 +Mk42=Stimulus,S 2,55620,1,0 +Mk43=Stimulus,S 2,58011,1,0 +Mk44=Stimulus,S 1,59519,1,0 +Mk45=Stimulus,S 2,60227,1,0 +Mk46=Stimulus,S 1,61735,1,0 +Mk47=Stimulus,S 2,62576,1,0 +Mk48=Stimulus,S 2,64676,1,0 +Mk49=Stimulus,S 1,66192,1,0 +Mk50=Stimulus,S 2,67058,1,0 +Mk51=Stimulus,S 1,68566,1,0 +Mk52=Stimulus,S 2,69091,1,0 +Mk53=Stimulus,S 1,70607,1,0 +Mk54=Stimulus,S 2,71257,1,0 +Mk55=Stimulus,S 1,103313,1,0 +Mk56=Stimulus,S 2,103846,1,0 +Mk57=Stimulus,S 1,105362,1,0 +Mk58=Stimulus,S 2,105920,1,0 +Mk59=Stimulus,S 1,107428,1,0 +Mk60=Stimulus,S 1,109861,1,0 +Mk61=Stimulus,S 1,112227,1,0 +Mk62=Stimulus,S 2,112893,1,0 +Mk63=Stimulus,S 1,114401,1,0 +Mk64=Stimulus,S 1,116892,1,0 +Mk65=Stimulus,S 2,117417,1,0 +Mk66=Stimulus,S 1,118925,1,0 +Mk67=Stimulus,S 2,119657,1,0 +Mk68=Stimulus,S 1,121166,1,0 +Mk69=Stimulus,S 2,121865,1,0 +Mk70=Stimulus,S 1,123373,1,0 +Mk71=Stimulus,S 2,124264,1,0 +Mk72=Stimulus,S 1,125772,1,0 +Mk73=Stimulus,S 2,126680,1,0 +Mk74=Stimulus,S 1,128188,1,0 +Mk75=Stimulus,S 2,128788,1,0 +Mk76=Stimulus,S 1,130304,1,0 +Mk77=Stimulus,S 2,131062,1,0 +Mk78=Stimulus,S 1,132578,1,0 +Mk79=Stimulus,S 2,133311,1,0 +Mk80=Stimulus,S 1,134819,1,0 +Mk81=Stimulus,S 2,135652,1,0 +Mk82=Stimulus,S 1,137160,1,0 +Mk83=Stimulus,S 2,138026,1,0 +Mk84=Stimulus,S 1,139535,1,0 +Mk85=Stimulus,S 2,140425,1,0 +Mk86=Stimulus,S 1,141934,1,0 +Mk87=Stimulus,S 2,142583,1,0 +Mk88=Stimulus,S 1,144091,1,0 +Mk89=Stimulus,S 1,146449,1,0 +Mk90=Stimulus,S 1,148798,1,0 +Mk91=Stimulus,S 2,149389,1,0 +Mk92=Stimulus,S 1,150897,1,0 +Mk93=Stimulus,S 2,151463,1,0 +Mk94=Stimulus,S 1,152972,1,0 +Mk95=Stimulus,S 2,153729,1,0 +Mk96=Stimulus,S 1,155238,1,0 +Mk97=Stimulus,S 2,156228,1,0 +Mk98=Stimulus,S 2,158419,1,0 +Mk99=Stimulus,S 1,159927,1,0 +Mk100=Stimulus,S 2,160727,1,0 +Mk101=Stimulus,S 1,162235,1,0 +Mk102=Stimulus,S 2,162859,1,0 +Mk103=Stimulus,S 2,167399,1,0 +Mk104=Stimulus,S 1,168908,1,0 +Mk105=Stimulus,S 2,169674,1,0 diff --git a/raw_data/PD1389.vhdr b/raw_data/PD1389.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..ec22e4fc6a2a3e3e07bd509bf8ec64b562d2c292 --- /dev/null +++ b/raw_data/PD1389.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1389.eeg +MarkerFile=PD1389.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17060817 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 17061539 --- + --- Module 2 (5010): S/N 17061540 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 09:49:04 : +Fp1: 1 +Fz: 7 +F3: 10 +F7: 2 +Aa: 4 +FC5: 5 +FC1: 3 +C3: 7 +T7: 23 +TP9: 10 +CP5: 24 +CP1: 3 +Pz: 3 +P3: 8 +P7: 6 +O1: 2 +Oz: 0 +O2: 3 +P4: 1 +P8: 2 +TP10: 15 +CP6: 5 +CP2: 2 +Cz: 1 +C4: 8 +T8: 6 +FT10: 6 +FC6: 7 +FC2: 1 +F4: 4 +F8: 9 +Fp2: 1 +AF7: 0 +AF3: 8 +AFz: 9 +F1: 4 +F5: 12 +FT7: 8 +FC3: 2 +C1: 12 +C5: 7 +TP7: 12 +CP3: 4 +P1: 2 +P5: 7 +PO7: 5 +Bb: 26 +POz: 1 +Cc: 9 +PO8: 1 +P6: 0 +P2: 4 +CPz: 1 +CP4: 3 +TP8: 13 +C6: 14 +C2: 0 +FC4: 1 +FT8: 5 +F6: 4 +AF8: 3 +AF4: 1 +F2: 1 +FCz: 3 +Gnd: 2 diff --git a/raw_data/PD1389.vmrk b/raw_data/PD1389.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..249353ce331c9908d9aced1ec6cedb2386454864 --- /dev/null +++ b/raw_data/PD1389.vmrk @@ -0,0 +1,115 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1389.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20181025114812405698 +Mk2=Stimulus,S 1,3310,1,0 +Mk3=Stimulus,S 2,4276,1,0 +Mk4=Stimulus,S 2,6617,1,0 +Mk5=Stimulus,S 1,8125,1,0 +Mk6=Stimulus,S 2,8683,1,0 +Mk7=Stimulus,S 1,10191,1,0 +Mk8=Stimulus,S 2,10841,1,0 +Mk9=Stimulus,S 1,12349,1,0 +Mk10=Stimulus,S 2,13132,1,0 +Mk11=Stimulus,S 1,14641,1,0 +Mk12=Stimulus,S 2,15631,1,0 +Mk13=Stimulus,S 1,17139,1,0 +Mk14=Stimulus,S 2,18130,1,0 +Mk15=Stimulus,S 1,19638,1,0 +Mk16=Stimulus,S 2,20229,1,0 +Mk17=Stimulus,S 1,21738,1,0 +Mk18=Stimulus,S 2,22737,1,0 +Mk19=Stimulus,S 1,24245,1,0 +Mk20=Stimulus,S 2,25236,1,0 +Mk21=Stimulus,S 1,26744,1,0 +Mk22=Stimulus,S 1,29002,1,0 +Mk23=Stimulus,S 1,31418,1,0 +Mk24=Stimulus,S 2,32000,1,0 +Mk25=Stimulus,S 2,34225,1,0 +Mk26=Stimulus,S 1,35733,1,0 +Mk27=Stimulus,S 2,36699,1,0 +Mk28=Stimulus,S 1,38207,1,0 +Mk29=Stimulus,S 1,40622,1,0 +Mk30=Stimulus,S 1,43122,1,0 +Mk31=Stimulus,S 2,43963,1,0 +Mk32=Stimulus,S 1,45471,1,0 +Mk33=Stimulus,S 1,47504,1,0 +Mk34=Stimulus,S 2,48436,1,0 +Mk35=Stimulus,S 1,49945,1,0 +Mk36=Stimulus,S 2,50919,1,0 +Mk37=Stimulus,S 2,53276,1,0 +Mk38=Stimulus,S 1,57184,1,0 +Mk39=Stimulus,S 2,58067,1,0 +Mk40=Stimulus,S 1,59575,1,0 +Mk41=Stimulus,S 2,60282,1,0 +Mk42=Stimulus,S 1,64139,1,0 +Mk43=Stimulus,S 2,64731,1,0 +Mk44=Stimulus,S 1,66239,1,0 +Mk45=Stimulus,S 2,67105,1,0 +Mk46=Stimulus,S 1,68613,1,0 +Mk47=Stimulus,S 2,69138,1,0 +Mk48=Stimulus,S 2,71295,1,0 +Mk49=Stimulus,S 1,81300,1,0 +Mk50=Stimulus,S 2,81834,1,0 +Mk51=Stimulus,S 1,83341,1,0 +Mk52=Stimulus,S 2,83899,1,0 +Mk53=Stimulus,S 1,85407,1,0 +Mk54=Stimulus,S 2,86332,1,0 +Mk55=Stimulus,S 1,87840,1,0 +Mk56=Stimulus,S 2,88698,1,0 +Mk57=Stimulus,S 1,90206,1,0 +Mk58=Stimulus,S 2,90872,1,0 +Mk59=Stimulus,S 1,92380,1,0 +Mk60=Stimulus,S 2,93363,1,0 +Mk61=Stimulus,S 1,94871,1,0 +Mk62=Stimulus,S 2,95396,1,0 +Mk63=Stimulus,S 1,96903,1,0 +Mk64=Stimulus,S 2,97628,1,0 +Mk65=Stimulus,S 1,99136,1,0 +Mk66=Stimulus,S 2,99836,1,0 +Mk67=Stimulus,S 1,101352,1,0 +Mk68=Stimulus,S 2,102243,1,0 +Mk69=Stimulus,S 1,103752,1,0 +Mk70=Stimulus,S 2,104659,1,0 +Mk71=Stimulus,S 1,106167,1,0 +Mk72=Stimulus,S 2,106775,1,0 +Mk73=Stimulus,S 1,108283,1,0 +Mk74=Stimulus,S 2,109041,1,0 +Mk75=Stimulus,S 1,110549,1,0 +Mk76=Stimulus,S 2,111282,1,0 +Mk77=Stimulus,S 2,113623,1,0 +Mk78=Stimulus,S 1,115131,1,0 +Mk79=Stimulus,S 2,115997,1,0 +Mk80=Stimulus,S 1,117505,1,0 +Mk81=Stimulus,S 2,118388,1,0 +Mk82=Stimulus,S 1,119905,1,0 +Mk83=Stimulus,S 2,120554,1,0 +Mk84=Stimulus,S 1,122062,1,0 +Mk85=Stimulus,S 2,122911,1,0 +Mk86=Stimulus,S 1,124419,1,0 +Mk87=Stimulus,S 2,125253,1,0 +Mk88=Stimulus,S 1,126769,1,0 +Mk89=Stimulus,S 2,127360,1,0 +Mk90=Stimulus,S 1,128868,1,0 +Mk91=Stimulus,S 2,129435,1,0 +Mk92=Stimulus,S 2,131708,1,0 +Mk93=Stimulus,S 1,133217,1,0 +Mk94=Stimulus,S 1,135716,1,0 +Mk95=Stimulus,S 2,136398,1,0 +Mk96=Stimulus,S 1,137906,1,0 +Mk97=Stimulus,S 2,138706,1,0 +Mk98=Stimulus,S 1,140214,1,0 +Mk99=Stimulus,S 1,142347,1,0 +Mk100=Stimulus,S 2,143230,1,0 +Mk101=Stimulus,S 1,144738,1,0 +Mk102=Stimulus,S 2,145379,1,0 +Mk103=Stimulus,S 2,147653,1,0 +Mk104=New Segment,,153441,1,0,20181025115618352226 diff --git a/raw_data/PD1469.vhdr b/raw_data/PD1469.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..e444cb7630b6d2dcaae397eb4669e5508c26efb5 --- /dev/null +++ b/raw_data/PD1469.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1469.eeg +MarkerFile=PD1469.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17060817 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 17061539 --- + --- Module 2 (5010): S/N 17061540 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 09:34:31 : +Fp1: 2 +Fz: 2 +F3: 8 +F7: 3 +Aa: 9 +FC5: 7 +FC1: 4 +C3: 10 +T7: 11 +TP9: 24 +CP5: 12 +CP1: 4 +Pz: 3 +P3: 8 +P7: 6 +O1: 6 +Oz: 4 +O2: 5 +P4: 7 +P8: 4 +TP10: 19 +CP6: 6 +CP2: 6 +Cz: 3 +C4: 0 +T8: 4 +FT10: 3 +FC6: 2 +FC2: 2 +F4: 3 +F8: 3 +Fp2: 1 +AF7: 5 +AF3: 7 +AFz: 4 +F1: 4 +F5: 4 +FT7: 12 +FC3: 6 +C1: 4 +C5: 8 +TP7: 20 +CP3: 8 +P1: 4 +P5: 8 +PO7: 4 +Bb: 4 +POz: 4 +Cc: 8 +PO8: 7 +P6: 5 +P2: 7 +CPz: 1 +CP4: 7 +TP8: 6 +C6: 9 +C2: 6 +FC4: 7 +FT8: 8 +F6: 2 +AF8: 4 +AF4: 4 +F2: 5 +FCz: 4 +Gnd: 2 diff --git a/raw_data/PD1469.vmrk b/raw_data/PD1469.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..436054168cc7c66bcac7aceccea1223821e57557 --- /dev/null +++ b/raw_data/PD1469.vmrk @@ -0,0 +1,104 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1469.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20181211113827171566 +Mk2=Stimulus,S 1,3775,1,0 +Mk3=Stimulus,S 2,4741,1,0 +Mk4=Stimulus,S 2,7082,1,0 +Mk5=Stimulus,S 1,8599,1,0 +Mk6=Stimulus,S 2,9156,1,0 +Mk7=Stimulus,S 1,10665,1,0 +Mk8=Stimulus,S 2,11314,1,0 +Mk9=Stimulus,S 1,12822,1,0 +Mk10=Stimulus,S 2,13605,1,0 +Mk11=Stimulus,S 1,15113,1,0 +Mk12=Stimulus,S 2,16104,1,0 +Mk13=Stimulus,S 1,17612,1,0 +Mk14=Stimulus,S 2,18603,1,0 +Mk15=Stimulus,S 1,20111,1,0 +Mk16=Stimulus,S 1,22211,1,0 +Mk17=Stimulus,S 2,23202,1,0 +Mk18=Stimulus,S 1,24718,1,0 +Mk19=Stimulus,S 1,27218,1,0 +Mk20=Stimulus,S 1,29484,1,0 +Mk21=Stimulus,S 2,30391,1,0 +Mk22=Stimulus,S 1,31899,1,0 +Mk23=Stimulus,S 2,32482,1,0 +Mk24=Stimulus,S 1,33990,1,0 +Mk25=Stimulus,S 2,34714,1,0 +Mk26=Stimulus,S 1,36223,1,0 +Mk27=Stimulus,S 1,38697,1,0 +Mk28=Stimulus,S 1,41113,1,0 +Mk29=Stimulus,S 1,43612,1,0 +Mk30=Stimulus,S 2,44453,1,0 +Mk31=Stimulus,S 1,45961,1,0 +Mk32=Stimulus,S 1,47994,1,0 +Mk33=Stimulus,S 2,48926,1,0 +Mk34=Stimulus,S 2,51409,1,0 +Mk35=Stimulus,S 2,53766,1,0 +Mk36=Stimulus,S 1,55275,1,0 +Mk37=Stimulus,S 1,57674,1,0 +Mk38=Stimulus,S 2,58556,1,0 +Mk39=Stimulus,S 1,60065,1,0 +Mk40=Stimulus,S 2,60772,1,0 +Mk41=Stimulus,S 1,64630,1,0 +Mk42=Stimulus,S 2,65229,1,0 +Mk43=Stimulus,S 2,67603,1,0 +Mk44=Stimulus,S 2,69636,1,0 +Mk45=Stimulus,S 1,71144,1,0 +Mk46=Stimulus,S 2,79558,1,0 +Mk47=Stimulus,S 1,81066,1,0 +Mk48=Stimulus,S 2,81624,1,0 +Mk49=Stimulus,S 1,83132,1,0 +Mk50=Stimulus,S 2,84056,1,0 +Mk51=Stimulus,S 2,86422,1,0 +Mk52=Stimulus,S 2,88596,1,0 +Mk53=Stimulus,S 1,90105,1,0 +Mk54=Stimulus,S 2,91087,1,0 +Mk55=Stimulus,S 1,92595,1,0 +Mk56=Stimulus,S 2,93120,1,0 +Mk57=Stimulus,S 1,94628,1,0 +Mk58=Stimulus,S 2,95361,1,0 +Mk59=Stimulus,S 1,96869,1,0 +Mk60=Stimulus,S 2,97568,1,0 +Mk61=Stimulus,S 1,101476,1,0 +Mk62=Stimulus,S 2,102383,1,0 +Mk63=Stimulus,S 2,104492,1,0 +Mk64=Stimulus,S 2,106765,1,0 +Mk65=Stimulus,S 2,109006,1,0 +Mk66=Stimulus,S 1,110514,1,0 +Mk67=Stimulus,S 2,111347,1,0 +Mk68=Stimulus,S 1,112855,1,0 +Mk69=Stimulus,S 2,113721,1,0 +Mk70=Stimulus,S 2,116113,1,0 +Mk71=Stimulus,S 1,117629,1,0 +Mk72=Stimulus,S 2,118278,1,0 +Mk73=Stimulus,S 1,119786,1,0 +Mk74=Stimulus,S 1,122144,1,0 +Mk75=Stimulus,S 2,122985,1,0 +Mk76=Stimulus,S 1,124493,1,0 +Mk77=Stimulus,S 2,125084,1,0 +Mk78=Stimulus,S 1,126592,1,0 +Mk79=Stimulus,S 1,128667,1,0 +Mk80=Stimulus,S 2,129424,1,0 +Mk81=Stimulus,S 1,130933,1,0 +Mk82=Stimulus,S 2,131923,1,0 +Mk83=Stimulus,S 1,133432,1,0 +Mk84=Stimulus,S 2,134114,1,0 +Mk85=Stimulus,S 2,136422,1,0 +Mk86=Stimulus,S 1,137930,1,0 +Mk87=Stimulus,S 2,138555,1,0 +Mk88=Stimulus,S 1,140071,1,0 +Mk89=Stimulus,S 2,140954,1,0 +Mk90=Stimulus,S 1,142462,1,0 +Mk91=Stimulus,S 2,143103,1,0 +Mk92=Stimulus,S 1,144611,1,0 +Mk93=Stimulus,S 2,145377,1,0 diff --git a/raw_data/PD1539.vhdr b/raw_data/PD1539.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..162365679a3f5a6a4c94a26eb0c740b537b7fbb1 --- /dev/null +++ b/raw_data/PD1539.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1539.eeg +MarkerFile=PD1539.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17060817 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 17061539 --- + --- Module 2 (5010): S/N 17061540 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 12:07:58 : +Fp1: 7 +Fz: 8 +F3: 2 +F7: 1 +Aa: 7 +FC5: 36 +FC1: 5 +C3: 4 +T7: 3 +TP9: 11 +CP5: 11 +CP1: 12 +Pz: 4 +P3: 6 +P7: 6 +O1: 4 +Oz: 5 +O2: 13 +P4: 7 +P8: 4 +TP10: 11 +CP6: 9 +CP2: 3 +Cz: 5 +C4: 6 +T8: 8 +FT10: 7 +FC6: Out of Range! +FC2: 6 +F4: 2 +F8: 0 +Fp2: 8 +AF7: 0 +AF3: 1 +AFz: 7 +F1: 1 +F5: 2 +FT7: 2 +FC3: 2 +C1: 7 +C5: 4 +TP7: 12 +CP3: 8 +P1: 5 +P5: 6 +PO7: 19 +Bb: 5 +POz: 6 +Cc: 6 +PO8: 12 +P6: 4 +P2: 10 +CPz: 5 +CP4: 7 +TP8: 11 +C6: 8 +C2: 4 +FC4: 1 +FT8: 3 +F6: 3 +AF8: 7 +AF4: 9 +F2: 0 +FCz: 5 +Gnd: 6 diff --git a/raw_data/PD1539.vmrk b/raw_data/PD1539.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..4ba3f65e9a9a74ecec0b57f153d3a7dd284bc9b4 --- /dev/null +++ b/raw_data/PD1539.vmrk @@ -0,0 +1,116 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1539.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20190312142729311886 +Mk2=Stimulus,S 1,2741,1,0 +Mk3=Stimulus,S 2,3707,1,0 +Mk4=Stimulus,S 1,5223,1,0 +Mk5=Stimulus,S 2,6048,1,0 +Mk6=Stimulus,S 1,7565,1,0 +Mk7=Stimulus,S 1,9630,1,0 +Mk8=Stimulus,S 2,10280,1,0 +Mk9=Stimulus,S 1,11788,1,0 +Mk10=Stimulus,S 1,14079,1,0 +Mk11=Stimulus,S 2,15070,1,0 +Mk12=Stimulus,S 1,16578,1,0 +Mk13=Stimulus,S 2,17569,1,0 +Mk14=Stimulus,S 1,19077,1,0 +Mk15=Stimulus,S 2,19668,1,0 +Mk16=Stimulus,S 2,22168,1,0 +Mk17=Stimulus,S 1,23676,1,0 +Mk18=Stimulus,S 1,26175,1,0 +Mk19=Stimulus,S 2,26933,1,0 +Mk20=Stimulus,S 1,28441,1,0 +Mk21=Stimulus,S 2,29348,1,0 +Mk22=Stimulus,S 1,30856,1,0 +Mk23=Stimulus,S 2,31439,1,0 +Mk24=Stimulus,S 1,32948,1,0 +Mk25=Stimulus,S 2,33672,1,0 +Mk26=Stimulus,S 1,35180,1,0 +Mk27=Stimulus,S 2,36146,1,0 +Mk28=Stimulus,S 1,37654,1,0 +Mk29=Stimulus,S 2,38562,1,0 +Mk30=Stimulus,S 1,40070,1,0 +Mk31=Stimulus,S 2,41061,1,0 +Mk32=Stimulus,S 2,43410,1,0 +Mk33=Stimulus,S 1,44919,1,0 +Mk34=Stimulus,S 2,45443,1,0 +Mk35=Stimulus,S 1,46952,1,0 +Mk36=Stimulus,S 2,47884,1,0 +Mk37=Stimulus,S 1,49392,1,0 +Mk38=Stimulus,S 2,50366,1,0 +Mk39=Stimulus,S 1,51874,1,0 +Mk40=Stimulus,S 2,52724,1,0 +Mk41=Stimulus,S 1,54232,1,0 +Mk42=Stimulus,S 2,55123,1,0 +Mk43=Stimulus,S 1,56631,1,0 +Mk44=Stimulus,S 2,57514,1,0 +Mk45=Stimulus,S 1,59022,1,0 +Mk46=Stimulus,S 2,59730,1,0 +Mk47=Stimulus,S 1,61238,1,0 +Mk48=Stimulus,S 2,62079,1,0 +Mk49=Stimulus,S 1,63587,1,0 +Mk50=Stimulus,S 2,64178,1,0 +Mk51=Stimulus,S 1,65687,1,0 +Mk52=Stimulus,S 1,68061,1,0 +Mk53=Stimulus,S 2,68585,1,0 +Mk54=Stimulus,S 1,70094,1,0 +Mk55=Stimulus,S 2,70743,1,0 +Mk56=Stimulus,S 2,76891,1,0 +Mk57=Stimulus,S 1,78407,1,0 +Mk58=Stimulus,S 2,78965,1,0 +Mk59=Stimulus,S 1,82906,1,0 +Mk60=Stimulus,S 2,83763,1,0 +Mk61=Stimulus,S 1,87446,1,0 +Mk62=Stimulus,S 2,88429,1,0 +Mk63=Stimulus,S 1,89937,1,0 +Mk64=Stimulus,S 2,90461,1,0 +Mk65=Stimulus,S 1,91969,1,0 +Mk66=Stimulus,S 2,92702,1,0 +Mk67=Stimulus,S 1,94210,1,0 +Mk68=Stimulus,S 1,96418,1,0 +Mk69=Stimulus,S 2,97309,1,0 +Mk70=Stimulus,S 1,98817,1,0 +Mk71=Stimulus,S 2,99725,1,0 +Mk72=Stimulus,S 1,101233,1,0 +Mk73=Stimulus,S 2,101833,1,0 +Mk74=Stimulus,S 1,103341,1,0 +Mk75=Stimulus,S 2,104098,1,0 +Mk76=Stimulus,S 1,105615,1,0 +Mk77=Stimulus,S 1,107856,1,0 +Mk78=Stimulus,S 2,108688,1,0 +Mk79=Stimulus,S 1,110197,1,0 +Mk80=Stimulus,S 1,112571,1,0 +Mk81=Stimulus,S 2,113454,1,0 +Mk82=Stimulus,S 1,114962,1,0 +Mk83=Stimulus,S 2,115611,1,0 +Mk84=Stimulus,S 1,117120,1,0 +Mk85=Stimulus,S 2,117969,1,0 +Mk86=Stimulus,S 1,119477,1,0 +Mk87=Stimulus,S 2,120318,1,0 +Mk88=Stimulus,S 1,121826,1,0 +Mk89=Stimulus,S 2,122417,1,0 +Mk90=Stimulus,S 1,123925,1,0 +Mk91=Stimulus,S 2,124491,1,0 +Mk92=Stimulus,S 1,126000,1,0 +Mk93=Stimulus,S 2,126758,1,0 +Mk94=Stimulus,S 1,128266,1,0 +Mk95=Stimulus,S 1,130765,1,0 +Mk96=Stimulus,S 2,131447,1,0 +Mk97=Stimulus,S 1,132955,1,0 +Mk98=Stimulus,S 2,133755,1,0 +Mk99=Stimulus,S 1,135264,1,0 +Mk100=Stimulus,S 1,137395,1,0 +Mk101=Stimulus,S 2,138279,1,0 +Mk102=Stimulus,S 1,139787,1,0 +Mk103=Stimulus,S 2,140428,1,0 +Mk104=Stimulus,S 1,141936,1,0 +Mk105=Stimulus,S 2,142702,1,0 diff --git a/raw_data/PD1559.vhdr b/raw_data/PD1559.vhdr new file mode 100644 index 0000000000000000000000000000000000000000..0698210e2e619919869b35175944f49299d9db4f --- /dev/null +++ b/raw_data/PD1559.vhdr @@ -0,0 +1,393 @@ +Brain Vision Data Exchange Header File Version 1.0 +; Data created by the Vision Recorder + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1559.eeg +MarkerFile=PD1559.vmrk +DataFormat=BINARY +; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... +DataOrientation=MULTIPLEXED +NumberOfChannels=66 +; Sampling interval in microseconds +SamplingInterval=2000 + +[Binary Infos] +BinaryFormat=IEEE_FLOAT_32 + +[Channel Infos] +; Each entry: Ch=,, +; ,, Future extensions.. +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in channel names are coded as "\1". +Ch1=Fp1,,0.0488281,µV +Ch2=Fz,,0.0488281,µV +Ch3=F3,,0.0488281,µV +Ch4=F7,,0.0488281,µV +Ch5=Aa,,0.0488281,µV +Ch6=FC5,,0.0488281,µV +Ch7=FC1,,0.0488281,µV +Ch8=C3,,0.0488281,µV +Ch9=T7,,0.0488281,µV +Ch10=TP9,,0.0488281,µV +Ch11=CP5,,0.0488281,µV +Ch12=CP1,,0.0488281,µV +Ch13=P3,,0.0488281,µV +Ch14=P7,,0.0488281,µV +Ch15=O1,,0.0488281,µV +Ch16=Oz,,0.0488281,µV +Ch17=O2,,0.0488281,µV +Ch18=P4,,0.0488281,µV +Ch19=P8,,0.0488281,µV +Ch20=TP10,,0.0488281,µV +Ch21=CP6,,0.0488281,µV +Ch22=CP2,,0.0488281,µV +Ch23=Cz,,0.0488281,µV +Ch24=C4,,0.0488281,µV +Ch25=T8,,0.0488281,µV +Ch26=FT10,,0.0488281,µV +Ch27=FC6,,0.0488281,µV +Ch28=FC2,,0.0488281,µV +Ch29=F4,,0.0488281,µV +Ch30=F8,,0.0488281,µV +Ch31=Fp2,,0.0488281,µV +Ch32=AF7,,0.0488281,µV +Ch33=AF3,,0.0488281,µV +Ch34=AFz,,0.0488281,µV +Ch35=F1,,0.0488281,µV +Ch36=F5,,0.0488281,µV +Ch37=FT7,,0.0488281,µV +Ch38=FC3,,0.0488281,µV +Ch39=C1,,0.0488281,µV +Ch40=C5,,0.0488281,µV +Ch41=TP7,,0.0488281,µV +Ch42=CP3,,0.0488281,µV +Ch43=P1,,0.0488281,µV +Ch44=P5,,0.0488281,µV +Ch45=PO7,,0.0488281,µV +Ch46=Bb,,0.0488281,µV +Ch47=POz,,0.0488281,µV +Ch48=Cc,,0.0488281,µV +Ch49=PO8,,0.0488281,µV +Ch50=P6,,0.0488281,µV +Ch51=P2,,0.0488281,µV +Ch52=CPz,,0.0488281,µV +Ch53=CP4,,0.0488281,µV +Ch54=TP8,,0.0488281,µV +Ch55=C6,,0.0488281,µV +Ch56=C2,,0.0488281,µV +Ch57=FC4,,0.0488281,µV +Ch58=FT8,,0.0488281,µV +Ch59=F6,,0.0488281,µV +Ch60=AF8,,0.0488281,µV +Ch61=AF4,,0.0488281,µV +Ch62=F2,,0.0488281,µV +Ch63=FCz,,0.0488281,µV +Ch64=X,,1,C +Ch65=Y,,1,C +Ch66=Z,,1,C + +[Coordinates] +; Electrode Position File: C:\Vision\Workfiles\AS-64-X6_B_wCerebellum.bvef +Ch1=1,-90,-72 +Ch2=1,45,90 +Ch3=1,-60,-51 +Ch4=1,-90,-36 +Ch5=1,112,-90 +Ch6=1,-69,-22 +Ch7=1,-31,-46 +Ch8=1,-45,0 +Ch9=1,-90,0 +Ch10=1,-113,18 +Ch11=1,-69,21 +Ch12=1,-31,46 +Ch13=1,-60,51 +Ch14=1,-90,36 +Ch15=1,-90,72 +Ch16=1,90,-90 +Ch17=1,90,-72 +Ch18=1,60,-51 +Ch19=1,90,-36 +Ch20=1,113,-18 +Ch21=1,69,-21 +Ch22=1,31,-46 +Ch23=1,0,0 +Ch24=1,45,0 +Ch25=1,90,0 +Ch26=1,113,18 +Ch27=1,69,21 +Ch28=1,31,46 +Ch29=1,60,51 +Ch30=1,90,36 +Ch31=1,90,72 +Ch32=1,-90,-54 +Ch33=1,-74,-68 +Ch34=1,67,90 +Ch35=1,-49,-68 +Ch36=1,-74,-41 +Ch37=1,-90,-18 +Ch38=1,-49,-29 +Ch39=1,-23,0 +Ch40=1,-68,0 +Ch41=1,-90,18 +Ch42=1,-49,29 +Ch43=1,-49,68 +Ch44=1,-74,41 +Ch45=1,-90,54 +Ch46=1,-112,72 +Ch47=1,67,-90 +Ch48=1,112,-72 +Ch49=1,90,-54 +Ch50=1,74,-41 +Ch51=1,49,-68 +Ch52=1,22,-90 +Ch53=1,49,-29 +Ch54=1,90,-18 +Ch55=1,68,0 +Ch56=1,23,0 +Ch57=1,49,29 +Ch58=1,90,18 +Ch59=1,74,41 +Ch60=1,90,54 +Ch61=1,74,68 +Ch62=1,49,68 +Ch63=1,23,90 +Ch64=0,0,0 +Ch65=0,0,0 +Ch66=0,0,0 + +[Comment] +Pedaling +BrainVision Recorder Professional - V. 1.21.0102 + + +A m p l i f i e r S e t u p +============================ +Number of channels: 66 +Sampling Rate [Hz]: 500 +Sampling Interval [µS]: 2000 + +Channels +-------- +# Name Phys. Chn. Resolution / Unit Low Cutoff [s] High Cutoff [Hz] Notch [Hz] Gradient Offset +1 Fp1 1 0.0488281 µV DC 140 Off +2 Fz 2 0.0488281 µV DC 140 Off +3 F3 3 0.0488281 µV DC 140 Off +4 F7 4 0.0488281 µV DC 140 Off +5 Aa 5 0.0488281 µV DC 140 Off +6 FC5 6 0.0488281 µV DC 140 Off +7 FC1 7 0.0488281 µV DC 140 Off +8 C3 8 0.0488281 µV DC 140 Off +9 T7 9 0.0488281 µV DC 140 Off +10 TP9 10 0.0488281 µV DC 140 Off +11 CP5 11 0.0488281 µV DC 140 Off +12 CP1 12 0.0488281 µV DC 140 Off +13 P3 14 0.0488281 µV DC 140 Off +14 P7 15 0.0488281 µV DC 140 Off +15 O1 16 0.0488281 µV DC 140 Off +16 Oz 17 0.0488281 µV DC 140 Off +17 O2 18 0.0488281 µV DC 140 Off +18 P4 19 0.0488281 µV DC 140 Off +19 P8 20 0.0488281 µV DC 140 Off +20 TP10 21 0.0488281 µV DC 140 Off +21 CP6 22 0.0488281 µV DC 140 Off +22 CP2 23 0.0488281 µV DC 140 Off +23 Cz 24 0.0488281 µV DC 140 Off +24 C4 25 0.0488281 µV DC 140 Off +25 T8 26 0.0488281 µV DC 140 Off +26 FT10 27 0.0488281 µV DC 140 Off +27 FC6 28 0.0488281 µV DC 140 Off +28 FC2 29 0.0488281 µV DC 140 Off +29 F4 30 0.0488281 µV DC 140 Off +30 F8 31 0.0488281 µV DC 140 Off +31 Fp2 32 0.0488281 µV DC 140 Off +32 AF7 33 0.0488281 µV DC 140 Off +33 AF3 34 0.0488281 µV DC 140 Off +34 AFz 35 0.0488281 µV DC 140 Off +35 F1 36 0.0488281 µV DC 140 Off +36 F5 37 0.0488281 µV DC 140 Off +37 FT7 38 0.0488281 µV DC 140 Off +38 FC3 39 0.0488281 µV DC 140 Off +39 C1 40 0.0488281 µV DC 140 Off +40 C5 41 0.0488281 µV DC 140 Off +41 TP7 42 0.0488281 µV DC 140 Off +42 CP3 43 0.0488281 µV DC 140 Off +43 P1 44 0.0488281 µV DC 140 Off +44 P5 45 0.0488281 µV DC 140 Off +45 PO7 46 0.0488281 µV DC 140 Off +46 Bb 47 0.0488281 µV DC 140 Off +47 POz 48 0.0488281 µV DC 140 Off +48 Cc 49 0.0488281 µV DC 140 Off +49 PO8 50 0.0488281 µV DC 140 Off +50 P6 51 0.0488281 µV DC 140 Off +51 P2 52 0.0488281 µV DC 140 Off +52 CPz 53 0.0488281 µV DC 140 Off +53 CP4 54 0.0488281 µV DC 140 Off +54 TP8 55 0.0488281 µV DC 140 Off +55 C6 56 0.0488281 µV DC 140 Off +56 C2 57 0.0488281 µV DC 140 Off +57 FC4 58 0.0488281 µV DC 140 Off +58 FT8 59 0.0488281 µV DC 140 Off +59 F6 60 0.0488281 µV DC 140 Off +60 AF8 61 0.0488281 µV DC 140 Off +61 AF4 62 0.0488281 µV DC 140 Off +62 F2 63 0.0488281 µV DC 140 Off +63 FCz 64 0.0488281 µV DC 140 Off +64 X 65 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +65 Y 66 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] +66 Z 67 1 C DC 140 Off 1[mV/C] 1e+006[mV] = 0[C] + +Reference Channel Name = Pz +Reference Phys. Chn. = 13 +Good Level [kOhms] = 10 +Bad Level [kOhms] = 50 +MY-Button Workspace = C:\Vision\Workfiles\MYButton + +Amplifier +actiCHamp Base Unit (5001) + --- S/N 17060817 --- + +actiCHamp 32 CH Module + --- Module 1 (5010): S/N 17061539 --- + --- Module 2 (5010): S/N 17061540 --- +Version: DLL_25.14.08.04, DRV_03.04.01.146, CTRL_103.17.02.27, FPGA_48.00.00.00, FPGAC_45.00.00.00, DSP_105.14.10.07 + + +S o f t w a r e F i l t e r s +============================== +# Low Cutoff [s] High Cutoff [Hz] Notch [Hz] +1 10 Off Off +2 10 Off Off +3 10 Off Off +4 10 Off Off +5 10 Off Off +6 10 Off Off +7 10 Off Off +8 10 Off Off +9 10 Off Off +10 10 Off Off +11 10 Off Off +12 10 Off Off +13 10 Off Off +14 10 Off Off +15 10 Off Off +16 10 Off Off +17 10 Off Off +18 10 Off Off +19 10 Off Off +20 10 Off Off +21 10 Off Off +22 10 Off Off +23 10 Off Off +24 10 Off Off +25 10 Off Off +26 10 Off Off +27 10 Off Off +28 10 Off Off +29 10 Off Off +30 10 Off Off +31 10 Off Off +32 10 Off Off +33 10 Off Off +34 10 Off Off +35 10 Off Off +36 10 Off Off +37 10 Off Off +38 10 Off Off +39 10 Off Off +40 10 Off Off +41 10 Off Off +42 10 Off Off +43 10 Off Off +44 10 Off Off +45 10 Off Off +46 10 Off Off +47 10 Off Off +48 10 Off Off +49 10 Off Off +50 10 Off Off +51 10 Off Off +52 10 Off Off +53 10 Off Off +54 10 Off Off +55 10 Off Off +56 10 Off Off +57 10 Off Off +58 10 Off Off +59 10 Off Off +60 10 Off Off +61 10 Off Off +62 10 Off Off +63 10 Off Off +64 Off Off Off +65 Off Off Off +66 Off Off Off + + +Data/Gnd Electrodes Selected Impedance Measurement Range: 10 - 50 kOhm +Impedance [kOhm] at 11:08:43 : +Fp1: 6 +Fz: 5 +F3: 11 +F7: 8 +Aa: 25 +FC5: 20 +FC1: 7 +C3: 15 +T7: 15 +TP9: 33 +CP5: 17 +CP1: 8 +Pz: 7 +P3: 7 +P7: 18 +O1: 34 +Oz: 23 +O2: 18 +P4: 9 +P8: 10 +TP10: 15 +CP6: 11 +CP2: 4 +Cz: 5 +C4: 19 +T8: 14 +FT10: 17 +FC6: 2 +FC2: 20 +F4: 7 +F8: 13 +Fp2: 6 +AF7: 9 +AF3: 6 +AFz: 23 +F1: 10 +F5: 9 +FT7: 24 +FC3: 14 +C1: 6 +C5: 18 +TP7: 18 +CP3: 22 +P1: 7 +P5: 18 +PO7: 17 +Bb: 24 +POz: 9 +Cc: 23 +PO8: 12 +P6: 7 +P2: 10 +CPz: 4 +CP4: 10 +TP8: 10 +C6: 5 +C2: 5 +FC4: 10 +FT8: 16 +F6: 10 +AF8: 7 +AF4: 10 +F2: 7 +FCz: 6 +Gnd: 5 diff --git a/raw_data/PD1559.vmrk b/raw_data/PD1559.vmrk new file mode 100644 index 0000000000000000000000000000000000000000..88d352cf031367b1725f0c3507f3ced8d30894bf --- /dev/null +++ b/raw_data/PD1559.vmrk @@ -0,0 +1,118 @@ +Brain Vision Data Exchange Marker File, Version 1.0 + +[Common Infos] +Codepage=UTF-8 +DataFile=PD1559.eeg + +[Marker Infos] +; Each entry: Mk=,,, +; , +; Fields are delimited by commas, some fields might be omitted (empty). +; Commas in type or description text are coded as "\1". +Mk1=New Segment,,1,1,0,20190320131802313801 +Mk2=Stimulus,S 1,3195,1,0 +Mk3=Stimulus,S 2,4161,1,0 +Mk4=Stimulus,S 1,5677,1,0 +Mk5=Stimulus,S 2,6501,1,0 +Mk6=Stimulus,S 1,8010,1,0 +Mk7=Stimulus,S 2,8567,1,0 +Mk8=Stimulus,S 1,10076,1,0 +Mk9=Stimulus,S 2,10725,1,0 +Mk10=Stimulus,S 1,12233,1,0 +Mk11=Stimulus,S 2,13016,1,0 +Mk12=Stimulus,S 1,14524,1,0 +Mk13=Stimulus,S 2,15515,1,0 +Mk14=Stimulus,S 1,17023,1,0 +Mk15=Stimulus,S 2,18014,1,0 +Mk16=Stimulus,S 1,21622,1,0 +Mk17=Stimulus,S 2,22613,1,0 +Mk18=Stimulus,S 1,24129,1,0 +Mk19=Stimulus,S 1,26629,1,0 +Mk20=Stimulus,S 1,28894,1,0 +Mk21=Stimulus,S 2,29802,1,0 +Mk22=Stimulus,S 1,31310,1,0 +Mk23=Stimulus,S 2,31893,1,0 +Mk24=Stimulus,S 1,33401,1,0 +Mk25=Stimulus,S 2,34126,1,0 +Mk26=Stimulus,S 1,35634,1,0 +Mk27=Stimulus,S 1,38108,1,0 +Mk28=Stimulus,S 1,40524,1,0 +Mk29=Stimulus,S 2,41515,1,0 +Mk30=Stimulus,S 1,43023,1,0 +Mk31=Stimulus,S 2,43864,1,0 +Mk32=Stimulus,S 1,45372,1,0 +Mk33=Stimulus,S 2,45897,1,0 +Mk34=Stimulus,S 1,47413,1,0 +Mk35=Stimulus,S 2,48346,1,0 +Mk36=Stimulus,S 1,49854,1,0 +Mk37=Stimulus,S 2,50829,1,0 +Mk38=Stimulus,S 1,52337,1,0 +Mk39=Stimulus,S 2,53186,1,0 +Mk40=Stimulus,S 2,55585,1,0 +Mk41=Stimulus,S 1,57093,1,0 +Mk42=Stimulus,S 2,57976,1,0 +Mk43=Stimulus,S 1,59484,1,0 +Mk44=Stimulus,S 2,60192,1,0 +Mk45=Stimulus,S 1,61700,1,0 +Mk46=Stimulus,S 2,62541,1,0 +Mk47=Stimulus,S 1,64049,1,0 +Mk48=Stimulus,S 1,66157,1,0 +Mk49=Stimulus,S 2,67023,1,0 +Mk50=Stimulus,S 1,68531,1,0 +Mk51=Stimulus,S 2,69055,1,0 +Mk52=Stimulus,S 1,70564,1,0 +Mk53=Stimulus,S 2,71213,1,0 +Mk54=Stimulus,S 1,88433,1,0 +Mk55=Stimulus,S 2,88966,1,0 +Mk56=Stimulus,S 1,90474,1,0 +Mk57=Stimulus,S 2,91031,1,0 +Mk58=Stimulus,S 1,92540,1,0 +Mk59=Stimulus,S 2,93464,1,0 +Mk60=Stimulus,S 1,94972,1,0 +Mk61=Stimulus,S 2,95830,1,0 +Mk62=Stimulus,S 1,97338,1,0 +Mk63=Stimulus,S 2,98004,1,0 +Mk64=Stimulus,S 1,99512,1,0 +Mk65=Stimulus,S 2,100495,1,0 +Mk66=Stimulus,S 1,102003,1,0 +Mk67=Stimulus,S 2,102528,1,0 +Mk68=Stimulus,S 1,104036,1,0 +Mk69=Stimulus,S 1,106277,1,0 +Mk70=Stimulus,S 2,106976,1,0 +Mk71=Stimulus,S 1,108484,1,0 +Mk72=Stimulus,S 2,109375,1,0 +Mk73=Stimulus,S 2,111791,1,0 +Mk74=Stimulus,S 1,113299,1,0 +Mk75=Stimulus,S 2,113899,1,0 +Mk76=Stimulus,S 1,115407,1,0 +Mk77=Stimulus,S 2,116165,1,0 +Mk78=Stimulus,S 1,117673,1,0 +Mk79=Stimulus,S 1,119914,1,0 +Mk80=Stimulus,S 2,120746,1,0 +Mk81=Stimulus,S 1,122254,1,0 +Mk82=Stimulus,S 1,124629,1,0 +Mk83=Stimulus,S 2,125512,1,0 +Mk84=Stimulus,S 1,127029,1,0 +Mk85=Stimulus,S 1,129186,1,0 +Mk86=Stimulus,S 2,130035,1,0 +Mk87=Stimulus,S 1,131543,1,0 +Mk88=Stimulus,S 2,132384,1,0 +Mk89=Stimulus,S 1,133892,1,0 +Mk90=Stimulus,S 1,135991,1,0 +Mk91=Stimulus,S 2,136558,1,0 +Mk92=Stimulus,S 1,138066,1,0 +Mk93=Stimulus,S 2,138824,1,0 +Mk94=Stimulus,S 1,140332,1,0 +Mk95=Stimulus,S 2,141323,1,0 +Mk96=Stimulus,S 1,142831,1,0 +Mk97=Stimulus,S 2,143514,1,0 +Mk98=Stimulus,S 1,145022,1,0 +Mk99=Stimulus,S 2,145821,1,0 +Mk100=Stimulus,S 1,147330,1,0 +Mk101=Stimulus,S 2,147954,1,0 +Mk102=Stimulus,S 1,149462,1,0 +Mk103=Stimulus,S 2,150345,1,0 +Mk104=Stimulus,S 1,151854,1,0 +Mk105=Stimulus,S 2,152494,1,0 +Mk106=Stimulus,S 1,154002,1,0 +Mk107=Stimulus,S 2,154768,1,0 diff --git a/scripts/ADJUST1.1.1/ADJUST.m b/scripts/ADJUST1.1.1/ADJUST.m new file mode 100644 index 0000000000000000000000000000000000000000..c803482c3dfb686c2caf6205aa2c1abaf09a1309 --- /dev/null +++ b/scripts/ADJUST1.1.1/ADJUST.m @@ -0,0 +1,546 @@ + +% ADJUST() - Automatic EEG artifact Detector +% with Joint Use of Spatial and Temporal features +% +% Usage: +% >> [art, horiz, vert, blink, disc,... +% soglia_DV, diff_var, soglia_K, med2_K, meanK, soglia_SED, med2_SED, SED, soglia_SAD, med2_SAD, SAD, ... +% soglia_GDSF, med2_GDSF, GDSF, soglia_V, med2_V, nuovaV, soglia_D, maxdin]=ADJUST (EEG,out) +% +% Inputs: +% EEG - current dataset structure or structure array (has to be epoched) +% out - (string) report file name +% +% Outputs: +% art - List of artifacted ICs +% horiz - List of HEM ICs +% vert - List of VEM ICs +% blink - List of EB ICs +% disc - List of GD ICs +% soglia_DV - SVD threshold +% diff_var - SVD feature values +% soglia_K - TK threshold +% meanK - TK feature values +% soglia_SED - SED threshold +% SED - SED feature values +% soglia_SAD - SAD threshold +% SAD - SAD feature values +% soglia_GDSF- GDSF threshold +% GDSF - GDSF feature values +% soglia_V - MEV threshold +% nuovaV - MEV feature values +% +% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% ADJUST +% Automatic EEG artifact Detector based on the Joint Use of Spatial and Temporal features +% +% Developed 2007-2014 +% Andrea Mognon (1) and Marco Buiatti (2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% Last update: 02/05/2014 by Marco Buiatti +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Reference paper: +% Mognon A, Jovicich J, Bruzzone L, Buiatti M, +% ADJUST: An Automatic EEG artifact Detector based on the Joint Use of Spatial and Temporal features. +% Psychophysiology 48 (2), 229-240 (2011). +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Copyright (C) 2009-2014 Andrea Mognon (1) and Marco Buiatti (2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% VERSIONS LOG +% +% 02/05/14: Modified text in Report.txt (MB). +% +% 30/03/14: Removed 'message to the user' (redundant). (MB) +% +% 22/03/14: kurtosis is replaced by kurt for compatibility if signal processing +% toolbox is missing (MB). +% +% V2 (07 OCTOBER 2010) - by Andrea Mognon +% Added input 'nchannels' to compute_SAD and compute_SED_NOnorm; +% this is useful to differentiate the number of ICs (n) and the number of +% sensors (nchannels); +% bug reported by Guido Hesselman on October, 1 2010. + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% function [art, horiz, vert, blink, disc,... +% soglia_DV, diff_var, soglia_K, meanK, soglia_SED, SED, soglia_SAD, SAD, ... +% soglia_GDSF, GDSF, soglia_V, nuovaV, soglia_D, maxdin]=ADJUST (EEG,out) +function [art, horiz, vert, blink, disc,... + soglia_DV, diff_var, soglia_K, med2_K, meanK, soglia_SED, med2_SED, SED, soglia_SAD, med2_SAD, SAD, ... + soglia_GDSF, med2_GDSF, GDSF, soglia_V, med2_V, nuovaV, soglia_D, maxdin]=ADJUST (EEG,out) + + +%% Settings + +% ---------------------------------------------------- +% | Change experimental settings in this section | +% ---------------------------------------------------- + +% ---------------------------------------------------- +% | Initial message to user: | +% ---------------------------------------------------- +% +% disp(' ') +% disp('Detects Horizontal and Vertical eye movements,') +% disp('Blinks and Discontinuities in dataset:') +% disp([EEG.filename]) +% disp(' ') + +% ---------------------------------------------------- +% | Collect useful data from EEG structure | +% ---------------------------------------------------- + +%number of ICs=size(EEG.icawinv,1); + +%number of time points=size(EEG.data,2); + +if length(size(EEG.data))==3 + + num_epoch=size(EEG.data,3); + +else + + num_epoch=0; + +end + +% Check the presence of ICA activations + +if isempty(EEG.icaact) + disp('EEG.icaact not present. Recomputed from data.'); + if length(size(EEG.data))==3 +% EEG.icaact = EEG.icaweights*EEG.icasphere*reshape(EEG.data, size(EEG.icawinv,1), num_epoch*size(EEG.data,2)); +% EEG.icaact = reshape(EEG.icaact,size(EEG.icawinv,1),size(EEG.data,2), num_epoch); + EEG.icaact = reshape(EEG.icaweights*EEG.icasphere*reshape(EEG.data,[size(EEG.data,1)... + size(EEG.data,2)*size(EEG.data,3)]),[size(EEG.data,1) size(EEG.data,2) size(EEG.data,3)]); + else EEG.icaact = EEG.icaweights*EEG.icasphere*EEG.data; + end +end + +topografie=EEG.icawinv'; %computes IC topographies + +% Topographies and time courses normalization +% +% disp(' '); +% disp('Normalizing topographies...') +% disp('Scaling time courses...') + +for i=1:size(EEG.icawinv,2) % number of ICs + + ScalingFactor=norm(topografie(i,:)); + + topografie(i,:)=topografie(i,:)/ScalingFactor; + + if length(size(EEG.data))==3 + EEG.icaact(i,:,:)=ScalingFactor*EEG.icaact(i,:,:); + else + EEG.icaact(i,:)=ScalingFactor*EEG.icaact(i,:); + end + +end +% +% disp('Done.') +% disp(' ') + +% Variables memorizing artifacted ICs indexes + +blink=[]; + +horiz=[]; + +vert=[]; + +disc=[]; + +%% Check EEG channel position information +nopos_channels=[]; +for el=1:length(EEG.chanlocs) + if(any(isempty(EEG.chanlocs(1,el).X)&isempty(EEG.chanlocs(1,el).Y)&isempty(EEG.chanlocs(1,el).Z)&isempty(EEG.chanlocs(1,el).theta)&isempty(EEG.chanlocs(1,el).radius))) + nopos_channels=[nopos_channels el]; + end; +end + +if ~isempty(nopos_channels) + warning(['Channels ' num2str(nopos_channels) ' have incomplete location information. They will NOT be used to compute ADJUST spatial features']); + disp(' '); +end; + +pos_channels=setdiff(1:length(EEG.chanlocs),nopos_channels); + +%% Feature extraction + +disp(' ') +disp('Features Extraction:') + +%GDSF - General Discontinuity Spatial Feature + +disp('GDSF - General Discontinuity Spatial Feature...') + +GDSF = compute_GD_feat(topografie,EEG.chanlocs(1,pos_channels),size(EEG.icawinv,2)); + + +%SED - Spatial Eye Difference + +disp('SED - Spatial Eye Difference...') + +[SED,medie_left,medie_right]=computeSED_NOnorm(topografie,EEG.chanlocs(1,pos_channels),size(EEG.icawinv,2)); + + +%SAD - Spatial Average Difference + +disp('SAD - Spatial Average Difference...') + +[SAD,var_front,var_back,mean_front,mean_back]=computeSAD(topografie,EEG.chanlocs(1,pos_channels),size(EEG.icawinv,2)); + + +%SVD - Spatial Variance Difference between front zone and back zone + +diff_var=var_front-var_back; + +%epoch dynamic range, variance and kurtosis + +K=zeros(num_epoch,size(EEG.icawinv,2)); %kurtosis +Kloc=K; + +Vmax=zeros(num_epoch,size(EEG.icawinv,2)); %variance + +% disp('Computing variance and kurtosis of all epochs...') + +for i=1:size(EEG.icawinv,2) % number of ICs + + for j=1:num_epoch + Vmax(j,i)=var(EEG.icaact(i,:,j)); +% Kloc(j,i)=kurtosis(EEG.icaact(i,:,j)); + K(j,i)=kurt(EEG.icaact(i,:,j)); + end +end + +% check that kurt and kurtosis give the same values: +% [a,b]=max(abs(Kloc(:)-K(:))) + +%TK - Temporal Kurtosis + +disp('Temporal Kurtosis...') + +meanK=zeros(1,size(EEG.icawinv,2)); + +for i=1:size(EEG.icawinv,2) + if num_epoch>100 + meanK(1,i)=trim_and_mean(K(:,i)); + else meanK(1,i)=mean(K(:,i)); + end + +end + + +%MEV - Maximum Epoch Variance + +disp('Maximum epoch variance...') + +maxvar=zeros(1,size(EEG.icawinv,2)); +meanvar=zeros(1,size(EEG.icawinv,2)); + + +for i=1:size(EEG.icawinv,2) + if num_epoch>100 + maxvar(1,i)=trim_and_max(Vmax(:,i)'); + meanvar(1,i)=trim_and_mean(Vmax(:,i)'); + else + maxvar(1,i)=max(Vmax(:,i)); + meanvar(1,i)=mean(Vmax(:,i)); + end +end + +% MEV in reviewed formulation: + +nuovaV=maxvar./meanvar; + + + +%% Thresholds computation + +disp('Computing EM thresholds...') + +% soglia_K=EM(meanK); +% +% soglia_SED=EM(SED); +% +% soglia_SAD=EM(SAD); +% +% soglia_GDSF=EM(GDSF); +% +% soglia_V=EM(nuovaV); +[soglia_K,med1_K,med2_K]=EM(meanK); + +[soglia_SED,med1_SED,med2_SED]=EM(SED); + +[soglia_SAD,med1_SAD,med2_SAD]=EM(SAD); + +[soglia_GDSF,med1_GDSF,med2_GDSF]=EM(GDSF); + +[soglia_V,med1_V,med2_V]=EM(nuovaV); + +%% Output file header + +% ---------------------------------------------------- +% | Opens report file and writes header | +% ---------------------------------------------------- + +file=fopen(out,'w'); + +fprintf(file,'ADJUST\n'); + +fprintf(file,'Automatic EEG artifacts Detector with Joint Use of Spatial and Temporal features\n\n'); + +fprintf(file,'Andrea Mognon and Marco Buiatti (2009-2014)\n\n'); + +fprintf(file,['Analyzed dataset: ' EEG.filename '\n']); + +fprintf(file,['Analysis date: ' date '\n']); + +fprintf(file,'Analysis carried out on the %d Independent Components\n\n',size(EEG.icawinv,2)); + + +%% Horizontal eye movements (HEM) + +disp(' '); +disp('Artifact Identification:'); +disp('Horizontal Eye Movements...') + +% ---------------------------------------------------- +% | Writes HEM header in the report file | +% ---------------------------------------------------- + +fprintf(file,'> HEM - Horizontal movements\n\n'); + +fprintf(file,'Classification based on features:\n'); + +fprintf(file,'SED - Spatial eye difference (threshold=%f)\n',soglia_SED); + +fprintf(file,'MEV - Maximum epoch variance (threshold=%f)\n\n',soglia_V); + +fprintf(file,'ICs with Horizontal eye movements:\n'); + +horiz=intersect(intersect(find(SED>=soglia_SED),find(medie_left.*medie_right<0)),... + (find(nuovaV>=soglia_V))); + +hor_bool=1; %true if there are artifacted ICs + +if isempty(horiz) %no IC found + + fprintf(file,'/ \n'); + + hor_bool=0; + +else + + fprintf(file,[num2str(horiz) '\n']); + fprintf(file,'\n'); + +end + + + +%% Vertical eye movements (VEM) + +disp('Vertical Eye Movements...') + +% ---------------------------------------------------- +% | Writes VEM header in the report file | +% ---------------------------------------------------- + + +fprintf(file,'>> VEM - Vertical movements\n\n'); + +fprintf(file,'Classification based on features:\n'); + +fprintf(file,'SAD - Spatial average difference (threshold=%f)\n',soglia_SAD); + +fprintf(file,'MEV - Maximum epoch variance (threshold=%f)\n\n',soglia_V); + +fprintf(file,'ICs with Vertical eye movements:\n'); + + + + +vert=intersect(intersect(find(SAD>=soglia_SAD),find(medie_left.*medie_right>0)),... + intersect(find(diff_var>0),find(nuovaV>=soglia_V))); + + + +ver_bool=1; %true if there are artifacted ICs + +if isempty(vert) %no artifact found + + fprintf(file,'/ \n'); + + ver_bool=0; +else + + fprintf(file,[num2str(vert) '\n']); + fprintf(file,'\n'); +end + + + + +%% Eye Blink (EB) + +disp('Eye Blinks...') + +% ---------------------------------------------------- +% | Writes EB header in the report file | +% ---------------------------------------------------- + +fprintf(file,'>>> EB - Blinks\n\n'); + +fprintf(file,'Classification based on features:\n'); + +fprintf(file,'SAD (threshold=%f)\n',soglia_SAD); + +fprintf(file,'TK - Temporal kurtosis (threshold=%f)\n\n',soglia_K); + +fprintf(file,'ICs with Blinks:\n'); + + + +blink=intersect ( intersect( find(SAD>=soglia_SAD),find(medie_left.*medie_right>0) ) ,... + intersect ( find(meanK>=soglia_K),find(diff_var>0) )); + + + +bl_bool=1; %true if there are artifacted ICs + +if isempty(blink) %no blink component + + fprintf(file,'/ \n'); + + bl_bool=0; +else + + fprintf(file,[num2str(blink) '\n']); + fprintf(file,'\n'); +end + + + +%% Generic Discontinuities (GD) + +disp('Generic Discontinuities...') + +% ---------------------------------------------------- +% | Writes GD header in the report file | +% ---------------------------------------------------- + +fprintf(file,'>>>> GD - Discontinuities\n'); + +fprintf(file,'Classification based on features:\n'); + +fprintf(file,'GDSF - Generic Discontinuities Spatial Feature (threshold=%f)\n',soglia_GDSF); + +fprintf(file,'MEV - Maximum epoch variance (threshold=%f)\n\n',soglia_V); + +fprintf(file,'ICs with Generic Discontinuities:\n'); + + +disc=intersect(find(GDSF>=soglia_GDSF),find(nuovaV>=soglia_V)); + +dsc_bool=1; %true if there are discontinuities + +if isempty(disc) %no discontinuities + + fprintf(file,'/ \n'); + + dsc_bool=0; +else + + fprintf(file,[num2str(disc) '\n']); + fprintf(file,'\n'); +end + +aic=unique([blink disc horiz vert]); + +fprintf(file,'Artifacted ICs (total):\n'); + fprintf(file,[num2str(aic) '\n']); + fprintf(file,'\n'); + + + +%% Displaying results + +% ---------------------------------------------------- +% | Write message to user: report file name | +% ---------------------------------------------------- + +disp(' ') +disp(['Results in <' out '>.']) + + +fclose(file); + +%compute output variable +art = nonzeros( union (union(blink,horiz) , union(vert,disc)) )'; %artifact ICs + +% these three are old outputs which are no more necessary in latest ADJUST version. +soglia_D=0; +soglia_DV=0; +maxdin=zeros(1,size(EEG.icawinv,2)); + +return + +%% The following sections have been moved to interface_ADJ in order to manage +%% continuous data + +% +% %% Saving artifacted ICs for further analysis +% +% nome=['List_' EEG.setname '.mat']; +% +% save (nome, 'blink', 'horiz', 'vert', 'disc'); +% +% disp(' ') +% disp(['Artifact ICs list saved in ' nome]); +% +% +% %% IC show & remove +% % show all ICs; detected ICs are highlighted in red color. Based on +% % pop_selectcomps. +% +% art = nonzeros( union (union(blink,horiz) , union(vert,disc)) )'; %artifact ICs +% +% % [EEG] = pop_selectcomps_ADJ( EEG, 1:size(EEG.icawinv,1), art, horiz, vert, blink, disc,... +% % soglia_DV, diff_var, soglia_K, meanK, soglia_SED, SED, soglia_SAD, SAD, ... +% % soglia_TDR, topog_DR, soglia_V, maxvar, soglia_D, maxdin ); +% [EEG] = pop_selectcomps_ADJ( EEG, 1:size(EEG.icawinv,1), art, horiz, vert, blink, disc,... +% soglia_DV, diff_var, soglia_K, med2_K, meanK, soglia_SED, med2_SED, SED, soglia_SAD, med2_SAD, SAD, ... +% soglia_GDSF, med2_GDSF, topog_DR, soglia_V, med2_V, maxvar, soglia_D, maxdin ); + diff --git a/scripts/ADJUST1.1.1/EM.m b/scripts/ADJUST1.1.1/EM.m new file mode 100644 index 0000000000000000000000000000000000000000..1cf8a23debc34b0fecb69c1c79e1a228acd2fac2 --- /dev/null +++ b/scripts/ADJUST1.1.1/EM.m @@ -0,0 +1,184 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% EM - ADJUST package +% +% Performs automatic threshold on the digital numbers +% of the input vector 'vec'; based on Expectation - Maximization algorithm + +% Reference paper: +% Bruzzone, L., Prieto, D.F., 2000. Automatic analysis of the difference image +% for unsupervised change detection. +% IEEE Trans. Geosci. Remote Sensing 38, 1171:1182 + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Usage: +% >> [last,med1,med2,var1,var2,prior1,prior2]=EM(vec); +% +% Input: vec (row vector, to be thresholded) +% +% Outputs: last (threshold value) +% med1,med2 (mean values of the Gaussian-distributed classes 1,2) +% var1,var2 (variance of the Gaussian-distributed classes 1,2) +% prior1,prior2 (prior probabilities of the Gaussian-distributed classes 1,2) +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Copyright (C) 2009-2014 Andrea Mognon (1) and Marco Buiatti (2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +function [last,med1,med2,var1,var2,prior1,prior2]=EM(vec) + +if size(vec,2)>1 + len=size(vec,2); %number of elements +else + vec=vec'; + len=size(vec,2); +end + +c_FA=1; % False Alarm cost +c_MA=1; % Missed Alarm cost + +med=mean(vec); +standard=std(vec); +mediana=(max(vec)+min(vec))/2; + +alpha1=0.01*(max(vec)-mediana); % initialization parameter/ righthand side +alpha2=0.01*(mediana-min(vec)); % initialization parameter/ lefthand side + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% EXPECTATION +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +train1=[]; % Expectation of class 1 +train2=[]; +train=[]; % Expectation of 'unlabeled' samples + +for i=1:(len) + if (vec(i)<(mediana-alpha2)) + train2=[train2 vec(i)]; + elseif (vec(i)>(mediana+alpha1)) + train1=[train1 vec(i)]; + else + train=[train vec(i)]; + end +end + +n1=length(train1); +n2=length(train2); + +med1=mean(train1); +med2=mean(train2); +prior1=n1/(n1+n2); +prior2=n2/(n1+n2); +var1=var(train1); +var2=var(train2); + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% MAXIMIZATION +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +count=0; +dif_med_1=1; % difference between current and previous mean +dif_med_2=1; +dif_var_1=1; % difference between current and previous variance +dif_var_2=1; +dif_prior_1=1; % difference between current and previous prior +dif_prior_2=1; +stop=0.0001; + +while((dif_med_1>stop)&&(dif_med_2>stop)&&(dif_var_1>stop)&&(dif_var_2>stop)&&(dif_prior_1>stop)&&(dif_prior_2>stop)) + + count=count+1; + + med1_old=med1; + med2_old=med2; + var1_old=var1; + var2_old=var2; + prior1_old=prior1; + prior2_old=prior2; + prior1_i=[]; + prior2_i=[]; + + % FOLLOWING FORMULATION IS ACCORDING TO REFERENCE PAPER: + + for i=1:len + prior1_i=[prior1_i prior1_old*Bayes(med1_old,var1_old,vec(i))/... + (prior1_old*Bayes(med1_old,var1_old,vec(i))+prior2_old*Bayes(med2_old,var2_old,vec(i)))]; + prior2_i=[prior2_i prior2_old*Bayes(med2_old,var2_old,vec(i))/... + (prior1_old*Bayes(med1_old,var1_old,vec(i))+prior2_old*Bayes(med2_old,var2_old,vec(i)))]; + end + + + prior1=sum(prior1_i)/len; + prior2=sum(prior2_i)/len; + med1=sum(prior1_i.*vec)/(prior1*len); + med2=sum(prior2_i.*vec)/(prior2*len); + var1=sum(prior1_i.*((vec-med1_old).^2))/(prior1*len); + var2=sum(prior2_i.*((vec-med2_old).^2))/(prior2*len); + + dif_med_1=abs(med1-med1_old); + dif_med_2=abs(med2-med2_old); + dif_var_1=abs(var1-var1_old); + dif_var_2=abs(var2-var2_old); + dif_prior_1=abs(prior1-prior1_old); + dif_prior_2=abs(prior2-prior2_old); + +end + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% THRESHOLDING +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +k=c_MA/c_FA; +a=(var1-var2)/2; +b= ((var2*med1)-(var1*med2)); +c=(log((k*prior1*sqrt(var2))/(prior2*sqrt(var1)))*(var2*var1))+(((((med2)^2)*var1)-(((med1)^2)*var2))/2); +rad=(b^2)-(4*a*c); +if rad<0 + disp('Negative Discriminant!'); + return; +end + +soglia1=(-b+sqrt(rad))/(2*a); +soglia2=(-b-sqrt(rad))/(2*a); + +if ((soglia1med1)) + last=soglia2; +else + last=soglia1; +end + +if isnan(last) % TO PREVENT CRASHES + last=mediana; +end + +return + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +function prob=Bayes(med,var,point) +if var==0 + prob=1; +else + prob=((1/(sqrt(2*pi*var)))*exp((-1)*((point-med)^2)/(2*var))); +end + diff --git a/scripts/ADJUST1.1.1/INSTALLATION.txt b/scripts/ADJUST1.1.1/INSTALLATION.txt new file mode 100644 index 0000000000000000000000000000000000000000..fc4a5a92a5c903ccfe2a6e2dcc89f05fc01b9144 --- /dev/null +++ b/scripts/ADJUST1.1.1/INSTALLATION.txt @@ -0,0 +1,17 @@ + +ADJUST - Automatic EEG artifact Detection with Joint Use of Spatial and Temporal features + +This package runs in EEGLAB. +Please copy this folder into your EEGLAB plugins directory, e.g. here: + +/home/[...]/eeglab13_4_4b/plugins/ + +and then run EEGLAB; ADJUST should appear in the menu Tools -> ADJUST1.1.1 +NOTE: Perform ICA before running ADJUST. ICA is a necessary step. + + +2009-2015 Marco Buiatti +Center for Mind/Brain Sciences, University of Trento, Italy + +Support contact: adjust.staff@gmail.com + diff --git a/scripts/ADJUST1.1.1/LICENSE.txt b/scripts/ADJUST1.1.1/LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..10926e87f113fb026c366866d6fa466061562870 --- /dev/null +++ b/scripts/ADJUST1.1.1/LICENSE.txt @@ -0,0 +1,675 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + diff --git a/scripts/ADJUST1.1.1/computeSAD.m b/scripts/ADJUST1.1.1/computeSAD.m new file mode 100644 index 0000000000000000000000000000000000000000..5255bdfc88365073b1cd1fe78fa6e48b7de3ad83 --- /dev/null +++ b/scripts/ADJUST1.1.1/computeSAD.m @@ -0,0 +1,109 @@ + +% computeSAD() - Computes Spatial Average Difference feature +% +% Usage: +% >> [rapp,var_front,var_back,mean_front,mean_back]=computeSAD(topog,chanlocs,n); +% +% Inputs: +% topog - topographies vector +% chanlocs - EEG.chanlocs struct +% n - number of ICs +% nchannels - number of channels +% +% Outputs: +% rapp - SAD values +% var_front - Frontal Area variance values +% var_back - Posterior Area variance values +% mean_front - Frontal Area average values +% mean_back - Posterior Area average values +% +% +% Copyright (C) 2009-2014 Andrea Mognon (1) and Marco Buiatti (2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +function [rapp,var_front,var_back,mean_front,mean_back]=computeSAD(topog,chanlocs,n) + +nchannels=length(chanlocs); + +%% Define scalp zones + +% Find electrodes in Frontal Area (FA) +dimfront=0; %number of FA electrodes +index1=zeros(1,nchannels); %indexes of FA electrodes + +for k=1:nchannels + if (abs(chanlocs(1,k).theta)<60) && (chanlocs(1,k).radius>0.40) %electrodes are in FA + dimfront=dimfront+1; %count electrodes + index1(1,dimfront)=k; + end +end + + % Find electrodes in Posterior Area (PA) + dimback=0; + index3=zeros(1,nchannels); + for h=1:nchannels + if (abs(chanlocs(1,h).theta)>110) + dimback=dimback+1; + index3(1,dimback)=h; + end + end + + if dimfront*dimback==0 + disp('ERROR: no channels included in some scalp areas.') + disp('Check channels distribution and/or change scalp areas definitions in computeSAD.m and computeSED_NOnorm.m') + disp('ADJUST session aborted.') + return + end + +%% Outputs + + rapp=zeros(1,n); % SAD + mean_front=zeros(1,n); % FA electrodes mean value + mean_back=zeros(1,n); % PA electrodes mean value + var_front=zeros(1,n); % FA electrodes variance value + var_back=zeros(1,n); % PA electrodes variance value + +%% Output computation + +for i=1:n % for each topography + + %create FA electrodes vector + front=zeros(1,dimfront); + for h=1:dimfront + front(1,h)=topog(i,index1(1,h)); + end + + %create PA electrodes vector + back=zeros(1,dimback); + for h=1:dimback + back(1,h)=topog(i,index3(1,h)); + end + + + + %compute features + + rapp(1,i)=abs(mean(front))-abs(mean(back)); % SAD + mean_front(1,i)=mean(front); + mean_back(1,i)=mean(back); + var_back(1,i)=var(back); + var_front(1,i)=var(front); + +end + diff --git a/scripts/ADJUST1.1.1/computeSED_NOnorm.m b/scripts/ADJUST1.1.1/computeSED_NOnorm.m new file mode 100644 index 0000000000000000000000000000000000000000..49b3140d584e08a45ea5c8634b5145be8d4b720c --- /dev/null +++ b/scripts/ADJUST1.1.1/computeSED_NOnorm.m @@ -0,0 +1,121 @@ + +% computeSED_NOnorm() - Computes Spatial Eye Difference feature +% without normalization +% +% Usage: +% >> [out,medie_left,medie_right]=computeSED_NOnorm(topog,chanlocs,n); +% +% Inputs: +% topog - topographies vector +% chanlocs - EEG.chanlocs struct +% n - number of ICs +% nchannels - number of channels +% +% Outputs: +% out - SED values +% medie_left - Left Eye area average values +% medie_right- Right Eye area average values +% +% +% Copyright (C) 2009-2014 Andrea Mognon (1) and Marco Buiatti (2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +function [out,medie_left,medie_right]=computeSED_NOnorm(topog,chanlocs,n) + +nchannels=length(chanlocs); + +%% Define scalp zones + +% Find electrodes in Left Eye area (LE) +dimleft=0; %number of LE electrodes +index1=zeros(1,nchannels); %indexes of LE electrodes + +for k=1:nchannels + if (-610.30) %electrodes are in LE + dimleft=dimleft+1; %count electrodes + index1(1,dimleft)=k; + end +end + + % Find electrodes in Right Eye area (RE) + dimright=0; %number of RE electrodes + index2=zeros(1,nchannels); %indexes of RE electrodes + for g=1:nchannels + if (340.30) %electrodes are in RE + dimright=dimright+1; %count electrodes + index2(1,dimright)=g; + end + end + + % Find electrodes in Posterior Area (PA) + dimback=0; + index3=zeros(1,nchannels); + for h=1:nchannels + if (abs(chanlocs(1,h).theta)>110) + dimback=dimback+1; + index3(1,dimback)=h; + end + end + + if dimleft*dimright*dimback==0 + disp('ERROR: no channels included in some scalp areas.') + disp('Check channels distribution and/or change scalp areas definitions in computeSAD.m and computeSED_NOnorm.m') + disp('ADJUST session aborted.') + return + end + + %% Outputs + + out=zeros(1,n); %memorizes SED + medie_left=zeros(1,n); %memorizes LE mean value + medie_right=zeros(1,n); %memorizes RE mean value + +%% Output computation + +for i=1:n % for each topography + %create LE electrodes vector + left=zeros(1,dimleft); + for h=1:dimleft + left(1,h)=topog(i,index1(1,h)); + end + + %create RE electrodes vector + right=zeros(1,dimright); + for h=1:dimright + right(1,h)=topog(i,index2(1,h)); + end + + %create PA electrodes vector + back=zeros(1,dimback); + for h=1:dimback + back(1,h)=topog(i,index3(1,h)); + end + + + + %compute features + out1=abs(mean(left)-mean(right)); + out2=var(back); + out(1,i)=out1; % SED not notmalized + medie_left(1,i)=mean(left); + medie_right(1,i)=mean(right); + + +end + + diff --git a/scripts/ADJUST1.1.1/compute_GD_feat.m b/scripts/ADJUST1.1.1/compute_GD_feat.m new file mode 100644 index 0000000000000000000000000000000000000000..eea71e806205da65ae073c5de825fe462600be6e --- /dev/null +++ b/scripts/ADJUST1.1.1/compute_GD_feat.m @@ -0,0 +1,71 @@ +% compute_GD_feat() - Computes Generic Discontinuity spatial feature +% +% Usage: +% >> res = compute_GD_feat(topografie,canali,num_componenti); +% +% Inputs: +% topografie - topographies vector +% canali - EEG.chanlocs struct +% num_componenti - number of components +% +% Outputs: +% res - GDSF values + +% Copyright (C) 2009-2014 Andrea Mognon (1) and Marco Buiatti (2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +function res = compute_GD_feat(topografie,canali,num_componenti) + +% Computes GDSF, discontinuity spatial feature +% topografie is the topography weights matrix +% canali is the structure EEG.chanlocs +% num_componenti is the number of ICs +% res is GDSF values + +xpos=[canali.X];ypos=[canali.Y];zpos=[canali.Z]; +pos=[xpos',ypos',zpos']; + +res=zeros(1,num_componenti); + +for ic=1:num_componenti + + % consider the vector topografie(ic,:) + + aux=[]; + + for el=1:length(canali)-1 + + P=pos(el,:); %position of current electrode + d=pos-repmat(P,length(canali),1); + %d=pos-repmat(P,62,1); + dist=sqrt(sum((d.*d),2)); + + [y,I]=sort(dist); + repchas=I(2:11); % list of 10 nearest channels to el + weightchas=exp(-y(2:11)); % respective weights, computed wrt distance + + aux=[aux abs(topografie(ic,el)-mean(weightchas.*topografie(ic,repchas)'))]; + % difference between el and the average of 10 neighbors + % weighted according to weightchas + end + + res(ic)=max(aux); + +end + diff --git a/scripts/ADJUST1.1.1/eegplugin_adjust.m b/scripts/ADJUST1.1.1/eegplugin_adjust.m new file mode 100644 index 0000000000000000000000000000000000000000..7dd6abb62faed3b919e175f136322d2b56b3ac91 --- /dev/null +++ b/scripts/ADJUST1.1.1/eegplugin_adjust.m @@ -0,0 +1,40 @@ + +% eegplugin_adjust() - Plugin for running ADJUST algorithm on EEG data. +% +% Usage: +% >> eegplugin_adjust( fig, try_strings, catch_strings); +% +% Inputs: +% +% fig - [integer] EEGLAB figure +% try_strings - [struct] "try" strings for menu callbacks. +% catch_strings - [struct] "catch" strings for menu callbacks. +% +% +% Copyright (C) 2009-2015 Andrea Mognon (1) and Marco Buiatti (1,2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +function eegplugin_adjust( fig, try_strings, catch_strings) +plotmenu = findobj(fig, 'tag', 'tools'); +uimenu(plotmenu, 'label', 'ADJUST1.1.1', 'callback', ... + [try_strings.no_check '[ALLEEG,EEG,CURRENTSET,LASTCOM]= pop_ADJUST_interface( ALLEEG,EEG,CURRENTSET );eeglab redraw;' catch_strings.add_to_hist ]); + + + + diff --git a/scripts/ADJUST1.1.1/interface_ADJ.m b/scripts/ADJUST1.1.1/interface_ADJ.m new file mode 100644 index 0000000000000000000000000000000000000000..461277223f23a06c84bc23af64b8efce5979fb3f --- /dev/null +++ b/scripts/ADJUST1.1.1/interface_ADJ.m @@ -0,0 +1,181 @@ + +% interface_ADJ() - Run ADJUST algorithm on EEG data +% +% Usage: +% >> EEG=interface_ADJ(EEG,report); +% +% Inputs and outputs: +% EEG - current dataset structure or structure array +% +% Input: +% report - (string) report file name +% +% +% Copyright (C) 2009-2014 Andrea Mognon (1) and Marco Buiatti (2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +% +% +% REVISION HISTORY: +% +% 09/04/14: dir and filename removed from call of the function because +% unused (MB). +% +% 30/03/14: line 51: added test for ICA and for number of ICs = number of channels +% (MB). +% +% 20/03/14: line 73 commented out to avoid baseline removal. MB. + +function EEG = interface_ADJ (EEG,report) + +% Epoching + + % ---------------------------------------------------- + % | NOTE: epochs are extracted ONLY to make | + % | ArtifactADJUST run | + % ---------------------------------------------------- + +% Check that ICA has been computed +if isempty(EEG.icaweights) + warning('Please compute ICA before running ADJUST.'); + return; +end; + +% Check that number of ICs = number of channels +if size(EEG.icaweights,1)> vett=mat2vec(mat); +% +% Input: +% mat - 2D or 3D matrix +% +% Output: +% vett - vector +% +% Copyright (C) 2009-2014 Andrea Mognon (1) and Marco Buiatti (2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +function vett=mat2vec(mat) + +if ndims(mat)==2 + M=size(mat,1); + N=size(mat,2); + vett=zeros(1,M*N); + for i=1:M + for j=1:N + vett(1,(i-1)*N+j)=mat(i,j); + end + end +end + +if ndims(mat)==3 + I=size(mat,1); + M=size(mat,2); + N=size(mat,3); + vett=zeros(1,I*M*N); + inter=zeros(I,M*N); +% for i=1:I +% +% for k=1:M +% for l=1:N +% inter(i,(k-1)*N+l)=mat(i,k,l); +% end +% end +% +% end +% +% for i=1:I +% for j=1:M*N +% vett(1,(i-1)*M*N+j)=inter(i,j); +% end +% end + + +%%% for epoch-divided EEG data: + for i=1:I + + for l=1:N + for k=1:M + inter(i,(l-1)*M+k)=mat(i,k,l); + end + end + + end + + for i=1:I + for j=1:M*N + vett(1,(i-1)*M*N+j)=inter(i,j); + end + end + +end + + + \ No newline at end of file diff --git a/scripts/ADJUST1.1.1/pop_ADJUST_interface.m b/scripts/ADJUST1.1.1/pop_ADJUST_interface.m new file mode 100644 index 0000000000000000000000000000000000000000..af8b67e3d1b7104d02175a1d57902939eebd058d --- /dev/null +++ b/scripts/ADJUST1.1.1/pop_ADJUST_interface.m @@ -0,0 +1,74 @@ +% pop_ADJUST_interface() - running ADJUST algorithm on EEG data +% +% Usage: +% >> [ALLEEG,EEG,CURRENTSET,com] = pop_ADJUST_interface ( +% ALLEEG,EEG,CURRENTSET ); +% +% Inputs and outputs: +% ALLEEG - array of EEG dataset structures +% EEG - current dataset structure or structure array +% CURRENTSET - index(s) of the current EEG dataset(s) in ALLEEG +% +% +% Copyright (C) 2009-2014 Andrea Mognon (1) and Marco Buiatti (2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +% +% +% REVISION HISTORY: +% 09/04/14: Filter/Gross Artifact Rejection/ICA have been removed (MB). + + +function [ALLEEG,EEG,CURRENTSET,com] = pop_ADJUST_interface ( ALLEEG,EEG,CURRENTSET ) + +% the command output is a hidden output that does not have to +% be described in the header + +com = ''; % this initialization ensure that the function will return something + % if the user press the cancel button + +% display help if not enough arguments +% ------------------------------------ +if nargin < 1 + help pop_ADJUST_interface; + return; +end; + +%% select operations to be done: display list + +% messages={'Filter the data';'Remove Gross Artifacts and Perform ICA'; 'Run ADJUST'}; +% +% [Selection,ok] = listdlg('ListString',messages,'Name','ADJUST User Interface',... +% 'PromptString','Select operations to be done:',... +% 'OKString','Start Processing','SelectionMode','multiple','ListSize',[300 100]); + +disp(' ') +disp (['Running ADJUST on dataset ' strrep(EEG.filename, '.set', '') '.set']) +promptstr = { 'Enter Report file name (in quote): '}; +inistr = { '''report.txt''' }; +result = inputdlg2( promptstr, 'ADJUST User Interface', 1, inistr, 'pop_ADJUST_interface'); +if length( result ) == 0 return; end; + +report = eval( [ '[' result{1} ']' ] ); + +[EEG] = interface_ADJ (EEG,report); + +% return the string command +% ------------------------- +com = sprintf('pop_ADJUST_interface( %s );', EEG.filename); + +return; diff --git a/scripts/ADJUST1.1.1/pop_prop_ADJ.m b/scripts/ADJUST1.1.1/pop_prop_ADJ.m new file mode 100644 index 0000000000000000000000000000000000000000..9edbe5327debd66b380d10aa39531023d0c605f7 --- /dev/null +++ b/scripts/ADJUST1.1.1/pop_prop_ADJ.m @@ -0,0 +1,477 @@ +% pop_prop_ADJ() - overloaded pop_prop() for ADJUST plugin. +% plot the properties of a channel or of an independent component. +% ADJUST feature values are also shown (normalized wrt threshold). +% +% +% Usage: +% >> com = pop_prop_ADJ(EEG, typecomp, numcompo, winhandle, is_H, is_V, is_B, is_D,... +% soglia_DV, diff_var, soglia_K, med2_K, meanK, soglia_SED, med2_SED, SED, soglia_SAD, med2_SAD, SAD, ... +% soglia_GDSF, med2_GDSF, GDSF, soglia_V, med2_V, maxvar, soglia_D, maxdin) +% +% Inputs: +% EEG - current dataset structure or structure array +% typecomp - [0|1] compute electrode property (1) or component +% property (0). Default is 1. +% numcompo - channel or component number +% winhandle - if this parameter is present or non-NaN, buttons for the +% rejection of the component are drawn. If +% non-zero, this parameter is used to backpropagate +% the color of the rejection button. +% is_H - (bool) true if plotted IC is HEM +% is_V - (bool) true if plotted IC is VEM +% is_B - (bool) true if plotted IC is EB +% is_D - (bool) true if plotted IC is GD +% soglia_DV - feature1 (SVD) threshold +% diff_var - feature1 (SVD) vector +% soglia_K - feature2 (TK) threshold +% meanK - feature2 (TK) vector +% soglia_SED - feature3 (SED) threshold +% SED - feature3 (SED) vector +% soglia_SAD - feature4 (SAD) threshold +% SAD - feature4 (SAD) vector +% soglia_TDR - feature5 (SDR) threshold +% topog_DR - feature5 (SDR) vector +% soglia_V - feature6 (MEV) threshold +% maxvar - feature6 (MEV) vector +% soglia_D - feature7 (MEDR) threshold +% maxdin - feature7 (MEDR) vector +% + +% ORIGINAL HELP: +% pop_prop() - plot the properties of a channel or of an independent +% component. +% Usage: +% >> pop_prop( EEG, typecomp); % pops up a query window +% >> pop_prop( EEG, typecomp, chan, winhandle); +% +% Inputs: +% EEG - dataset structure (see EEGGLOBAL) +% typecomp - [0|1] compute electrode property (1) or component +% property (0). Default is 1. +% chan - channel or component number +% winhandle - if this parameter is present or non-NaN, buttons for the +% rejection of the component are drawn. If +% non-zero, this parameter is used to backpropagate +% the color of the rejection button. +% spectral_options - [cell array] cell arry of options for the spectopo() +% function. +% + +% Copyright (C) 2009-2014 Andrea Mognon (1) and Marco Buiatti (2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +% +% +% +% VERSIONS LOG +% +% 26/03/14: +% + +function com = pop_prop_ADJ(EEG, typecomp, numcompo, winhandle, is_H, is_V, is_B, is_D,... + soglia_DV, diff_var, soglia_K, med2_K, meanK, soglia_SED, med2_SED, SED, soglia_SAD, med2_SAD, SAD, ... + soglia_GDSF, med2_GDSF, GDSF, soglia_V, med2_V, maxvar, soglia_D, maxdin) %,spec_opt) + +com = ''; +if nargin < 1 + help pop_prop_ADJ; + return; +end; + +if nargin == 1 + typecomp = 1; +end; +if typecomp == 0 & isempty(EEG.icaweights) + error('No ICA weights recorded for this set, first run ICA'); +end; +if nargin == 2 + promptstr = { fastif(typecomp,'Channel number to plot:','Component number to plot:') ... + 'Spectral options (see spectopo help):' }; + inistr = { '1' '''freqrange'', [2 50]' }; + result = inputdlg2( promptstr, 'Component properties - pop_prop_ADJ()', 1, inistr, 'pop_prop_ADJ'); + if size( result, 1 ) == 0 return; end; + + numcompo = eval( [ '[' result{1} ']' ] ); + spec_opt = eval( [ '{' result{2} '}' ] ); +end; + +% plotting several component properties - STILL TO CHANGE +% ------------------------------------- +if length(numcompo) > 1 + for index = numcompo + pop_prop(EEG, typecomp, index); + end; + com = sprintf('pop_prop( %s, %d, [%s]);', inputname(1), typecomp, int2str(numcompo)); + return; +end; + +if numcompo < 1 | numcompo > EEG.nbchan + error('Component index out of range'); +end; + +% assumed input is numcompo +% ------------------------- +try, icadefs; +catch, + BACKCOLOR = [0.8 0.8 0.8]; + GUIBUTTONCOLOR = [0.8 0.8 0.8]; +end; +basename = [fastif(typecomp,'Channel ', 'Component ') int2str(numcompo) ]; + +fh = figure('name', ['pop_prop_ADJ() - ' basename ' properties'], 'color', BACKCOLOR, 'numbertitle', 'off', 'visible', 'off'); +pos = get(gcf,'Position'); +set(gcf,'Position', [pos(1) pos(2)-500+pos(4) 500 500], 'visible', 'on'); +pos = get(gca,'position'); % plot relative to current axes +hh = gca; +q = [pos(1) pos(2) 0 0]; +s = [pos(3) pos(4) pos(3) pos(4)]./100; +axis off; + +% plotting topoplot +% ----------------- +h = axes('Units','Normalized', 'Position',[-10 65 40 35].*s+q); + +%topoplot( EEG.icawinv(:,numcompo), EEG.chanlocs); axis square; + +if typecomp == 1 % plot single channel locations + topoplot( numcompo, EEG.chanlocs, 'chaninfo', EEG.chaninfo, ... + 'electrodes','off', 'style', 'blank', 'emarkersize1chan', 12); axis square; +else % plot component map + topoplot( EEG.icawinv(:,numcompo), EEG.chanlocs, 'chaninfo', EEG.chaninfo, ... + 'shading', 'interp', 'numcontour', 3); axis square; +end; +basename = [fastif(typecomp,'Channel ', 'IC') int2str(numcompo) ]; +% title([ basename fastif(typecomp, ' location', ' map')], 'fontsize', 14); +title(basename, 'fontsize', 12); + +% plotting erpimage +% ----------------- +hhh = axes('Units','Normalized', 'Position',[45 67 48 33].*s+q); %era height 38 +eeglab_options; +if EEG.trials > 1 + % put title at top of erpimage + axis off + hh = axes('Units','Normalized', 'Position',[45 67 48 33].*s+q); + EEG.times = linspace(EEG.xmin, EEG.xmax, EEG.pnts); + if EEG.trials < 6 + ei_smooth = 1; + else + ei_smooth = 3; + end + if typecomp == 1 % plot component + offset = nan_mean(EEG.data(numcompo,:)); + erpimage( EEG.data(numcompo,:)-offset, ones(1,EEG.trials)*10000, EEG.times , ... + '', ei_smooth, 1, 'caxis', 2/3, 'cbar','erp'); + else % plot channel + if option_computeica + offset = nan_mean(EEG.icaact(numcompo,:)); + erpimage( EEG.icaact(numcompo,:)-offset, ones(1,EEG.trials)*10000, EEG.times , ... + '', ei_smooth, 1, 'caxis', 2/3, 'cbar','erp', 'yerplabel', ''); + else + + icaacttmp = (EEG.icaweights(numcompo,:) * EEG.icasphere) ... + * reshape(EEG.data(1:size(EEG.icaweights,1),:,:), EEG.nbchan, EEG.trials*EEG.pnts); +% icaacttmp = (EEG.icaweights(numcompo,:) * EEG.icasphere) ... +% * EEG.data(EEG.nbchan, EEG.trials*EEG.pnts); + offset = nan_mean(icaacttmp); + erpimage( icaacttmp-offset, ones(1,EEG.trials)*10000, EEG.times, ... + '', ei_smooth, 1, 'caxis', 2/3, 'cbar','erp', 'yerplabel', ''); + end; + end; + axes(hhh); + title(sprintf('%s activity \\fontsize{10}(global offset %3.3f)', basename, offset), 'fontsize', 12); +else + + % put title at top of erpimage + EI_TITLE = 'Continous data'; + axis off + hh = axes('Units','Normalized', 'Position',[45 62 48 38].*s+q); + ERPIMAGELINES = 200; % show 200-line erpimage + while size(EEG.data,2) < ERPIMAGELINES*EEG.srate + ERPIMAGELINES = round(0.9 * ERPIMAGELINES); + end + if ERPIMAGELINES > 2 % give up if data too small + if ERPIMAGELINES < 10 + ei_smooth == 1; + else + ei_smooth = 3; + end + erpimageframes = floor(size(EEG.data,2)/ERPIMAGELINES); + erpimageframestot = erpimageframes*ERPIMAGELINES; + eegtimes = linspace(0, erpimageframes-1, EEG.srate/1000); + if typecomp == 1 % plot component + offset = nan_mean(EEG.data(numcompo,:)); + erpimage( reshape(EEG.data(numcompo,1:erpimageframestot),erpimageframes,ERPIMAGELINES)-offset, ones(1,ERPIMAGELINES)*10000, eegtimes , ... + EI_TITLE, ei_smooth, 1, 'caxis', 2/3, 'cbar'); + else % plot channel + if option_computeica + offset = nan_mean(EEG.icaact(numcompo,:)); + erpimage( ... + reshape(EEG.icaact(numcompo,1:erpimageframestot),erpimageframes,ERPIMAGELINES)-offset, ... + ones(1,ERPIMAGELINES)*10000, eegtimes , ... + EI_TITLE, ei_smooth, 1, 'caxis', 2/3, 'cbar','yerplabel', ''); + else +% icaacttmp = reshape(EEG.icaweights(numcompo,:) * EEG.icasphere) ... +% * reshape(EEG.data, erpimageframes, ERPIMAGELINES); + + icaacttmp = EEG.icaweights(numcompo,:) * EEG.icasphere ... + *EEG.data(:,1:erpimageframes*ERPIMAGELINES); + + offset = nan_mean(icaacttmp); + erpimage( icaacttmp-offset, ones(1,ERPIMAGELINES)*10000, eegtimes, ... + EI_TITLE, ei_smooth, 1, 'caxis', 2/3, 'cbar', 'yerplabel', ''); + end; + end + else + axis off; + text(0.1, 0.3, [ 'No erpimage plotted' 10 'for small continuous data']); + end; + axes(hhh); +end; + +% plotting spectrum +% ----------------- +if ~exist('winhandle') + winhandle = NaN; +end; +if ~isnan(winhandle) + h = axes('units','normalized', 'position',[10 25 85 25].*s+q); + %h = axes('units','normalized', 'position',[5 10 95 35].*s+q); %%% + %CHANGE! +else + h = axes('units','normalized', 'position',[10 15 85 30].*s+q); + %h = axes('units','normalized', 'position',[5 0 95 40].*s+q); %%% + %CHANGE! +end; +%h = axes('units','normalized', 'position',[45 5 60 40].*s+q); +try + eeglab_options; + %next instr added for correct function! Andrea + option_computeica=1; + if typecomp == 1 + %[spectra freqs] = spectopo( EEG.data(numcompo,:), EEG.pnts, EEG.srate, spec_opt{:},'freqrange', [0 45] ); + [spectra freqs] = spectopo( EEG.data(numcompo,:), EEG.pnts, EEG.srate, 'freqrange', [0 45] ); + else + if option_computeica + + %[spectra freqs] = spectopo( EEG.icaact(numcompo,:), EEG.pnts, EEG.srate, 'mapnorm', EEG.icawinv(:,numcompo), spec_opt{:}, 'freqrange', [0 45]); + % CONTROL ADDED FOR CONTINUOUS DATA + if size(EEG.data,3)==1 + EEG.icaact = EEG.icaweights*EEG.icasphere*EEG.data; + end + [spectra freqs] = spectopo( EEG.icaact(numcompo,:), EEG.pnts, EEG.srate, 'mapnorm', EEG.icawinv(:,numcompo), 'freqrange', [0 45]); + else + if exist('icaacttmp')~=1, + + icaacttmp = (EEG.icaweights(numcompo,:)*EEG.icasphere)*reshape(EEG.data, EEG.nbchan, EEG.trials*EEG.pnts); + end; + + %[spectra freqs] = spectopo( icaacttmp, EEG.pnts, EEG.srate, 'mapnorm', EEG.icawinv(:,numcompo), spec_opt{:} ,'freqrange', [0 45]); + [spectra freqs] = spectopo( icaacttmp, EEG.pnts, EEG.srate, 'mapnorm', EEG.icawinv(:,numcompo), 'freqrange', [0 45]); + end; + end; + set(gca,'fontsize',8); + % set up new limits + % ----------------- + %freqslim = 50; + %set(gca, 'xlim', [0 min(freqslim, EEG.srate/2)]); + %spectra = spectra(find(freqs <= freqslim)); + %set(gca, 'ylim', [min(spectra) max(spectra)]); + + %tmpy = get(gca, 'ylim'); + %set(gca, 'ylim', [max(tmpy(1),-1) tmpy(2)]); + set( get(gca, 'ylabel'), 'string', 'Power 10*log_{10}(\muV^{2}/Hz)', 'fontsize', 8); + set( get(gca, 'xlabel'), 'string', 'Frequency (Hz)', 'fontsize', 8); + title('Activity power spectrum', 'fontsize', 12); +catch + axis off; + text(0.1, 0.3, [ 'Error: no spectrum plotted' 10 ' make sure you have the ' 10 'signal processing toolbox']); +end; + +% ---------------------------------------------------------------- +% plotting IC properties +% ----------------- +if ~exist('winhandle') + winhandle = NaN; +end; +if ~isnan(winhandle) + h = axes('units','normalized', 'position',[3 2 95 10].*s+q); +else + h = axes('units','normalized', 'position',[3 0 95 10].*s+q); +end; + +axis off +str='ADJUST - Detected as '; +if is_H + str=[str 'HEM ']; +end + if is_V + str=[str 'VEM ']; + end + if is_B + str=[str 'EB ']; + end + if is_D + str=[str 'GD']; + end + +if (is_H || is_V || is_B || is_D)==0 + str='ADJUST - Not detected'; +end +% text(0,0,[str 10 'TK ' num2str(meanK) '(' num2str(soglia_K) '); SAD ' num2str(SAD) '(' num2str(soglia_SAD) ... +% '); SVD ' num2str(diff_var) '(' num2str(soglia_DV) '); SED ' num2str(SED) '(' num2str(soglia_SED) ... +% ')' 10 'MEDR ' num2str(maxdin) '(' num2str(soglia_D) '); MEV ' num2str(maxvar) '(' num2str(soglia_V) ... +% '); SDR ' num2str(topog_DR) '(' num2str(soglia_TDR) ')'],'FontSize',8); + +% compute bar graph entries +% E=[ SAD/soglia_SAD SED/soglia_SED GDSF/soglia_GDSF maxvar/soglia_V meanK/soglia_K]; +E=[(SAD-med2_SAD)/(soglia_SAD-med2_SAD) (SED-med2_SED)/(soglia_SED-med2_SED) (GDSF-med2_GDSF)/(soglia_GDSF-med2_GDSF) (maxvar-med2_V)/(soglia_V-med2_V) (meanK-med2_K)/(soglia_K-med2_K)]; + +% set bar colors +C={[1 0 0],[.6 0 .2],[1 1 0],[0 1 0], [0 1 1]}; +% horizontal line +l=ones([1, length(E)+2]); +% plot +plot(0:length(E)+1 , l , 'Linewidth',2,'Color','k'); +hold on +for i=1:length(E) + v=zeros(1,length(E)); + v(i)=E(i); + bar(v,'facecolor',C{i}); + title(str); + set(gca,'XTickLabel',{'';'SAD';'SED';'GDSF';'MEV';'TK';''},'YTickLabel',{'0';'Threshold';'2*Threshold'},'YLim',[0 2]) +end + + + + +% ----------------------------------------------------------------- + + +% display buttons +% --------------- + +if ~isnan(winhandle) + COLREJ = '[1 0.6 0.6]'; + COLACC = '[0.75 1 0.75]'; + % CANCEL button + % ------------- + h = uicontrol(gcf, 'Style', 'pushbutton', 'backgroundcolor', GUIBUTTONCOLOR, 'string', 'Cancel', 'Units','Normalized','Position',[-10 -10 15 6].*s+q, 'callback', 'close(gcf);'); + + % VALUE button + % ------------- + hval = uicontrol(gcf, 'Style', 'pushbutton', 'backgroundcolor', GUIBUTTONCOLOR, 'string', 'Values', 'Units','Normalized', 'Position', [15 -10 15 6].*s+q); + + % REJECT button + % ------------- + status = EEG.reject.gcompreject(numcompo); + hr = uicontrol(gcf, 'Style', 'pushbutton', 'backgroundcolor', eval(fastif(status,COLREJ,COLACC)), ... + 'string', fastif(status, 'REJECT', 'ACCEPT'), 'Units','Normalized', 'Position', [40 -10 15 6].*s+q, 'userdata', status, 'tag', 'rejstatus'); + command = [ 'set(gcbo, ''userdata'', ~get(gcbo, ''userdata''));' ... + 'if get(gcbo, ''userdata''),' ... + ' set( gcbo, ''backgroundcolor'',' COLREJ ', ''string'', ''REJECT'');' ... + 'else ' ... + ' set( gcbo, ''backgroundcolor'',' COLACC ', ''string'', ''ACCEPT'');' ... + 'end;' ]; + set( hr, 'callback', command); + + % HELP button + % ------------- + h = uicontrol(gcf, 'Style', 'pushbutton', 'backgroundcolor', GUIBUTTONCOLOR, 'string', 'HELP', 'Units','Normalized', 'Position', [65 -10 15 6].*s+q, 'callback', 'pophelp(''pop_prop_ADJ'');'); + + % OK button + % --------- + command = [ 'global EEG;' ... + 'tmpstatus = get( findobj(''parent'', gcbf, ''tag'', ''rejstatus''), ''userdata'');' ... + 'EEG.reject.gcompreject(' num2str(numcompo) ') = tmpstatus;' ]; + if winhandle ~= 0 + command = [ command ... + sprintf('if tmpstatus set(%3.15f, ''backgroundcolor'', %s); else set(%3.15f, ''backgroundcolor'', %s); end;', ... + winhandle, COLREJ, winhandle, COLACC)]; + end; + command = [ command 'close(gcf); clear tmpstatus' ]; + h = uicontrol(gcf, 'Style', 'pushbutton', 'string', 'OK', 'backgroundcolor', GUIBUTTONCOLOR, 'Units','Normalized', 'Position',[90 -10 15 6].*s+q, 'callback', command); + + % draw the figure for statistical values + % -------------------------------------- + index = num2str( numcompo ); + command = [ ... + 'figure(''MenuBar'', ''none'', ''name'', ''Statistics of the component'', ''numbertitle'', ''off'');' ... + '' ... + 'pos = get(gcf,''Position'');' ... + 'set(gcf,''Position'', [pos(1) pos(2) 340 340]);' ... + 'pos = get(gca,''position'');' ... + 'q = [pos(1) pos(2) 0 0];' ... + 's = [pos(3) pos(4) pos(3) pos(4)]./100;' ... + 'axis off;' ... + '' ... + 'txt1 = sprintf(''(\n' ... + 'Entropy of component activity\t\t%2.2f\n' ... + '> Rejection threshold \t\t%2.2f\n\n' ... + ' AND \t\t\t----\n\n' ... + 'Kurtosis of component activity\t\t%2.2f\n' ... + '> Rejection threshold \t\t%2.2f\n\n' ... + ') OR \t\t\t----\n\n' ... + 'Kurtosis distibution \t\t\t%2.2f\n' ... + '> Rejection threhold\t\t\t%2.2f\n\n' ... + '\n' ... + 'Current thesholds sujest to %s the component\n\n' ... + '(after manually accepting/rejecting the component, you may recalibrate thresholds for future automatic rejection on other datasets)'',' ... + 'EEG.stats.compenta(' index '), EEG.reject.threshentropy, EEG.stats.compkurta(' index '), ' ... + 'EEG.reject.threshkurtact, EEG.stats.compkurtdist(' index '), EEG.reject.threshkurtdist, fastif(EEG.reject.gcompreject(' index '), ''REJECT'', ''ACCEPT''));' ... + '' ... + 'uicontrol(gcf, ''Units'',''Normalized'', ''Position'',[-11 4 117 100].*s+q, ''Style'', ''frame'' );' ... + 'uicontrol(gcf, ''Units'',''Normalized'', ''Position'',[-5 5 100 95].*s+q, ''String'', txt1, ''Style'',''text'', ''HorizontalAlignment'', ''left'' );' ... + 'h = uicontrol(gcf, ''Style'', ''pushbutton'', ''string'', ''Close'', ''Units'',''Normalized'', ''Position'', [35 -10 25 10].*s+q, ''callback'', ''close(gcf);'');' ... + 'clear txt1 q s h pos;' ]; + set( hval, 'callback', command); + if isempty( EEG.stats.compenta ) + set(hval, 'enable', 'off'); + end; + + % MODIFICA + %com = sprintf('pop_prop( %s, %d, %d, 0, %s);', inputname(1), typecomp, numcompo, vararg2str( { spec_opt } ) ); + com = sprintf('pop_prop_ADJ( %s, %d, %d, 0, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %s);',... + inputname(1), typecomp, numcompo, is_H, is_V, is_B, is_D,... + soglia_DV, diff_var, soglia_K, med2_K, meanK, soglia_SED, med2_SED, SED, soglia_SAD, med2_SAD, SAD, ... + soglia_GDSF, med2_GDSF, GDSF, soglia_V, med2_V, maxvar, soglia_D, maxdin ); + +else + %com = sprintf('pop_prop( %s, %d, %d, NaN, %s);', inputname(1), typecomp, numcompo, vararg2str( { spec_opt } ) ); + com = sprintf('pop_prop_ADJ( %s, %d, %d, NaN, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %s);',... + inputname(1), typecomp, numcompo, is_H, is_V, is_B, is_D,... + soglia_DV, diff_var, soglia_K, med2_K, meanK, soglia_SED, med2_SED, SED, soglia_SAD, med2_SAD, SAD, ... + soglia_GDSF, med2_GDSF, GDSF, soglia_V, med2_V, maxvar, soglia_D, maxdin ); + +end; + +return; + +function out = nan_mean(in) + + nans = find(isnan(in)); + in(nans) = 0; + sums = sum(in); + nonnans = ones(size(in)); + nonnans(nans) = 0; + nonnans = sum(nonnans); + nononnans = find(nonnans==0); + nonnans(nononnans) = 1; + out = sum(in)./nonnans; + out(nononnans) = NaN; + + diff --git a/scripts/ADJUST1.1.1/pop_selectcomps_ADJ.m b/scripts/ADJUST1.1.1/pop_selectcomps_ADJ.m new file mode 100644 index 0000000000000000000000000000000000000000..58f2c220e61f3b76ae53ab18394e38d4de5ee524 --- /dev/null +++ b/scripts/ADJUST1.1.1/pop_selectcomps_ADJ.m @@ -0,0 +1,244 @@ + +% pop_selectcomps_ADJ() - Display components with button to vizualize their +% properties and feature values and label them for +% rejection. ADJUST detected ICs are highlighter in red +% color. Based on pop_selectcomps. +% +% Usage: +% >> [EEG,com] = pop_selectcomps_ADJ( EEG, compnum, art, horiz, vert, blink, disc,... +% soglia_DV, diff_var, soglia_K, med2_K, meanK, soglia_SED, med2_SED, SED, soglia_SAD, med2_SAD, SAD, ... +% soglia_GDSF, med2_GDSF, GDSF, soglia_V, med2_V, maxvar, soglia_D, maxdin, fig ) +% +% Inputs: +% EEG - current dataset structure or structure array +% compnum - vector of component numbers +% art - vector of artifact components numbers +% horiz - vector of HEM components numbers +% vert - vector of VEM components numbers +% blink - vector of EB components numbers +% disc - vector of GD components numbers +% soglia_DV - feature1 (SVD) threshold +% diff_var - feature1 (SVD) vector +% soglia_K - feature2 (TK) threshold +% meanK - feature2 (TK) vector +% soglia_SED - feature3 (SED) threshold +% SED - feature3 (SED) vector +% soglia_SAD - feature4 (SAD) threshold +% SAD - feature4 (SAD) vector +% soglia_TDR - feature5 (SDR) threshold +% topog_DR - feature5 (SDR) vector +% soglia_V - feature6 (MEV) threshold +% maxvar - feature6 (MEV) vector +% soglia_D - feature7 (MEDR) threshold +% maxdin - feature7 (MEDR) vector +% +% Outputs: +% EEG - Output dataset with updated rejected components +% +% +% +% ORIGINAL FUNCTION HELP: +% pop_selectcomps() - Display components with button to vizualize their +% properties and label them for rejection. +% Usage: +% >> OUTEEG = pop_selectcomps( INEEG, compnum, art ); +% +% Inputs: +% INEEG - Input dataset +% compnum - vector of component numbers +% +% Output: +% OUTEEG - Output dataset with updated rejected components +% +% +% +% Copyright (C) 2009-2014 Andrea Mognon (1) and Marco Buiatti (2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +% function [EEG,com] = pop_selectcomps_ADJ( EEG, compnum, art, horiz, vert, blink, disc,... +% soglia_DV, diff_var, soglia_K, meanK, soglia_SED, SED, soglia_SAD, SAD, ... +% soglia_GDSF, GDSF, soglia_V, maxvar, soglia_D, maxdin, fig ) +function [EEG,com] = pop_selectcomps_ADJ( EEG, compnum, art, horiz, vert, blink, disc,... + soglia_DV, diff_var, soglia_K, med2_K, meanK, soglia_SED, med2_SED, SED, soglia_SAD, med2_SAD, SAD, ... + soglia_GDSF, med2_GDSF, GDSF, soglia_V, med2_V, maxvar, soglia_D, maxdin, fig ) + +COLREJ = '[1 0.6 0.6]'; +COLACC = '[0.75 1 0.75]'; +COLART = '[1 0 0]'; +PLOTPERFIG = 35; + +com = ''; +if nargin < 1 + help pop_selectcomps_ADJ; + return; +end; + +if nargin < 2 + promptstr = { 'Components to plot:' }; + initstr = { [ '1:' int2str(size(EEG.icaweights,1)) ] }; + + result = inputdlg2(promptstr, 'Reject comp. by map -- pop_selectcomps',1, initstr); + if isempty(result), return; end; + compnum = eval( [ '[' result{1} ']' ]); + + if length(compnum) > PLOTPERFIG + ButtonName=questdlg2(strvcat(['More than ' int2str(PLOTPERFIG) ' components so'],'this function will pop-up several windows'), ... + 'Confirmation', 'Cancel', 'OK','OK'); + if ~isempty( strmatch(lower(ButtonName), 'cancel')), return; end; + end; + +end; + +currentfigtag = ['selcomp' num2str(rand)]; % generate a random figure tag + +if length(compnum) > PLOTPERFIG + for index = 1:PLOTPERFIG:length(compnum) + fprintf('Drawing figure...\n'); + EEG = pop_selectcomps_ADJ(EEG, compnum([index:min(length(compnum),index+PLOTPERFIG-1)]), art, horiz, vert, blink, disc,... + soglia_DV, diff_var, soglia_K, med2_K, meanK, soglia_SED, med2_SED, SED, soglia_SAD, med2_SAD, SAD, ... + soglia_GDSF, med2_GDSF, GDSF, soglia_V, med2_V, maxvar, soglia_D, maxdin); + end; + + com = [ 'pop_selectcomps(' inputname(1) ', ' vararg2str(compnum) ');' ]; + return; +end; + +if isempty(EEG.reject.gcompreject) + EEG.reject.gcompreject = zeros( size(EEG.icawinv,2)); +end; +try, icadefs; +catch, + BACKCOLOR = [0.8 0.8 0.8]; + GUIBUTTONCOLOR = [0.8 0.8 0.8]; +end; + +% set up the figure +% ----------------- +column =ceil(sqrt( length(compnum) ))+1; +rows = ceil(length(compnum)/column); +if ~exist('fig') + figure('name', [ 'Reject components by map - pop_selectcomps_ADJ() (dataset: ' EEG.setname ')'], 'tag', currentfigtag, ... + 'numbertitle', 'off', 'color', BACKCOLOR); + set(gcf,'MenuBar', 'none'); + pos = get(gcf,'Position'); + set(gcf,'Position', [pos(1) 20 800/7*column 600/5*rows]); + incx = 120; + incy = 110; + sizewx = 100/column; + if rows > 2 + sizewy = 90/rows; + else + sizewy = 80/rows; + end; + pos = get(gca,'position'); % plot relative to current axes + hh = gca; + q = [pos(1) pos(2) 0 0]; + s = [pos(3) pos(4) pos(3) pos(4)]./100; + axis off; +end; + +% figure rows and columns +% ----------------------- +if EEG.nbchan > 64 + disp('More than 64 electrodes: electrode locations not shown'); + plotelec = 0; +else + plotelec = 1; +end; +count = 1; +for ri = compnum + if exist('fig') + button = findobj('parent', fig, 'tag', ['comp' num2str(ri)]); + if isempty(button) + error( 'pop_selectcomps_ADJ(): figure does not contain the component button'); + end; + else + button = []; + end; + + if isempty( button ) + % compute coordinates + % ------------------- + X = mod(count-1, column)/column * incx-10; + Y = (rows-floor((count-1)/column))/rows * incy - sizewy*1.3; + + % plot the head + % ------------- + if ~strcmp(get(gcf, 'tag'), currentfigtag); + disp('Aborting plot'); + return; + end; + ha = axes('Units','Normalized', 'Position',[X Y sizewx sizewy].*s+q); + if plotelec + topoplot( EEG.icawinv(:,ri), EEG.chanlocs, 'verbose', ... + 'off', 'style' , 'fill', 'chaninfo', EEG.chaninfo); + else + topoplot( EEG.icawinv(:,ri), EEG.chanlocs, 'verbose', ... + 'off', 'style' , 'fill','electrodes','off', 'chaninfo', EEG.chaninfo); + end; + axis square; + + % plot the button + % --------------- + button = double(uicontrol(gcf, 'Style', 'pushbutton', 'Units','Normalized', 'Position',... + [X Y+sizewy sizewx sizewy*0.25].*s+q, 'tag', ['comp' num2str(ri)])); + command = sprintf('pop_prop_ADJ( %s, 0, %d, %3.15f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f);', ... + inputname(1), ri, button, ... + ~isempty(intersect(horiz,ri)), ~isempty(intersect(vert,ri)), ~isempty(intersect(blink,ri)), ~isempty(intersect(disc,ri)),... + soglia_DV, diff_var(ri), soglia_K, med2_K, meanK(ri), soglia_SED, med2_SED, SED(ri),... + soglia_SAD, med2_SAD, SAD(ri), soglia_GDSF, med2_GDSF, GDSF(ri), soglia_V, med2_V, maxvar(ri), soglia_D, maxdin(ri)); + set( button, 'callback', command ); + end; + + % MODIFY BUTTON COLOR: ARTIFACT IC? + if isempty( intersect(art,ri)) % NON ARTIFACT + set( button, 'backgroundcolor', eval(fastif(EEG.reject.gcompreject(ri), COLREJ,COLACC)), 'string', int2str(ri)); + else set( button, 'backgroundcolor', eval(fastif(EEG.reject.gcompreject(ri), COLREJ,COLART)), 'string', int2str(ri)); + end + + drawnow; + count = count +1; +end; + +% draw the bottom button +% ---------------------- +if ~exist('fig') + hh = uicontrol(gcf, 'Style', 'pushbutton', 'string', 'Cancel', 'Units','Normalized', 'backgroundcolor', GUIBUTTONCOLOR, ... + 'Position',[-10 -10 15 sizewy*0.25].*s+q, 'callback', 'close(gcf); fprintf(''Operation cancelled\n'')' ); + hh = uicontrol(gcf, 'Style', 'pushbutton', 'string', 'Set threhsolds', 'Units','Normalized', 'backgroundcolor', GUIBUTTONCOLOR, ... + 'Position',[10 -10 15 sizewy*0.25].*s+q, 'callback', 'pop_icathresh(EEG); pop_selectcomps( EEG, gcbf);' ); + if isempty( EEG.stats.compenta ), set(hh, 'enable', 'off'); end; + hh = uicontrol(gcf, 'Style', 'pushbutton', 'string', 'See comp. stats', 'Units','Normalized', 'backgroundcolor', GUIBUTTONCOLOR, ... + 'Position',[30 -10 15 sizewy*0.25].*s+q, 'callback', ' ' ); + if isempty( EEG.stats.compenta ), set(hh, 'enable', 'off'); end; + hh = uicontrol(gcf, 'Style', 'pushbutton', 'string', 'See projection', 'Units','Normalized', 'backgroundcolor', GUIBUTTONCOLOR, ... + 'Position',[50 -10 15 sizewy*0.25].*s+q, 'callback', ' ', 'enable', 'off' ); + hh = uicontrol(gcf, 'Style', 'pushbutton', 'string', 'Help', 'Units','Normalized', 'backgroundcolor', GUIBUTTONCOLOR, ... + 'Position',[70 -10 15 sizewy*0.25].*s+q, 'callback', 'pophelp(''pop_selectcomps'');' ); + command = '[ALLEEG EEG] = eeg_store(ALLEEG, EEG, CURRENTSET); eegh(''[ALLEEG EEG] = eeg_store(ALLEEG, EEG, CURRENTSET);''); close(gcf)'; +% str1='R'; +% str2='rej'; +% command='rej=EEG.reject;[ALLEEG EEG] = eeg_store(ALLEEG, EEG, CURRENTSET);rej=EEG.reject;save(str1,str2);close(gcf)'; + hh = uicontrol(gcf, 'Style', 'pushbutton', 'string', 'OK', 'Units','Normalized', 'backgroundcolor', GUIBUTTONCOLOR, ... + 'Position',[90 -10 15 sizewy*0.25].*s+q, 'callback', command); + % sprintf(['eeg_global; if %d pop_rejepoch(%d, %d, find(EEG.reject.sigreject > 0), EEG.reject.elecreject, 0, 1);' ... + % ' end; pop_compproj(%d,%d,1); close(gcf); eeg_retrieve(%d); eeg_updatemenu; '], rejtrials, set_in, set_out, fastif(rejtrials, set_out, set_in), set_out, set_in)); +end; + +com = [ 'pop_selectcomps(' inputname(1) ', ' vararg2str(compnum) ');' ]; +return; diff --git a/scripts/ADJUST1.1.1/trim_and_max.m b/scripts/ADJUST1.1.1/trim_and_max.m new file mode 100644 index 0000000000000000000000000000000000000000..8157a7e3dd12c3b02c68ff3603cf87ec88e6d5ba --- /dev/null +++ b/scripts/ADJUST1.1.1/trim_and_max.m @@ -0,0 +1,57 @@ + +% trim_and_max() - Computes maximum value from vector 'vettore' +% after removing the top 1% of the values +% (to be outlier resistant) +% +% Usage: +% >> valore=trim_and_max(vettore); +% +% Inputs: +% vettore - row vector +% +% Outputs: +% valore - result +% +% +% Author: Andrea Mognon, Center for Mind/Brain Sciences, University of +% Trento, 2009 + +% Motivation taken from the following comment to our paper: +% "On page 11 the authors motivate the use of the max5 function when computing +% Maximum Epoch Variance because the simple maximum would be too sensitive +% to spurious outliers. This is a good concern, however the max5 function would +% still be sensitive to spurious outliers for very large data sets. In other words, if +% the data set is large enough, one will be very likely to record more than five +% outliers. The authors should use a trimmed max function that computes the +% simple maximum after the top say .1% of the values have been removed from +% consideration. This rejection criteria scales appropriately with the size of the data +% set." + +% Copyright (C) 2009-2014 Andrea Mognon (1) and Marco Buiatti (2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +function valore=trim_and_max(vettore) + + +dim=floor(.01*size(vettore,2)); % = 1% of vector length + +tmp=sort(vettore); +valore= tmp(length(vettore)-dim); + + diff --git a/scripts/ADJUST1.1.1/trim_and_mean.m b/scripts/ADJUST1.1.1/trim_and_mean.m new file mode 100644 index 0000000000000000000000000000000000000000..c9b4ae4ecb613101cd2edfa8601d7a9c633561dd --- /dev/null +++ b/scripts/ADJUST1.1.1/trim_and_mean.m @@ -0,0 +1,42 @@ + +% trim_and_mean() - Computes average value from vector 'vettore' +% after removing the top .1% of the values +% (to be outlier resistant) +% +% Usage: +% >> valore=trim_and_mean(vettore); +% +% Inputs: +% vettore - row vector +% +% Outputs: +% valore - result +% +% Copyright (C) 2009-2014 Andrea Mognon (1) and Marco Buiatti (2), +% (1) Center for Mind/Brain Sciences, University of Trento, Italy +% (2) INSERM U992 - Cognitive Neuroimaging Unit, Gif sur Yvette, France +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +function valore=trim_and_mean(vettore) + + +dim=floor(.01*size(vettore,2)); % = 1% of vector length + +tmp=sort(vettore); +valore= mean (tmp(1:(length(vettore)-dim))); + + diff --git a/scripts/APPLE_ActiveCap_v2.m b/scripts/APPLE_ActiveCap_v2.m new file mode 100644 index 0000000000000000000000000000000000000000..fff692e6cfe441b3397e1d6e9db9c648d203d109 --- /dev/null +++ b/scripts/APPLE_ActiveCap_v2.m @@ -0,0 +1,253 @@ +function [EEG,bad_chans,bad_epochs,bad_ICAs]=APPLE_ActiveCap_v2(EEG,eeg_chans,ref_chan,Do_ICA,subno,VEOG,session,TASK) +% ################# +% make sure about VEOG cahnnel...correct in line 40 hasVEOG=0; or hasVEOG=1; +% Algorithmic Pre-Processing Line for EEG +% Intellectual Property of James F Cavanagh jcavanagh@unm.edu 2013 +% Developed using eeglab12_0_2_1b [here we're using 14_0_0b] and in the plugins folder include the following: +% FASTER 1.2.3: http://sourceforge.net/projects/faster/ +% ADJUST: http://www.unicog.org/pm/pmwiki.php/MEG/RemovingArtifactsWithADJUST + +% =================== +% MANDATORY INPUT +% =================== +% EEG - The eponymous EEGLab array +% eeg_chans - vector of EEG channels (exclude VEOG, HEOG, anything else here) +% ref_chan - Call_APPLE should have re-ref'd the data to Fz or FCz +% Do_ICA - Do ICAs or not? +% +% ==================== +% OPTIONAL PARAMETERS +% ==================== +% subno - Subject ID for saving the output jpeg. Optional - will be set to 0 if empty +% VEOG - The vector of VEOG stripped from the EEG.data structure for use in ID'ing ICA blinks. +% session - For labeling output images +% TASK - For labeling output images +% +% ============== +% OUTPUT +% ============== +% EEG - interpolated with bad epochs rejected. +% bad_chans +% bad_epochs +% bad_ICAs + +% Start clock +tic + +% Get dimensions of EEG data matrix +dims=size(EEG.data); + +hasVEOG = 0; %%%%%%%%%%%%%%%%% hasVEOG = 1; if there is VEOG channel, else 0 +SubjID = subno; %subno; + +% Get Vertex Site +for ai=1:dims(1), Z(ai)=EEG.chanlocs(ai).Z; end +Vertex=find(Z==max(Z)); clear Z; +% Get ERP % Topo of these data prior to fixen's +TEMPPRE = pop_reref( EEG, []); +PreFixERP=eegfilt(squeeze(mean(TEMPPRE.data(Vertex,:,:),3)),TEMPPRE.srate,[],20); +PreFixERP=PreFixERP-repmat(mean(PreFixERP),1,length(PreFixERP)); +% Get times irrespective of sample rate +T1=find( abs(TEMPPRE.times-300) == min(abs(TEMPPRE.times-300)) ) ; +T2=find( abs(TEMPPRE.times-400) == min(abs(TEMPPRE.times-400)) ) ; +PreFixTopo=squeeze(mean(mean(TEMPPRE.data(:,T1:T2,:),2),3)); % Topo w/ blinks +clear TEMPPRE; + +%% ID bad channels + +% EEGLab Function +tempeeg=EEG; % save the real data as an archive +[EEG, indelec, measure] = pop_rejchan( EEG, 'elec', eeg_chans); % process on the 'EEG' set +clear EEG; EEG=tempeeg; clear tempeeg; % save what was done to the 'EEG' set, then erase it and replace with archive + +% FASTER +chan = channel_properties(EEG, eeg_chans, ref_chan); +chan_exceeded_threshold = min_z_JFC(chan); % Cols are: 1) weighted correlation, weighted variance, Hurst +FASTER_bad_chans = find(logical(chan_exceeded_threshold(:,2)+chan_exceeded_threshold(:,3))); + +% Combine unique elements +TOTAL_bad_chans=unique([FASTER_bad_chans(:);indelec(:)]); + +% INTERPOLATE +if ~isempty(TOTAL_bad_chans) + EEG.data=double(EEG.data); + EEG = pop_interp(EEG,TOTAL_bad_chans,'spherical'); +end + +bad_chans{1}=FASTER_bad_chans; +bad_chans{2}=indelec; +bad_chans{3}=TOTAL_bad_chans; + +%% NOW re-ref to average - after interpolation and before rejection (pop_autorej requires it) +EEG = pop_reref( EEG, []); + +%% ID bad epochs + +% EEGLab Function +tempeeg=EEG; % same as above - this takes a while though +[EEG, rmepochs] = pop_autorej(EEG,'nogui','on'); +% - here +clear EEG; EEG=tempeeg; clear tempeeg; +autorej_bad_epochs=zeros(EEG.trials,1); % vb Vectorize the output +autorej_bad_epochs(sort(rmepochs))=1; + +% FASTER +epoch = epoch_properties(EEG,eeg_chans); +epoch_exceeded_threshold = min_z_JFC(epoch); % Cols are: 1) mean epoch deviation, 2) epoch variance, 3) max amplitude +FASTER_bad_epochs = logical(epoch_exceeded_threshold(:,1)+epoch_exceeded_threshold(:,2)+epoch_exceeded_threshold(:,3)); % ANYTHING marked as bad is bad + +% Combine unique elements +TOTAL_bad_epochs=logical(FASTER_bad_epochs+autorej_bad_epochs); + +% REJECT +binarized=zeros(1,EEG.trials); +binarized(FASTER_bad_epochs)=1; % Only the FASTER ones +EEG = pop_rejepoch(EEG,binarized,0); +goodepochs=logical(1-binarized); + +EP2REJ=1; +bad_epochs{1}=FASTER_bad_epochs; +bad_epochs{2}=autorej_bad_epochs; +bad_epochs{3}=TOTAL_bad_epochs; + +%% Deal with blinks + +if Do_ICA==1 + + % Calculate kC^2 = # of data points needed + k=25; % Suggested by Onton et al. 2005 + C=dims(1)-length(TOTAL_bad_chans); % n good independent channels + sizeneeded=C^2*k; + epochsneeded=round(sizeneeded/EEG.srate); % # of epochs needed for a stable ICA solution + + % ##### ##### ICA ##### ##### + EEG = pop_runica(EEG,'icatype','runica'); % ,'chanind',eeg_chans(Chans4ICA) + +% % % ADJUST ----------------------------- sometimes this crashes, and I don't find it useful, so I'm omitting it today + EEG.icaact = eeg_getica(EEG); +% % [art, horiz, vert, blink, disc, soglia_DV, diff_var, soglia_K,... +% % meanK, soglia_SED, SED, soglia_SAD, SAD, soglia_GDSF, GDSF, soglia_V, nuovaV]=ADJUST(EEG,'junkfile'); +% % bad_ADJUST_ICAs=blink; + bad_ADJUST_ICAs=99999; + + % Do VEOG correlation + if hasVEOG==1 + for ai=1:size(EEG.icaact,1) + temp=squeeze(EEG.icaact(ai,:,:)); + r=corrcoef(temp,VEOG(:,goodepochs)); + VEOG_ICA_Corrs(ai)=abs(r(1,2)); clear temp; + end + bad_VEOG_ICAs=find(abs(zscore(VEOG_ICA_Corrs))>3); + if isempty(bad_VEOG_ICAs), bad_VEOG_ICAs=find(VEOG_ICA_Corrs==max(abs(VEOG_ICA_Corrs))); end % in case z-scores are too tightly distributed + else + bad_VEOG_ICAs=0; + end + + % Bootstrap a blink template based on Gaussian distros around most frontopolar channels + % Get the most FrontoPolar Sites + for ai=1:dims(1), X(ai)=EEG.chanlocs(ai).X; end + FrontoPolars=find(X==max(X)); clear X; + % Make Gaussian Template - code taken from Mike X Cohen + for fpi=1:length(FrontoPolars) + e2use=FrontoPolars(fpi); + eucdist=zeros(1,size(EEG.icawinv,1)); topocorr=zeros(1,size(EEG.icawinv,1)); + for chani=1:size(EEG.icawinv,1) + eucdist(chani)=sqrt( (EEG.chanlocs(chani).X-EEG.chanlocs(e2use).X)^2 + (EEG.chanlocs(chani).Y-EEG.chanlocs(e2use).Y)^2 + (EEG.chanlocs(chani).Z-EEG.chanlocs(e2use).Z)^2 ); + end + s=30; template(fpi,:) = exp(- (eucdist.^2)/(2*s^2) ); + end + template=mean(template,1); + % Get each ICA topo correlation with this topo template + for chani=1:size(EEG.icawinv,2) + topocorr(chani) = corr(EEG.icawinv(:,chani),template'); + end + % Select the max correlations + bad_TEMPLATE_ICAs=find(abs(zscore(topocorr))>3); + if isempty(bad_TEMPLATE_ICAs), bad_TEMPLATE_ICAs=find(abs(topocorr)==max(abs(topocorr))); end % in case z-scores are too tightly distributed + + % Aggregate all this + bad_ICAs{1}=bad_ADJUST_ICAs; + bad_ICAs{2}=bad_VEOG_ICAs; + bad_ICAs{3}=bad_TEMPLATE_ICAs; + bad_ICAs{4}=[sum(goodepochs),epochsneeded]; + +end + +%% Show Stats + +elapsed=toc; +pBAD_CHANS=(length(bad_chans{3})./dims(1))*100; +pBAD_EPOCHS=(sum(bad_epochs{3})./dims(3))*100; + +% Show ERP and Topo after rejecting blink ICA, but don't actually remove that from the real EEG data +tempeeg=EEG; % archive real set +EEG = pop_subcomp( EEG, bad_TEMPLATE_ICAs, 0); % remove TEMPLATE ICAs +PostFixERP=eegfilt(squeeze(mean(EEG.data(Vertex,:,:),3)),EEG.srate,[],20); % Get ERP +PostFixERP=PostFixERP-repmat(mean(PostFixERP),1,length(PostFixERP)); % Ersatz Baseline +PostFixTopo=squeeze(mean(mean(EEG.data(:,T1:T2,:),2),3)); % Topo w/o blinks +clear EEG; EEG=tempeeg; clear tempeeg; % recover archive set for output + +figure; +subplot(2,3,1) +pie([dims(1)-length(bad_chans{3}),length(bad_chans{3})],[0 1],{['Good=',num2str(dims(1)-length(bad_chans{3}))],['Bad=',num2str(length(bad_chans{3}))]}) +title(['Subj: ',num2str(SubjID), ' Bad Chans']); +subplot(2,3,2) +pie([dims(3)-sum(bad_epochs{EP2REJ}),sum(bad_epochs{EP2REJ})],[0 1],{['Good=',num2str(dims(3)-sum(bad_epochs{EP2REJ}))],['Bad=',num2str(sum(bad_epochs{EP2REJ}))]}) +title(['Subj: ',num2str(SubjID), ' Bad Epochs']); +subplot(2,3,3) +if Do_ICA==1 + text(.2, .90, ['Bad ADJUST ICAs: ',num2str(bad_ICAs{1})]); + text(.2, .75, ['Bad VEOGcorr ICAs: ',num2str(bad_ICAs{2})]); + text(.2, .60, ['Bad TEMPLATE ICAs: ',num2str(bad_ICAs{3})]); + text(.2, .45, ['Epochs Needed for ICA: ',num2str(bad_ICAs{4}(2))]); + text(.2, .30, ['Epochs in Dataset (good): ',num2str(bad_ICAs{4}(1))]); + text(.2, .15, ['Mins Elapsed: ',num2str(elapsed/60)]); +else + text(.2, .50, bad_ICAs); + text(.2, .05, ['Mins Elapsed: ',num2str(elapsed/60)]); +end +set(gca,'visible','off'); +% +subplot(2,3,4) +hold on +topoplot(PreFixTopo,EEG.chanlocs); +title('Topo Before Fixes (300-400 ms)'); +subplot(2,3,5) +hold on +topoplot(PostFixTopo,EEG.chanlocs); +title('Topo After Fixes (300-400 ms)'); +subplot(2,3,6) +hold on +plot(EEG.times,PreFixERP,'r'); +plot(EEG.times,PostFixERP,'b--'); +legend({'Pre-Fixes','Post-Fixes'},'Location','SouthOutside'); +title('ERP at Vertex (20 Hz Filter)'); +% Save that shiznit +% filename = EEG.comments(end-9:end-4); %%%% Added by Arun +saveas(gcf, [TASK,num2str(SubjID),'_APPLE.png'],'png'); +close all; + +% Save a map of the original ICAs +pop_selectcomps(EEG, [1:30] ); +saveas(gcf, [TASK,num2str(SubjID),'_APPLE_ICAs.png'],'png'); +% saveas(gcf, ['_PD',num2str(SubjID),'_',TASK,'_APPLE_ICAs.png'],'png'); + +close all; + + +function [lengths] = min_z_JFC(list_properties,rejection_options) +if (~exist('rejection_options','var')) + rejection_options.measure=ones(1,size(list_properties,2)); + rejection_options.z=3*ones(1,size(list_properties,2)); +end + +rejection_options.measure=logical(rejection_options.measure); +zs=list_properties-repmat(mean(list_properties,1),size(list_properties,1),1); +zs=zs./repmat(std(zs,[],1),size(list_properties,1),1); +zs(isnan(zs))=0; +%all_l = abs(zs) > repmat(rejection_options.z,size(list_properties,1),1); +%lengths = any(all_l(:,rejection_options.measure),2); + +lengths = abs(zs) > repmat(rejection_options.z,size(list_properties,1),1); + + diff --git a/scripts/FASTER/FASTER.m b/scripts/FASTER/FASTER.m new file mode 100644 index 0000000000000000000000000000000000000000..44565a5608c73922dc4f21eb9cf316ceaba0ecee --- /dev/null +++ b/scripts/FASTER/FASTER.m @@ -0,0 +1,581 @@ +function FASTER(option_wrapper) + +% Copyright (C) 2010 Hugh Nolan, Robert Whelan and Richard Reilly, Trinity College Dublin, +% Ireland +% nolanhu@tcd.ie, robert.whelan@tcd.ie +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +startDir=option_wrapper.options.file_options.folder_name; +outDir=option_wrapper.options.file_options.output_folder_name; +chan_locs=option_wrapper.options.file_options.channel_locations; +is_bdf=option_wrapper.options.file_options.is_bdf==1; +using_ALLEEG=option_wrapper.options.file_options.using_ALLEEG; +resume=option_wrapper.options.file_options.resume; + +if ~using_ALLEEG + %[jpathname jf1 jf2 jf3]=fileparts(option_wrapper.options.job_filename); + [jpathname jf1 jf2]=fileparts(option_wrapper.options.job_filename); + Qname=[jf1 jf2 '_ProcQ.eegQ']; +else + Qname='ProcQ.eegQ'; +end + +is_processing=exist([startDir filesep Qname],'file'); + +if ((~ischar(chan_locs) || ~exist(chan_locs,'file')) && is_bdf) && ~is_processing + fprintf('Invalid channel location file.\n'); + return; +end + +if (~using_ALLEEG) + can_distribute=1; + if ~is_processing + if (resume) + if ~isempty(option_wrapper.options.file_options.plist) + plist=option_wrapper.options.file_options.plist; + nlist=option_wrapper.options.file_options.nlist; + oplist=option_wrapper.options.file_options.oplist; + else + if (is_bdf) + [plist nlist] = extsearchc(startDir,'.bdf',0); + else + % Assume .set if not .bdf + % Later versions may support other file formats + [plist nlist] = extsearchc(startDir,'.set',0); + end + oplist=cell(size(plist)); + + x=true(size(plist)); + for i=1:length(plist) + if length(plist{i})>12 + if strcmp(plist{i}(end-11:end),'Intermediate') + x(i)=0; + end + end + if isempty(outDir) + oplist{i}=plist{i}; + else + oplist{i}=outDir; + dir_structure=get_dir_structure(plist{i},startDir); + for k=1:length(dir_structure) + oplist{i}=[filepath filesep dir_structure{k}]; + if ~exist(oplist{i},'dir') + mkdir(oplist{i}); + end + end + end + end + plist={plist{x}}; + nlist={nlist{x}}; + oplist={oplist{x}}; + + option_wrapper.options.file_options.plist=plist; + option_wrapper.options.file_options.nlist=nlist; + option_wrapper.options.file_options.oplist=oplist; + end + else + if (is_bdf) + [plist nlist] = extsearchc(startDir,'.bdf',0); + else + % Assume .set if not .bdf + % Later versions may support other file formats + [plist nlist] = extsearchc(startDir,'.set',0); + end + oplist=cell(size(plist)); + x=true(size(plist)); + + filepath=option_wrapper.options.file_options.output_folder_name; + + for i=1:length(plist) + if length(plist{i})>12 + if strcmp(plist{i}(end-11:end),'Intermediate') + x(i)=0; + end + end + if isempty(outDir) + oplist{i}=plist{i}; + else + oplist{i}=outDir; + dir_structure=get_dir_structure(plist{i},startDir); + for k=1:length(dir_structure) + oplist{i}=[filepath filesep dir_structure{k}]; + if ~exist(oplist{i},'dir') + mkdir(oplist{i}); + end + end + end + end + plist={plist{x}}; + nlist={nlist{x}}; + oplist={oplist{x}}; + if (option_wrapper.options.file_options.make_subdirectories) + x = findrepeats(plist); + for i = 1:length(x) + if isempty(outDir) + try + mkdir(plist{x(i)},nlist{x(i)}(1:end-4)); + movefile([plist{x(i)} filesep nlist{x(i)}],[plist{x(i)} filesep nlist{x(i)}(1:end-4)],'f'); + if exist([plist{x(i)} filesep nlist{x(i)}(1:end-4) '.fdt'],'file') && ~is_bdf + movefile([plist{x(i)} filesep nlist{x(i)}(1:end-4) '.fdt'],[plist{x(i)} filesep nlist{x(i)}(1:end-4)],'f'); + end + plist{x(i)} = [plist{x(i)} filesep nlist{x(i)}(1:end-4)]; + oplist{x(i)} = plist{x(i)}; + catch + error('Error in organising files in %s\n',plist{x(i)}); + return; + end + else + try + if ~exist([outDir filesep nlist{x(i)}(1:end-4)],'dir') + mkdir(outDir,nlist{x(i)}(1:end-4)); + end + oplist{x(i)} = [outDir filesep nlist{x(i)}(1:end-4)]; + catch + error('Error in organising files in %s\n',plist{x(i)}); + return; + end + end + end + end + option_wrapper.options.file_options.plist=plist; + option_wrapper.options.file_options.nlist=nlist; + option_wrapper.options.file_options.oplist=oplist; + end + + % Changed the below from copyfile to direct write due to some weird + % permission issue that was probably only on one test computer. + % Works now anyway! + if ~isempty(chan_locs) + [clpathstr, clname, clext] = fileparts(chan_locs); + fid=0; + if ~isempty(outDir) && ~strcmp(outDir,clpathstr) + %copyfile(chan_locs,outDir,'f'); + fid=fopen([outDir filesep clname clext],'w'); + elseif ~strcmp(startDir,clpathstr) + %copyfile(chan_locs,startDir,'f'); + fid=fopen([startDir filesep clname clext],'w'); + end + if fid>0 + fid2=fopen(chan_locs,'r'); + while ~feof(fid2) + fprintf(fid,'%s',fgets(fid2)); + end + fclose(fid); + fclose(fid2); + end + end + + % Add stuff to save in the [startDir filesep 'ProcQ.eegQ'] file + Q.plist=plist; + Q.nlist=nlist; + Q.plist_rel=cell(0); + Q.oplist_rel=cell(0); + for v=1:length(plist) + Q.plist_rel{v}=find_relative_path(plist{v},startDir); + Q.oplist_rel{v}=find_relative_path(oplist{v},startDir); + end + Q.outDir_rel=cell(0); + if ~isempty(outDir) + Q.outDir_rel=find_relative_path(outDir,startDir); + end + my_comp_num=1; + Q.comp_nums=1; + Q.finished=0; + Q.processed=zeros(size(Q.plist)); + Q.errors=zeros(size(Q.plist)); + if resume + Q.next_file=option_wrapper.options.file_options.current_file_num; + else + Q.next_file=1; + end + save([startDir filesep Qname],'Q'); + else + my_queue_file=[]; + wait_and_lock(); + L=load([startDir filesep Qname],'-mat'); + Q=L.Q; + clear L; + % Recreate the path list from the relative path list, which are + plist=cell(size(Q.plist_rel)); + oplist=plist; + for v=1:length(Q.plist_rel) + plist{v} = make_relative_path(Q.plist_rel{v},startDir); + oplist{v} = make_relative_path(Q.oplist_rel{v},startDir); + end + %plist=Q.plist; + nlist=Q.nlist; + if ~isempty(Q.outDir_rel) + outDir = make_relative_path(Q.outDir_rel,startDir); + end + %fprintf('\n\nOutput directory is: %s\n\n',outDir); + my_comp_num=max(Q.comp_nums)+1; + Q.comp_nums=[Q.comp_nums my_comp_num]; + save_and_unlock(); + [clpathstr, clname, clext] = fileparts(chan_locs); + if ~isempty(outDir) + option_wrapper.options.file_options.channel_locations=[outDir filesep clname clext]; + else + option_wrapper.options.file_options.channel_locations=[startDir filesep clname clext]; + end + end +else + can_distribute=0; + if is_processing==1 + error('Can''t join a running jobfile if opened from EEGLAB. If this file is not being processed, reload it and reset the queue.'); + + % The below won't run, I may reinstate it at some point, but it's + % difficult to co-ordinate and may be pointless + c=clock; + months={'Jan' 'Feb' 'Mar' 'Apr' 'May' 'Jun' 'Jul' 'Aug' 'Sep' 'Oct' 'Nov' 'Dec'}; + new_jobname=[sprintf('%d/%s/%d__%d-%d-%d___',c(3),months{c(2)},c(1),c(4),c(5),round(c(6))) option_wrapper.options.job_filename]; + warning(sprintf('This jobfile is running on another machine.\nA new jobfile will be created: %s',new_jobname)); %#ok + option_wrapper.option.job_filename=new_jobname; + return; + end + startDir=cd; + plist=zeros(evalin('base','size(ALLEEG);')); + %nlist=plist; + for v=1:length(plist) + plist(v)=evalin('base',sprintf('isempty(ALLEEG(%d).data);',v)); + end + ALLEEG_to_do=find(plist~=1); + plist=cell(length(ALLEEG_to_do)); + for v=1:length(plist) + plist{v}=ALLEEG_to_do(v); + oplist=cell(size(plist)); + if ~isempty(outDir) + oplist{v}=outDir; + else + oplist{v}=evalin('base',sprintf('(ALLEEG(%d).filepath);',plist{v})); + if isempty(oplist{v}) + oplist{v}=cd; + end + end + end + nlist=plist; + Q.plist=plist; + Q.nlist=nlist; + Q.plist_rel=plist; + my_comp_num=1; + Q.comp_nums=1; + Q.finished=0; + Q.processed=zeros(size(Q.plist)); + Q.errors=zeros(size(Q.plist)); + %Q.next_file=ALLEEG_to_do(1); + Q.next_file=1; + save([startDir filesep Qname],'Q'); + option_wrapper.options.file_options.plist=plist; + option_wrapper.options.file_options.nlist=nlist; + option_wrapper.options.file_options.oplist=oplist; +end + +if (~exist([startDir filesep 'Processing'],'dir')) + mkdir([startDir filesep 'Processing']); +end +if (~exist([startDir filesep 'Queue'],'dir')) + mkdir([startDir filesep 'Queue']); +end + +all_errors=cell(0); + +doing_distrib=0; +is_processing=1; +error_indices=zeros(size(plist)); +first_file=1; +had_error=0; +my_proc_file=[]; +make_processing_file(); +EEG_state=[]; +while (1) + %%%%%%%%%%%%%%%%%%%%% + % Before processing % + %%%%%%%%%%%%%%%%%%%%% + + % The queue system is there to ensure that multiple computers are not + % reading the options file simultaneously and so trying to process the + % same file! Also to make sure all computers have finished processing + % before the grand average is made. + + % Puts the current computer number in the queue + % and waits until other computers are done updating + % the queue file. Then opens the queue file, reads the + % current state to find the next file to process, then + % updates that for the next computer to read. If there + % is no next file, it marks the processing as finished. + my_queue_file=[]; + wait_and_lock(); + L=load([startDir filesep Qname],'-mat'); + Q=L.Q; + if ~first_file + if ~had_error + Q.processed(current_file)=1; + else + Q.errors(current_file)=1; + if option_wrapper.debug && exist('m','var') + if isempty(outDir) + if exist([startDir filesep option_wrapper.options.file_options.file_prefix 'FASTER_errors.mat'],'file') + L=load([startDir filesep option_wrapper.options.file_options.file_prefix 'FASTER_errors.mat'],'-mat'); + all_errors=L.all_errors; + end + all_errors{end+1,1}=m; + all_errors{end,2}=EEG_state; + save([startDir filesep option_wrapper.options.file_options.file_prefix 'FASTER_errors.mat'],'all_errors','-mat'); + error_indices(current_file)=size(all_errors,1); + else + if exist([outDir filesep option_wrapper.options.file_options.file_prefix 'FASTER_errors.mat'],'file') + L=load([outDir filesep option_wrapper.options.file_options.file_prefix 'FASTER_errors.mat'],'-mat'); + all_errors=L.all_errors; + end + all_errors{end+1,1}=m; + all_errors{end,2}=EEG_state; + save([outDir filesep option_wrapper.options.file_options.file_prefix 'FASTER_errors.mat'],'all_errors','-mat'); + error_indices(current_file)=size(all_errors,1); + end + end + end + end + had_error=0; + %if (~using_ALLEEG && Q.next_file>length(Q.plist)) || (using_ALLEEG && Q.next_file>max(ALLEEG_to_do)) + if Q.next_file>length(Q.plist) + Q.finished=1; + end + if Q.finished + Q.comp_nums=setdiff(Q.comp_nums,my_comp_num); + delete_processing_file(); + save_and_unlock(); + break; + end + + current_file=Q.next_file; + Q.next_file=Q.next_file+1; + + option_wrapper.options.file_options.current_file = [plist{current_file} filesep nlist{current_file}]; + option_wrapper.options.file_options.current_file_num=current_file; + if (~isempty(option_wrapper.options.job_filename)) + save(option_wrapper.options.job_filename,'option_wrapper','-mat'); + end + + save_and_unlock(); + + %%%%%%%%%%%%%% + % Processing % + %%%%%%%%%%%%%% + if (~isempty(option_wrapper.options.file_options.searchstring)) + searchstring2=option_wrapper.options.file_options.searchstring; + else + searchstring2=nlist{current_file}; + end + if ((using_ALLEEG && ~evalin('base',sprintf('isempty(ALLEEG(%d).data);',plist{current_file}))) || ~isempty(strfind(nlist{current_file},searchstring2)) ) + tic + fprintf('******************\n'); + fprintf('* File %.3d / %.3d *\n',current_file,length(nlist)); + fprintf('******************\n'); + + if (~using_ALLEEG) + %log_file = fopen([plist{current_file} filesep option_wrapper.options.file_options.file_prefix nlist{current_file}(1:end-4) '.log'],'a+'); + log_file = fopen([oplist{current_file} filesep option_wrapper.options.file_options.file_prefix nlist{current_file}(1:end-4) '.log'],'a+'); + else + log_file = fopen([oplist{current_file} filesep option_wrapper.options.file_options.file_prefix sprintf('FASTER_ALLEEG(%d).log',ALLEEG_to_do(current_file))],'a+'); + end + + try + FASTER_process(option_wrapper,log_file); + catch + m=lasterror; + fprintf('\nError - %s.\n',m.message); + try fclose(log_file); catch; end; + had_error=1; + end + else + fprintf('Skipped file.\n'); + end + + % After processing + first_file=0; +end + +%%%%%%%%%%%%%%%%%%%%%% +% Queueing Functions % +%%%%%%%%%%%%%%%%%%%%%% + function wait_and_lock() + % Find the last queue file, make one for this computer, then wait + % until the previous one is deleted + D=dir([startDir filesep 'Queue']); + N={D(:).name}; + N=setdiff(N,{'.','..'}); + N=str2double(N); + if isempty(N) + N=0; + end + next_queue_num=max(N)+1; + my_queue_file=[startDir filesep 'Queue' filesep sprintf('%d',next_queue_num)]; + fid=fopen(my_queue_file,'w'); + fclose(fid); + prev_queue_file=[startDir filesep 'Queue' filesep sprintf('%d',max(N))]; + said=0; + while max(N)>0 && exist(prev_queue_file,'file') + if ~said + fprintf('Waiting for removal of Queue file %s\n',prev_queue_file); + said=1; + end + pause(1); + end + assignin('caller','my_queue_file',my_queue_file); + end + function save_and_unlock() + save([startDir filesep Qname],'Q'); + pause(1); + delete(my_queue_file); + assignin('caller','my_queue_file',[]); + end + function make_processing_file() + my_proc_file=[startDir filesep 'Processing' filesep sprintf('%d',my_comp_num)]; + fid=fopen(my_proc_file,'w'); + fclose(fid); + assignin('caller','my_proc_file',my_proc_file); + end + function delete_processing_file() + delete(my_proc_file); + assignin('caller','my_proc_file',[]); + end + +%%%%%%%%%%%%%%%%%%% +% Post processing % +%%%%%%%%%%%%%%%%%%% + +if using_ALLEEG + evalin('base','EEG=ALLEEG(CURRENTSET);'); + evalin('base','eeglab redraw;'); +end + +D=dir([startDir filesep 'Processing']); +if length(D)>2 + fprintf('*******************\n'); + fprintf('* FASTER Finished *\n'); + fprintf('*******************\n'); + fprintf('Finished processing all my files. The last computer to finish processing will make the grand average.\n'); + return; +end + +if isempty(outDir) + top_log = fopen([startDir filesep option_wrapper.options.file_options.file_prefix 'FASTER.log'],'a'); + if exist([startDir filesep option_wrapper.options.file_options.file_prefix 'FASTER_errors.mat'],'file') + L=load([startDir filesep option_wrapper.options.file_options.file_prefix 'FASTER_errors.mat'],'-mat'); + all_errors=L.all_errors; + end +else + top_log = fopen([outDir filesep option_wrapper.options.file_options.file_prefix 'FASTER.log'],'a'); + if exist([outDir filesep option_wrapper.options.file_options.file_prefix 'FASTER_errors.mat'],'file') + L=load([outDir filesep option_wrapper.options.file_options.file_prefix 'FASTER_errors.mat'],'-mat'); + all_errors=L.all_errors; + end +end + +c=clock; +months={'Jan' 'Feb' 'Mar' 'Apr' 'May' 'Jun' 'Jul' 'Aug' 'Sep' 'Oct' 'Nov' 'Dec'}; +fprintf(top_log,'\n%d/%s/%d %d:%d:%d\n',c(3),months{c(2)},c(1),c(4),c(5),round(c(6))); + +for v=1:length(plist) + if ~using_ALLEEG + fprintf(top_log,'%s%s%s:\n',plist{v},filesep,nlist{v}); + else + fprintf(top_log,'ALLEEG(%d):\n',v); + if Q.processed(v) + fprintf(top_log,'Processed successfully.\n'); + elseif Q.errors(v) + fprintf(top_log,'Error: %s. Load all_errors.mat and investigate all_errors{%d,1} for more info.\n',all_errors{error_indices(v),1}.message,error_indices(v)); + else + fprintf(top_log,'Skipped due to filename filter or empty ALLEEG dataset.\n'); + end + fprintf(top_log,'\n'); + end +end + +delete([startDir filesep Qname]); +if length(dir([startDir filesep 'Processing']))==2 + rmdir([startDir filesep 'Processing']); +end +if length(dir([startDir filesep 'Queue']))==2 + rmdir([startDir filesep 'Queue']); +end + +%%%%%%%%%%%%%%%%% +% Grand Average % +%%%%%%%%%%%%%%%%% + +FASTER_grandaverage(startDir,option_wrapper,all_errors,top_log,plist,nlist); + +%%%%%%%%%%%%% +% All done! % +%%%%%%%%%%%%% + +fprintf('*******************\n'); +fprintf('* FASTER Finished *\n'); +fprintf('* %.3d processed *\n',sum(Q.processed)); +fprintf('* %.3d errors *\n',sum(Q.errors)); +fprintf('* %.3d skipped *\n',length(plist)-sum(Q.processed)-sum(Q.errors)); +fprintf('*******************\n'); +fprintf(top_log,'\nFinished. %d processed, %d errors, %d skipped.\n',sum(Q.processed),sum(Q.errors),length(plist)-sum(Q.processed)-sum(Q.errors)); +fclose(top_log); + + function out_chan_locs = check_chan_locs(chan_locs,num_chans,num_exts) + fid = fopen(chan_locs,'r'); + if fid==-1 + out_chan_locs = -1; + return; + end + count=0; + x=''; + while ~feof(fid) + x = fgetl(fid); + if ~isempty(x) + count = count+1; + end + end + if count < num_chans + num_exts + out_chan_locs = -1; + fclose(fid); + return; + end + if count == num_chans + num_exts + out_chan_locs = chan_locs; + fclose(fid); + return; + end + frewind(fid); + fid2 = fopen(['tempchanloc' chan_locs(end-4:end)],'w'); + count2 = 0; + while ~feof(fid) + x = fgets(fid); + if (count2 < num_chans || count - count2 <= num_exts) + fprintf(fid2,'%s',x); + end + count2 = count2 + 1; + end + fclose(fid); + fclose(fid2); + out_chan_locs = ['tempchanloc' chan_locs(end-4:end)]; + end + + function indices = findrepeats(input) + indices=zeros(size(input)); + for u=1:length(input) + indices(u)=sum(strcmp(input{u},input)); + end + indices=find(indices>1); + end + +end \ No newline at end of file diff --git a/scripts/FASTER/FASTER_GUI.m b/scripts/FASTER/FASTER_GUI.m new file mode 100644 index 0000000000000000000000000000000000000000..5fb8cb2929b581da83fd08b554e4dfd40ac2758d --- /dev/null +++ b/scripts/FASTER/FASTER_GUI.m @@ -0,0 +1,651 @@ +% FASTER GUI v1.2.1b - see manual for help. + +function varargout=FASTER_GUI(varargin) + +% Copyright (C) 2010 Hugh Nolan, Robert Whelan and Richard Reilly, Trinity +% College Dublin, +% Ireland +% nolanhu@tcd.ie, robert.whelan@tcd.ie +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +% Options file format: +% option_wrapper (top level struct) +% option_wrapper.job_name - filename where the options file is stored +% option_wrapper. +% option_wrapper.current_group - current group of options displayed +% (modified by clicking e.g. "Filter Options" button) +% option_wrapper.last_value - last option number in the option group +% clicked (used for double-click window open functionality) + +FASTER_version='1.2.2b'; + +if nargout==1 + from_EEGLAB=1; +else + from_EEGLAB=0; +end + +set(0,'Units','pixels'); +screensize = get(0,'ScreenSize'); +screensize = screensize(1,[3 4]); +%The normal window works down to 800*600, it's pretty unlikely anyone with a smaller res +%display will be running this script anyway +figurepos = [(screensize(1)-720)/2 (screensize(2)-450)/2 720 450]; +figurepos = round(figurepos); +bgcolor = [0.9 0.9 0.9]; +if (from_EEGLAB) + %bgcolor = [1 0.1 0.3]; + bgcolor=get(findobj('-regexp','Name','EEGLAB'),'Color'); +end + +%%%%%%%%%%%%%%%%%%%%%%% +%%%%% MAIN WINDOW %%%%% +%%%%%%%%%%%%%%%%%%%%%%% + +fh = figure; +set(fh,'DockControls','off','Visible','on','Position',figurepos,'MenuBar','none','Toolbar','none','Color',bgcolor,'Resize','off','Name','FASTER EEG Processing v1.2.1b','NumberTitle','off','NextPlot','new'); +set(fh,'Units','Normalized'); +set(0,'Units','normalized'); + +all_options=struct; + +mainpanel=uipanel('Parent',fh,'Units','Normalized','Position',[0 0 1 1],'BackgroundColor',bgcolor); +optpanel=uipanel('Parent',mainpanel); +option_box=uicontrol('Parent',optpanel,'Tag','option_box'); +init_options(); + +bGO = uicontrol('Parent',mainpanel,'Style','pushbutton','String','Run Job','FontSize',24,'FontWeight','bold','Units','Normalized','Position',[0.51 0.01 0.48 0.25],'Callback',{@FASTER_callbacks,'run_FASTER',option_box},'Interruptible','off','BusyAction','cancel'); + +lHeading = uicontrol('Parent',mainpanel,'Style','text','String','Setup', 'FontSize',24,'Units','Normalized','Position',[0.51 0.88 0.49 0.12],'BackgroundColor',bgcolor); + +bFolder = uicontrol('Parent',mainpanel,'Style','pushbutton','String','Job directory:', 'FontSize',14,'Units','Normalized','Position',[0.51 0.8275 0.18 0.07],'BackgroundColor',bgcolor); +tbFolder = uicontrol('Parent',mainpanel,'Style','edit','String','','FontSize',14,'HorizontalAlign','center','Units','Normalized','Position',[0.70 0.8275 0.28 0.07],'UserData','file_options.folder_name'); +bOFolder = uicontrol('Parent',mainpanel,'Style','pushbutton','String','Output directory:', 'FontSize',12,'Units','Normalized','Position',[0.51 0.75 0.18 0.07],'BackgroundColor',bgcolor); +tbOFolder = uicontrol('Parent',mainpanel,'Style','edit','String','','FontSize',14,'HorizontalAlign','center','Units','Normalized','Position',[0.70 0.75 0.28 0.07],'UserData','file_options.output_folder_name'); +bChanLocs = uicontrol('Parent',mainpanel,'Style','pushbutton','String','Channel locations:', 'FontSize',11,'Units','Normalized','Position',[0.51 0.6725 0.18 0.07],'BackgroundColor',bgcolor); +tbChanLocs = uicontrol('Parent',mainpanel,'Style','edit','String','','FontSize',14,'HorizontalAlign','center','Units','Normalized','Position',[0.70 0.6725 0.28 0.07],'UserData','file_options.channel_locations','FontSize',12); +set(tbFolder,'Callback',{@FASTER_callbacks,'update_value',option_box}); +set(tbOFolder,'Callback',{@FASTER_callbacks,'update_value',option_box}); +set(tbChanLocs,'Callback',{@FASTER_callbacks,'update_value',option_box}); +set(bFolder,'Callback',{@FASTER_callbacks,'folderselect',tbFolder,'Select job folder',option_box}); +set(bOFolder,'Callback',{@FASTER_callbacks,'folderselect',tbOFolder,'Select output folder',option_box}); +set(bChanLocs,'Callback',{@FASTER_callbacks,'fileselect',tbChanLocs,'Select channel location file',option_box}); +lFileType = uicontrol('Parent',mainpanel,'Style','text','String','File type:', 'FontSize',12,'Units','Normalized','Position',[0.51 0.575 0.18 0.08],'BackgroundColor',bgcolor); +ddFileType = uicontrol('Parent',mainpanel,'Style','popupmenu','String',{'BDF file (Biosemi)','SET file (EEGLAB)'},'FontSize',14,'HorizontalAlign','center','Units','Normalized','Position',[0.70 0.585 0.28 0.08],'UserData','file_options.is_bdf','FontSize',12,'Callback',{@FASTER_callbacks,'update_value',option_box}); +lSearchString = uicontrol('Parent',mainpanel,'Style','text','String','File filter:', 'FontSize',12,'Units','Normalized','Position',[0.51 0.5275 0.18 0.06],'BackgroundColor',bgcolor); +tbSearchString = uicontrol('Parent',mainpanel,'Style','edit','String','','FontSize',14,'HorizontalAlign','center','Units','Normalized','Position',[0.70 0.5375 0.28 0.06],'UserData','file_options.searchstring'); +set(tbSearchString,'Callback',{@FASTER_callbacks,'update_value',option_box}); +lPrefix = uicontrol('Parent',mainpanel,'Style','text','String','Output file prefix:', 'FontSize',12,'Units','Normalized','Position',[0.51 0.46 0.18 0.06],'BackgroundColor',bgcolor); +tbPrefix = uicontrol('Parent',mainpanel,'Style','edit','String','','FontSize',12,'HorizontalAlign','center','Units','Normalized','Position',[0.7 0.47 0.28 0.06],'UserData','file_options.file_prefix'); +set(tbPrefix,'Callback',{@FASTER_callbacks,'update_value',option_box}); +if (~from_EEGLAB) + lSubdirs = uicontrol('Parent',mainpanel,'Style','text','String','Individual folders:', 'FontSize',12,'Units','Normalized','Position',[0.51 0.40 0.18 0.06],'BackgroundColor',bgcolor); + cbSubdirs = uicontrol('Parent',mainpanel,'Style','checkbox','String','','FontSize',14,'Units','Normalized','Position',[0.83 0.4075 0.15 0.06],'UserData','file_options.make_subdirectories','BackgroundColor',bgcolor); + set(cbSubdirs,'Callback',{@FASTER_callbacks,'update_value',option_box}); + lResume = uicontrol('Parent',mainpanel,'Style','text','String','Resume:', 'FontSize',12,'Units','Normalized','Position',[0.51 0.345 0.18 0.06],'BackgroundColor',bgcolor); + cbResume = uicontrol('Parent',mainpanel,'Style','checkbox','String','','FontSize',14,'Units','Normalized','Position',[0.83 0.3525 0.15 0.06],'UserData','file_options.resume','BackgroundColor',bgcolor); + set(cbResume,'Callback',{@FASTER_callbacks,'update_value',option_box}); + lResume_num = uicontrol('Parent',mainpanel,'Style','text','String','','HorizontalAlign','right', 'FontSize',12,'Units','Normalized','Position',[0.93 0.345 0.05 0.06],'BackgroundColor',bgcolor,'UserData','file_options.current_file_num'); + other_handles=[tbFolder tbOFolder tbChanLocs ddFileType tbSearchString tbPrefix cbSubdirs cbResume lResume_num bFolder]; +else + set([bFolder,tbFolder,lFileType,ddFileType],'Enable','off'); + set(lSearchString,'String','Setname filter:'); + lSaveEEG = uicontrol('Parent',mainpanel,'Style','text','String','Save datasets:', 'FontSize',12,'Units','Normalized','Position',[0.51 0.40 0.18 0.06],'BackgroundColor',bgcolor); + cbSaveEEG = uicontrol('Parent',mainpanel,'Style','checkbox','String','','FontSize',14,'Units','Normalized','Position',[0.83 0.4075 0.15 0.06],'UserData','file_options.save_ALLEEG','BackgroundColor',bgcolor); + set(cbSaveEEG,'Callback',{@FASTER_callbacks,'update_value',option_box}); + lOverwrite = uicontrol('Parent',mainpanel,'Style','text','String','Overwrite datasets:', 'FontSize',12,'Units','Normalized','Position',[0.51 0.345 0.18 0.06],'BackgroundColor',bgcolor); + cbOverwrite = uicontrol('Parent',mainpanel,'Style','checkbox','String','','FontSize',14,'Units','Normalized','Position',[0.83 0.3525 0.15 0.06],'UserData','file_options.overwrite_ALLEEG','BackgroundColor',bgcolor); +% set(cbResume,'Callback',{@FASTER_callbacks,'update_value',option_box}); +% other_handles=[tbFolder tbOFolder tbChanLocs ddFileType tbSearchString tbPrefix cbSaveEEG cbResume bFolder]; + other_handles=[tbFolder tbOFolder tbChanLocs ddFileType tbSearchString tbPrefix cbSaveEEG bFolder]; +end + +bSave = uicontrol('Parent',mainpanel,'Style','pushbutton','String','Save job','FontSize',14,'Units','Normalized','Position',[0.51 0.265 0.235 0.09],'Callback',{@FASTER_callbacks,'save_job',option_box}); +bLoad = uicontrol('Parent',mainpanel,'Style','pushbutton','String','Load job','FontSize',14,'Units','Normalized','Position',[0.755 0.265 0.235 0.09],'Callback',{@FASTER_callbacks,'open_job',option_box,std_options}); + +% Options panel + +set(optpanel,'Parent',mainpanel,'Units','Normalized','Position',[0.01 0.01 0.49 0.98],'BackgroundColor',bgcolor); +uicontrol('Parent',optpanel,'FontSize',20,'Style','text','String','Options','Units','Normalized','Position',[0.3 0.9 0.4 0.1],'BackgroundColor',bgcolor); + +y=0.03; +x=0.05; +h=0.35; +w=0.9; +set(option_box,'Parent',optpanel,'Style','listbox','String','','Units','Normalized','Position',[x y w h]); + +uicontrol('Parent',optpanel,'FontSize',12,'Style','text','String','Function','Units','Normalized','Position',[0.1 0.82 0.5 0.05],'BackgroundColor',bgcolor); +uicontrol('Parent',optpanel,'FontSize',12,'Style','text','String','Save','Units','Normalized','Position',[0.72 0.82 0.12 0.05],'BackgroundColor',bgcolor); + +% Set of options and corresponding window functions for each function group +list_filter={'High pass on','High pass frequency','High pass options','Low pass on','Low pass frequency','Low pass options','Notch on','Notch frequency','Notch options','Resample'}; +list_channels={'Reference channel','EEG channels','External channels','Known bad channels','Interpolate after ICA','Channel rejection','Rejection options'}; +list_epoch={'Markered epoching','Unmarkered epoching','Epoch limits','Baseline subtraction','Epoch rejection','Rejection options'}; +list_ICA={'Run ICA','Channels for ICA','ICA k value','Keep existing ICA weights','Save component topographies as images','ICA component rejection','Rejection options'}; +list_epoch_interp={'Epoch interpolation','Rejection options'}; +list_GA={'Make grand average','Grand average markers','Grand average length','Trimmed mean','Subject removal','Rejection options'}; + +set(option_box,'String',list_filter); %Set to display the filter settings initially + +x1=0.1; +x2=0.71; +x3=0.76; +y=0.75; +filter_button = uicontrol('Parent',optpanel,'FontSize',14,'Style','pushbutton','String','Filter','Value',1,'Units','Normalized','Position',[x1 y 0.5 0.055],'BackgroundColor',bgcolor,'Callback',{@FASTER_callbacks,'changelist',option_box,list_filter,1},'UserData',[0 1]); +filter_save = uicontrol('Parent',optpanel,'Style','checkbox','Value',1,'Units','Normalized','Position',[x3 y 0.05 0.05],'BackgroundColor',bgcolor,'Callback',{@FASTER_callbacks,'set_save_options',1,option_box}); +y=y-0.07; +channels_button = uicontrol('Parent',optpanel,'FontSize',14,'Style','pushbutton','String','Channels','Value',1,'Units','Normalized','Position',[x1 y 0.5 0.055],'BackgroundColor',bgcolor,'Callback',{@FASTER_callbacks,'changelist',option_box,list_channels,2}); +channels_save = uicontrol('Parent',optpanel,'Style','checkbox','Value',1,'Units','Normalized','Position',[x3 y 0.05 0.05],'BackgroundColor',bgcolor,'Callback',{@FASTER_callbacks,'set_save_options',2,option_box}); +y=y-0.07; +epoch_button = uicontrol('Parent',optpanel,'FontSize',14,'Style','pushbutton','String','Epoching','Value',1,'Units','Normalized','Position',[x1 y 0.5 0.055],'BackgroundColor',bgcolor,'Callback',{@FASTER_callbacks,'changelist',option_box,list_epoch,3}); +epoch_save = uicontrol('Parent',optpanel,'Style','checkbox','Value',1,'Units','Normalized','Position',[x3 y 0.05 0.05],'BackgroundColor',bgcolor,'Callback',{@FASTER_callbacks,'set_save_options',3,option_box}); +y=y-0.07; +ICA_button = uicontrol('Parent',optpanel,'FontSize',14,'Style','pushbutton','String','ICA','Value',1,'Units','Normalized','Position',[x1 y 0.5 0.055],'BackgroundColor',bgcolor,'Callback',{@FASTER_callbacks,'changelist',option_box,list_ICA,4}); +ICA_save = uicontrol('Parent',optpanel,'Style','checkbox','Value',1,'Units','Normalized','Position',[x3 y 0.05 0.05],'BackgroundColor',bgcolor,'Callback',{@FASTER_callbacks,'set_save_options',4,option_box}); +y=y-0.07; +epoch_interp_button = uicontrol('Parent',optpanel,'FontSize',14,'Style','pushbutton','String','Epoch Interpolation','Value',1,'Units','Normalized','Position',[x1 y 0.5 0.055],'BackgroundColor',bgcolor,'Callback',{@FASTER_callbacks,'changelist',option_box,list_epoch_interp,5}); +epoch_interp_save = uicontrol('Parent',optpanel,'Style','checkbox','Value',1,'Units','Normalized','Position',[x3 y 0.05 0.05],'BackgroundColor',bgcolor,'Callback',{@FASTER_callbacks,'set_save_options',5,option_box}); +y=y-0.07; +GA_button = uicontrol('Parent',optpanel,'FontSize',14,'Style','pushbutton','String','Grand Average','Value',1,'Units','Normalized','Position',[x1 y 0.5 0.055],'BackgroundColor',bgcolor,'Callback',{@FASTER_callbacks,'changelist',option_box,list_GA,6}); + +save_handles=[filter_save channels_save epoch_save ICA_save epoch_interp_save]; +for s=1:5 + set(save_handles(s),'Value',all_options.save_options(s)); +end + +settings_list={'Style','String','FontSize','UserData'}; + +windows_filter={ + +{ +{'text','High pass on',14,0},{'checkbox','',14,'filter_options.hpf_on'},... +}, + +{ +{'text','High pass frequency',14,0},{'edit','',14,'filter_options.hpf_freq'},... +}, + +{ +{'text','HP ripple (dB)',12,0},{'edit','0.01',14,'filter_options.hpf_ripple'},{'text','HP attenuation (dB)',12,0},{'edit','80',14,'filter_options.hpf_attenuation'},{'text','HP transition band width (Hz)',10,0},{'edit','1',14,'filter_options.hpf_bandwidth'},... +}, + +{ +{'text','Low pass on',14,0},{'checkbox','',14,'filter_options.lpf_on'},... +}, + +{ +{'text','Low pass frequency',14,0},{'edit','',14,'filter_options.lpf_freq'},... +}, + +{ +{'text','LP ripple (dB)',12,0},{'edit','0.01',14,'filter_options.lpf_ripple'},{'text','LP attenuation (dB)',12,0},{'edit','80',14,'filter_options.lpf_attenuation'},{'text','LP transition band width (Hz)',10,0},{'edit','1',14,'filter_options.lpf_bandwidth'},... +}, + +{ +{'text','Notch on',14,0},{'checkbox','',14,'filter_options.notch_on'},... +}, + +{ +{'text','Notch frequency',14,0},{'edit','',14,'filter_options.notch_freq'},... +}, + +{ +{'text','Notch bandwidth (dB)',12,0},{'edit','0.01',14,'filter_options.notch_bandwidth1'},{'text','Notch ripple (dB)',12,0},{'edit','0.01',14,'filter_options.notch_ripple'},{'text','Notch attenuation (dB)',12,0},{'edit','80',14,'filter_options.notch_attenuation'},{'text','Notch transition band width (Hz)',10,0},{'edit','1',14,'filter_options.notch_bandwidth2'},... +}, + +{ +{'text','Resample on',14,0},{'checkbox','',14,'filter_options.resample_on'},{'text','Resample frequency (Hz)',12,0},{'edit','512',14,'filter_options.resample_freq'},... +}, + +}; + +windows_channels={ + +{ +{'text','Reference chan for processing',10,0},{'edit','',14,'channel_options.ref_chan'},{'text','Output reference channel',12,0},{'edit','',14,'channel_options.op_ref_chan'},... +} + +{ +{'text','EEG channels',14,0},{'edit','',14,'channel_options.eeg_chans'},... +} + +{ +{'text','External channels',14,0},{'edit','',14,'channel_options.ext_chans'},... +} + +{ +{'text','Known bad channels',14,0},{'edit','',14,'channel_options.bad_channels'},... +} + +{ +{'text','Interpolate after ICA',14,0},{'checkbox','',14,'channel_options.interp_after_ica'},... +} + +{ +{'text','Run channel rejection',14,0},{'checkbox','',14,'channel_options.channel_rejection_on'},... +} + +{ +{'text','Channel correlation',14,0},{'checkbox','',14,'channel_options.rejection_options.measure(1)'},{'text','Z threshold',14,0},{'edit','',14,'channel_options.rejection_options.z(1)'},{'text','Channel variance',14,0},{'checkbox','',14,'channel_options.rejection_options.measure(2)'},{'text','Z threshold',14,0},{'edit','',14,'channel_options.rejection_options.z(2)'},{'text','Hurst exponent',14,0},{'checkbox','',14,'channel_options.rejection_options.measure(3)'},{'text','Z threshold',14,0},{'edit','',14,'channel_options.rejection_options.z(3)'},{'text','Exclude EOG channels',12,0},{'checkbox','',14,'channel_options.exclude_EOG_chans'},... +}, + +}; + +windows_epochs={ + +{ +{'text','Markered epoching',12,0},{'checkbox','',14,'epoch_options.markered_epoch'},{'text','Markers for epoching',14,0},{'edit','',14,'epoch_options.epoch_markers'},... +}, + +{ +{'text','Unmarkered epoching',12,0},{'checkbox','',14,'epoch_options.unmarkered_epoch'},{'text','Epoching interval',12,0},{'edit','',14,'epoch_options.unmarkered_epoch_interval'},... +}, + +{ +{'text','Epoch limits',14,0},{'edit','',14,'epoch_options.epoch_limits'},... +}, + +{ +{'text','Baseline subtraction',14,0},{'edit','',14,'epoch_options.baseline_sub'},... +}, + +{ +{'text','Epoch rejection',14,0},{'checkbox','',14,'epoch_options.epoch_rejection_on'},... +}, + +{ +{'text','Deviation from mean',14,0},{'checkbox','',14,'epoch_options.rejection_options.measure(1)'},{'text','Z threshold',14,0},{'edit','',14,'epoch_options.rejection_options.z(1)'},{'text','Variance',14,0},{'checkbox','',14,'epoch_options.rejection_options.measure(2)'},{'text','Z threshold',14,0},{'edit','',14,'epoch_options.rejection_options.z(2)'},{'text','Amplitude range',14,0},{'checkbox','',14,'epoch_options.rejection_options.measure(3)'},{'text','Z threshold',14,0},{'edit','',14,'epoch_options.rejection_options.z(3)'},... +}, + +}; + +windows_ICA={ + +{ +{'text','Run ICA',14,0},{'checkbox','',14,'ica_options.run_ica'},... +} + +{ +{'text','ICA channels',14,0},{'edit',25,14,'ica_options.ica_channels'},... +} + +{ +{'text','ICA k value',14,0},{'edit',25,14,'ica_options.k_value'},... +} + +{ +{'text','Keep existing ICA weights',12,0},{'checkbox','',14,'ica_options.keep_ICA'},... +} + +{ +{'text','Save component topography images',10,0},{'checkbox','',14,'ica_options.IC_images'},... +} + +{ +{'text','Reject ICA components',12,0},{'checkbox','',14,'ica_options.component_rejection_on'},... +} + +{ +{'text','Median gradient',14,0},{'checkbox','',14,'ica_options.rejection_options.measure(1)'},{'text','Z threshold',14,0},{'edit','',14,'ica_options.rejection_options.z(1)'},{'text','Spectral slope',14,0},{'checkbox','',14,'ica_options.rejection_options.measure(2)'},{'text','Z threshold',14,0},{'edit','',14,'ica_options.rejection_options.z(2)'},{'text','Spatial kurtosis',14,0},{'checkbox','',14,'ica_options.rejection_options.measure(3)'},{'text','Z threshold',14,0},{'edit','',14,'ica_options.rejection_options.z(3)'},{'text','Hurst exponent',14,0},{'checkbox','',14,'ica_options.rejection_options.measure(4)'},{'text','Z threshold',14,0},{'edit','',14,'ica_options.rejection_options.z(4)'},{'text','EOG correlation',14,0},{'checkbox','',14,'ica_options.rejection_options.measure(5)'},{'text','Z threshold',14,0},{'edit','',14,'ica_options.rejection_options.z(5)'},{'text','EOG channels',14,0},{'edit',129:132,12,'ica_options.EOG_channels'},{'text','Lowpass frequency',12,0},{'edit','',14,'ica_options.lopass_freq'},... +} + +}; + +windows_epoch_interp={ + +{ +{'text','Epoch interpolation',14,0},{'checkbox','',14,'epoch_interp_options.epoch_interpolation_on'},... +} + +{ +{'text','Median gradient',14,0},{'checkbox','',14,'epoch_interp_options.rejection_options.measure(1)'},{'text','Z threshold',14,0},{'edit','',14,'epoch_interp_options.rejection_options.z(1)'},{'text','Variance',14,0},{'checkbox','',14,'epoch_interp_options.rejection_options.measure(2)'},{'text','Z threshold',14,0},{'edit','',14,'epoch_interp_options.rejection_options.z(2)'},{'text','Amplitude range',14,0},{'checkbox','',14,'epoch_interp_options.rejection_options.measure(3)'},{'text','Z threshold',14,0},{'edit','',14,'epoch_interp_options.rejection_options.z(3)'},{'text','Deviation from mean',14,0},{'checkbox','',14,'epoch_interp_options.rejection_options.measure(4)'},{'text','Z threshold',14,0},{'edit','',14,'epoch_interp_options.rejection_options.z(4)'},... +} + +}; + +windows_GA={ + +{ +{'text','Make grand average',14,0},{'checkbox','',14,'averaging_options.make_GA'},... +}, + +{ +{'text','Grand average markers',12,0},{'edit','',14,'averaging_options.GA_markers'},... +}, + +{ +{'text','Grand average length',12,0},{'edit','',14,'averaging_options.GA_epoch_length'},... +}, + +{ +{'text','Use trimmed mean',12,0},{'checkbox','',14,'averaging_options.GA_trimmed_mean'},{'text','Percentage to trim',12,0},{'edit','',14,'averaging_options.GA_trimmed_mean_perc'},... +}, + +{ +{'text','Subject removal on',12,0},{'checkbox','',14,'averaging_options.subject_removal_on'},... +}, + +{ +{'text','Deviation from mean',14,0},{'checkbox','',14,'averaging_options.rejection_options.measure(1)'},{'text','Z threshold',14,0},{'edit','',14,'averaging_options.rejection_options.z(1)'},{'text','Variance',14,0},{'checkbox','',14,'averaging_options.rejection_options.measure(2)'},{'text','Z threshold',14,0},{'edit','',14,'averaging_options.rejection_options.z(2)'},{'text','Amplitude range',14,0},{'checkbox','',14,'averaging_options.rejection_options.measure(3)'},{'text','Z threshold',14,0},{'edit','',14,'averaging_options.rejection_options.z(3)'},{'text','Max EOG value',14,0},{'checkbox','',14,'averaging_options.rejection_options.measure(4)'},{'text','Z threshold',14,0},{'edit','',14,'averaging_options.rejection_options.z(4)'},... +}, + +}; + +all_windows = {windows_filter, windows_channels, windows_epochs, windows_ICA, windows_epoch_interp, windows_GA}; +if (from_EEGLAB) + all_options.file_options.using_ALLEEG=1; +end + +option_wrapper=struct; +option_wrapper.options=all_options; +option_wrapper.current_group=1; +option_wrapper.last_value=1; +option_wrapper.window_handles=all_windows; +option_wrapper.save_handles=save_handles; +option_wrapper.other_handles=other_handles; +option_wrapper.version=FASTER_version; + +option_wrapper.debug=1; + +set(option_box,'Callback',{@FASTER_callbacks,'pop_up',@make_window},'UserData',option_wrapper); + +set(fh,'CloseRequestFcn',{@FASTER_callbacks,'main_window_close',option_box}); + +hmenu = uimenu('Label','More Options'); +uimenu(hmenu,'Label','Save as default options','Callback',{@FASTER_callbacks,'save_defaults',option_box}); +uimenu(hmenu,'Label','Load default option','Callback',{@FASTER_callbacks,'get_defaults',option_box,from_EEGLAB}); +uimenu(hmenu,'Label','Save as new job file','Callback',{@FASTER_callbacks,'save_new_job',option_box}); + +FASTER_callbacks([],[],'update_controls',option_box); + +if nargout==1 + varargout{1}=evalin('base','EEG;'); +end + +%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%% OPTIONS WINDOW %%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%% + + function nf=make_window(controls2,src) + controls1={'Style','String','FontSize','UserData'}; + nf = figure; + N=length(controls2); + w=400; + h=40 * (N/2) + 40; + set(nf,'Units','Pixels','Position',[(screensize(1)-w)/2 (screensize(2)-h)/2 w h],'Color',bgcolor,'WindowStyle','modal'); + hcontrols=zeros(size(controls2)); + for u=1:N + hcontrols(u)=uicontrol('Parent',nf); + set(hcontrols(u),controls1,controls2{u}); + %set(hcontrols(u),'Units','Pixels','BackgroundColor',bgcolor); + x = (mod(u-1,2)*200); + y = (20*N)-40*(round(u/2))+40; + set(hcontrols(u),'Position',[x y 200 40]+get_offset(get(hcontrols(u),'Style'))); + option_wrapper=get(src,'UserData'); + subgroup=get(hcontrols(u),'UserData'); + if ischar(subgroup) + if (strcmpi(get(hcontrols(u),'Style'),'edit')) + set(hcontrols(u),'Units','Pixels','BackgroundColor',[1 1 1]); + r=e('option_wrapper.options',subgroup); + if (~ischar(r) && ~iscell(r)) + if (any(mod(r,1))) + s=sprintf('%.2f ', r); + if (~isempty(s) && s(end)==' ') + s=s(1:end-1); + end + set(hcontrols(u),'String',s); + else + if (~isempty(r) && all(diff(r)==1) && length(r)>1) + set(hcontrols(u),'String',sprintf('%d:%d', r(1),r(end))); + else + s=sprintf('%d ',r); + if (~isempty(s) && s(end)==' ') + s=s(1:end-1); + end + set(hcontrols(u),'String',s); + end + end + elseif iscell(r) + s='{'; + for c=1:length(r) + if ischar(r{c}) + s=[s '''' r{c} ''', ']; + else + if (any(mod(r{c},1))) + s1=sprintf('%.2f ', r{c}); + if (~isempty(s1) && s1(end)==' ') + s1=s1(1:end-1); + end + else + if (~isempty(r{c}) && all(diff(r{c})==1) && length(r{c})>1) + s1=sprintf('%d:%d', r{c}(1),r{c}(end)); + else + s1=sprintf('%d ',r{c}); + if (~isempty(s1) && s1(end)==' ') + s1=s1(1:end-1); + end + end + end + + s=[s '[' s1 '], ']; + end + end + if (~isempty(s) && s(end)==' ') + if (s(end-1)==',') + s=s(1:end-2); + else + s=s(1:end-1); + end + end + s=[s '}']; + set(hcontrols(u),'String',s); + else + set(hcontrols(u),'String',e('option_wrapper.options',subgroup)); + end + else + set(hcontrols(u),'Units','Pixels','BackgroundColor',bgcolor); + set(hcontrols(u),'Value',e('option_wrapper.options',subgroup)); + end + else + set(hcontrols(u),'Units','Pixels','BackgroundColor',bgcolor); + set(hcontrols(u),'Value',0); + end + set(hcontrols(u),'Callback',{@FASTER_callbacks,'set_window_value',src}); + end + + uicontrol('style','pushbutton','Units','Pixels','BackgroundColor',bgcolor,'Position',[175 10 50 20],'String','OK','Callback',{@FASTER_callbacks,'option_window_close',src,hcontrols,nf},'FontSize',12); + set(nf,'CloseRequestFcn',{@FASTER_callbacks,'do_nothing'}); + end + + function out=get_offset(uicontrol_type) + % Lines up text correctly + switch (uicontrol_type) + case 'text' + out=[0 -2 0 -8]; + case 'checkbox' + out=[80 2 0 0]; + case 'edit' + out=[0 4 -2 -4]; + otherwise + out=[0 0 0 0]; + end + out = out + [0 -5 0 0]; + end + + function out=e(part1,part2) + out=eval(sprintf('%s.%s',part1,part2)); + end + + function init_options() + % Provides the default options. + if (exist('FASTER_defaults.mat','file')) + def_options=FASTER_callbacks([],[],'get_defaults',option_box,from_EEGLAB); + end + + all_options.job_filename=''; + all_options.current_file=[]; + all_options.current_file_num=1; + all_options.is_processing=0; + + all_options.save_options=ones(1,5); + + all_options.file_options.folder_name=''; + all_options.file_options.output_folder_name=''; + all_options.file_options.current_file=''; + all_options.file_options.current_file_num=1; + all_options.file_options.channel_locations=''; + all_options.file_options.searchstring=''; + all_options.file_options.cutoff_markers=[]; + all_options.file_options.is_bdf=1; + all_options.file_options.resume=0; + all_options.file_options.file_prefix=''; + all_options.file_options.plist=cell(0); + all_options.file_options.oplist=cell(0); + all_options.file_options.nlist=cell(0); + all_options.file_options.using_ALLEEG=0; + all_options.file_options.make_subdirectories=1; + all_options.file_options.save_ALLEEG=1; + all_options.file_options.folder_name_rel=cell(0); + all_options.file_options.overwrite_ALLEEG=0; + + all_options.filter_options.hpf_on=1; + all_options.filter_options.hpf_freq=1; + all_options.filter_options.hpf_ripple=0.05; + all_options.filter_options.hpf_attenuation=80; + all_options.filter_options.hpf_bandwidth=0.5; + all_options.filter_options.lpf_on=1; + all_options.filter_options.lpf_freq=95; + all_options.filter_options.lpf_ripple=0.01; + all_options.filter_options.lpf_attenuation=40; + all_options.filter_options.lpf_bandwidth=2.5; + all_options.filter_options.notch_on=1; + all_options.filter_options.notch_freq=50; + all_options.filter_options.notch_bandwidth1=3; + all_options.filter_options.notch_ripple=0.05; + all_options.filter_options.notch_attenuation=80; + all_options.filter_options.notch_bandwidth2=1; + all_options.filter_options.resample_on=0; + all_options.filter_options.resample_freq=0; + + all_options.channel_options.do_reref=1; + all_options.channel_options.ref_chan=85; + all_options.channel_options.op_ref_chan=[]; + all_options.channel_options.eeg_chans=1:128; + all_options.channel_options.ext_chans=129:136; + all_options.channel_options.bad_channels=[]; + all_options.channel_options.interp_after_ica=1; + all_options.channel_options.channel_rejection_on=1; + all_options.channel_options.rejection_options=struct; + all_options.channel_options.rejection_options.measure(1)=1; + all_options.channel_options.rejection_options.z(1)=3; + all_options.channel_options.rejection_options.measure(2)=1; + all_options.channel_options.rejection_options.z(2)=3; + all_options.channel_options.rejection_options.measure(3)=1; + all_options.channel_options.rejection_options.z(3)=3; + all_options.channel_options.exclude_EOG_chans=1; + + all_options.epoch_options.markered_epoch=1; + all_options.epoch_options.epoch_markers=[]; + all_options.epoch_options.epoch_limits=[-0.2 0.8]; + all_options.epoch_options.baseline_sub=[-0.1 0]; + all_options.epoch_options.unmarkered_epoch=0; + all_options.epoch_options.unmarkered_epoch_interval=1; + all_options.epoch_options.epoch_rejection_on=1; + all_options.epoch_options.rejection_options=struct; + all_options.epoch_options.rejection_options.measure(1)=1; + all_options.epoch_options.rejection_options.z(1)=3; + all_options.epoch_options.rejection_options.measure(2)=1; + all_options.epoch_options.rejection_options.z(2)=3; + all_options.epoch_options.rejection_options.measure(3)=1; + all_options.epoch_options.rejection_options.z(3)=3; + + all_options.ica_options.run_ica=1; + all_options.ica_options.k_value=25; + all_options.ica_options.ica_channels=1:136; + all_options.ica_options.keep_ICA=0; + all_options.ica_options.IC_images=0; + all_options.ica_options.component_rejection_on=1; + all_options.ica_options.rejection_options=struct; + all_options.ica_options.rejection_options.measure(1)=1; + all_options.ica_options.rejection_options.z(1)=3; + all_options.ica_options.rejection_options.measure(2)=1; + all_options.ica_options.rejection_options.z(2)=3; + all_options.ica_options.rejection_options.measure(3)=1; + all_options.ica_options.rejection_options.z(3)=3; + all_options.ica_options.rejection_options.measure(4)=1; + all_options.ica_options.rejection_options.z(4)=3; + all_options.ica_options.rejection_options.measure(5)=1; + all_options.ica_options.rejection_options.z(5)=3; + all_options.ica_options.EOG_channels=129:132; + all_options.ica_options.lopass_freq=[]; + + all_options.epoch_interp_options.epoch_interpolation_on=1; + all_options.epoch_interp_options.rejection_options=struct; + all_options.epoch_interp_options.rejection_options.measure(1)=1; + all_options.epoch_interp_options.rejection_options.z(1)=3; + all_options.epoch_interp_options.rejection_options.measure(2)=1; + all_options.epoch_interp_options.rejection_options.z(2)=3; + all_options.epoch_interp_options.rejection_options.measure(3)=1; + all_options.epoch_interp_options.rejection_options.z(3)=3; + all_options.epoch_interp_options.rejection_options.measure(4)=1; + all_options.epoch_interp_options.rejection_options.z(4)=3; + + all_options.averaging_options.make_GA=0; + all_options.averaging_options.GA_markers=[]; + all_options.averaging_options.GA_epoch_length=[-0.2 0.8]; + all_options.averaging_options.GA_trimmed_mean=0; + all_options.averaging_options.GA_trimmed_mean_perc=10; + all_options.averaging_options.subject_removal_on=1; + all_options.averaging_options.rejection_options=struct; + all_options.averaging_options.rejection_options.measure(1)=1; + all_options.averaging_options.rejection_options.z(1)=3; + all_options.averaging_options.rejection_options.measure(2)=1; + all_options.averaging_options.rejection_options.z(2)=3; + all_options.averaging_options.rejection_options.measure(3)=1; + all_options.averaging_options.rejection_options.z(3)=3; + all_options.averaging_options.rejection_options.measure(4)=1; + all_options.averaging_options.rejection_options.z(4)=3; + + if (exist('def_options','var')) + names=fieldnames(all_options); + for v=1:length(names) + if ~isfield(def_options,names{v}) + def_options.(names{v})=all_options.(names{v}); + elseif isstruct(all_options.(names{v})) + names_2 = fieldnames(all_options.(names{v})); + for t=1:length(names_2) + if ~isfield(def_options.(names{v}),names_2{t}) + def_options.(names{v}).(names_2{t})=all_options.(names{v}).(names_2{t}); + elseif isstruct(all_options.(names{v}).(names_2{t})) % Max three levels of structs + names_3 = fieldnames(all_options.(names{v}).(names_2{t})); + for r=1:length(names_3) + if ~isfield(def_options.(names{v}).(names_2{t}),names_3{r}) || ~all(size(def_options.(names{v}).(names_2{t}).(names_3{r}))==size(all_options.(names{v}).(names_2{t}).(names_3{r}))) + def_options.(names{v}).(names_2{t}).(names_3{r})=all_options.(names{v}).(names_2{t}).(names_3{r}); + end + end + end + end + end + end + + std_options=all_options; + all_options=def_options; + else + std_options=all_options; + end + end + +end \ No newline at end of file diff --git a/scripts/FASTER/FASTER_callbacks.asv b/scripts/FASTER/FASTER_callbacks.asv new file mode 100644 index 0000000000000000000000000000000000000000..ce51458288d472ffd116affd4e7597343c5565f3 --- /dev/null +++ b/scripts/FASTER/FASTER_callbacks.asv @@ -0,0 +1,545 @@ +function varargout=FASTER_callbacks(src,eventdata,varargin) + +% Copyright (C) 2010 Hugh Nolan, Robert Whelan and Richard Reilly, Trinity College Dublin, +% Ireland +% nolanhu@tcd.ie, robert.whelan@tcd.ie +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +top_nargout=nargout; + +if nargin < 2 + %This should never happen. + return; +elseif nargin==2 + x=get(src,'Parent'); + if (x==0) + uiresume(src); + else + uiresume(x); + end +elseif nargin>=3 + %try + % Evaluate the first argument in varargin as the function name and the rest + % as the arguments to that function + eval(sprintf('%s(src,eventdata,varargin{2:end});',varargin{1})); + %catch ME + % fprintf('Error: %s\n',ME.message); + %end +end + + function do_nothing(src,eventdata) + return; + end + + function double_click_func(varargin) + fprintf('Eval''d.\n'); + if (get(varargin{1},'Selected')) + eval_string=[varargin{3} '(']; + for i=4:nargin + eval_string=[eval_string varargin{i} ',']; + end + if eval_string(end)==',' + eval_string = [eval_string(1:end-1) ');']; + end + eval(eval_string); + end + end + + function fileselect(src,eventdata,tbhandle,name,handle) + [file_to_do pathname] = uigetfile('*.*',name); + if (file_to_do~=0) + set(tbhandle,'String',[pathname file_to_do]); + else + return; + end + + option_wrapper=get(handle,'UserData'); + eval(sprintf('option_wrapper.options.%s = ''%s'';',get(tbhandle,'UserData'),[pathname file_to_do])); + set(handle,'UserData',option_wrapper); + update_controls(src,eventdata,handle); + end + + function folderselect(src,eventdata,tbhandle,name,handle) + folder_to_do = uigetdir(cd,name); + if (folder_to_do~=0) + set(tbhandle,'String',folder_to_do); + else + return; + end + + option_wrapper=get(handle,'UserData'); + eval(sprintf('option_wrapper.options.%s = ''%s'';',get(tbhandle,'UserData'),folder_to_do)); + set(handle,'UserData',option_wrapper); + update_controls(src,eventdata,handle); + end + + function changelist(src,eventdata,listbox,list_strings,value) + set(listbox,'String',list_strings,'Value',1); + option_wrapper=get(listbox,'UserData'); + option_wrapper.last_value=1; + option_wrapper.current_group=value; + set(listbox,'UserData',option_wrapper); + end + + function set_window_value(src,eventdata,handle) + option_wrapper=get(handle,'UserData'); + current_item=get(src,'UserData'); + if (strcmpi(get(src,'Style'),'edit')) + string=get(src,'String'); + if isempty(string) + string='[]'; + end + if (string(1)~='[') + string = [ '[' string ]; + end + if (string(end)~=']') + string = [ string ']']; + end + + try + %r=eval(string); + eval(sprintf('option_wrapper.options.%s=%s;',current_item,string)); + %if iscell(r) + + %end + %set(src,'Value',eval(string)); % Is this at all necessary except as a temporary variable? I don't think so. + catch + close(get(src,'Parent')); + ew=errordlg('Invalid assignment.','Assignment error','modal'); + set(0,'Units','pixels'); + screensize = get(0,'ScreenSize'); + screensize = screensize(1,[3 4]); + p=get(ew,'Position'); + set(ew,'Position',[(screensize(1)-p(3))/2 (screensize(2)-p(4))/2 p(3) p(4)]); + return; + end + + + else + eval(sprintf('option_wrapper.options.%s=get(src,''Value'');',current_item)); + end + + set(handle,'UserData',option_wrapper); + end + + function set_save_options(src,eventdata,number,handle) + option_wrapper=get(handle,'UserData'); + option_wrapper.options.save_options(number)=get(src,'Value'); + set(handle,'UserData',option_wrapper); + end + + function pop_up(src,eventdata,funchand) + option_wrapper=get(src,'UserData'); + x=get(src,'Value'); + if (x==option_wrapper.last_value) + funchand(option_wrapper.window_handles{option_wrapper.current_group}{x},src); + end + option_wrapper.last_value=x; + set(src,'UserData',option_wrapper); + end + + function option_window_close(src,eventdata,handle,control_handles,figure_handle) + if nargin==4 + figure_handle=src; + end + option_wrapper=get(handle,'UserData'); + try + for p=2:2:length(control_handles) + current_item=get(control_handles(p),'UserData'); + + if (strcmpi(get(control_handles(p),'Style'),'edit')) + string=get(control_handles(p),'String'); + if isempty(string) + string='[]'; + end + if (string(1)~='[') + string = [ '[' string ]; + end + if (string(end)~=']') + string = [ string ']']; + end + + try + eval(sprintf('option_wrapper.options.%s=%s;',current_item,string)); + %set(control_handles(p),'Value',eval(string)); + catch + ew=errordlg('Invalid assignment.','Assignment error','modal'); + set(0,'Units','pixels'); + screensize = get(0,'ScreenSize'); + screensize = screensize(1,[3 4]); + pos=get(ew,'Position'); + set(ew,'Units','Pixels','Position',[(screensize(1)-pos(3))/2 (screensize(2)-pos(4))/2 pos(3) pos(4)]); + return; + end + else + eval(sprintf('option_wrapper.options.%s=get(control_handles(p),''Value'');',current_item)); + end + %eval(sprintf('option_wrapper.options.%s=get(control_handles(p),''Value'');',current_item)); + end + catch + ew2=errordlg('Something went wrong.','Error','modal'); + set(0,'Units','pixels'); + screensize = get(0,'ScreenSize'); + screensize = screensize(1,[3 4]); + p=get(ew2,'Position'); + set(ew2,'Units','Pixels','Position',[(screensize(1)-p(3))/2 (screensize(2)-p(4))/2 p(3) p(4)]); + delete(figure_handle); + end + set(handle,'UserData',option_wrapper); + set(figure_handle,'WindowStyle','normal'); + delete(figure_handle); + end + + function main_window_close(src,eventdata,handle) + delete(src); + end + + function error_window(src,eventdata,string) + bgcolor=[0.9 0.9 0.9]; + ew=figure; + set(0,'Units','pixels'); + screensize = get(0,'ScreenSize'); + screensize = screensize(1,[3 4]); + set(ew,'Units','Pixels','Position',[(screensize(1)/2-100) (screensize(2)/2-50) 200 100],'WindowStyle','modal','Color',bgcolor); + uicontrol('FontSize',12,'Style','text','String',string,'Units','Normalized','Position',[0 0.5 1 0.5],'BackgroundColor',bgcolor); + uicontrol('FontSize',12,'Style','pushbutton','String','OK','Units','Normalized','Position',[0.35 0.1 0.3 0.3],'Callback',{@close_this,ew},'BackgroundColor',bgcolor); + + function close_this(src,eventdata,handle) + set(handle,'WindowStyle','normal'); + delete(handle); + end + end + + function set_onoff_options(src,eventdata,number,handle) + option_wrapper=get(handle,'UserData'); + option_wrapper.options{2}{number}{end}={get(src,'Value')}; + set(handle,'UserData',options); + end + + function run_FASTER(src,eventdata,handle) + option_wrapper=get(handle,'UserData'); + using_ALLEEG=option_wrapper.options.file_options.using_ALLEEG; + if ~using_ALLEEG && (isempty(option_wrapper.options.file_options.folder_name) || ~exist(option_wrapper.options.file_options.folder_name,'dir')) + errordlg('Invalid job folder selected.','Error','modal'); + %assignin('base','optins',option_wrapper); + return; + end + if (~isempty(option_wrapper.options.file_options.output_folder_name) && ~exist(option_wrapper.options.file_options.output_folder_name,'dir')) + errordlg('Invalid output folder selected.','Error','modal'); + return; + end + if (isempty(option_wrapper.options.file_options.channel_locations)) + if (option_wrapper.options.file_options.is_bdf==1) + errordlg('Must enter channel locations for .bdf files.','Error','modal'); + return; + else + button = questdlg(sprintf('No channel locations entered.\nDo all .set files have channel locations?'),'Channel locations','Yes','No','Yes'); + if strcmp(button,'No') + return; + end + end + end + if (option_wrapper.options.ica_options.run_ica && ~isempty(setdiff(option_wrapper.options.ica_options.ica_channels,[option_wrapper.options.channel_options.eeg_chans option_wrapper.options.channel_options.ext_chans]))) + errordlg('Selected ICA channels are not a subset of selected EEG and external channels.'); + return; + end + + % v=version(); + % dots=strfind(v,'.'); + % v_num=str2num(v(1:dots(2)-1)); + % + % if v_num>7.4 + % FASTER(option_wrapper); + % else + % FASTER_compat(option_wrapper); + % end + + % Version number check is awkward at the moment. + % Using lasterror for the moment until it is removed + % completely. + + % If none of the above checks returned, run FASTER! + try + FASTER(option_wrapper); + catch + m=lasterror; + if exist('my_queue_file','var') && ~isempty(my_queue_file) && exist(my_queue_file,'file') + delete(my_queue_file); + end + if exist('my_proc_file','var') && ~isempty(my_proc_file) && exist(my_proc_file,'file') + delete(my_proc_file); + end + assignin('base','m',m); + rethrow(m); + end + end + + function stop(src,eventdata) + error('Stopped FASTER!\n'); + end + + function new_job(src,eventdata,handle) + folder_to_do = uigetdir(cd,'Open folder to process'); + [root_folder f1 f2] = fileparts(folder_to_do); + + [pathname file_to_save] = uiputfile('*.eegjob','Save job',[folder_to_do filesep f1 f2 '.eegjob']); + if (all(folder_to_do~=0) && all(file_to_save~=0)) + option_wrapper.file_options.folder_name=folder_to_do; + + save_job([],[],handle,[pathname filesep file_to_save]); + end + end + + function open_job(src,eventdata,handle,std_options) + [file_to_do pathname] = uigetfile('*.eegjob','Select EEG job to open'); + option_wrapper=get(handle,'UserData'); + if (file_to_do~=0) + all=load([pathname filesep file_to_do],'-mat'); + or2=all.option_wrapper; + + using_ALLEEG=option_wrapper.options.file_options.using_ALLEEG; + %if exist([pathname filesep 'ProcQ.eegQ'],'file') + if ~using_ALLEEG + if isfield(or2.options.file_options,'folder_name_rel') && ~isempty(or2.options.file_options.folder_name_rel) + try + startDir = make_relative_path(or2.options.file_options.folder_name_rel,pathname); + or2.options.file_options.folder_name=startDir; + catch + startDir=or2.options.file_options.folder_name; + end + else + startDir=or2.options.file_options.folder_name; + end + else + startDir=cd; + end + + if (~using_ALLEEG && exist([startDir filesep file_to_do '_ProcQ.eegQ'],'file')) || (using_ALLEEG && exist([startDir filesep 'ProcQ.eegQ'],'file')) + button = questdlg(sprintf('Queue file present.\nJoining the queue will add this computer to an already running FASTER session (cannot be used if FASTER was started from EEGLAB).\n\nOverwriting will delete the queue file and start from the beginning. Use this if an error occurred previously, or if processing was aborted before finishing the job (resume will function as normal).\n\nCancelling will abort loading this file.'),'Queue file detected','Join','Reset Queue','Cancel','Join'); + if strcmp(button,'Cancel') + return; + elseif strcmp(button,'Reset Queue') + button = questdlg(sprintf('Warning: resetting will remove the queue file and other tracking files. Please ensure no other computers are using this job file for processing.\nContinue?'),'Restart warning','Yes','No','No'); + if strcmp(button,'No') + return; + end + if ~using_ALLEEG + delete([startDir filesep file_to_do '_ProcQ.eegQ']); + else + delete([startDir filesep 'ProcQ.eegQ']); + end + if exist([startDir filesep 'Queue'],'dir') + D=dir([startDir filesep 'Queue']); + for v=1:length(D) + if ~strcmp(D(v).name,'.') && ~strcmp(D(v).name,'..') + delete([startDir filesep 'Queue' filesep D(v).name]); + end + end + rmdir([startDir filesep 'Queue']); + end + if exist([startDir filesep 'Processing'],'dir') + D=dir([startDir filesep 'Processing']); + for v=1:length(D) + if ~strcmp(D(v).name,'.') && ~strcmp(D(v).name,'..') + delete([startDir filesep 'Processing' filesep D(v).name]); + end + end + rmdir([startDir filesep 'Processing']); + end + end + end + + or2.options.file_options.using_ALLEEG=option_wrapper.options.file_options.using_ALLEEG; + option_wrapper.options=check_options(src,eventdata,std_options,or2.options); + option_wrapper.options.file_options.resume=1; + option_wrapper.options.job_filename=[pathname filesep file_to_do]; + end + set(handle,'UserData',option_wrapper); + update_controls(src,eventdata,handle); + end + + function varargout=check_options(src,eventdata,op1,op2) + names=fieldnames(op1); + for v=1:length(names) + if ~isfield(op2,names{v}) + op2.(names{v})=op1.(names{v}); + elseif isstruct(op1.(names{v})) + names_2 = fieldnames(op1.(names{v})); + for t=1:length(names_2) + if ~isfield(op2.(names{v}),names_2{t}) + op2.(names{v}).(names_2{t})=op1.(names{v}).(names_2{t}); + elseif isstruct(op1.(names{v}).(names_2{t})) % Max three levels of structs + names_3 = fieldnames(op1.(names{v}).(names_2{t})); + for r=1:length(names_3) + if ~isfield(op2.(names{v}).(names_2{t}),names_3{r}) || ~all(size(op2.(names{v}).(names_2{t}).(names_3{r}))==size(op1.(names{v}).(names_2{t}).(names_3{r}))) + op2.(names{v}).(names_2{t}).(names_3{r})=op1.(names{v}).(names_2{t}).(names_3{r}); + end + end + end + end + end + end + if nargout==1 + varargout{1}=op2; + end + end + + function update_value(src,eventdata,handle) + option_wrapper=get(handle,'UserData'); + if (strcmp(get(src,'Style'),'edit')) + eval(sprintf('option_wrapper.options.%s = ''%s'';',get(src,'UserData'),get(src,'String'))); + else + eval(sprintf('option_wrapper.options.%s = %f;',get(src,'UserData'),get(src,'Value'))); + end + set(handle,'UserData',option_wrapper); + update_controls(src,eventdata,handle); + end + + function save_job(src,eventdata,handle,full_filename) + option_wrapper=get(handle,'UserData'); + tmp_using=option_wrapper.options.file_options.using_ALLEEG; + option_wrapper.options.file_options.using_ALLEEG=0; + if nargin==3 + if isempty(option_wrapper.options.job_filename) || ~exist(option_wrapper.options.job_filename,'file') + if isempty(option_wrapper.options.file_options.folder_name) + [pathname file_to_save] = uiputfile('*.eegjob','Save job'); + else + [v d]=builtin('version'); + vs=sscanf(v,'%d.%d.%d.%d'); + if vs(2)> + [root_folder f1 f2] = fileparts(option_wrapper.options.file_options.folder_name); + [pathname file_to_save] = uiputfile('*.eegjob','Save job',[option_wrapper.options.file_options.folder_name filesep option_wrapper.options.file_options.file_prefix f1 f2 '.eegjob']); + end + if (file_to_save==0) + return; + end + full_filename=[file_to_save filesep pathname]; + else + full_filename=option_wrapper.options.job_filename; + end + end + if ~isempty(option_wrapper.options.file_options.folder_name) + if exist('file_to_save','var') + option_wrapper.options.file_options.folder_name_rel=find_relative_path(option_wrapper.options.file_options.folder_name,file_to_save); + else + option_wrapper.options.file_options.folder_name_rel=find_relative_path(option_wrapper.options.file_options.folder_name,fileparts(option_wrapper.options.job_filename)); + end + else + option_wrapper.options.file_options.folder_name_rel=cell(0); + end + save(full_filename,'option_wrapper','-mat'); + option_wrapper.options.job_filename=full_filename; + option_wrapper.options.file_options.using_ALLEEG=tmp_using; + set(handle,'UserData',option_wrapper); + end + + function save_new_job(src,eventdata,handle) + option_wrapper=get(handle,'UserData'); + tmp_using=option_wrapper.options.file_options.using_ALLEEG; + option_wrapper.options.file_options.using_ALLEEG=0; + if isempty(option_wrapper.options.file_options.folder_name) + [pathname file_to_save] = uiputfile('*.eegjob','Save job'); + else + [root_folder f1 f2 f3] = fileparts(option_wrapper.options.file_options.folder_name); + [pathname file_to_save] = uiputfile('*.eegjob','Save job',[option_wrapper.options.file_options.folder_name filesep option_wrapper.options.file_options.file_prefix f1 f2 f3 '.eegjob']); + end + if (file_to_save==0) + return; + end + full_filename=[file_to_save filesep pathname]; + if exist('file_to_save','var') + option_wrapper.options.file_options.folder_name_rel=find_relative_path(option_wrapper.options.file_options.folder_name,file_to_save); + else + option_wrapper.options.file_options.folder_name_rel=find_relative_path(option_wrapper.options.file_options.folder_name,root_folder); + end + save(full_filename,'option_wrapper','-mat'); + option_wrapper.options.job_filename=full_filename; + option_wrapper.options.file_options.using_ALLEEG=tmp_using; + set(handle,'UserData',option_wrapper); + end + + function get_defaults(src,eventdata,handle,using_ALLEEG) + option_wrapper=get(handle,'UserData'); + filename=which('FASTER_defaults.mat'); + if ~isempty(filename) + x=load(filename,'-mat'); + option_wrapper_def=x.option_wrapper; + option_wrapper_def.options.job_filename=[]; + option_wrapper_def.options.current_file=[]; + option_wrapper_def.options.current_file_num=1; + %option_wrapper.options.file_options.using_ALLEEG=0; + end + + option_wrapper_def.options.file_options.using_ALLEEG=using_ALLEEG; + + if (top_nargout>0) + vout{1}=option_wrapper_def.options; + else + option_wrapper.options=option_wrapper_def.options; + set(handle,'UserData',option_wrapper); + update_controls(src,eventdata,handle); + end + end + + function update_controls(src,eventdata,handle) + option_wrapper=get(handle,'UserData'); + for c=1:length(option_wrapper.save_handles) + set(option_wrapper.save_handles(c),'Value',option_wrapper.options.save_options(c)); + end + + % File options etc + for c=1:length(option_wrapper.other_handles) + if (strcmp(get(option_wrapper.other_handles(c),'Style'),'edit') || strcmp(get(option_wrapper.other_handles(c),'Style'),'text')) + set(option_wrapper.other_handles(c),'String',eval(['option_wrapper.options.' get(option_wrapper.other_handles(c),'UserData')])); + elseif strcmp(get(option_wrapper.other_handles(c),'Style'),'pushbutton') + + else + if (strcmp(get(option_wrapper.other_handles(c),'UserData'),'file_options.save_ALLEEG')) + if ~isempty(option_wrapper.options.file_options.output_folder_name) + option_wrapper.options.file_options.save_ALLEEG=1; + set(option_wrapper.other_handles(c),'Enable','off'); + else + set(option_wrapper.other_handles(c),'Enable','on'); + end + end + set(option_wrapper.other_handles(c),'Value',eval(['option_wrapper.options.' get(option_wrapper.other_handles(c),'UserData')])); + end + end + end + + function save_defaults(src,eventdata,handle) + option_wrapper=get(handle,'UserData'); + option_wrapper.job_filename=[]; + option_wrapper.options.using_ALLEEG=0; + if ~isempty(which('FASTER_defaults.mat')) + save(which('FASTER_defaults.mat'),'option_wrapper','-mat'); + else + [root_folder] = fileparts(which('FASTER_callbacks.m')); + save([root_folder filesep 'FASTER_defaults.mat'],'option_wrapper','-mat'); + end + end + +if top_nargout>0 + if (~exist('vout','var')) + for u=1:top_nargout + vout{u}=[]; + end + end + varargout=vout; +end + +end + diff --git a/scripts/FASTER/FASTER_callbacks.m b/scripts/FASTER/FASTER_callbacks.m new file mode 100644 index 0000000000000000000000000000000000000000..1cdeed1125e79e0a03b1b1ba02cbe937b41abdd2 --- /dev/null +++ b/scripts/FASTER/FASTER_callbacks.m @@ -0,0 +1,542 @@ +function varargout=FASTER_callbacks(src,eventdata,varargin) + +% Copyright (C) 2010 Hugh Nolan, Robert Whelan and Richard Reilly, Trinity College Dublin, +% Ireland +% nolanhu@tcd.ie, robert.whelan@tcd.ie +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +top_nargout=nargout; + +if nargin < 2 + %This should never happen. + return; +elseif nargin==2 + x=get(src,'Parent'); + if (x==0) + uiresume(src); + else + uiresume(x); + end +elseif nargin>=3 + %try + % Evaluate the first argument in varargin as the function name and the rest + % as the arguments to that function + eval(sprintf('%s(src,eventdata,varargin{2:end});',varargin{1})); + %catch ME + % fprintf('Error: %s\n',ME.message); + %end +end + + function do_nothing(src,eventdata) + return; + end + + function double_click_func(varargin) + fprintf('Eval''d.\n'); + if (get(varargin{1},'Selected')) + eval_string=[varargin{3} '(']; + for i=4:nargin + eval_string=[eval_string varargin{i} ',']; + end + if eval_string(end)==',' + eval_string = [eval_string(1:end-1) ');']; + end + eval(eval_string); + end + end + + function fileselect(src,eventdata,tbhandle,name,handle) + [file_to_do pathname] = uigetfile('*.*',name); + if (file_to_do~=0) + set(tbhandle,'String',[pathname file_to_do]); + else + return; + end + + option_wrapper=get(handle,'UserData'); + eval(sprintf('option_wrapper.options.%s = ''%s'';',get(tbhandle,'UserData'),[pathname file_to_do])); + set(handle,'UserData',option_wrapper); + update_controls(src,eventdata,handle); + end + + function folderselect(src,eventdata,tbhandle,name,handle) + folder_to_do = uigetdir(cd,name); + if (folder_to_do~=0) + set(tbhandle,'String',folder_to_do); + else + return; + end + + option_wrapper=get(handle,'UserData'); + eval(sprintf('option_wrapper.options.%s = ''%s'';',get(tbhandle,'UserData'),folder_to_do)); + set(handle,'UserData',option_wrapper); + update_controls(src,eventdata,handle); + end + + function changelist(src,eventdata,listbox,list_strings,value) + set(listbox,'String',list_strings,'Value',1); + option_wrapper=get(listbox,'UserData'); + option_wrapper.last_value=1; + option_wrapper.current_group=value; + set(listbox,'UserData',option_wrapper); + end + + function set_window_value(src,eventdata,handle) + option_wrapper=get(handle,'UserData'); + current_item=get(src,'UserData'); + if (strcmpi(get(src,'Style'),'edit')) + string=get(src,'String'); + if isempty(string) + string='[]'; + end + if (string(1)~='[') + string = [ '[' string ]; + end + if (string(end)~=']') + string = [ string ']']; + end + + try + %r=eval(string); + eval(sprintf('option_wrapper.options.%s=%s;',current_item,string)); + %if iscell(r) + + %end + %set(src,'Value',eval(string)); % Is this at all necessary except as a temporary variable? I don't think so. + catch + close(get(src,'Parent')); + ew=errordlg('Invalid assignment.','Assignment error','modal'); + set(0,'Units','pixels'); + screensize = get(0,'ScreenSize'); + screensize = screensize(1,[3 4]); + p=get(ew,'Position'); + set(ew,'Position',[(screensize(1)-p(3))/2 (screensize(2)-p(4))/2 p(3) p(4)]); + return; + end + + + else + eval(sprintf('option_wrapper.options.%s=get(src,''Value'');',current_item)); + end + + set(handle,'UserData',option_wrapper); + end + + function set_save_options(src,eventdata,number,handle) + option_wrapper=get(handle,'UserData'); + option_wrapper.options.save_options(number)=get(src,'Value'); + set(handle,'UserData',option_wrapper); + end + + function pop_up(src,eventdata,funchand) + option_wrapper=get(src,'UserData'); + x=get(src,'Value'); + if (x==option_wrapper.last_value) + funchand(option_wrapper.window_handles{option_wrapper.current_group}{x},src); + end + option_wrapper.last_value=x; + set(src,'UserData',option_wrapper); + end + + function option_window_close(src,eventdata,handle,control_handles,figure_handle) + if nargin==4 + figure_handle=src; + end + option_wrapper=get(handle,'UserData'); + try + for p=2:2:length(control_handles) + current_item=get(control_handles(p),'UserData'); + + if (strcmpi(get(control_handles(p),'Style'),'edit')) + string=get(control_handles(p),'String'); + if isempty(string) + string='[]'; + end + if (string(1)~='[') + string = [ '[' string ]; + end + if (string(end)~=']') + string = [ string ']']; + end + + try + eval(sprintf('option_wrapper.options.%s=%s;',current_item,string)); + %set(control_handles(p),'Value',eval(string)); + catch + ew=errordlg('Invalid assignment.','Assignment error','modal'); + set(0,'Units','pixels'); + screensize = get(0,'ScreenSize'); + screensize = screensize(1,[3 4]); + pos=get(ew,'Position'); + set(ew,'Units','Pixels','Position',[(screensize(1)-pos(3))/2 (screensize(2)-pos(4))/2 pos(3) pos(4)]); + return; + end + else + eval(sprintf('option_wrapper.options.%s=get(control_handles(p),''Value'');',current_item)); + end + %eval(sprintf('option_wrapper.options.%s=get(control_handles(p),''Value'');',current_item)); + end + catch + ew2=errordlg('Something went wrong.','Error','modal'); + set(0,'Units','pixels'); + screensize = get(0,'ScreenSize'); + screensize = screensize(1,[3 4]); + p=get(ew2,'Position'); + set(ew2,'Units','Pixels','Position',[(screensize(1)-p(3))/2 (screensize(2)-p(4))/2 p(3) p(4)]); + delete(figure_handle); + end + set(handle,'UserData',option_wrapper); + set(figure_handle,'WindowStyle','normal'); + delete(figure_handle); + end + + function main_window_close(src,eventdata,handle) + delete(src); + end + + function error_window(src,eventdata,string) + bgcolor=[0.9 0.9 0.9]; + ew=figure; + set(0,'Units','pixels'); + screensize = get(0,'ScreenSize'); + screensize = screensize(1,[3 4]); + set(ew,'Units','Pixels','Position',[(screensize(1)/2-100) (screensize(2)/2-50) 200 100],'WindowStyle','modal','Color',bgcolor); + uicontrol('FontSize',12,'Style','text','String',string,'Units','Normalized','Position',[0 0.5 1 0.5],'BackgroundColor',bgcolor); + uicontrol('FontSize',12,'Style','pushbutton','String','OK','Units','Normalized','Position',[0.35 0.1 0.3 0.3],'Callback',{@close_this,ew},'BackgroundColor',bgcolor); + + function close_this(src,eventdata,handle) + set(handle,'WindowStyle','normal'); + delete(handle); + end + end + + function set_onoff_options(src,eventdata,number,handle) + option_wrapper=get(handle,'UserData'); + option_wrapper.options{2}{number}{end}={get(src,'Value')}; + set(handle,'UserData',options); + end + + function run_FASTER(src,eventdata,handle) + option_wrapper=get(handle,'UserData'); + using_ALLEEG=option_wrapper.options.file_options.using_ALLEEG; + if ~using_ALLEEG && (isempty(option_wrapper.options.file_options.folder_name) || ~exist(option_wrapper.options.file_options.folder_name,'dir')) + errordlg('Invalid job folder selected.','Error','modal'); + %assignin('base','optins',option_wrapper); + return; + end + if (~isempty(option_wrapper.options.file_options.output_folder_name) && ~exist(option_wrapper.options.file_options.output_folder_name,'dir')) + errordlg('Invalid output folder selected.','Error','modal'); + return; + end + if (isempty(option_wrapper.options.file_options.channel_locations)) + if (option_wrapper.options.file_options.is_bdf==1) + errordlg('Must enter channel locations for .bdf files.','Error','modal'); + return; + else + button = questdlg(sprintf('No channel locations entered.\nDo all .set files have channel locations?'),'Channel locations','Yes','No','Yes'); + if strcmp(button,'No') + return; + end + end + end + if (option_wrapper.options.ica_options.run_ica && ~isempty(setdiff(option_wrapper.options.ica_options.ica_channels,[option_wrapper.options.channel_options.eeg_chans option_wrapper.options.channel_options.ext_chans]))) + errordlg('Selected ICA channels are not a subset of selected EEG and external channels.'); + return; + end + + % v=version(); + % dots=strfind(v,'.'); + % v_num=str2num(v(1:dots(2)-1)); + % + % if v_num>7.4 + % FASTER(option_wrapper); + % else + % FASTER_compat(option_wrapper); + % end + + % Version number check is awkward at the moment. + % Using lasterror for the moment until it is removed + % completely. + + % If none of the above checks returned, run FASTER! + try + FASTER(option_wrapper); + catch + m=lasterror; + if exist('my_queue_file','var') && ~isempty(my_queue_file) && exist(my_queue_file,'file') + delete(my_queue_file); + end + if exist('my_proc_file','var') && ~isempty(my_proc_file) && exist(my_proc_file,'file') + delete(my_proc_file); + end + assignin('base','m',m); + rethrow(m); + end + end + + function stop(src,eventdata) + error('Stopped FASTER!\n'); + end + + function new_job(src,eventdata,handle) + folder_to_do = uigetdir(cd,'Open folder to process'); + [root_folder f1 f2] = fileparts(folder_to_do); + + [pathname file_to_save] = uiputfile('*.eegjob','Save job',[folder_to_do filesep f1 f2 '.eegjob']); + if (all(folder_to_do~=0) && all(file_to_save~=0)) + option_wrapper.file_options.folder_name=folder_to_do; + + save_job([],[],handle,[pathname filesep file_to_save]); + end + end + + function open_job(src,eventdata,handle,std_options) + [file_to_do pathname] = uigetfile('*.eegjob','Select EEG job to open'); + option_wrapper=get(handle,'UserData'); + if (file_to_do~=0) + all=load([pathname filesep file_to_do],'-mat'); + or2=all.option_wrapper; + + using_ALLEEG=option_wrapper.options.file_options.using_ALLEEG; + %if exist([pathname filesep 'ProcQ.eegQ'],'file') + if ~using_ALLEEG + if isfield(or2.options.file_options,'folder_name_rel') && ~isempty(or2.options.file_options.folder_name_rel) + try + startDir = make_relative_path(or2.options.file_options.folder_name_rel,pathname); + or2.options.file_options.folder_name=startDir; + catch + startDir=or2.options.file_options.folder_name; + end + else + startDir=or2.options.file_options.folder_name; + end + else + startDir=cd; + end + + if (~using_ALLEEG && exist([startDir filesep file_to_do '_ProcQ.eegQ'],'file')) || (using_ALLEEG && exist([startDir filesep 'ProcQ.eegQ'],'file')) + button = questdlg(sprintf('Queue file present.\nJoining the queue will add this computer to an already running FASTER session (cannot be used if FASTER was started from EEGLAB).\n\nOverwriting will delete the queue file and start from the beginning. Use this if an error occurred previously, or if processing was aborted before finishing the job (resume will function as normal).\n\nCancelling will abort loading this file.'),'Queue file detected','Join','Reset Queue','Cancel','Join'); + if strcmp(button,'Cancel') + return; + elseif strcmp(button,'Reset Queue') + button = questdlg(sprintf('Warning: resetting will remove the queue file and other tracking files. Please ensure no other computers are using this job file for processing.\nContinue?'),'Restart warning','Yes','No','No'); + if strcmp(button,'No') + return; + end + if ~using_ALLEEG + delete([startDir filesep file_to_do '_ProcQ.eegQ']); + else + delete([startDir filesep 'ProcQ.eegQ']); + end + if exist([startDir filesep 'Queue'],'dir') + D=dir([startDir filesep 'Queue']); + for v=1:length(D) + if ~strcmp(D(v).name,'.') && ~strcmp(D(v).name,'..') + delete([startDir filesep 'Queue' filesep D(v).name]); + end + end + rmdir([startDir filesep 'Queue']); + end + if exist([startDir filesep 'Processing'],'dir') + D=dir([startDir filesep 'Processing']); + for v=1:length(D) + if ~strcmp(D(v).name,'.') && ~strcmp(D(v).name,'..') + delete([startDir filesep 'Processing' filesep D(v).name]); + end + end + rmdir([startDir filesep 'Processing']); + end + end + end + + or2.options.file_options.using_ALLEEG=option_wrapper.options.file_options.using_ALLEEG; + option_wrapper.options=check_options(src,eventdata,std_options,or2.options); + option_wrapper.options.file_options.resume=1; + option_wrapper.options.job_filename=[pathname filesep file_to_do]; + end + set(handle,'UserData',option_wrapper); + update_controls(src,eventdata,handle); + end + + function varargout=check_options(src,eventdata,op1,op2) + names=fieldnames(op1); + for v=1:length(names) + if ~isfield(op2,names{v}) + op2.(names{v})=op1.(names{v}); + elseif isstruct(op1.(names{v})) + names_2 = fieldnames(op1.(names{v})); + for t=1:length(names_2) + if ~isfield(op2.(names{v}),names_2{t}) + op2.(names{v}).(names_2{t})=op1.(names{v}).(names_2{t}); + elseif isstruct(op1.(names{v}).(names_2{t})) % Max three levels of structs + names_3 = fieldnames(op1.(names{v}).(names_2{t})); + for r=1:length(names_3) + if ~isfield(op2.(names{v}).(names_2{t}),names_3{r}) || ~all(size(op2.(names{v}).(names_2{t}).(names_3{r}))==size(op1.(names{v}).(names_2{t}).(names_3{r}))) + op2.(names{v}).(names_2{t}).(names_3{r})=op1.(names{v}).(names_2{t}).(names_3{r}); + end + end + end + end + end + end + if nargout==1 + varargout{1}=op2; + end + end + + function update_value(src,eventdata,handle) + option_wrapper=get(handle,'UserData'); + if (strcmp(get(src,'Style'),'edit')) + eval(sprintf('option_wrapper.options.%s = ''%s'';',get(src,'UserData'),get(src,'String'))); + else + eval(sprintf('option_wrapper.options.%s = %f;',get(src,'UserData'),get(src,'Value'))); + end + set(handle,'UserData',option_wrapper); + update_controls(src,eventdata,handle); + end + + function save_job(src,eventdata,handle,full_filename) + option_wrapper=get(handle,'UserData'); + tmp_using=option_wrapper.options.file_options.using_ALLEEG; + option_wrapper.options.file_options.using_ALLEEG=0; + if nargin==3 + if isempty(option_wrapper.options.job_filename) || ~exist(option_wrapper.options.job_filename,'file') + if isempty(option_wrapper.options.file_options.folder_name) + [pathname file_to_save] = uiputfile('*.eegjob','Save job'); + else + [root_folder f1 f2] = fileparts(option_wrapper.options.file_options.folder_name); + [pathname file_to_save] = uiputfile('*.eegjob','Save job',[option_wrapper.options.file_options.folder_name filesep option_wrapper.options.file_options.file_prefix f1 f2 '.eegjob']); + end + if (file_to_save==0) + return; + end + full_filename=[file_to_save filesep pathname]; + else + full_filename=option_wrapper.options.job_filename; + end + end + if ~isempty(option_wrapper.options.file_options.folder_name) + if exist('file_to_save','var') + option_wrapper.options.file_options.folder_name_rel=find_relative_path(option_wrapper.options.file_options.folder_name,file_to_save); + else + option_wrapper.options.file_options.folder_name_rel=find_relative_path(option_wrapper.options.file_options.folder_name,fileparts(option_wrapper.options.job_filename)); + end + else + option_wrapper.options.file_options.folder_name_rel=cell(0); + end + save(full_filename,'option_wrapper','-mat'); + option_wrapper.options.job_filename=full_filename; + option_wrapper.options.file_options.using_ALLEEG=tmp_using; + set(handle,'UserData',option_wrapper); + end + + function save_new_job(src,eventdata,handle) + option_wrapper=get(handle,'UserData'); + tmp_using=option_wrapper.options.file_options.using_ALLEEG; + option_wrapper.options.file_options.using_ALLEEG=0; + if isempty(option_wrapper.options.file_options.folder_name) + [pathname file_to_save] = uiputfile('*.eegjob','Save job'); + else + [root_folder f1 f2] = fileparts(option_wrapper.options.file_options.folder_name); + [pathname file_to_save] = uiputfile('*.eegjob','Save job',[option_wrapper.options.file_options.folder_name filesep option_wrapper.options.file_options.file_prefix f1 f2 '.eegjob']); + end + if (file_to_save==0) + return; + end + full_filename=[file_to_save filesep pathname]; + if exist('file_to_save','var') + option_wrapper.options.file_options.folder_name_rel=find_relative_path(option_wrapper.options.file_options.folder_name,file_to_save); + else + option_wrapper.options.file_options.folder_name_rel=find_relative_path(option_wrapper.options.file_options.folder_name,root_folder); + end + save(full_filename,'option_wrapper','-mat'); + option_wrapper.options.job_filename=full_filename; + option_wrapper.options.file_options.using_ALLEEG=tmp_using; + set(handle,'UserData',option_wrapper); + end + + function get_defaults(src,eventdata,handle,using_ALLEEG) + option_wrapper=get(handle,'UserData'); + filename=which('FASTER_defaults.mat'); + if ~isempty(filename) + x=load(filename,'-mat'); + option_wrapper_def=x.option_wrapper; + option_wrapper_def.options.job_filename=[]; + option_wrapper_def.options.current_file=[]; + option_wrapper_def.options.current_file_num=1; + %option_wrapper.options.file_options.using_ALLEEG=0; + end + + option_wrapper_def.options.file_options.using_ALLEEG=using_ALLEEG; + + if (top_nargout>0) + vout{1}=option_wrapper_def.options; + else + option_wrapper.options=option_wrapper_def.options; + set(handle,'UserData',option_wrapper); + update_controls(src,eventdata,handle); + end + end + + function update_controls(src,eventdata,handle) + option_wrapper=get(handle,'UserData'); + for c=1:length(option_wrapper.save_handles) + set(option_wrapper.save_handles(c),'Value',option_wrapper.options.save_options(c)); + end + + % File options etc + for c=1:length(option_wrapper.other_handles) + if (strcmp(get(option_wrapper.other_handles(c),'Style'),'edit') || strcmp(get(option_wrapper.other_handles(c),'Style'),'text')) + set(option_wrapper.other_handles(c),'String',eval(['option_wrapper.options.' get(option_wrapper.other_handles(c),'UserData')])); + elseif strcmp(get(option_wrapper.other_handles(c),'Style'),'pushbutton') + + else + if (strcmp(get(option_wrapper.other_handles(c),'UserData'),'file_options.save_ALLEEG')) + if ~isempty(option_wrapper.options.file_options.output_folder_name) + option_wrapper.options.file_options.save_ALLEEG=1; + set(option_wrapper.other_handles(c),'Enable','off'); + else + set(option_wrapper.other_handles(c),'Enable','on'); + end + end + set(option_wrapper.other_handles(c),'Value',eval(['option_wrapper.options.' get(option_wrapper.other_handles(c),'UserData')])); + end + end + end + + function save_defaults(src,eventdata,handle) + option_wrapper=get(handle,'UserData'); + option_wrapper.job_filename=[]; + option_wrapper.options.using_ALLEEG=0; + if ~isempty(which('FASTER_defaults.mat')) + save(which('FASTER_defaults.mat'),'option_wrapper','-mat'); + else + [root_folder] = fileparts(which('FASTER_callbacks.m')); + save([root_folder filesep 'FASTER_defaults.mat'],'option_wrapper','-mat'); + end + end + +if top_nargout>0 + if (~exist('vout','var')) + for u=1:top_nargout + vout{u}=[]; + end + end + varargout=vout; +end + +end + diff --git a/scripts/FASTER/FASTER_grandaverage.m b/scripts/FASTER/FASTER_grandaverage.m new file mode 100644 index 0000000000000000000000000000000000000000..1c31fd6d01fd20573c04be3c85738d8d89f8f950 --- /dev/null +++ b/scripts/FASTER/FASTER_grandaverage.m @@ -0,0 +1,222 @@ +function FASTER_grandaverage(startDir,option_wrapper,all_errors,top_log,plist,nlist) + +if ~option_wrapper.options.averaging_options.make_GA + return; +end + +using_ALLEEG=option_wrapper.options.file_options.using_ALLEEG; +save_ALLEEG=option_wrapper.options.file_options.save_ALLEEG; +outDir=option_wrapper.options.file_options.output_folder_name; + +if using_ALLEEG + length_ALLEEG=evalin('base','length(ALLEEG);'); + if ~(length(plist)==length_ALLEEG) + plist=cell(1,length_ALLEEG); + end +end + +try + if (option_wrapper.options.averaging_options.make_GA && (~isempty(plist) || using_ALLEEG)) + GA_markers=option_wrapper.options.averaging_options.GA_markers; + + if ~isempty(GA_markers) + GAs=cell(size(GA_markers)); + p=ones(size(GA_markers)); + else + p=1; + end + GA_epoch_length=option_wrapper.options.averaging_options.GA_epoch_length; + + %% Do per-file or per-ALLEEG-dataset averaging + + for i=1:length(plist) + % If the output folder option is set, get the proper subdirectory + % under that, otherwise use the original directory + if ~using_ALLEEG && ~isempty(outDir) + dir_structure=get_dir_structure(plist{i},option_wrapper.options.file_options.folder_name); + filepath=outDir; + for v=1:length(dir_structure) + filepath=[filepath filesep dir_structure{v}]; + end + else + filepath=plist{i}; + end + + if (~isempty(option_wrapper.options.file_options.searchstring)) + searchstring2=option_wrapper.options.file_options.searchstring; + else + searchstring2=nlist{i}; + end + if using_ALLEEG || (~isempty(strfind(nlist{i},searchstring2)) || ~isempty(strfind(filepath,searchstring2))) && exist([filepath filesep option_wrapper.options.file_options.file_prefix nlist{i}(1:end-4) '.set'],'file') + if ~using_ALLEEG + EEGt=pop_loadset('filepath',filepath,'filename',[option_wrapper.options.file_options.file_prefix nlist{i}(1:end-4) '.set']); + elseif ~evalin('base',sprintf('isempty(ALLEEG(%d).data);',i)) + EEGt=evalin('base',sprintf('ALLEEG(%d);',i)); + end + if ~isempty(option_wrapper.options.averaging_options.GA_markers) && ~isempty(EEGt) && ~isempty(EEGt.data) + if iscell(GA_markers) + for v=1:length(GA_markers) + [EEGt1 did_epoch]=h_epoch(EEGt,GA_markers{v},GA_epoch_length + [2/EEGt.srate -2/EEGt.srate]); + if ~isempty(EEGt1.data) && size(EEGt1.data,3)>1 && did_epoch + if exist('trimmean','file')==2 + trim_mean_on=option_wrapper.options.averaging_options.GA_trimmed_mean; + trim_mean_perc=option_wrapper.options.averaging_options.GA_trimmed_mean_perc; + GAs{v}(:,:,p(v))=trimmean(EEGt1.data,trim_mean_on*trim_mean_perc,3); + else + GAs{v}(:,:,p(v))=mean(EEGt1.data,3); + end + p(v)=p(v)+1; + end + end + %p=p+1; + else + for v=1:length(GA_markers) + [EEGt1 did_epoch]=h_epoch(EEGt,GA_markers(v),GA_epoch_length + [2/EEGt.srate -2/EEGt.srate]); + if ~isempty(EEGt1.data) && size(EEGt1.data,3)>1 && did_epoch + if exist('trimmean','file')==2 + trim_mean_on=option_wrapper.options.averaging_options.GA_trimmed_mean; + trim_mean_perc=option_wrapper.options.averaging_options.GA_trimmed_mean_perc; + GAs{v}(:,:,p(v))=trimmean(EEGt1.data,trim_mean_on*trim_mean_perc,3); + else + GAs{v}(:,:,p(v))=mean(EEGt1.data,3); + end + p(v)=p(v)+1; + else + + end + end + %p=p+1; + end + elseif ~isempty(EEGt.data) && size(EEGt.data,3)>1 + if exist('trimmean','file')==2 + trim_mean_on=option_wrapper.options.averaging_options.GA_trimmed_mean; + trim_mean_perc=option_wrapper.options.averaging_options.GA_trimmed_mean_perc; + GAs(:,:,p)=trimmean(EEGt.data,trim_mean_on*trim_mean_perc,3); + else + GAs(:,:,p)=mean(EEGt.data,3); + end + p=p+1; + elseif size(EEGt.data,3)==1 + warning('Continuous dataset not included in grand average. A blank epoch may be present.'); + else + warning('Empty dataset not included in grand average. A blank epoch may be present.'); + end + end + end + + %% Do rejection + + if ~isempty(option_wrapper.options.averaging_options.GA_markers) && exist('GAs','var') && ~isempty(GAs) + if iscell(GA_markers) + for v=1:length(GA_markers) + if ~isempty(GAs{v}) + cl=EEGt.chanlocs; ci=EEGt.chaninfo; + EEGt=make_EEG(GAs{v},GA_markers{v},EEGt.srate,GA_epoch_length + [2/EEGt.srate -2/EEGt.srate]); + EEGt.chanlocs=cl; EEGt.chaninfo=ci; + if (option_wrapper.options.averaging_options.subject_removal_on) && size(EEGt.data,3)>1 + list_properties=GA_properties(EEGt,option_wrapper.options.channel_options.eeg_chans,option_wrapper.options.ica_options.EOG_channels); + lengths=min_z(list_properties,option_wrapper.options.averaging_options.rejection_options); + if ~isempty(find(lengths, 1)) + bad_subjs=find(lengths); + EEGt=pop_rejepoch(EEGt,bad_subjs,0); + fprintf(top_log,'In the grand average for marker %s, the following files were removed:',GA_markers{v}); + fprintf(top_log,'%s%s%s\n',plist{bad_subjs},filesep,nlist{bad_subjs}); + fprintf(top_log,'\n'); + end + end + EEGt=eeg_checkset(EEGt); + if ~isempty(outDir) + pop_saveset(EEGt,'filename',[option_wrapper.options.file_options.file_prefix EEGt.setname '.set'],'filepath',outDir); + elseif ~using_ALLEEG || save_ALLEEG + pop_saveset(EEGt,'filename',[option_wrapper.options.file_options.file_prefix EEGt.setname '.set'],'filepath',startDir); + end + if using_ALLEEG + assignin('base','FASTER_Temp_EEG',EEGt); + evalin('base','[ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, FASTER_Temp_EEG);clear FASTER_Temp_EEG;eeglab redraw;'); + end + else + fprintf(top_log,'No markers %s detected in any files.\n',GA_markers{v}) + end + end + else + for v=1:length(GA_markers) + if ~isempty(GAs{v}) + cl=EEGt.chanlocs; ci=EEGt.chaninfo; + EEGt=make_EEG(GAs{v},GA_markers(v),EEGt.srate,GA_epoch_length + [2/EEGt.srate -2/EEGt.srate]); + EEGt.chanlocs=cl; EEGt.chaninfo=ci; + if (option_wrapper.options.averaging_options.subject_removal_on) && size(EEGt.data,3)>1 + list_properties=GA_properties(EEGt,option_wrapper.options.channel_options.eeg_chans,option_wrapper.options.ica_options.EOG_channels); + lengths=min_z(list_properties,option_wrapper.options.averaging_options.rejection_options); + if ~isempty(find(lengths, 1)) + bad_subjs=find(lengths); + EEGt=pop_rejepoch(EEGt,bad_subjs,0); + fprintf(top_log,'In the grand average for marker %d, the following files were removed:',GA_markers(v)); + fprintf(top_log,'%s%s%s\n',plist{bad_subjs},filesep,nlist{bad_subjs}); + fprintf(top_log,'\n'); + end + end + EEGt=eeg_checkset(EEGt); + if ~isempty(outDir) + pop_saveset(EEGt,'filename',[option_wrapper.options.file_options.file_prefix EEGt.setname '.set'],'filepath',outDir); + elseif ~using_ALLEEG || save_ALLEEG + pop_saveset(EEGt,'filename',[option_wrapper.options.file_options.file_prefix EEGt.setname '.set'],'filepath',startDir); + end + if using_ALLEEG + assignin('base','FASTER_Temp_EEG',EEGt); + evalin('base','[ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, FASTER_Temp_EEG);clear FASTER_Temp_EEG;eeglab redraw;'); + end + else + fprintf(top_log,'No markers %d detected in any files.\n',GA_markers(v)) + end + end + end + elseif exist('GAs','var') && ~isempty(GAs) + cl=EEGt.chanlocs; ci=EEGt.chaninfo; + EEGt=make_EEG(GAs,1,EEGt.srate,GA_epoch_length + [2/EEGt.srate -2/EEGt.srate]); + EEGt.chanlocs=cl; EEGt.chaninfo=ci; + if (option_wrapper.options.averaging_options.subject_removal_on) && size(EEGt.data,3)>1 + list_properties=GA_properties(EEGt,option_wrapper.options.channel_options.eeg_chans,option_wrapper.options.ica_options.EOG_channels); + lengths=min_z(list_properties,option_wrapper.options.averaging_options.rejection_options); + if ~isempty(find(lengths, 1)) + bad_subjs=find(lengths); + EEGt=pop_rejepoch(EEGt,bad_subjs,0); + fprintf(top_log,'In the grand average, the following files were removed:'); + fprintf(top_log,'%s%s%s\n',plist{bad_subjs},filesep,nlist{bad_subjs}); + fprintf(top_log,'\n'); + end + end + EEGt=eeg_checkset(EEGt); + + if ~isempty(outDir) + pop_saveset(EEGt,'filename',[option_wrapper.options.file_options.file_prefix 'GA.set'],'filepath',outDir); + elseif ~using_ALLEEG || save_ALLEEG + pop_saveset(EEGt,'filename',[option_wrapper.options.file_options.file_prefix 'GA.set'],'filepath',startDir); + end + if using_ALLEEG + assignin('base','FASTER_TMP_EEG',EEGt); + evalin('base','[ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, FASTER_TMP_EEG);clear FASTER_TMP_EEG;eeglab redraw;'); + end + else + fprintf(top_log,'No epoched files were found.\n') + end + end +catch + m=lasterror; + fprintf('Error - %s.\n',m.message); + fprintf(top_log,'Error in grand averaging - %s.\n',m.message); + if option_wrapper.debug + if exist('EEGt','var') + EEG_state{1}=evalc('disp(EEGt)'); + end + EEG_state{2}=option_wrapper; + EEG_state{3}=builtin('version'); + if exist('eeg_getversion','file') + EEG_state{4}=eeg_getversion; + else + EEG_state{4}=which('eeglab'); + end + all_errors{end+1,1}=m; + all_errors{end,2}=EEG_state; + save([startDir filesep option_wrapper.options.file_options.file_prefix 'FASTER_errors.mat'],'all_errors','-mat'); + end +end diff --git a/scripts/FASTER/FASTER_process.m b/scripts/FASTER/FASTER_process.m new file mode 100644 index 0000000000000000000000000000000000000000..66e74eca9393d58d0018cc1c1016622221378a8e --- /dev/null +++ b/scripts/FASTER/FASTER_process.m @@ -0,0 +1,680 @@ +function EEG=FASTER_process(option_wrapper,log_file) + +% Copyright (C) 2010 Hugh Nolan, Robert Whelan and Richard Reilly, Trinity College Dublin, +% Ireland +% nolanhu@tcd.ie, robert.whelan@tcd.ie +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +EEG=[]; +try + tic; + o=option_wrapper.options; + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % File options % + %%%%%%%%%%%%%%%% + % 1 File name including full path (string) + % 2 Reference channel (integer > 0) + % 3 Number of data channels (integer > 0) + % 4 Number of extra channels (integer > 0) + % 5 Channel locations file including full path (string) + % 6 Save options (cell) + %%%%%%%%%%%%%%%% + + using_ALLEEG=o.file_options.using_ALLEEG; + prefix=o.file_options.file_prefix; + %prefix_ALLEEG=o.file_options.prefix_ALLEEG; + + fullfilename = o.file_options.current_file; + ref_chan = o.channel_options.ref_chan; + eeg_chans = o.channel_options.eeg_chans; + if (eeg_chans==0) + eeg_chans=[]; + end + ext_chans = o.channel_options.ext_chans; + if (ext_chans==0) + ext_chans=[]; + end + channel_locations_file = o.file_options.channel_locations; + save_options = o.save_options; + cutoff_markers = o.file_options.cutoff_markers; + do_reref = o.channel_options.do_reref; + + if (~do_reref) + ref_chan=[]; + end + [filepath,filename,extension] = fileparts(fullfilename); + + %log_file = fopen([filepath filesep filename '.log'],'a'); + + c=clock; + months={'Jan' 'Feb' 'Mar' 'Apr' 'May' 'Jun' 'Jul' 'Aug' 'Sep' 'Oct' 'Nov' 'Dec'}; + fprintf(log_file,'\n%d/%s/%d %d:%d:%d\n',c(3),months{c(2)},c(1),c(4),c(5),round(c(6))); + fprintf(log_file,'%.2f - Opened log file.\n',toc); + + %%%%%%%%%%%%%%%%%%%%%% + % File setup section % + %%%%%%%%%%%%%%%%%%%%%% + + % Import .bdf file or load .set file + % Note: import all channels and then remove the unnecessary ones, as + % otherwise the event channel gets removed and we have no event data. + if strcmpi(extension,'.bdf') && ~using_ALLEEG + fprintf('Importing %s.\n',fullfilename); + EEG = pop_biosig(fullfilename); + EEG.setname = filename; + EEG = pop_select(EEG, 'nochannel',length(eeg_chans)+length(ext_chans)+1:size(EEG.data,1)); + if (do_reref) + if (max(EEG.data(ref_chan,:))==0 && min(EEG.data(ref_chan,:))==0) + fprintf(log_file,'%.2f - Reference channel %d is already zeroed. Data was not re-referenced.\n',toc,ref_chan); + elseif (o.ica_options.keep_ICA && ~isempty(EEG.icaweights)) + fprintf(log_file,'%.2f - Data was not re-referenced to maintain existing ICA weights. Bad channel detection may be ineffective.\n',toc,ref_chan); + else + EEG = h_pop_reref( EEG, ref_chan, 'exclude', ext_chans, 'keepref', 'on'); + end + end + + filename = [o.file_options.file_prefix filename]; + filepath=o.file_options.oplist{o.file_options.current_file_num}; + mkdir([filepath filesep 'Intermediate']); + EEG = pop_saveset(EEG,'filename',[filename '.set'],'filepath',filepath,'savemode','onefile'); + fprintf(log_file,'%.2f - Imported and converted file %s.\n',toc,fullfilename); + elseif strcmpi(extension,'.set') && ~using_ALLEEG + fprintf('Loading %s.\n',fullfilename); + EEG = pop_loadset('filename',[filename '.set'],'filepath',filepath); + fprintf(log_file,'%.2f - Loaded file %s.\n',toc,fullfilename); + if ~isempty(o.file_options.output_folder_name) + filepath=o.file_options.oplist{o.file_options.current_file_num}; + mkdir([filepath filesep 'Intermediate']); + else + filepath=o.file_options.oplist{o.file_options.current_file_num}; + mkdir([filepath filesep 'Intermediate']); + pop_saveset(EEG,'filename',['Original_' filename '.set'],'filepath',[filepath filesep 'Intermediate']); + delete(fullfilename); + if exist([fullfilename(1:end-4) '.fdt'],'file') + delete([fullfilename(1:end-4) '.fdt']); + end + if exist([fullfilename(1:end-4) '.dat'],'file') + delete([fullfilename(1:end-4) '.dat']); + end + end + filename = [o.file_options.file_prefix filename]; + EEG.filename = [filename '.set']; + elseif using_ALLEEG + EEG=evalin('base',sprintf('ALLEEG(%d);',o.file_options.plist{o.file_options.current_file_num})); + filepath=o.file_options.oplist{o.file_options.current_file_num}; + + if ~isempty(EEG.filename) + filename=sprintf('%s%s.set',prefix,EEG.filename); + elseif ~isempty(EEG.setname) + filename=sprintf('%sALLEEG(%d)_%s.set',prefix,o.file_options.current_file_num,EEG.setname); + else + filename=sprintf('%sALLEEG(%d).set',prefix,o.file_options.current_file_num); + end + EEG.filepath=filepath; + EEG.filename=filename; + mkdir([filepath filesep 'Intermediate']); + EEG = pop_select(EEG, 'nochannel',length(eeg_chans)+length(ext_chans)+1:size(EEG.data,1)); + if (do_reref) + if (max(EEG.data(ref_chan,:))==0 && min(EEG.data(ref_chan,:))==0) + fprintf(log_file,'%.2f - Reference channel %d is already zeroed. Data was not re-referenced.\n',toc,ref_chan); + elseif (o.ica_options.keep_ICA && ~isempty(EEG.icaweights)) + fprintf(log_file,'%.2f - Data was not re-referenced to maintain existing ICA weights. Bad channel detection may be ineffective.\n',toc,ref_chan); + else + EEG = h_pop_reref( EEG, ref_chan, 'exclude', ext_chans, 'keepref', 'on'); + end + end + else + EEG=[]; + fprintf('Unknown file format.\n'); + fprintf(log_file,'%.2f - Unknown file format. Cannot process.\n',toc); + return; + end + EEG = eeg_checkset(EEG); + + % Check if channel locations exist, and if not load them from disk. + if (~isfield(EEG.chanlocs,'X') || ~isfield(EEG.chanlocs,'Y') || ~isfield(EEG.chanlocs,'Z') || isempty(EEG.chanlocs)) || isempty([EEG.chanlocs(:).X]) || isempty([EEG.chanlocs(:).Y]) || isempty([EEG.chanlocs(:).Z]) + EEG = pop_chanedit(EEG, 'load', {channel_locations_file}); + EEG.saved='no'; + fprintf(log_file,'%.2f - Loaded channel locations file from %s.\n',toc,channel_locations_file); + end + %EEG = pop_saveset(EEG,'savemode','resave'); + + %%%%%%%%%%%%%%%% + % Save options % + %%%%%%%%%%%%%%%% + do_saves=(~using_ALLEEG || (o.file_options.save_ALLEEG && ~isempty(EEG.filename)) || ~isempty(o.file_options.output_folder_name)); + if (~do_saves) + save_options = zeros(size(save_options)); + else + EEG = pop_saveset(EEG,'filename',[filename '.set'],'filepath',filepath,'savemode','onefile'); + end + save_before_filter = save_options(1); + save_before_interp = save_options(2); + save_before_epoch = save_options(3); + save_before_ica_rej = save_options(4); + save_before_epoch_interp = save_options(5); + + if save_before_filter + EEGBAK=EEG; + EEGBAK.setname = ['pre_filt_' EEG.setname]; + pop_saveset(EEGBAK,'filename',['1_pre_filt_' EEG.filename],'filepath',[filepath filesep 'Intermediate'],'savemode','onefile'); + clear EEGBAK; + end + + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Filtering % + %%%%%%%%%%%%% + + resample_frequency=o.filter_options.resample_freq; + do_resample=o.filter_options.resample_on; + % Downsampling is done later (shouldn't really be done at all). + + do_hipass=o.filter_options.hpf_on; + do_lopass=o.filter_options.lpf_on; + do_notch=o.filter_options.notch_on; + + if any(any(isnan(EEG.data))) + fprintf('NaN in EEG data before filtering.\n'); + end + + if do_hipass + w_h=o.filter_options.hpf_freq; + t_h=o.filter_options.hpf_bandwidth; + r_h=o.filter_options.hpf_ripple; + a_h=o.filter_options.hpf_attenuation; + + [m, wtpass, wtstop] = pop_firpmord([w_h-(t_h) w_h+(t_h)], [0 1], [10^(-1*abs(a_h)/20) (10^(r_h/20)-1)/(10^(r_h/20)+1)], EEG.srate); + if mod(m,2);m=m+1;end; + EEG = pop_firpm(EEG, 'fcutoff', w_h, 'ftrans', t_h, 'ftype', 'highpass', 'wtpass', wtpass, 'wtstop', wtstop, 'forder', m); + EEG.saved='no'; + fprintf(log_file,'%.2f - Highpass filter: %.3fHz, transition band: %.2f, order: %d.\n',toc,w_h,t_h,m); + end + + if do_lopass + w_l=o.filter_options.lpf_freq; + t_l=o.filter_options.lpf_bandwidth; + r_l=o.filter_options.lpf_ripple; + a_l=o.filter_options.lpf_attenuation; + + [m, wtpass, wtstop] = pop_firpmord([w_l-(t_l) w_l+(t_l)], [1 0], [(10^(r_l/20)-1)/(10^(r_l/20)+1) 10^(-1*abs(a_l)/20)], EEG.srate); + if mod(m,2);m=m+1;end; + EEG = pop_firpm(EEG, 'fcutoff', w_l, 'ftrans', t_l, 'ftype', 'lowpass', 'wtpass', wtpass, 'wtstop', wtstop, 'forder', m); + EEG.saved='no'; + fprintf(log_file,'%.2f - Lowpass filter: %.3fHz, transition band: %.2f, order: %d.\n',toc,w_l,t_l,m); + end + + if do_notch + for n=1:length(o.filter_options.notch_freq) + w_n=[o.filter_options.notch_freq(n)-o.filter_options.notch_bandwidth1/2 o.filter_options.notch_freq(n)+o.filter_options.notch_bandwidth1/2]; + t_n=o.filter_options.notch_bandwidth2; + r_n=o.filter_options.notch_ripple; + a_n=o.filter_options.notch_attenuation; + + [m, wtpass, wtstop] = pop_firpmord([w_n(1)-(t_n) w_n(1)+(t_n) w_n(2)-(t_n) w_n(2)+(t_n)], [0 1 0], [10^(-1*abs(a_n)/20) (10^(r_n/20)-1)/(10^(r_n/20)+1) 10^(-1*abs(a_n)/20)], EEG.srate); + if mod(m,2);m=m+1;end; + EEG = pop_firpm(EEG, 'fcutoff', w_n, 'ftrans', t_n, 'ftype', 'bandstop', 'wtpass', wtpass, 'wtstop', wtstop, 'forder', m); + EEG.saved='no'; + fprintf(log_file,'%.2f - Notch filter: %.3f to %.3fHz, transition band: %.2f, order: %d.\n',toc,w_n(1),w_n(2),t_n,m); + end + end + + if (do_saves), EEG = pop_saveset(EEG,'savemode','resave'); end + + if save_before_interp + EEGBAK=EEG; + EEGBAK.setname = ['pre_interp_' EEG.setname]; + pop_saveset(EEGBAK,'filename',['2_pre_interp_' EEG.filename],'filepath',[filepath filesep 'Intermediate'],'savemode','onefile'); + clear EEGBAK; + end + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Data cutoff point % + % Will be re-implemented % + %%%%%%%%%%%%%%%%%%%%%%%%%% + % if ~isempty(cutoff_markers) && any(cutoff_markers) + % cutoff_point=[0 size(EEG.data,2)+1]; + % for u=1:length(EEG.event) + % if EEG.event(u).type == cutoff_markers(1) || strcmp(EEG.event(u).type,cutoff_markers(1)) + % cutoff_point(1)=EEG.event(u).latency; % Finds the last 255 (check this one) + % end + % if EEG.event(u).type == cutoff_markers(2) || strcmp(EEG.event(u).type,cutoff_markers(2)) + % cutoff_point(2)=EEG.event(u).latency; % Finds the last 255 (check this one) + % end + % end + % if cutoff_point(1) > 1 + % EEG = pop_select( EEG, 'nopoint',[1 cutoff_point(1)] ); + % end + % if cutoff_point(2) < size(EEG.data,2) + % EEG = pop_select( EEG, 'nopoint',[cutoff_point(2) size(EEG.data(:,:),2)] ); + % end + % end + + % %New cutoff points for VESPA + % + % EEG = remevent(EEG,768);EEG=remevent(EEG,33536); + % + % + % first_real_event = -1; + % last_real_event = -1; + % + % for u=1:length(EEG.event)-2 + % + % if ((EEG.event(u).latency - EEG.event(u+1).latency) * (1000/EEG.srate) < 100 && (EEG.event(u+1).latency - EEG.event(u+2).latency) * (1000/EEG.srate) < 100 && first_real_event == -1) + % first_real_event = u; + % end + % + % if (first_real_event ~= -1 && (EEG.event(u).latency - EEG.event(u+1).latency) * (1000/EEG.srate) > 100 && (EEG.event(u+1).latency - EEG.event(u+2).latency) * (1000/EEG.srate) > 100 && last_real_event == -1) + % last_real_event = u; + % end + % + % end + % + % first_real_time=max(EEG.event(first_real_event).latency - EEG.srate,1); + % + % if (last_real_event==-1) + % last_real_time=min(EEG.event(end).latency + EEG.srate,size(EEG.data(:,:),2)); + % else + % last_real_time=min(EEG.event(last_real_event).latency + EEG.srate,1); + % end + % + % EEG = pop_select( EEG, 'point',[first_real_time:last_real_time] ); + % EEG.saved='no'; + % EEG = pop_saveset(EEG,'savemode','resave'); + % + % fprintf(log_file,'Cropped between %.2f and %.2f seconds.\n',first_real_time/EEG.srate,last_real_time/EEG.srate); + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Channel interpolation options % + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % 1 Automatic interpolation of bad channels on or off (1 / 0) + % 2 Radius for channel interpolation hypersphere (integer > 0) + % 3 Automatic interpolation of channels per single epoch at end of process (1 / 0) + % 4 Radius for epoch interpolation hypersphere (integer > 0) + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + chans_to_interp=[]; + do_auto_interp = o.channel_options.channel_rejection_on; + + if do_auto_interp + list_properties = channel_properties(EEG,eeg_chans,ref_chan); + lengths = min_z(list_properties,o.channel_options.rejection_options); % Need to edit to make rejection_options.measure a vector, instead of multiple fields + chans_to_interp = union(eeg_chans(logical(lengths)),o.channel_options.bad_channels); + chans_to_interp = setdiff(chans_to_interp,ref_chan); % Ref chan may appear bad, but we shouldn't interpolate it! + if (o.channel_options.exclude_EOG_chans) + chans_to_interp = setdiff(chans_to_interp,o.ica_options.EOG_channels); + end + if ~o.channel_options.interp_after_ica + if ~isempty(chans_to_interp) + fprintf('Interpolating channel(s)'); + fprintf(' %d',chans_to_interp); + fprintf('.\n'); + EEG = h_eeg_interp_spl(EEG,chans_to_interp,ext_chans); + EEG.saved='no'; + fprintf(log_file,'%.2f - Interpolated channels',toc); fprintf(log_file,' %d',chans_to_interp); fprintf(log_file,'.\n'); + end + end + end + + if (do_saves), EEG = pop_saveset(EEG,'savemode','resave'); end + + if save_before_epoch + EEGBAK=EEG; + EEGBAK.setname = ['pre_epoch_' EEG.setname]; + pop_saveset(EEGBAK,'filename',['3_pre_epoch_' EEG.filename],'filepath',[filepath filesep 'Intermediate'],'savemode','onefile'); + clear EEGBAK; + end + + %%% Do resampling here (if done pre-filtering, it creates problems). %%% + %%% It does anyway, it seems. %%% + if do_resample + old_name = EEG.setname; + old_srate = EEG.srate; + EEG = pop_resample( EEG, resample_frequency); + EEG.setname = old_name; + fprintf(log_file,'%.2f - Resampled from %dHz to %dHz.\n',toc,old_srate,resample_frequency); + end + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Epoch options % + %%%%%%%%%%%%%%%%% + % 1 Epoching on or off (1 / 0) + % 2 Markers to epoch from (array of integers or cell of strings) + % 3 Epoch length (vector of 2 floats, 1 negative, 1 positive) - seconds + % 4 Baseline length for mean subtraction (vector of 2 integers) (0 => baseline subtraction off) - milliseconds + % 5 Auto epoch rejection on or off (1 / 0) + % 6 Radius for epoch rejection hypersphere (integer > 0) + %%%%%%%%%%%%%%%%% + markers = o.epoch_options.epoch_markers; + epoch_length = o.epoch_options.epoch_limits; + baseline_time = o.epoch_options.baseline_sub * 1000; + do_epoch_rejection = o.epoch_options.epoch_rejection_on; + do_epoching = ((~isempty(markers) && o.epoch_options.markered_epoch) || o.epoch_options.unmarkered_epoch) && any(o.epoch_options.epoch_limits) && length(o.epoch_options.epoch_limits)==2; + + %%%%%%%%%%%%%% + % Epoch data % + %%%%%%%%%%%%%% + if do_epoching + oldname = EEG.setname; + if ~o.epoch_options.unmarkered_epoch + EEGt = h_epoch(EEG,markers,epoch_length); + EEG.setname = oldname; + EEG.saved='no'; + if isnumeric(markers) + fprintf(log_file,'%.2f - Epoched data on markers',toc); + fprintf(log_file,' %d',markers); + fprintf(log_file,'.\n'); + else + fprintf(log_file,'%.2f - Epoched data on markers',toc); + fprintf(log_file,' %s',markers{:}); + fprintf(log_file,'.\n'); + end + if size(EEG.data,3)==0 + fprintf(log_file,'Epoch length too short, no epochs were generated.\n'); + else + EEG=EEGt; + clear EEGt; + end + else + EEG = eeg_regepochs(EEG,o.epoch_options.unmarkered_epoch_interval,epoch_length,NaN); + EEG.setname = oldname; + EEG.saved='no'; + fprintf(log_file,'%.2f - Epoched data every %.2f seconds.\n',toc,o.epoch_options.unmarkered_epoch_interval); + end + + % Remove epoch baselines after epoching: + if any(baseline_time) + EEG = pop_rmbase( EEG, baseline_time); + end + end + if (size(EEG.data,3)>1) + % Rereference just to print baseline variance, as otherwise the initial + % BL variance is with a single reference, and the final in average + % reference + EEGtemp = h_pop_reref(EEG, [], 'exclude',ext_chans, 'refstate', ref_chan); + fprintf(log_file,'Initial baseline variance: %.2f.\n',median(var(mean(EEGtemp.data(:,1:round(EEGtemp.srate*-1*EEGtemp.xmin),:),3),[],2))); + clear EEGtemp; + end + + if (do_saves), EEG = pop_saveset(EEG,'savemode','resave'); end + + %%%%%%%%%%%%%%%%%%%%%%%%%%% + % Epoch rejection section % + %%%%%%%%%%%%%%%%%%%%%%%%%%% + if do_epoch_rejection && size(EEG.data,3)>1 + if (o.channel_options.interp_after_ica) + list_properties = epoch_properties(EEG,setdiff(eeg_chans,chans_to_interp)); + else + list_properties = epoch_properties(EEG,eeg_chans); + end + [lengths] = min_z(list_properties,o.epoch_options.rejection_options); + EEG=pop_rejepoch(EEG, find(lengths),0); + fprintf(log_file,'%.2f - Rejected %d epochs',toc,length(find(lengths))); + fprintf(log_file,' %d',find(lengths)); + fprintf(log_file,'.\n'); + EEG.saved='no'; + end + + if (do_saves), EEG = pop_saveset(EEG,'savemode','resave'); end + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Average reference % + %%%%%%%%%%%%%%%%%%%%% + if (do_reref && ~o.ica_options.keep_ICA) + if ~o.channel_options.interp_after_ica + EEG = h_pop_reref(EEG, [], 'exclude',ext_chans, 'refstate', ref_chan); + else + EEG = h_pop_reref(EEG, [], 'exclude',[ext_chans chans_to_interp], 'refstate', ref_chan); + end + end + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % ICA options % + %%%%%%%%%%%%%%% + % 1 ICA on or off (1 / 0) + % 2 Auto component rejection on or off (1 / 0) + % 3 Radius for component rejection hypersphere (integer > 0) + % 4 EOG channels (vector of integers) + %%%%%%%%%%%%%%% + do_ica = o.ica_options.run_ica; + k_value = o.ica_options.k_value; + do_component_rejection = o.ica_options.component_rejection_on; + EOG_chans = o.ica_options.EOG_channels; + ica_chans = o.ica_options.ica_channels; + + %%%%%%%%%% + % Do ICA % + %%%%%%%%%% + if do_ica && (~o.ica_options.keep_ICA || isempty(EEG.icaweights)) + num_pca = min(floor(sqrt(size(EEG.data(:,:),2) / k_value)),(size(EEG.data,1) - length(chans_to_interp) - 1)); + num_pca = min(num_pca,length(setdiff(ica_chans,chans_to_interp))); + if (o.channel_options.interp_after_ica) + %EEG = pop_runica(EEG, 'icatype', 'runica', 'dataset',1, 'chanind',setdiff(ica_chans,chans_to_interp),'options',{'extended',1,'pca',num_pca}); + ica_chans=intersect(setdiff(ica_chans,chans_to_interp),union(eeg_chans,ext_chans)); + EEG = pop_runica(EEG, 'dataset',1, 'chanind',setdiff(ica_chans,chans_to_interp),'options',{'extended',1,'pca',num_pca}); + else + %EEG = pop_runica(EEG, 'icatype', 'runica', 'dataset',1, 'chanind',ica_chans,'options',{'extended',1,'pca',num_pca}); + ica_chans=intersect(ica_chans,union(eeg_chans,ext_chans)); + EEG = pop_runica(EEG, 'dataset',1, 'chanind',ica_chans,'options',{'extended',1,'pca',num_pca}); + end + EEG.saved='no'; + fprintf(log_file,'%.2f - Ran ICA.\n',toc); + end + + if (do_saves), EEG = pop_saveset(EEG,'savemode','resave'); end + + if save_before_ica_rej + EEGBAK=EEG; + EEGBAK.setname = ['pre_comp_rej_' EEG.setname]; + pop_saveset(EEGBAK,'filename',['4_pre_comp_rej_' EEG.filename],'filepath',[filepath filesep 'Intermediate'],'savemode','onefile'); + clear EEGBAK; + end + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Component rejection section % + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Also includes topoplots % + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + if do_component_rejection && ~isempty(EEG.icaweights) + EEG = eeg_checkset(EEG); + original_name=EEG.setname; + if do_lopass + list_properties = component_properties(EEG,EOG_chans,[w_l-(t_l/2) w_l+(t_l/2)]); + elseif ~isempty(o.ica_options.lopass_freq) && o.ica_options.lopass_freq~=0 + list_properties = component_properties(EEG,EOG_chans,[o.ica_options.lopass_freq-5 o.ica_options.lopass_freq+5]); + else + list_properties = component_properties(EEG,EOG_chans); + o.ica_options.rejection_options.measure(2)=0; + end + [lengths] = min_z(list_properties,o.ica_options.rejection_options); + bad_comps=find(lengths); + + % Plot stuff + if (o.ica_options.IC_images) + p=1; + activations=eeg_getica(EEG); + perc_vars = var(activations(:,:),[],2); + perc_vars = 100*perc_vars./sum(perc_vars); + for u=1:size(EEG.icawinv,2) + if ~mod(u-1,16) + if (u~=1) + saveas(h,sprintf('%s%sIntermediate%sComponents_%d.png',filepath,filesep,filesep,p)); + p=p+1; + close(h); + end + h=figure; + end + subplot(4,4,1+mod(u-1,16)); + % if (size(EEG.icawinv,1)~=length(EEG.chanlocs)) + % topoplot(EEG.icawinv(:,u),EEG.chanlocs(setdiff(1:length(EEG.chanlocs),chans_to_interp))); + topoplot(EEG.icawinv(:,u),EEG.chanlocs(EEG.icachansind)); + % else + % topoplot(EEG.icawinv(:,u),EEG.chanlocs); + %end + title(sprintf('Component %d\n%.1f%% variance',u,perc_vars(u))); + if ~isempty(find(bad_comps==u, 1)) + c=get(h,'Children'); + c2=get(c(1),'Children'); + set(c2(5),'FaceColor',[0.6 0 0]); + x=get(c2(5),'XData'); + x(1:end/2)=1.5*(x(1:end/2)); + set(c2(5),'XData',x); + y=get(c2(5),'YData'); + y(1:end/2)=1.5*(y(1:end/2)); + set(c2(5),'YData',y); + end + end + %p=p+1; + saveas(h,sprintf('%s%sIntermediate%sComponents_%d.png',filepath,filesep,filesep,p)); + if ~isempty(h) + close(h); + end + end + + % Reject + if ~isempty(find(lengths,1)) + fprintf('Rejecting components'); + fprintf(' %d',find(lengths)); + fprintf('.\n'); + EEG = pop_subcomp(EEG, find(lengths), 0); + fprintf(log_file,'%.2f - Rejected %d components',toc,length(find(lengths))); + fprintf(log_file,' %d',find(lengths)); + fprintf(log_file,'.\n'); + else + fprintf('Rejected no components.\n'); + fprintf(log_file,'%.2f - Rejected no components.\n',toc); + end + EEG.setname=original_name; + EEG.saved='no'; + elseif ~isempty(EEG.icawinv) && o.ica_options.IC_images + activations=eeg_getica(EEG); + perc_vars = var(activations(:,:),[],2); + perc_vars = 100*perc_vars./sum(perc_vars); + p=1; + for u=1:size(EEG.icawinv,2) + if ~mod(u-1,16) + if (u~=1) + saveas(h,sprintf('%s%sIntermediate%sComponents_%d.png',filepath,filesep,filesep,p)); + p=p+1; + close(h); + end + h=figure; + end + subplot(4,4,1+mod(u-1,16)); + topoplot(EEG.icawinv(:,u),EEG.chanlocs); + title(sprintf('Component %d\n%.1f%% variance',u,perc_vars(u))); + end + %p=p+1; + saveas(h,sprintf('%s%sIntermediate%sComponents_%d.png',filepath,filesep,filesep,p)); + if ~isempty(h) + close(h); + end + end + + if (do_saves), EEG = pop_saveset(EEG,'savemode','resave'); end + + if save_before_epoch_interp + EEGBAK=EEG; + EEGBAK.setname = ['pre_epoch_interp_' EEG.setname]; + pop_saveset(EEGBAK,'filename',['5_pre_epoch_interp_' EEG.filename],'filepath',[filepath filesep 'Intermediate'],'savemode','onefile'); + clear EEGBAK; + end + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Interpolation section part 2 % + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + if o.channel_options.interp_after_ica + if ~isempty(chans_to_interp) + fprintf('Interpolating channel(s)'); + fprintf(' %d',chans_to_interp); + fprintf('.\n'); + EEG = h_eeg_interp_spl(EEG,chans_to_interp,ext_chans); + EEG.saved='no'; + fprintf(log_file,'%.2f - Interpolated channels',toc); fprintf(log_file,' %d',chans_to_interp); fprintf(log_file,'.\n'); + end + end + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Epoch interpolation section % + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + do_epoch_interp=o.epoch_interp_options.epoch_interpolation_on; + if do_epoch_interp && length(size(EEG.data)) > 2 + status = ''; + lengths_ep=cell(1,size(EEG.data,3)); + for v=1:size(EEG.data,3) + list_properties = single_epoch_channel_properties(EEG,v,eeg_chans); + lengths_ep{v}=eeg_chans(logical(min_z(list_properties,o.epoch_interp_options.rejection_options))); + status = [status sprintf('%d: ',v) sprintf('%d ',lengths_ep{v}) sprintf('\n')]; + end + EEG=h_epoch_interp_spl(EEG,lengths_ep,ext_chans); + EEG.saved='no'; + epoch_interps_log_file=fopen([filepath filesep filename '_epoch_interpolations.txt'],'a'); + fprintf(epoch_interps_log_file,'%s',status); + fclose(epoch_interps_log_file); + fprintf(log_file,'%.2f - Did per-epoch interpolation cleanup.\n',toc); + fprintf(log_file,['See ' filename(1:end-4) '_epoch_interpolations.txt for details.\n']); + end + + if ~isempty(o.channel_options.op_ref_chan) + EEG = h_pop_reref(EEG, o.channel_options.op_ref_chan, 'exclude',ext_chans, 'refstate', [], 'keepref', 'on'); + end + if (do_saves), EEG = pop_saveset(EEG,'savemode','resave'); end + + if using_ALLEEG + fprintf('Done with ALLEEG(%d) - %s.\nTook %d seconds.\n',o.file_options.current_file_num,EEG.setname,toc); + else + fprintf('Done with file %s.\nTook %d seconds.\n',[filepath filesep filename extension],toc); + end + + fprintf(log_file,'%.2f - Finished.\n',toc); + if (size(EEG.data,3>1)) + fprintf(log_file,'Final baseline variance: %.2f.\n',median(var(mean(EEG.data(:,1:round(EEG.srate*-1*EEG.xmin),:),3),[],2))); + % More stats here! + end + fclose(log_file); + + if (using_ALLEEG) + assignin('base','FASTER_TMP_EEG',EEG); + if o.file_options.overwrite_ALLEEG + evalin('base',sprintf('ALLEEG(%d)=FASTER_TMP_EEG; clear FASTER_TMP_EEG',o.file_options.current_file_num)); + else + evalin('base','[ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, FASTER_TMP_EEG);clear FASTER_TMP_EEG;'); + end + end +catch + m=lasterror; + EEG_state{1}=evalc('disp(EEG)'); + try + if ~isempty(fopen(log_file)) + frewind(log_file); + EEG_state{2}=fscanf(log_file,'%c',inf); + + try fclose(log_file); catch; end; + end + catch + end + EEG_state{3}=option_wrapper; + EEG_state{4}=builtin('version'); + if exist('eeg_getversion','file') + EEG_state{5}=eeg_getversion; + else + EEG_state{5}=which('eeglab'); + end + + assignin('caller','EEG_state',EEG_state); + rethrow(m); +end +end diff --git a/scripts/FASTER/GA_properties.m b/scripts/FASTER/GA_properties.m new file mode 100644 index 0000000000000000000000000000000000000000..28054e929d084180f552747bbe79d6f3d553866d --- /dev/null +++ b/scripts/FASTER/GA_properties.m @@ -0,0 +1,59 @@ +function list_properties = GA_properties(EEG,eeg_chans,EOG_chans) + +% Copyright (C) 2010 Hugh Nolan, Robert Whelan and Richard Reilly, Trinity College Dublin, +% Ireland +% nolanhu@tcd.ie, robert.whelan@tcd.ie +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +list_properties = []; + +if length(size(EEG.data)) < 3 + fprintf('Not epoched.\n'); + return; +end + +measure = 1; + +means = mean(EEG.data(eeg_chans,:),2); + +% 1 Epoch's mean deviation from channel means. +for u = 1:size(EEG.data,3) + list_properties(u,measure) = mean(abs(squeeze(mean(EEG.data(eeg_chans,:,u),2)) - means)); +end +measure = measure + 1; + +% 2 Epoch variance +list_properties(:,measure) = mean(squeeze(var(EEG.data(eeg_chans,:,:),0,2))); +measure = measure + 1; + +% 3 Max amplitude difference +for t = eeg_chans + for u = 1:size(EEG.data,3) + ampdiffs(t,u) = max(EEG.data(t,:,u)) - min(EEG.data(t,:,u)); + end +end +list_properties(:,measure) = mean(ampdiffs,1); +measure = measure + 1; + +% 4 EOG channel max value +if ~isempty(EOG_chans) +list_properties(:,measure) = max(max(abs(EEG.data(EOG_chans,:,:)),[],2),[],1); +measure = measure + 1; +end + +for v = 1:size(list_properties,2) + list_properties(:,v) = list_properties(:,v) - median(list_properties(:,v)); +end \ No newline at end of file diff --git a/scripts/FASTER/blink_removal_only.m b/scripts/FASTER/blink_removal_only.m new file mode 100644 index 0000000000000000000000000000000000000000..bbd5132e722988d3ba44bf9e141fc4d2f4c2ec5c --- /dev/null +++ b/scripts/FASTER/blink_removal_only.m @@ -0,0 +1,38 @@ +function blink_removal_only(startDir,blink_chans) +[paths names]=extsearchc(startDir,'.bdf'); +prefix = 'EOG_removal_'; + +for u=1:length(paths) + try + EEG = pop_loadset('filename',['6_pre_comp_rej_' names{u}(1:end-4) '.set'],'filepath',[paths{u} filesep 'Intermediate']); + + for w=1:size(EEG.icaact,1) + for v=1:length(blink_chans) + x=zeros(1,length(blink_chans)); + if ~(max(EEG.data(blink_chans(v),:))==0 && min(EEG.data(blink_chans(v),:))==0); + f = corrcoef(EEG.icaact(w,:),EEG.data(blink_chans(v),:)); + x(v) = abs(f(1,2)); + else + x(v) = 0; + end + end + list_properties(w,1)=max(x); + end + + [lengths] = min_z(list_properties); + EEG = pop_subcomp(EEG, find(lengths >= 1), 0); + EEG = eeg_checkset(EEG); + + lengths_ep=cell(1,size(EEG.data,3)); + for v=1:size(EEG.data,3) + list_properties = single_epoch_channel_properties(EEG,v,64); + lengths_ep{v}=find(min_z(list_properties)); + end + + EEG=h_epoch_interp_spl(EEG,lengths_ep,65:72); + + pop_saveset(EEG,'filename',[prefix names{u}(1:end-4) '.set'],'filepath',[paths{u}]); + catch + fprintf('\nSkipped file %s%s%s.\n\n',paths{u},filesep,names{u}); + end +end \ No newline at end of file diff --git a/scripts/FASTER/channel_properties.m b/scripts/FASTER/channel_properties.m new file mode 100644 index 0000000000000000000000000000000000000000..53772e2b272814fce76548fbe8144f74f3a662a5 --- /dev/null +++ b/scripts/FASTER/channel_properties.m @@ -0,0 +1,97 @@ +function list_properties = channel_properties(EEG,eeg_chans,ref_chan) + +% Copyright (C) 2010 Hugh Nolan, Robert Whelan and Richard Reilly, Trinity College Dublin, +% Ireland +% nolanhu@tcd.ie, robert.whelan@tcd.ie +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +if ~isstruct(EEG) + newdata=EEG; + clear EEG; + EEG.data=newdata; + clear newdata; +end + +measure = 1; + +if ~isempty(ref_chan) && length(ref_chan)==1 + pol_dist=distancematrix(EEG,eeg_chans); + [s_pol_dist dist_inds] = sort(pol_dist(ref_chan,eeg_chans)); + [s_inds idist_inds] = sort(dist_inds); +end + +% TEMPORAL PROPERTIES + +% 1 Mean correlation between each channel and all other channels + +% Ignore zeroed channels (ie reference channels) to avoid NaN problems +ignore = []; +datacorr = EEG.data; +for u = eeg_chans + if max(EEG.data(u,:))==0 && min(EEG.data(u,:))==0 + ignore=[ignore u]; + end +end + +% Calculate correlations +calc_indices=setdiff(eeg_chans,ignore); +ignore_indices=intersect(eeg_chans,ignore); +corrs = abs(corrcoef(EEG.data(setdiff(eeg_chans,ignore),:)')); +mcorrs=zeros(size(eeg_chans)); +for u=1:length(calc_indices) + mcorrs(calc_indices(u))=mean(corrs(u,:)); +end +mcorrs(ignore_indices)=mean(mcorrs(calc_indices)); + +% Quadratic correction for distance from reference electrode + +if (~isempty(ref_chan) && length(ref_chan)==1) + p = polyfit(s_pol_dist,mcorrs(dist_inds),2); + fitcurve = polyval(p,s_pol_dist); + corrected = mcorrs(dist_inds) - fitcurve(idist_inds); + + list_properties(:,measure) = corrected; +else + list_properties(:,measure) = mcorrs(dist_inds); +end +measure = measure + 1; + +% 3 Variance of the channels +vars = var(EEG.data(eeg_chans,:)'); +vars(~isfinite(vars))=mean(vars(isfinite(vars))); +% Quadratic correction for distance from reference electrode + +if (~isempty(ref_chan) && length(ref_chan)==1) + p = polyfit(s_pol_dist,vars(dist_inds),2); + fitcurve = polyval(p,s_pol_dist); + corrected = vars - fitcurve(idist_inds); + + list_properties(:,measure) = corrected; +else + list_properties(:,measure) = vars; +end +measure = measure + 1; + +% 4 Hurst exponent +for u=1:length(eeg_chans) + list_properties(u,measure) = hurst_exponent(EEG.data(eeg_chans(u),:)); +end + +for u = 1:size(list_properties,2) + list_properties(isnan(list_properties(:,u)),u)=nanmean(list_properties(:,u)); + list_properties(:,u) = list_properties(:,u) - median(list_properties(:,u)); +end \ No newline at end of file diff --git a/scripts/FASTER/check_ref.m b/scripts/FASTER/check_ref.m new file mode 100644 index 0000000000000000000000000000000000000000..4b7eae4d16ef49390648eb4af480adfaac74a87f --- /dev/null +++ b/scripts/FASTER/check_ref.m @@ -0,0 +1,33 @@ +function EEG=check_ref(EEG,ref_chan,num_chans,num_exts) + +% Copyright (C) 2010 Hugh Nolan, Robert Whelan and Richard Reilly, Trinity College Dublin, +% Ireland +% nolanhu@tcd.ie, robert.whelan@tcd.ie +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +if all(round10(EEG.data(ref_chan,:),10)==0) + EEG=h_pop_reref(EEG,[],'keepref','on'); +end +mediffs=zeros(1,size(EEG.data,3));vars=mediffs; +for v=1:size(EEG.data,3) + mediffs(v)=median(diff(EEG.data(ref_chan,:,v),1,2),2); + vars(v)=var(EEG.data(ref_chan,:,v),[],2); +end +bad_subjs=union(find(min_z(mediffs)),find(min_z(vars))); +for v=1:length(bad_subjs) + tempEEG=h_eeg_interp_spl(pop_rejepoch(EEG,setdiff(1:size(EEG.data,3),bad_subjs(v)),0),ref_chan,'spherical',num_chans+1:num_chans+num_exts); + EEG.data(:,:,bad_subjs(v))=tempEEG.data; +end \ No newline at end of file diff --git a/scripts/FASTER/component_properties.m b/scripts/FASTER/component_properties.m new file mode 100644 index 0000000000000000000000000000000000000000..da282d35cf5393210ae61d6e82bf62225881e777 --- /dev/null +++ b/scripts/FASTER/component_properties.m @@ -0,0 +1,99 @@ +function list_properties = component_properties(EEG,blink_chans,lpf_band) + +% Copyright (C) 2010 Hugh Nolan, Robert Whelan and Richard Reilly, Trinity College Dublin, +% Ireland +% nolanhu@tcd.ie, robert.whelan@tcd.ie +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +list_properties = []; +% +if isempty(EEG.icaweights) + fprintf('No ICA data.\n'); + return; +end + +if ~exist('lpf_band','var') || length(lpf_band)~=2 || ~any(lpf_band) + ignore_lpf=1; +else + ignore_lpf=0; +end + +delete_activations_after=0; +if ~isfield(EEG,'icaact') || isempty(EEG.icaact) + delete_activations_after=1; + EEG.icaact = eeg_getica(EEG); +end + +for u = 1:size(EEG.icaact,1) + [spectra(u,:) freqs] = pwelch(EEG.icaact(u,:),[],[],(EEG.srate),EEG.srate); +end + +list_properties = zeros(size(EEG.icaact,1),5); %This 5 corresponds to number of measurements made. + +for u=1:size(EEG.icaact,1) + measure = 1; + % TEMPORAL PROPERTIES + + % 1 Median gradient value, for high frequency stuff + list_properties(u,measure) = median(diff(EEG.icaact(u,:))); + measure = measure + 1; + + % 2 Mean slope around the LPF band (spectral) + if ignore_lpf + list_properties(u,measure) = 0; + else + list_properties(u,measure) = mean(diff(10*log10(spectra(u,find(freqs>=lpf_band(1),1):find(freqs<=lpf_band(2),1,'last'))))); + end + measure = measure + 1; + + % SPATIAL PROPERTIES + + % 3 Kurtosis of spatial map (if v peaky, i.e. one or two points high + % and everywhere else low, then it's probably noise on a single + % channel) + list_properties(u,measure) = kurt(EEG.icawinv(:,u)); + measure = measure + 1; + + % OTHER PROPERTIES + + % 4 Hurst exponent + list_properties(u,measure) = hurst_exponent(EEG.icaact(u,:)); + measure = measure + 1; + + % 10 Eyeblink correlations + if (exist('blink_chans','var') && ~isempty(blink_chans)) + for v = 1:length(blink_chans) + if ~(max(EEG.data(blink_chans(v),:))==0 && min(EEG.data(blink_chans(v),:))==0); + f = corrcoef(EEG.icaact(u,:),EEG.data(blink_chans(v),:)); + x(v) = abs(f(1,2)); + else + x(v) = v; + end + end + list_properties(u,measure) = max(x); + measure = measure + 1; + end +end + +for u = 1:size(list_properties,2) + list_properties(isnan(list_properties(:,u)),u)=nanmean(list_properties(:,u)); + list_properties(:,u) = list_properties(:,u) - median(list_properties(:,u)); +end + +if delete_activations_after + EEG.icaact=[]; +end \ No newline at end of file diff --git a/scripts/FASTER/distancematrix.m b/scripts/FASTER/distancematrix.m new file mode 100644 index 0000000000000000000000000000000000000000..34efb14efd2e54c055af6a4f38f2846fd5251506 --- /dev/null +++ b/scripts/FASTER/distancematrix.m @@ -0,0 +1,70 @@ +function [distmatrixpol distmatrixxyz distmatrixproj] = distancematrix(EEG,eeg_chans) + +% Copyright (C) 2010 Hugh Nolan, Robert Whelan and Richard Reilly, Trinity College Dublin, +% Ireland +% nolanhu@tcd.ie, robert.whelan@tcd.ie +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +num_chans = size(EEG.data,1); +distmatrix = zeros(length(eeg_chans),length(eeg_chans)); +distmatrixpol = []; +for chan2tst = eeg_chans; + for q=eeg_chans + distmatrixpol(chan2tst,q)=sqrt(((EEG.chanlocs(chan2tst).radius^2)+(EEG.chanlocs(q).radius^2))-(2*((EEG.chanlocs(chan2tst).radius)*... + (EEG.chanlocs(q).radius)*cosd(EEG.chanlocs(chan2tst).theta - EEG.chanlocs(q).theta))));%calculates the distance between electrodes using polar format + end +end + +locs = EEG.chanlocs; +for u = eeg_chans + if ~isempty(locs(u).X) + Xs(u) = locs(u).X; + else + Xs(u) = 0; + end + if ~isempty(locs(u).Y) + Ys(u) = locs(u).Y; + else + Ys(u) = 0; + end + if ~isempty(locs(u).Z) + Zs(u) = locs(u).Z; + else + Zs(u) = 0; + end +end +Xs = round2(Xs,6); +Ys = round2(Ys,6); +Zs = round2(Zs,6); + +for u = eeg_chans + for v=eeg_chans + distmatrixxyz(u,v) = dist(Xs(u),Xs(v))+dist(Ys(u),Ys(v))+dist(Zs(u),Zs(v)); + end +end +D = max(max(distmatrixxyz)); +distmatrixproj = (pi-2*(acos(distmatrixxyz./D))).*(D./2); + function d = dist(in1,in2) + d = sqrt(abs(in1.^2 - in2.^2)); + end + + function num = round2(num,decimal) + num = num .* 10^decimal; + num = round(num); + num = num ./ 10^decimal; + end +end + diff --git a/scripts/FASTER/eegplugin_FASTER.m b/scripts/FASTER/eegplugin_FASTER.m new file mode 100644 index 0000000000000000000000000000000000000000..e923f8d14f4dcb07aabe9fee8d92cc6d37c05427 --- /dev/null +++ b/scripts/FASTER/eegplugin_FASTER.m @@ -0,0 +1,69 @@ +% eegplugin_FASTER() - EEGLAB plugin for using FASTER processing on EEG datasets +% +% Usage: +% >> eegplugin_FASTER(fig, trystrs, catchstrs); +% +% Inputs: +% fig - [integer] EEGLAB figure +% trystrs - [struct] "try" strings for menu callbacks. +% catchstrs - [struct] "catch" strings for menu callbacks. +% +% Author: Hugh Nolan, Robert Whelan, Richard Reilly, Trinity College Dublin, 2010 + +%123456789012345678901234567890123456789012345678901234567890123456789012 + +% Copyright (C) 2010 Hugh Nolan, Robert Whelan, Richard Reilly, Trinity College Dublin, nolanhu@tcd.ie +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +function vers = eegplugin_grandaverage(fig, trystrs, catchstrs) + + vers = 'FASTER_1.0'; + if nargin < 3 + error('eegplugin_FASTER requires 3 arguments'); + end + + % add folder to path + % ----------------------- + if ~exist('FASTER_GUI') + p = which('FASTER_GUI'); + p = p(1:findstr(p,'FASTER_GUI.m')-1); + addpath(p); + end + + % find import data menu + % --------------------- + menu = findobj(fig, 'Label', 'Tools'); + + % menu callbacks + % -------------- + com_open_GUI = [trystrs.no_check 'EEG=FASTER_GUI(1);' catchstrs.add_to_hist]; + + % create menus if necessary + % ------------------------- + submenu = uimenu( menu, 'Label', 'Process with FASTER', 'CallBack', com_open_GUI, 'Separator', 'on', 'tag', 'FASTER', 'ForegroundColor',[1,0.1,0.2]); +% set(submenu,'enable','on'); +% c=get(menu,'Children'); +% i_faster=find(c==findobj(fig,'tag','FASTER')); +% i_study=find(c==findobj(fig,'Label','Load existing study')); +% c_faster=c(i_faster); +% if (i_faster > i_study) +% c(i_study+1:i_faster)=c(i_study:i_faster-1); +% c(i_study)=c_faster; +% else +% c(i_faster:i_study-1)=c(i_faster+1:i_study); +% c(i_study)=c_faster; +% end +% set(menu,'Children',c); \ No newline at end of file diff --git a/scripts/FASTER/epoch_properties.m b/scripts/FASTER/epoch_properties.m new file mode 100644 index 0000000000000000000000000000000000000000..5b8e4bcc1218c3ecab1664d08c97045e514967d4 --- /dev/null +++ b/scripts/FASTER/epoch_properties.m @@ -0,0 +1,34 @@ +function list_properties = epoch_properties(EEG,eeg_chans) +list_properties = []; + +if length(size(EEG.data)) < 3 + fprintf('Not epoched.\n'); + return; +end + +measure = 1; + +means = mean(EEG.data(eeg_chans,:),2); + +% 1 Epoch's mean deviation from channel means. +for u = 1:size(EEG.data,3) + list_properties(u,measure) = mean(abs(squeeze(mean(EEG.data(eeg_chans,:,u),2)) - means)); +end +measure = measure + 1; + +% 2 Epoch variance +list_properties(:,measure) = mean(squeeze(var(EEG.data(eeg_chans,:,:),0,2))); +measure = measure + 1; + +% 3 Max amplitude difference +for t = eeg_chans + for u = 1:size(EEG.data,3) + ampdiffs(t,u) = max(EEG.data(t,:,u)) - min(EEG.data(t,:,u)); + end +end +list_properties(:,measure) = mean(ampdiffs,1); +measure = measure + 1; + +for v = 1:size(list_properties,2) + list_properties(:,v) = list_properties(:,v) - median(list_properties(:,v)); +end \ No newline at end of file diff --git a/scripts/FASTER/extsearchc.m b/scripts/FASTER/extsearchc.m new file mode 100644 index 0000000000000000000000000000000000000000..0671d81e4145b5549d9b8734fd3ab536a3ee1b6e --- /dev/null +++ b/scripts/FASTER/extsearchc.m @@ -0,0 +1,54 @@ +function [paths names] = extsearchc(startDir,extension,norecurse) + +% Copyright (C) 2010 Hugh Nolan, Robert Whelan and Richard Reilly, Trinity College Dublin, +% Ireland +% nolanhu@tcd.ie, robert.whelan@tcd.ie +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + if (exist('norecurse','var')~=1) + norecurse=0; + end + [paths names] = dirsearchc(startDir,extension,norecurse); + + function [paths names] = dirsearchc(currDir,searchstring,norecurse) + if nargin < 2 + fprintf('Usage: [paths names] = dirsearch(currDir, searchstring)\n'); + paths = ''; + names = ''; + return; + elseif (exist('norecurse','var')~=1) + norecurse=0; + end + paths = {}; + names = {}; + list_currDir = dir(currDir); + + for u = 1:length(list_currDir) + if (list_currDir(u).isdir==1 && strcmp(list_currDir(u).name,'.')~=1 && strcmp(list_currDir(u).name,'..')~=1 && norecurse==0) + [temppaths tempnames] = dirsearchc(sprintf('%s%s%s',currDir,filesep,list_currDir(u).name),searchstring); + paths = {paths{:} temppaths{:}}; + names = {names{:} tempnames{:}}; + elseif (length(list_currDir(u).name) > 4) + extension = list_currDir(u).name(end-3 : end); + if strcmp(extension, searchstring) == 1 + paths = {paths{:} currDir}; + names = {names{:} list_currDir(u).name}; + end + end + end + + end +end \ No newline at end of file diff --git a/scripts/FASTER/find_relative_path.m b/scripts/FASTER/find_relative_path.m new file mode 100644 index 0000000000000000000000000000000000000000..1c40a00029bd578beaddc2d7e745beb81a2a9f1c --- /dev/null +++ b/scripts/FASTER/find_relative_path.m @@ -0,0 +1,57 @@ + function [relpath pathstring] = find_relative_path(path_1,path_2) + % Outputs the relative path from path_2 to path_1 + % So that path_1 = [path_2 filesep relative_path] + + % If they are the same, there is no change. + if strcmp(path_1,path_2) + relpath=cell(0); + pathstring=path_1; + return; + end + + % The paths must be on the same drive/mount path + x=filesep; + if x=='\' + x='\\'; + end + + Current=textscan(path_1,'%s','Delimiter',x); + Current=Current{1}; + Path1=Current; + Current=textscan(path_2,'%s','Delimiter',x); + Current=Current{1}; + Path2=Current; + for u=1:length(Path2) + if u>length(Path1) || ~strcmp(Path1{u},Path2{u}) + break; + end + end + paths_diverge_at=u; + if paths_diverge_at==1 + error('Paths must contain at least one common directory.'); + end + relpath=cell(0); + for u=length(Path2):-1:paths_diverge_at + relpath{end+1}='..'; + end + for u=paths_diverge_at:length(Path1) + relpath{end+1}=Path1{u}; + end + + pathstring=''; + start_from=1; + tmpath=cd; + for u=1:length(relpath) + pathstring=[pathstring filesep relpath{u}]; + cd([path_2 filesep pathstring]); + if strcmp(cd,path_2) + start_from=u+1; + end + end + if start_from<=length(relpath) + relpath={relpath{start_from:end}}; + else + relpath=cell(0); + end + cd(tmpath); + end \ No newline at end of file diff --git a/scripts/Figure_1B_and_2_Pedaling_Kinematics.m b/scripts/Figure_1B_and_2_Pedaling_Kinematics.m new file mode 100644 index 0000000000000000000000000000000000000000..e82e47297516780199c6d81170ddcbb573a4474d --- /dev/null +++ b/scripts/Figure_1B_and_2_Pedaling_Kinematics.m @@ -0,0 +1,271 @@ +%% Pedaling Kinematics: plot accelerometer signals, speed and peak time +% Speed calculations from accelerometer signals: plot bars and do correlation analysis: with correct Acc values and units + +%% +clear; clc; close all; + +cwd = pwd; + +datalocation = [cwd '\ALL_DATA\ALL_Processed_Data\']; % Data are here +% cd(datalocation); + +[~, ~, SubjInfo] = xlsread([ cwd '\Patients_MS.xlsx'],'AllPedaling'); + +% add matlab codes +addpath(cwd); + +%%% load clinical scores for correlation analysis +[~, ~, groupInfo] = xlsread([ cwd '\Patients_MS.xlsx'],'Ped_Subjs'); + +mVg = 1450; %1450 mV/g; in Brain Vision Amplifier setting with accelerometer + +% % run loop for all data set + +for nn = 1:size(SubjInfo,1) + + type = SubjInfo{nn,1}; + subj = SubjInfo{nn, 2}; + + disp([datalocation, type,num2str(subj),'_Ped_Processed.mat']); + load([datalocation,type,num2str(subj),'_Ped_Processed.mat']); + + %% for ploting RAW ACC traces: Figure 1B + All_Acc_Data.X(:,nn) = double(detrend(mean(EEG.X,2))); + All_Acc_Data.Y(:,nn) = double(detrend(mean(EEG.Y,2))); + All_Acc_Data.Z(:,nn) = double(detrend(mean(EEG.Z,2))); + times = EEG.times; + Fs = EEG.srate; + + %% ########################### Get the Speed of accelerometers data ################################## + + % Look only for 0-2000 ms signal to compute the speed + MainAccTime =EEG.times; + t1 = find(MainAccTime==0); t2 = find(MainAccTime==2000); + + Accdata(1,:,:) = EEG.X(t1:t2,:); + Accdata(2,:,:) = EEG.Y(t1:t2,:); + Accdata(3,:,:) = EEG.Z(t1:t2,:); + AccTime =MainAccTime(t1:t2); + + %%%%%%%%%%%%%% FILTER %%%%%%%%%%%%%%%%%%%%% + dims=size(Accdata); AccdataFil=eegfilt(Accdata,EEG.srate,[],5); AccdataFil=reshape(AccdataFil,dims(1),dims(2),dims(3)); + FlXaccel=squeeze(AccdataFil(1,:,:) ); + FlYaccel=squeeze(AccdataFil(2,:,:) ); + FlZaccel=squeeze(AccdataFil(3,:,:) ); + + %%%%%%%%%%% Detreand Signal + for n = 1:size(FlXaccel, 2) + FlDXaccel(:,n) = detrend(FlXaccel(:,n)); + FlDYaccel(:,n) = detrend(FlYaccel(:,n)); + FlDZaccel(:,n) = detrend(FlZaccel(:,n)); + end + + %%% ################ use iomega function to convert Acc (convert mVtog here) to speed ##################### + dt = 1/EEG.srate; % time increment (units of seconds per sample) + datain_type = 3 ; %'Acceleration'; + dataout_type = 2; %'speed'; + + for ep = 1:size(FlDXaccel,2) + Xvel(:,ep) = iomega(FlDXaccel(:,ep)/mVg, dt, datain_type, dataout_type); + Yvel(:,ep) = iomega(FlDYaccel(:,ep)/mVg, dt, datain_type, dataout_type); + Zvel(:,ep) = iomega(FlDZaccel(:,ep)/mVg, dt, datain_type, dataout_type); + end + + % mean speed of each trial + mXvel = mean(Xvel,2); mYvel = mean(Yvel,2); mZvel = mean(Zvel,2); + % mean of X Y Z signals + AvgVel = mean([mXvel mYvel mZvel],2); + % get the grand mean vel from each time points: overall speed + AvgVelmean = mean(abs(AvgVel)); % to convert m/s + + SubjInfo{nn,3} = AvgVelmean; + clear AvgVelmean; + + %% %% GET peak time here %%% Average of X Y Z signals of Detrend signals + AvgAccXYZ.X = FlDXaccel; + AvgAccXYZ.Y = FlDYaccel; + AvgAccXYZ.Z = FlDZaccel; + + % find peak in each trial: Get the Max Acceleration via finding peak in abs signal + for ep = 1:size(AvgAccXYZ.X,2) + [PKs.X{ep}, LOCs.X{ep}] = findpeaks(abs (AvgAccXYZ.X(:,ep)), EEG.srate,'MinPeakHeight',4); if isempty(LOCs.X{ep}); LOCs.X{ep}=NaN; end % MinPeakHeight=4 in old one + [~, pkid] = max(PKs.X{ep}) ; LCX(ep,1) = LOCs.X{ep}(pkid)*1000; clear pkid % in ms Time to acheive max acceleration + + [PKs.Y{ep}, LOCs.Y{ep}] = findpeaks(abs (AvgAccXYZ.Y(:,ep)), EEG.srate,'MinPeakHeight',4); if isempty(LOCs.Y{ep}); LOCs.Y{ep}=NaN; end + [~, pkid] = max(PKs.Y{ep}); LCY(ep,1) = LOCs.Y{ep}(pkid)*1000; clear pkid % in ms + + [PKs.Z{ep}, LOCs.Z{ep}] = findpeaks(abs (AvgAccXYZ.Z(:,ep)), EEG.srate,'MinPeakHeight',4); if isempty(LOCs.Z{ep}); LOCs.Z{ep}=NaN; end + [~, pkid] = max(PKs.Z{ep}); LCZ(ep,1) = LOCs.Z{ep}(pkid)*1000; clear pkid % in ms + end + + %%% mean of all trails + mLCX = nanmean(LCX) ; + mLCY = nanmean(LCY) ; + mLCZ = nanmean(LCZ) ; + + % get the min time out of 3 axis but more than 100 ms + minPk = sort([mLCX mLCY mLCZ]) ; + mpkid = find(minPk>150); + if isempty(mpkid) + mpkid = find(minPk>100); + end + + SubjInfo{nn,4} = minPk(mpkid(1))/1000; % in SEC + +% close all; + clearvars -except cwd datalocation SubjInfo groupInfo All_Acc_Data times Fs mVg + +end + +%################################################### Fugure 1B ########################################################## +% % plor each subject traces: Supplementray figure 1B: Convert mV to g here +All_Acc_DataFil(1,:,:) = All_Acc_Data.X/mVg; +All_Acc_DataFil(2,:,:) = All_Acc_Data.Y/mVg; +All_Acc_DataFil(3,:,:) = All_Acc_Data.Z/mVg; + +% filter +dims=size(All_Acc_DataFil); All_Acc_DataFil=eegfilt(All_Acc_DataFil,Fs,[],5); All_Acc_DataFil=reshape(All_Acc_DataFil,dims(1),dims(2),dims(3)); + +All_Acc_Data.Xf=squeeze(All_Acc_DataFil(1,:,:) ); +All_Acc_Data.Yf=squeeze(All_Acc_DataFil(2,:,:) ); +All_Acc_Data.Zf=squeeze(All_Acc_DataFil(3,:,:) ); + +CTL_Xacc = All_Acc_Data.Xf(:,1:13); NFZ_Xacc = All_Acc_Data.Xf(:,14:26); FZ_Xacc = All_Acc_Data.Xf(:,27:39); +CTL_Yacc = All_Acc_Data.Yf(:,1:13); NFZ_Yacc = All_Acc_Data.Yf(:,14:26); FZ_Yacc = All_Acc_Data.Yf(:,27:39); +CTL_Zacc = All_Acc_Data.Zf(:,1:13); NFZ_Zacc = All_Acc_Data.Zf(:,14:26); FZ_Zacc = All_Acc_Data.Zf(:,27:39); + +XLIM = [-.5 2.5]; +YLIM = [-.5 .5]; + +figure('rend','painters','pos',[10 10 900 900]); + for n = 1:13 +subplot(331); plot(times/1000, CTL_Xacc(:,n), 'k' ); hold on; title('X-axis'); ylabel('Acceleration (g)'); xlabel('Time (sec)'); xlim(XLIM); ylim(YLIM); legend('Control'); +subplot(332); plot(times/1000, NFZ_Xacc(:,n), 'g' ); hold on; title('X-axis'); ylabel('Acceleration (g)'); xlabel('Time (sec)'); xlim(XLIM); ylim(YLIM); legend('PDFOG-'); +subplot(333); plot(times/1000, FZ_Xacc(:,n), 'r' ); hold on; title('X-axis'); ylabel('Acceleration (g)'); xlabel('Time (sec)'); xlim(XLIM); ylim(YLIM); legend('PDFOG+'); + +subplot(334); plot(times/1000, CTL_Yacc(:,n), 'k' ); hold on; title('Y-axis'); ylabel('Acceleration (g)'); xlabel('Time (sec)'); xlim(XLIM); ylim(YLIM); +subplot(335); plot(times/1000, NFZ_Yacc(:,n), 'g' ); hold on; title('Y-axis'); ylabel('Acceleration (g)'); xlabel('Time (sec)'); xlim(XLIM); ylim(YLIM); +subplot(336); plot(times/1000, FZ_Yacc(:,n), 'r' ); hold on; title('Y-axis'); ylabel('Acceleration (g)'); xlabel('Time (sec)'); xlim(XLIM); ylim(YLIM); + +subplot(337); plot(times/1000, CTL_Zacc(:,n), 'k' ); hold on; title('Z-axis'); ylabel('Acceleration (g)'); xlabel('Time (sec)'); xlim(XLIM); ylim(YLIM); +subplot(338); plot(times/1000, NFZ_Zacc(:,n), 'g' ); hold on; title('Z-axis'); ylabel('Acceleration (g)'); xlabel('Time (sec)'); xlim(XLIM); ylim(YLIM); +subplot(339); plot(times/1000, FZ_Zacc(:,n), 'r' ); hold on; title('Z-axis'); ylabel('Acceleration (g)'); xlabel('Time (sec)'); xlim(XLIM); ylim(YLIM); + +end +suptitle('Figure 1B: Accelerometers Segmented Traces'); + +%% ################################################### Figure 2 ############################################################# +ALL_VEL(:,1) = [SubjInfo{1:13,3}]; +ALL_VEL(:,2) = [SubjInfo{14:26,3}]; +ALL_VEL(:,3) = [SubjInfo{27:39,3}]; + +%%%% group data +nCTL = 13; +nNFZ = 13; +nFZ = 13; + +for nn = 1:nCTL + bandMdVar1{nn,1} = sprintf('%s', 'CTL'); + bandMdVar1{nn,2} =1 ; +end +for nn = nCTL+1: nNFZ+ nNFZ + bandMdVar1{nn,1} = sprintf('%s', 'NFZ'); + bandMdVar1{nn,2}=2; +end + +for nn = nCTL+nNFZ+1:nCTL+nNFZ+nFZ + bandMdVar1{nn,1} = sprintf('%s', 'FZ'); + bandMdVar1{nn,2}=3; +end + +figure; +boxplot( [SubjInfo{:,3}],bandMdVar1(:,1), 'OutlierSize',12); hold on; ylim([0 .018]); +gscatter( cell2mat(bandMdVar1(:,2)) , [SubjInfo{:,3}], bandMdVar1(:,1), 'kgr'); hold off; ylabel('Pedaling speed (g*s)'); +title('Figure 2A: Pedaling Speed (g*s)'); + +% % +% one way ANOVA and ttest2 +[Vp,Vtbl] = anova1(ALL_VEL); +[~,StateVel.VpCTLNFZ,~,~] = ttest2(ALL_VEL(:,1) ,ALL_VEL(:,2) ); +[~,StateVel.VpCTLFZ,~,~] = ttest2(ALL_VEL(:,1) , ALL_VEL(:,3) ); +[~,StateVel.VpNFZFZ] = ttest2(ALL_VEL(:,2) , ALL_VEL(:,3) ); + +% ################################### Time to reach at Peak Acceleration: plot and statistics +% mean peak accelaration: from Axis +Inivar = 4; + +ALL_ACCpk_min(:,1) = [SubjInfo{1:13,Inivar}]; % in sec +ALL_ACCpk_min(:,2) = [SubjInfo{14:26,Inivar}]; +ALL_ACCpk_min(:,3) = [SubjInfo{27:39,Inivar}]; + +GImlen = sqrt(size(ALL_ACCpk_min,1)); + +figure; +boxplot( [SubjInfo{:,Inivar}],bandMdVar1(:,1), 'OutlierSize',12); hold on; +gscatter( cell2mat(bandMdVar1(:,2)) , [SubjInfo{:,Inivar}], bandMdVar1(:,1), 'kgr'); hold off; ylabel('Peak Time (sec)'); ylim([0.7 1.4]); +title('Figure 2B: Peak time (s)'); + +% One way ANOVA and ttest2 +[gi1p,gi1tbl] = anova1(ALL_ACCpk_min); +[~,StateGI.pCTLNFZ,~,~] = ttest2(ALL_ACCpk_min(:,1) ,ALL_ACCpk_min(:,2) ); +[~,StateGI.pCTLFZ,~,~] = ttest2(ALL_ACCpk_min(:,1) ,ALL_ACCpk_min(:,3) ); +[~,StateGI.pNFZFZ] = ttest2(ALL_ACCpk_min(:,2) ,ALL_ACCpk_min(:,3) ); + + +%% Correlation between Speed and Iniation time with clinical scores +% close all; +clearvars -except SubjInfo groupInfo All_Acc_Data ALL_VEL ALL_ACCpk_min bandMdVar1; +clc; + +%%% Do grouping +groupIDs = cell2mat(groupInfo(2:end,2:end) ); +idx1 = find(groupIDs(:,1)==1); idx2 = find(groupIDs(:,1)==2); idx3 = find(groupIDs(:,1)==3); +CTLids = groupIDs(idx1,:); +NFZids = groupIDs(idx2,:); +FZids = groupIDs(idx3,:); + +MOCA = groupIDs([idx2; idx3],3); +FOG = groupIDs([idx2; idx3],4); +UPDRS = groupIDs([idx2; idx3],5); + +Clinical_Score = [MOCA FOG UPDRS ]; + +Vel_PD = [ALL_VEL(:,2); ALL_VEL(:,3)]; % only for PDs +maxAcc_PD = [ALL_ACCpk_min(:,2); ALL_ACCpk_min(:,3)]; % only for PDs + +Vel_mAcc_PD = [Vel_PD maxAcc_PD]; % time in sec + +% save Kinematics_results.mat ALL_VEL ALL_ACCpk_min + +% % +corrType = 'Spearman'; + + +for var = 1:2 + figure('rend','painters','pos',[10 10 400 900]); + % with FOG scores + subplot(311); SS = plot( FOG, Vel_mAcc_PD(:,var), 'k+');hold on; + [R1,P1] = corr( FOG, Vel_mAcc_PD(:,var),'type',corrType); set(SS, 'MarkerSize', 8, 'LineWidth', 2); l = lsline ; set(l,'LineWidth', 2); hold off; + xlabel('FOG Score', 'FontSize', 10); set(gca, 'FontSize', 10, 'YMinorTick','on','XMinorTick','on'); + title(['\color{black} rho=' num2str(R1,'%10.1f'),'; P=' num2str(P1,'%10.2f')]); clear SS R1 P1 l; xlim([min(FOG)-1 max(FOG)+1]); + + % with UPDRS III + subplot(312); SS = plot( UPDRS, Vel_mAcc_PD(:,var), 'k+');hold on; + [R2,P2] = corr( UPDRS, Vel_mAcc_PD(:,var),'type',corrType); set(SS, 'MarkerSize', 8, 'LineWidth', 2); l = lsline ; set(l,'LineWidth', 2); hold off; + xlabel('UPDRS III Score', 'FontSize', 10); set(gca, 'FontSize', 10, 'YMinorTick','on','XMinorTick','on'); + title(['\color{black} rho=' num2str(R2,'%10.1f'),'; P=' num2str(P2,'%10.2f')]); clear SS R2 P2 l; xlim([min(UPDRS)-1 max(UPDRS)+1]); + + % with MOCA + subplot(313); SS = plot( MOCA, Vel_mAcc_PD(:,var), 'k+');hold on; + [R3,P3] = corr( MOCA, Vel_mAcc_PD(:,var),'type',corrType); set(SS, 'MarkerSize', 8, 'LineWidth', 2); l = lsline ; set(l,'LineWidth', 2); hold off; + xlabel('MOCA Score', 'FontSize', 10); set(gca, 'FontSize', 10, 'YMinorTick','on','XMinorTick','on'); + title(['\color{black} rho=' num2str(R3,'%10.1f'),'; P=' num2str(P3,'%10.2f')]); clear SS R3 P3 l; xlim([min(MOCA)-1 max(MOCA)+1]); + + + if var ==1 + suptitle('Figure 2A: Correlation against Speed (m/s)') + elseif var ==2 + suptitle('Figure 2B: Correlation against Peak time (s) ') + end + +end diff --git a/scripts/Figure_1C_Clinical_Corr_Plots.m b/scripts/Figure_1C_Clinical_Corr_Plots.m new file mode 100644 index 0000000000000000000000000000000000000000..a45aa93935c911f1dac4aac9968c2a89a39990cd --- /dev/null +++ b/scripts/Figure_1C_Clinical_Corr_Plots.m @@ -0,0 +1,62 @@ +%% Correlation Analysis with Motor to Cognitive Scores +close all; clc; clear; + +cwd = pwd; +addpath(cwd); + +% % load clinical scores for correlation analysis +[~, ~, groupInfo] = xlsread([ cwd '\Patients_MS.xlsx'],'All_Corr'); + +groupDATA = cell2mat(groupInfo(2:end,1:end) ); +variables = groupInfo(1,:)' ; + +% % % correlation Type +corrType = 'Spearman'; + +DD = groupDATA(:,3); +UPDRSIII = groupDATA(:,4) ; +FOG = groupDATA(:,5); +MOCA = groupDATA(:,6); + +%% Correlation only with FOG Scores: Figure 2A and 2B + +figure('rend','painters','pos',[10 10 1200 400]); +% with UPDRS III +subplot(131); SS = plot( FOG, UPDRSIII, 'k+');hold on; +[R,P] = corr( FOG, UPDRSIII,'type',corrType); set(SS, 'MarkerSize', 8, 'LineWidth', 2); l = lsline ; set(l,'LineWidth', 2); hold off; +ylabel('UPDRS III', 'FontSize', 10); set(gca, 'FontSize', 10, 'YMinorTick','on','XMinorTick','on'); xlabel('FOG Score', 'FontSize', 10); +title(['\color{black} R=' num2str(R,'%10.3f'),'; P=' num2str(P,'%10.3f')]); clear SS R P l; xlim([min(FOG)-1 max(FOG)+1]); + +% % with MOCA +subplot(132); SS = plot( FOG, MOCA, 'k+');hold on; +[R,P] = corr( FOG, MOCA,'type',corrType); set(SS, 'MarkerSize', 8, 'LineWidth', 2); l = lsline ; set(l,'LineWidth', 2); hold off; +ylabel('MOCA Score', 'FontSize', 10); set(gca, 'FontSize', 10, 'YMinorTick','on','XMinorTick','on'); xlabel('FOG Score', 'FontSize', 10); +title(['\color{black} R=' num2str(R,'%10.3f'),'; P=' num2str(P,'%10.3f')]); clear SS R P l; xlim([min(FOG)-1 max(FOG)+1]); ylim([0 30]); + +% % with MOCA +subplot(133); SS = plot( FOG, DD, 'k+');hold on; +[R,P] = corr( FOG, DD,'type',corrType); set(SS, 'MarkerSize', 8, 'LineWidth', 2); l = lsline ; set(l,'LineWidth', 2); hold off; +set(gca, 'FontSize', 10, 'YMinorTick','on','XMinorTick','on'); +title(['\color{black} R=' num2str(R,'%10.3f'),'; P=' num2str(P,'%10.3f')]); clear SS R P l; +ylabel('Disease duration (years)'); +xlabel('FOG Score'); xlim([min(FOG)-1 max(FOG)+1]); ylim([0 15]); + +suptitle('Figure 1C'); + +%%%%%%%%%%%%%%% results related to manuscripts %%%%%%%%%%%%%%%%%%%%%%%%%% +figure; SS = plot( MOCA, DD, 'k+');hold on; +[R,P] = corr( MOCA, DD,'type',corrType); set(SS, 'MarkerSize', 8, 'LineWidth', 2); l = lsline ; set(l,'LineWidth', 2); hold off; +set(gca, 'FontSize', 10, 'YMinorTick','on','XMinorTick','on'); +title(['\color{black} R=' num2str(R,'%10.3f'),'; P=' num2str(P,'%10.3f')]); clear SS R P l; +ylabel('Disease duration (years)'); +xlabel('MOCA Score'); ylim([0 15]); + + +%% %%% Statistics: partial correlation between 2 variables while 3rd one is control: Linear or rank partial correlation coefficients +%%%%%%% 3 factors only: with DD +patcor2 = [DD FOG MOCA]; +[rho2,pval2] = partialcorr(patcor2, 'type',corrType); + +rho2 = array2table(rho2, 'VariableNames',{'DD','FOG','MOCA'}, 'RowNames',{'DD','FOG','MOCA'}); +pval2 = array2table(pval2, 'VariableNames',{'DD','FOG','MOCA'}, 'RowNames',{'DD','FOG','MOCA'}); + diff --git a/scripts/Figure_3_and_4.m b/scripts/Figure_3_and_4.m new file mode 100644 index 0000000000000000000000000000000000000000..a32ddde6f505070589041e083d372550025194bd --- /dev/null +++ b/scripts/Figure_3_and_4.m @@ -0,0 +1,270 @@ +%% Plot Figure 3 and 4: Step 3: Plot Time-Frequnecy Results and tf-ROIs bar plots and Correlation Analysis +clear; clc; close all; + +cwd = pwd; +addpath(cwd); + +datalocation = [cwd '\ALL_DATA\ALL_Processed_Data\']; % Data are here +% cd(datalocation); + +% % sort all subject groups +[~, ~, groupTable] = xlsread([ cwd '\Patients_MS.xlsx'],'ALL_GROUP'); +groupIDs = cell2mat(groupTable(2:end,:) ); + +% % load clinical scores for correlation analysis +[~, ~, groupInfo] = xlsread([ cwd '\Patients_MS.xlsx'],'Ped_Subjs'); + +CTLids = groupIDs(:,1); CTLids (isnan(CTLids)) = []; +PD_NFZids = groupIDs(:,2); PD_NFZids(isnan(PD_NFZids)) = []; +PD_FZids = groupIDs(:,3); PD_FZids(isnan(PD_FZids)) = []; +clear groupIDs + +% % Import all analysis results here to plot +% #################### CONTROLS ##################################### +for n = 1:length(CTLids) + + disp([datalocation,'Control',num2str(CTLids(n)),'_ANALYZED.mat']); + load([datalocation,'Control',num2str(CTLids(n)),'_ANALYZED.mat']); + + CTL.POWER(n,:,:,:,:) = MainOuts.POWER; + clear MainOuts +end + +% % #################### PD NON-FREEZERS ############################# +for n = 1:length(PD_NFZids) + disp([datalocation,'PD',num2str(PD_NFZids(n)),'_ANALYZED.mat']); + load([datalocation,'PD',num2str(PD_NFZids(n)),'_ANALYZED.mat']); + + NFZ.POWER(n,:,:,:,:) = MainOuts.POWER; + clear MainOuts +end + +% % #################### PD FREEZERS ################################# +for n = 1:length(PD_FZids) + disp([datalocation,'PD',num2str(PD_FZids(n)),'_ANALYZED.mat']); + load([datalocation,'PD',num2str(PD_FZids(n)),'_ANALYZED.mat']); + + FZ.POWER(n,:,:,:,:) = MainOuts.POWER; + clear MainOuts +end + + +%% Time-FREQUENCY POWER +tx2disp=-500:2:2000; +XLIM = [-500 2000]; + +min_freq = 1.0233; max_freq = 50; num_freqs=50; +frex = logspace(log10(min_freq),log10(max_freq),num_freqs); + +CONDI = 1; % 1=GO cue; +CHANI(1) = find(strcmpi('Cz',{chanlocs.labels})); + +% % %%%%%% POWER +% % % POWER Statistics: NFZ-CTL and FZ-CTL +YLIM = [1 50]; + + +figure('rend','painters','pos',[10 10 1000 600]) +ch=1; +CTLPOWER = CTL.POWER(:,CHANI(ch),:,:,CONDI); +NFZPOWER = NFZ.POWER(:,CHANI(ch),:,:,CONDI); +FZPOWER = FZ. POWER(:,CHANI(ch),:,:,CONDI); + +%%%% TF plots +clim = [-6 6]; +subplot(2,3,1); imagesc(tx2disp,[], squeeze(mean(CTLPOWER,1)) ); axis xy; hold on; colormap jet; +plot([0 0],YLIM,'k:'); title('Controls (CTL)'); set(gca,'xlim',XLIM,'ylim',YLIM,'clim',clim,'YTick',1:4:length(frex),'YTickLabel',round(frex(1:4:end))); colorbar + +subplot(2,3,2); imagesc(tx2disp,[], squeeze(mean(NFZPOWER,1)) ); axis xy; hold on; colormap jet; +plot([0 0],YLIM,'k:'); title('PDFOG- (NFZ)'); set(gca,'xlim',XLIM,'ylim',YLIM,'clim',clim,'YTick',1:4:length(frex),'YTickLabel',round(frex(1:4:end)));colorbar + +subplot(2,3,3); imagesc(tx2disp,[], squeeze(mean(FZPOWER,1)) ); axis xy; hold on; colormap jet; +plot([0 0],YLIM,'k:'); title('PDFOG+ (FZ)'); set(gca,'xlim',XLIM,'ylim',YLIM,'clim',clim,'YTick',1:4:length(frex),'YTickLabel',round(frex(1:4:end)));colorbar + +%%%% TF with ttest2: runthreshold2 +clim = [-3 3]; +subplot(2,3,4); imagesc(tx2disp,[], squeeze(mean(NFZPOWER,1)) - squeeze(mean(CTLPOWER,1)) ); axis xy; hold on; colormap jet; +[Corrected_P] = Run_Thresh_2D_AS(squeeze(NFZPOWER) , squeeze(CTLPOWER),'between'); +contour(tx2disp,1:50,Corrected_P,'k','linewidth',2); clear thresh ; plot([0 0],YLIM,'k:'); title('NFZ-CTL'); set(gca,'xlim',XLIM,'ylim',YLIM,'clim',clim,'YTick',1:4:length(frex),'YTickLabel',round(frex(1:4:end))); colorbar +clear Corrected_P + +subplot(2,3,5); imagesc(tx2disp,[], squeeze(mean(FZPOWER,1)) - squeeze(mean(CTLPOWER,1)) ); axis xy; hold on; colormap jet; +[Corrected_P] = Run_Thresh_2D_AS( squeeze(FZPOWER) , squeeze(CTLPOWER),'between'); +contour(tx2disp,1:50,Corrected_P,'k','linewidth',2); clear thresh ; plot([0 0],YLIM,'k:'); title('FZ-CTL');set(gca,'xlim',XLIM,'ylim',YLIM,'clim',clim,'YTick',1:4:length(frex),'YTickLabel',round(frex(1:4:end)));colorbar +clear Corrected_P + +subplot(2,3,6); imagesc(tx2disp,[], squeeze(mean(FZPOWER,1)) - squeeze(mean(NFZPOWER,1)) ); axis xy; hold on; colormap jet; +[Corrected_P] = Run_Thresh_2D_AS( squeeze(FZPOWER) , squeeze(NFZPOWER),'between'); +contour(tx2disp,1:50,Corrected_P,'k','linewidth',2); clear thresh ; plot([0 0],YLIM,'k:'); title('FZ-NFZ');set(gca,'xlim',XLIM,'ylim',YLIM,'clim',clim,'YTick',1:4:length(frex),'YTickLabel',round(frex(1:4:end)));colorbar +clear Corrected_P + +clear CTLPOWER NFZPOWER FZPOWER + +suptitle ('Figure 3A and 3B : Cz: GoCue-locked POWER Difference'); + +%% % Save power values for frequency bands values for correlation analysis +ExpPOWER.CTL{ch} = CTL.POWER(:,CHANI(ch),:,:,CONDI); +ExpPOWER.NFZ{ch} = NFZ.POWER(:,CHANI(ch),:,:,CONDI); +ExpPOWER.FZ{ch} = FZ. POWER(:,CHANI(ch),:,:,CONDI); + +ExpPOWER.groups = groupTable; +% % save POW_CTLNFZFZ_Subjs.mat ExpPOWER % save for correlation analysis + +% % %%%% Define: Delta and Beta for pedaling Initiation +SubjIDs = cell2mat(ExpPOWER.groups(2:end,:) ); +ch = 1; + +% Theta Frequnecy band: pedaling Initiation +fqidx1 = max(find(frex <=3.5) ) ; fqidx2 = max(find(frex <=7.5) ); +tmidx1 = find(round(tx2disp)==0); tmidx2 = find(round(tx2disp)==400); + +% Beta Frequnecy band: pedaling execution +fqidx3 = max(find(frex <=12.5) ); fqidx4 = max(find(frex <=30) ); +tmidx3 = find(round(tx2disp)==400); tmidx4 = find(round(tx2disp)==2000); + +% pedaling Initiation (0-400 ms) +powCTL_GI.Te(:,ch) = squeeze(mean(mean(ExpPOWER.CTL{ch}(:,:,fqidx1:fqidx2,tmidx1:tmidx2),3),4 )); powCTL_GI.Be(:,ch) = squeeze(mean(mean(ExpPOWER.CTL{ch}(:,:,fqidx3:fqidx4,tmidx1:tmidx2),3),4 )); +powNFZ_GI.Te(:,ch) = squeeze(mean(mean(ExpPOWER.NFZ{ch}(:,:,fqidx1:fqidx2,tmidx1:tmidx2),3),4 )); powNFZ_GI.Be(:,ch) = squeeze(mean(mean(ExpPOWER.NFZ{ch}(:,:,fqidx3:fqidx4,tmidx1:tmidx2),3),4 )); +powFZ_GI.Te(:,ch) = squeeze(mean(mean(ExpPOWER.FZ{ch} (:,:,fqidx1:fqidx2,tmidx1:tmidx2),3),4 )); powFZ_GI.Be(:,ch) = squeeze(mean(mean(ExpPOWER.FZ{ch} (:,:,fqidx3:fqidx4,tmidx1:tmidx2),3),4 )); + +powCTL_GI.Te(:,2) = SubjIDs(:,1); powCTL_GI.Be(:,2) = SubjIDs(:,1); +powNFZ_GI.Te(:,2) = SubjIDs(:,2); powNFZ_GI.Be(:,2) = SubjIDs(:,2); +powFZ_GI.Te(:,2) = SubjIDs(:,3); powFZ_GI.Be(:,2) = SubjIDs(:,3); + +%%% pedaling (0-2000 ms) +powCTL_ped.Te(:,ch) = squeeze(mean(mean(ExpPOWER.CTL{ch}(:,:,fqidx1:fqidx2,tmidx1:tmidx4),3),4 )); powCTL_ped.Be(:,ch) = squeeze(mean(mean(ExpPOWER.CTL{ch}(:,:,fqidx3:fqidx4,tmidx1:tmidx4),3),4 )); +powNFZ_ped.Te(:,ch) = squeeze(mean(mean(ExpPOWER.NFZ{ch}(:,:,fqidx1:fqidx2,tmidx1:tmidx4),3),4 )); powNFZ_ped.Be(:,ch) = squeeze(mean(mean(ExpPOWER.NFZ{ch}(:,:,fqidx3:fqidx4,tmidx1:tmidx4),3),4 )); +powFZ_ped.Te(:,ch) = squeeze(mean(mean(ExpPOWER.FZ{ch} (:,:,fqidx1:fqidx2,tmidx1:tmidx4),3),4 )); powFZ_ped.Be(:,ch) = squeeze(mean(mean(ExpPOWER.FZ{ch} (:,:,fqidx3:fqidx4,tmidx1:tmidx4),3),4 )); + +powCTL_ped.Te(:,2) = SubjIDs(:,1); powCTL_ped.Be(:,2) = SubjIDs(:,1); +powNFZ_ped.Te(:,2) = SubjIDs(:,2); powNFZ_ped.Be(:,2) = SubjIDs(:,2); +powFZ_ped.Te(:,2) = SubjIDs(:,3); powFZ_ped.Be(:,2) = SubjIDs(:,3); + +% % Topo plots +figure('rend','painters','pos',[10 10 800 500]) +pvl = 0.01; + +[~,P,~,~]= ttest2( mean(mean(FZ.POWER(:,:,fqidx1:fqidx2,tmidx1:tmidx2,CONDI,1),3),4), mean(mean(CTL.POWER(:,:,fqidx1:fqidx2,tmidx1:tmidx2,CONDI,1),3),4) ); +P(P>=pvl)=NaN; P(P=pvl)=NaN; P(P=pvl)=NaN; P(P=pvl)=NaN; P(P.05)=0; P(isnan(P))=1; + + P=squeeze(P); STATS.tstat=squeeze(STATS.tstat); + l=bwlabel(P); + dims=size(P); + lmax=max(reshape(l,1,dims(1)*dims(2))); + if lmax>0 + for ei=1:lmax + [row,col] = find(l == ei); + for clusti=1:size(row,1); + temp(clusti) = abs(STATS.tstat(row(clusti),col(clusti))); + end + tempthresh(ei) = sum(temp); clear temp; + end + THRESH(shuffi) = max(tempthresh); + clear row col tempthresh ; + else + THRESH(shuffi) = 0; + end + clear H CI P STATS temp* A B idx l dims lmax; + +end +THRESH=sort(THRESH); +ThisThreshold=THRESH(end-SHUFFLES*.05); + +% NOW Run 1D size of effects +if strmatch(ttesttype,'between') + [H,P,CI,STATS]=ttest2(TEMP1,TEMP2); +elseif strmatch(ttesttype,'within') + [H,P,CI,STATS]=ttest(TEMP1,TEMP2); +end +P(P<=.05)=NaN; P(P>.05)=0; P(isnan(P))=1; + +Corrected_P=zeros(tffpoints,tfPpoints); +P=squeeze(P); STATS.tstat=squeeze(STATS.tstat); +l=bwlabel(P); +dims=size(P); +lmax=max(reshape(l,1,dims(1)*dims(2))); +if lmax>0 + for ei=1:lmax + [row,col] = find(l == ei); + for clusti=1:size(row,1); + temp(clusti) = abs(STATS.tstat(row(clusti),col(clusti))); + end + if sum(temp) > ThisThreshold; + for clusti=1:size(row,1); + Corrected_P(row(clusti),col(clusti))=1; + end + end + clear temp row col; + end +end +clear H CI P STATS temp* A B idx l dims lmax; + +clear THRESH ThisThreshold + diff --git a/scripts/Step1_EEG_Pedaling_PreProcess.m b/scripts/Step1_EEG_Pedaling_PreProcess.m new file mode 100644 index 0000000000000000000000000000000000000000..ca8af3e66e391cc26b27f1e0bd1a931a419b1819 --- /dev/null +++ b/scripts/Step1_EEG_Pedaling_PreProcess.m @@ -0,0 +1,107 @@ +%% Rest data preprocessing step.. +%%%%%%%%%%%%%%% About Markers %%%%%%%%%%%%%%%%%%%% +% S 1 = Warning Cue +% S 2 = GO Cue +% get the EEGLAB and have Brain Vision import addon +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Ref is Pz and Fs = 500 Hz +clear; clc; close all; + +cwd = pwd; +addpath(cwd); + +datalocation= [cwd '\ALL_DATA\RAW_DATA\']; % Data are here + +%%% load subject and Behaviour info from the excel sheet +[~, ~, SubjInfo] = xlsread([cwd '\Patients_MS.xlsx'],'AllPedaling'); + +savelocation= [cwd '\ALL_DATA\ALL_Processed_Data\']; % Data go here +cd(savelocation); + +% add eeglab to the path +p = genpath('eeglab13_4_4b'); addpath(p); + +%% +for nn = 1:size(SubjInfo,1) + + type = SubjInfo{nn,1}; + subj = SubjInfo{nn, 2}; + + disp([type,num2str(subj)]); + EEG = pop_loadbv(datalocation,[type,num2str(subj),'.vhdr'], [], []); + + % Edit the event code + del = 0; + for b = 1:size(EEG.event,2) + if strcmp(EEG.event(b-del).type, 'boundary') + EEG.event(b-del) = []; del = del+1; + end + end + % get the time difference: S1 ---> S2 + TimeDiff = (diff([EEG.event.latency])/EEG.srate)'; TimeDiff = ([0; TimeDiff]); + for b = 1:size(EEG.event,2); EEG.event(b).TimeDiff = TimeDiff(b); end + + % Epoch data on the basis of GO cue + EEG = pop_epoch( EEG, { 'S 2' }, [-1 3], 'epochinfo', 'yes'); + EEG = eeg_checkset( EEG ); + + %% Remove X,Y,Z accelerometer channels + if EEG.nbchan>63 + EEG.X=squeeze(EEG.data(64,:,:)); + EEG.Y=squeeze(EEG.data(65,:,:)); + EEG.Z=squeeze(EEG.data(66,:,:)); + EEG.data=EEG.data(1:63,:,:); + EEG.nbchan=63; + EEG.chanlocs(66)=[]; EEG.chanlocs(65)=[]; EEG.chanlocs(64)=[]; + end + + % Fix BV-specific issue - - - only needed for APPLE + for ai=1:size(EEG.urevent,2), EEG.urevent(ai).bvtime=EEG.urevent(ai).bvmknum; end + for ai=1:size(EEG.event,2), EEG.event(ai).bvtime=EEG.event(ai).bvmknum; end + for ai=1:size(EEG.epoch,2), EEG.epoch(ai).eventbvtime=EEG.epoch(ai).eventbvmknum; end + + % Add Pz which is Ref + EEG = pop_chanedit(EEG,'append',63,'changefield',{64 'labels' 'Pz'}); + % EEG = pop_chanedit(EEG,'lookup', locpath); %%%% if loading channels location then use this + + % Re-Ref to Average Ref and recover Pz + EEG = pop_reref(EEG,[],'refloc',struct('labels',{'Pz'},'type',{''},'theta',{180},'radius',{0.2535},'X',{-60.7385},'Y',{-7.4383e-15},'Z',{59.4629},... + 'sph_theta',{-180},'sph_phi',{44.3920},'sph_radius',{85},'urchan',{64},'ref',{''}),'keepref','on'); + + + % Remove 1=Fp1 and 31=Fp2: Eye blink and artifacts; 26=FT10, 10=TP9 and 20=TP10: Ear muscle artifacts: Since Pz has been reconstructed from the total + EEG.data = EEG.data([2:9, 11:19, 21:25, 27:30, 32:64],:,:); + EEG.nbchan=59; + EEG.chanlocs(31)=[]; EEG.chanlocs(26)=[]; EEG.chanlocs(20)=[]; EEG.chanlocs(10)=[]; EEG.chanlocs(1)=[]; % Have to be in this order! It will delete channel locs + + % Should probably re-ref to average again now that the contaminated channels are gone + EEG = pop_reref(EEG,[]); + % Remove mean + EEG = pop_rmbase(EEG,[],[]); + + + %% ---------------------- + % Setup APPLE to interp chans, reject epochs, & ID bad ICs. Output will be Avg ref'd and ICA'd. + subno = subj; + VEOG = 0; + session = 1; + TASK = ['Ped_',type]; + + EEG_chans=1:EEG.nbchan; + Do_ICA=1; + Reref = 'FCz'; % Re-Ref to FCz [THIS IS FOR FASTER, which is a part of APPLE] + chanidx = find(strcmpi(Reref,{EEG.chanlocs.labels})); + ref_chan=chanidx; + + EEG = pop_reref(EEG,ref_chan,'keepref','on'); + + % Run APPLE (will re-ref data to avg ref) + [EEG,bad_chans,bad_epochs,bad_ICAs]=APPLE_ActiveCap_v2(EEG,EEG_chans,ref_chan,Do_ICA,subno,VEOG,session,TASK); + + %%% Save + save([savelocation,type,num2str(subj),'_Ped_Processed.mat'],'EEG','bad_chans','bad_epochs','bad_ICAs'); + + %%% for loop + clearvars -except datalocation savelocation SubjInfo + +end \ No newline at end of file diff --git a/scripts/Step2_EEG_Pedaling_PostProcess.m b/scripts/Step2_EEG_Pedaling_PostProcess.m new file mode 100644 index 0000000000000000000000000000000000000000..e26a6fd7bb7a4a3c318314e5dd2cf5894aece350 --- /dev/null +++ b/scripts/Step2_EEG_Pedaling_PostProcess.m @@ -0,0 +1,133 @@ +%% EEG GO during Response task: TASK Post-processing: for Time-Frequency ananlysis +%%% DATA was Segmented from the GO +% Get the directories for pre-processed EEG file folder +clear; clc; close all; + +cwd = pwd; +addpath(cwd); + +datalocation = [cwd '\ALL_DATA\ALL_Processed_Data\']; % Data are here +savelocation = [cwd '\ALL_DATA\ALL_Processed_Data\']; % Data save here +cd(datalocation); + +[~, ~, SubjInfo] = xlsread([ cwd '\Patients_MS.xlsx'],'AllPedaling'); + + +%% +for nn = 1: 2%size(SubjInfo,1) + + type = SubjInfo{nn,1}; + subj = SubjInfo{nn, 2}; + + disp([type,num2str(subj),'_Ped_Processed.mat']); + load([type,num2str(subj),'_Ped_Processed.mat']); + + %Get Subj Info and remove the bad ICAs on the basis of VEOG correlation + %Bad ICAS 1,2,3 are ADJUST, VEOG correlation, and Gaussian template. + %ADJUST is a stand-alone program that isn't very good. + %VEOG correlation is the most reliable and the gaussian template can be useful. + %APPLE VEOG corr is RESP about 85% of teh time. + + % % Get the data here and remove bad ICAs: VEOG and TEMPLATE + temp1a = cell2mat(bad_ICAs(2)); % 2 = bad_VEOG_ICAs + temp1b = cell2mat(bad_ICAs(3)); % 3 = Bad TEMPLATE ICAs + temp1 = [temp1a temp1b]; + tpidx = find (temp1==0); + temp1(tpidx)=[]; + + if isempty(temp1) + temp1 = 'NaN'; + end + + if isnumeric(temp1) + bad_ICAs_To_Remove=temp1; + elseif strmatch('NaN',temp1) + bad_ICAs_To_Remove=NaN; + else + bad_ICAs_To_Remove=str2num(temp1); + end + clear temp1a temp1b temp1 tpidx; + + %%% Remove the (presumptive) bad ICAs: + if ~(isnan(bad_ICAs_To_Remove)) + EEG = pop_subcomp( EEG, bad_ICAs_To_Remove, 0); + end + clear bad_ICAs_To_Remove bad_chans bad_epochs bad_ICAs + + + %% ################################### TIME FREQUENCY ANALYSIS %% ######################################################## + + % Set Times + tx=EEG.times; + b1=find(tx==-300); b2=find(tx==-100); %% Baseline + t1=find(tx==-500); t2=find(tx==2000); + tx2disp=-500:2:2000; + + %%%%%%%%%%%%%%%%%%% Setup Wavelet Params %%%%%%%%%%%%%%%%%%%%%%%%%%%% + min_freq = 1.0233; + max_freq = 50; + num_freqs=50; + + %%%%% logspace + frex = logspace(log10(min_freq),log10(max_freq),num_freqs); + s=logspace(log10(3),log10(10),num_freqs)./(2*pi*frex); + + %%%% timelength of the wavelet + t=-2:1/EEG.srate:2; + + % Definte Convolution Parameters + n_wavelet = length(t); half_of_wavelet_size = (n_wavelet-1)/2; clear dims + % -------- GO + dims{1} = size(EEG.data); n_data{1} = dims{1}(2)*dims{1}(3); n_convolution{1} = n_wavelet+n_data{1}-1; n_conv_pow2{1} = pow2(nextpow2(n_convolution{1})); + + %%% decide channels + channels = EEG.nbchan; + for chani = 1:channels + % get FFT of data + EEG_fft{1} = fft(reshape(EEG.data (chani,:,:),1,n_data{1}),n_conv_pow2{1}); + + for fi=1:num_freqs + wavelet{1} = fft( exp(2*1i*pi*frex(fi).*t) .* exp(-t.^2./(2*(s(fi)^2))) , n_conv_pow2{1} ); + + % convolution for 1 data set + for convo=1 + EEG_conv = ifft(wavelet{convo}.*EEG_fft{convo}); + EEG_conv = EEG_conv(1:n_convolution{convo}); + EEG_conv = EEG_conv(half_of_wavelet_size+1:end-half_of_wavelet_size); + EEG_multi_conv{convo} = reshape(EEG_conv,dims{convo}(2),dims{convo}(3)); clear EEG_conv; + temp_POWER{convo} = abs(EEG_multi_conv{convo}(t1:t2,:)).^2; + end + + % Baseline {1} + BASE = mean(mean(abs( EEG_multi_conv{1}(b1:b2,:)).^2)); + + temp_POWER_avg(:,1) = mean(temp_POWER{1}(:,:),2); % GO + + % dB correct power by base + % WARNING CUE; GO/GO Cue; RESPONSE + POWER(chani,fi,:,1) = 10*( log10(temp_POWER_avg(:,1)) - log10(repmat(BASE,size(temp_POWER_avg(:,1),1),1)) ); % GO + clear temp* EEG_multi_conv wavelet BASE1 BASE2; + end + clear *_fft; + end + + % plot figure +% ChanCz = find(strcmpi('Cz',{EEG.chanlocs.labels})); +% yfreq = 50; +% +% imagesc(tx2disp,[], squeeze( POWER(ChanCz,:,:,1))); axis xy; hold on; plot([0 0],[1 yfreq],'k:'); +% set(gca,'xlim',[tx2disp(1),tx2disp(end)],'ylim',[1 50],'clim',[-4 4],'YTick',1:4:length(frex),'YTickLabel',round(frex(1:4:end))); title('Cz: POWER'); +% suptitle([type,num2str(subj)]); +% saveas(gcf, [savelocation, type,num2str(subj),'_ANALYZED.png']); + + %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SAVE DATA %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + chanlocs = EEG.chanlocs; + MainOuts.POWER = POWER; + + save([savelocation, type,num2str(subj),'_ANALYZED.mat'],'MainOuts','chanlocs' ); + + %% Clear everything except some variables to run loop + close all; + clearvars -except datalocation savelocation SubjInfo + +end diff --git a/scripts/iomega.m b/scripts/iomega.m new file mode 100644 index 0000000000000000000000000000000000000000..feb65b1cf4fc7b244670e4ab19955f06580cf93e --- /dev/null +++ b/scripts/iomega.m @@ -0,0 +1,83 @@ +function dataout = iomega(datain, dt, datain_type, dataout_type) +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% IOMEGA is a MATLAB script for converting displacement, velocity, or +% acceleration time-series to either displacement, velocity, or +% acceleration times-series. The script takes an array of waveform data +% (datain), transforms into the frequency-domain in order to more easily +% convert into desired output form, and then converts back into the time +% domain resulting in output (dataout) that is converted into the desired +% form. +% +% Variables: +% ---------- +% +% datain = input waveform data of type datain_type +% +% dataout = output waveform data of type dataout_type +% +% dt = time increment (units of seconds per sample) +% +% 1 - Displacement +% datain_type = 2 - Velocity +% 3 - Acceleration +% +% 1 - Displacement +% dataout_type = 2 - Velocity +% 3 - Acceleration +% +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Make sure that datain_type and dataout_type are either 1, 2 or 3 + if (datain_type < 1 || datain_type > 3) + error('Value for datain_type must be a 1, 2 or 3'); + elseif (dataout_type < 1 || dataout_type > 3) + error('Value for dataout_type must be a 1, 2 or 3'); + end + % Determine Number of points (next power of 2), frequency increment + % and Nyquist frequency + N = 2^nextpow2(max(size(datain))); + df = 1/(N*dt); + Nyq = 1/(2*dt); + % Save frequency array + iomega_array = 1i*2*pi*(-Nyq : df : Nyq-df); + iomega_exp = dataout_type - datain_type; + % Pad datain array with zeros (if needed) + size1 = size(datain,1); + size2 = size(datain,2); + if (N-size1 ~= 0 && N-size2 ~= 0) + if size1 > size2 + datain = vertcat(datain,zeros(N-size1,1)); + else + datain = horzcat(datain,zeros(1,N-size2)); + end + end + % Transform datain into frequency domain via FFT and shift output (A) + % so that zero-frequency amplitude is in the middle of the array + % (instead of the beginning) + A = fft(datain); + A = fftshift(A); + % Convert datain of type datain_type to type dataout_type + for j = 1 : N + if iomega_array(j) ~= 0 + A(j) = A(j) * (iomega_array(j) ^ iomega_exp); + else + A(j) = complex(0.0,0.0); + end + end + % Shift new frequency-amplitude array back to MATLAB format and + % transform back into the time domain via the inverse FFT. + A = ifftshift(A); + datain = ifft(A); + % Remove zeros that were added to datain in order to pad to next + % biggerst power of 2 and return dataout. + if size1 > size2 + dataout = real(datain(1:size1,size2)); + else + dataout = real(datain(size1,1:size2)); + end + return \ No newline at end of file