-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprepare_ImaGIN_spm_eeg_converteeg2mat.m
74 lines (62 loc) · 1.63 KB
/
prepare_ImaGIN_spm_eeg_converteeg2mat.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
function prepare_ImaGIN_spm_eeg_converteeg2mat(FileIn, FileOut)
% FileIn: path linking to the MEEG file to correct
% FileOut: output path
[Root,file,ext]=fileparts(FileIn);
clear S
S.FileOut=FileOut;
S.SelectChannels=[];
S.isSEEG=1;
switch lower(ext)
case '.trc'
S.dataset=fullfile(FileIn);
S.Atlas='Human';
S.channel=[];
S.coarse=1;
S.SaveFile=deblank(file);
S.loadevents='yes';
case '.msm'
S.dataset=fullfile(FileIn);
S.Atlas='Human';
S.SEEG='Yes';
S.coarse=1;
S.SaveFile=deblank(file);
case '.bin'
S.dataset=fullfile(FileIn);
S.Atlas='Human';
S.SEEG='Yes';
S.coarse=1;
S.SaveFile=deblank(file);
case '.asc'
S.dataset=fullfile(FileIn);
S.Atlas='Human';
S.Bipolar='No';
S.coarse=1;
S.SaveFile=deblank(file);
S.Radc=PatientRadc;
S.Nevent=PatientNevent;
case '.edf'
S.dataset=fullfile(FileIn);
S.Atlas='Human';
S.channel=[];
S.SEEG='Yes';
S.coarse=1;
S.SizeMax=1e12;
S.SaveFile=deblank(file);
% switch lower(tmp(end-1:end))
%
case '.e'
S.dataset=fullfile(FileIn);
S.Atlas='Human';
S.channel=[];
S.SEEG='Yes';
S.coarse=1;
S.SaveFile=['b' deblank(file)];
case '.eeg'
S.dataset=fullfile(FileIn);
S.Atlas='Human';
S.SEEG='Yes';
S.coarse=1;
S.SaveFile=['b' deblank(file)];
end
D = ImaGIN_spm_eeg_converteeg2mat(S);
close all