jalauer commited on
Commit
3d44818
·
verified ·
1 Parent(s): 456a537

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.gitattributes CHANGED
@@ -57,3 +57,49 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ data/910_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
61
+ data/912_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
62
+ data/913_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
63
+ data/911_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
64
+ data/914_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
65
+ data/801_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
66
+ data/802_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
67
+ data/801_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
68
+ data/8010_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
69
+ data/802_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
70
+ data/803_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
71
+ data/804_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
72
+ data/804_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
73
+ data/805_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
74
+ data/805_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
75
+ data/803_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
76
+ data/8060_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
77
+ data/806_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
78
+ data/806_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
79
+ data/8070_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
80
+ data/807_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
81
+ data/807_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
82
+ data/808_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
83
+ data/808_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
84
+ data/809_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
85
+ data/809_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
86
+ data/810_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
87
+ data/810_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
88
+ data/811_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
89
+ data/811_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
90
+ data/813_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
91
+ data/814_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
92
+ data/813_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
93
+ data/814_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
94
+ data/815_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
95
+ data/816_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
96
+ data/815_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
97
+ data/816_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
98
+ data/817_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
99
+ data/817_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
100
+ data/818_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
101
+ data/818_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
102
+ data/819_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
103
+ data/819_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
104
+ data/820_1_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
105
+ data/820_2_PD_REST.mat filter=lfs diff=lfs merge=lfs -text
IMPORT_ME_REST.xlsx ADDED
Binary file (19.3 kB). View file
 
LICENSE.txt ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Public Domain Dedication and License (PDDL)
2
+
3
+
4
+ Preamble
5
+
6
+
7
+ The Open Data Commons – Public Domain Dedication and Licence is a document intended to allow you to freely share, modify, and use this work for any purpose and without any restrictions. This licence is intended for use on databases or their contents (“data”), either together or individually.
8
+
9
+
10
+ Many databases are covered by copyright. Some jurisdictions, mainly in Europe, have specific special rights that cover databases called the “sui generis” database right. Both of these sets of rights, as well as other legal rights used to protect databases and data, can create uncertainty or practical difficulty for those wishing to share databases and their underlying data but retain a limited amount of rights under a “some rights reserved” approach to licensing as outlined in the Science Commons Protocol for Implementing Open Access Data. As a result, this waiver and licence tries to the fullest extent possible to eliminate or fully license any rights that cover this database and data. Any Community Norms or similar statements of use of the database or data do not form a part of this document, and do not act as a contract for access or other terms of use for the database or data.
11
+
12
+
13
+ The position of the recipient of the work
14
+
15
+
16
+ Because this document places the database and its contents in or as close as possible within the public domain, there are no restrictions or requirements placed on the recipient by this document. Recipients may use this work commercially, use technical protection measures, combine this data or database with other databases or data, and share their changes and additions or keep them secret. It is not a requirement that recipients provide further users with a copy of this licence or attribute the original creator of the data or database as a source. The goal is to eliminate restrictions held by the original creator of the data and database on the use of it by others.
17
+
18
+
19
+ The position of the dedicator of the work
20
+
21
+
22
+ Copyright law, as with most other law under the banner of “intellectual property”, is inherently national law. This means that there exists several differences in how copyright and other IP rights can be relinquished, waived or licensed in the many legal jurisdictions of the world. This is despite much harmonisation of minimum levels of protection. The internet and other communication technologies span these many disparate legal jurisdictions and thus pose special difficulties for a document relinquishing and waiving intellectual property rights, including copyright and database rights, for use by the global community. Because of this feature of intellectual property law, this document first relinquishes the rights and waives the relevant rights and claims. It then goes on to license these same rights for jurisdictions or areas of law that may make it difficult to relinquish or waive rights or claims.
23
+
24
+
25
+ The purpose of this document is to enable rightsholders to place their work into the public domain. Unlike licences for free and open source software, free cultural works, or open content licences, rightsholders will not be able to “dual license” their work by releasing the same work under different licences. This is because they have allowed anyone to use the work in whatever way they choose. Rightsholders therefore can’t re-license it under copyright or database rights on different terms because they have nothing left to license. Doing so creates truly accessible data to build rich applications and advance the progress of science and the arts.
26
+
27
+
28
+ This document can cover either or both of the database and its contents (the data). Because databases can have a wide variety of content – not just factual data – rightsholders should use the Open Data Commons – Public Domain Dedication & Licence for an entire database and its contents only if everything can be placed under the terms of this document. Because even factual data can sometimes have intellectual property rights, rightsholders should use this licence to cover both the database and its factual data when making material available under this document; even if it is likely that the data would not be covered by copyright or database rights.
29
+
30
+
31
+ Rightsholders can also use this document to cover any copyright or database rights claims over only a database, and leave the contents to be covered by other licences or documents. They can do this because this document refers to the “Work”, which can be either – or both – the database and its contents. As a result, rightsholders need to clearly state what they are dedicating under this document when they dedicate it.
32
+
33
+
34
+ Just like any licence or other document dealing with intellectual property, rightsholders should be aware that one can only license what one owns. Please ensure that the rights have been cleared to make this material available under this document.
35
+
36
+
37
+ This document permanently and irrevocably makes the Work available to the public for any use of any kind, and it should not be used unless the rightsholder is prepared for this to happen.
38
+
39
+
40
+ Part I: Introduction
41
+
42
+
43
+ The Rightsholder (the Person holding rights or claims over the Work) agrees as follows:
44
+
45
+
46
+ 1.0 Definitions of Capitalised Words
47
+
48
+
49
+ “Copyright” – Includes rights under copyright and under neighbouring rights and similarly related sets of rights under the law of the relevant jurisdiction under Section 6.4.
50
+
51
+
52
+ “Data” – The contents of the Database, which includes the information, independent works, or other material collected into the Database offered under the terms of this Document.
53
+
54
+
55
+ “Database” – A collection of Data arranged in a systematic or methodical way and individually accessible by electronic or other means offered under the terms of this Document.
56
+
57
+
58
+ “Database Right” – Means rights over Data resulting from the Chapter III (“sui generis”) rights in the Database Directive (Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases) and any future updates as well as any similar rights available in the relevant jurisdiction under Section 6.4.
59
+
60
+
61
+ “Document” – means this relinquishment and waiver of rights and claims and back up licence agreement.
62
+
63
+
64
+ “Person” – Means a natural or legal person or a body of persons corporate or incorporate.
65
+
66
+
67
+ “Use” – As a verb, means doing any act that is restricted by Copyright or Database Rights whether in the original medium or any other; and includes modifying the Work as may be technically necessary to use it in a different mode or format. This includes the right to sublicense the Work.
68
+
69
+
70
+ “Work” – Means either or both of the Database and Data offered under the terms of this Document.
71
+
72
+
73
+ “You” – the Person acquiring rights under the licence elements of this Document.
74
+
75
+
76
+ Words in the singular include the plural and vice versa.
77
+
78
+
79
+ 2.0 What this document covers
80
+
81
+
82
+ 2.1. Legal effect of this Document. This Document is:
83
+
84
+
85
+ a. A dedication to the public domain and waiver of Copyright and Database Rights over the Work; and
86
+
87
+
88
+ b. A licence of Copyright and Database Rights over the Work in jurisdictions that do not allow for relinquishment or waiver.
89
+
90
+
91
+ 2.2. Legal rights covered.
92
+
93
+
94
+ a. Copyright. Any copyright or neighbouring rights in the Work. Copyright law varies between jurisdictions, but is likely to cover: the Database model or schema, which is the structure, arrangement, and organisation of the Database, and can also include the Database tables and table indexes; the data entry and output sheets; and the Field names of Data stored in the Database. Copyright may also cover the Data depending on the jurisdiction and type of Data; and
95
+
96
+
97
+ b. Database Rights. Database Rights only extend to the extraction and re-utilisation of the whole or a substantial part of the Data. Database Rights can apply even when there is no copyright over the Database. Database Rights can also apply when the Data is removed from the Database and is selected and arranged in a way that would not infringe any applicable copyright.
98
+
99
+
100
+ 2.2 Rights not covered.
101
+
102
+
103
+ a. This Document does not apply to computer programs used in the making or operation of the Database;
104
+
105
+
106
+ b. This Document does not cover any patents over the Data or the Database. Please see Section 4.2 later in this Document for further details; and
107
+
108
+
109
+ c. This Document does not cover any trade marks associated with the Database. Please see Section 4.3 later in this Document for further details.
110
+
111
+
112
+ Users of this Database are cautioned that they may have to clear other rights or consult other licences.
113
+
114
+
115
+ 2.3 Facts are free. The Rightsholder takes the position that factual information is not covered by Copyright. This Document however covers the Work in jurisdictions that may protect the factual information in the Work by Copyright, and to cover any information protected by Copyright that is contained in the Work.
116
+
117
+
118
+ Part II: Dedication to the public domain
119
+
120
+
121
+ 3.0 Dedication, waiver, and licence of Copyright and Database Rights
122
+
123
+
124
+ 3.1 Dedication of Copyright and Database Rights to the public domain. The Rightsholder by using this Document, dedicates the Work to the public domain for the benefit of the public and relinquishes all rights in Copyright and Database Rights over the Work.
125
+
126
+
127
+ a. The Rightsholder realises that once these rights are relinquished, that the Rightsholder has no further rights in Copyright and Database Rights over the Work, and that the Work is free and open for others to Use.
128
+
129
+
130
+ b. The Rightsholder intends for their relinquishment to cover all present and future rights in the Work under Copyright and Database Rights, whether they are vested or contingent rights, and that this relinquishment of rights covers all their heirs and successors.
131
+
132
+
133
+ The above relinquishment of rights applies worldwide and includes media and formats now known or created in the future.
134
+
135
+
136
+ 3.2 Waiver of rights and claims in Copyright and Database Rights when Section 3.1 dedication inapplicable. If the dedication in Section 3.1 does not apply in the relevant jurisdiction under Section 6.4, the Rightsholder waives any rights and claims that the Rightsholder may have or acquire in the future over the Work in:
137
+
138
+
139
+ a. Copyright; and
140
+
141
+
142
+ b. Database Rights.
143
+
144
+
145
+ To the extent possible in the relevant jurisdiction, the above waiver of rights and claims applies worldwide and includes media and formats now known or created in the future. The Rightsholder agrees not to assert the above rights and waives the right to enforce them over the Work.
146
+
147
+
148
+ 3.3 Licence of Copyright and Database Rights when Sections 3.1 and 3.2 inapplicable. If the dedication and waiver in Sections 3.1 and 3.2 does not apply in the relevant jurisdiction under Section 6.4, the Rightsholder and You agree as follows:
149
+
150
+
151
+ a. The Licensor grants to You a worldwide, royalty-free, non-exclusive, licence to Use the Work for the duration of any applicable Copyright and Database Rights. These rights explicitly include commercial use, and do not exclude any field of endeavour. To the extent possible in the relevant jurisdiction, these rights may be exercised in all media and formats whether now known or created in the future.
152
+
153
+
154
+ 3.4 Moral rights. This section covers moral rights, including the right to be identified as the author of the Work or to object to treatment that would otherwise prejudice the author’s honour and reputation, or any other derogatory treatment:
155
+
156
+
157
+ a. For jurisdictions allowing waiver of moral rights, Licensor waives all moral rights that Licensor may have in the Work to the fullest extent possible by the law of the relevant jurisdiction under Section 6.4;
158
+
159
+
160
+ b. If waiver of moral rights under Section 3.4 a in the relevant jurisdiction is not possible, Licensor agrees not to assert any moral rights over the Work and waives all claims in moral rights to the fullest extent possible by the law of the relevant jurisdiction under Section 6.4; and
161
+
162
+
163
+ c. For jurisdictions not allowing waiver or an agreement not to assert moral rights under Section 3.4 a and b, the author may retain their moral rights over the copyrighted aspects of the Work.
164
+
165
+
166
+ Please note that some jurisdictions do not allow for the waiver of moral rights, and so moral rights may still subsist over the work in some jurisdictions.
167
+
168
+
169
+ 4.0 Relationship to other rights
170
+
171
+
172
+ 4.1 No other contractual conditions. The Rightsholder makes this Work available to You without any other contractual obligations, either express or implied. Any Community Norms statement associated with the Work is not a contract and does not form part of this Document.
173
+
174
+
175
+ 4.2 Relationship to patents. This Document does not grant You a licence for any patents that the Rightsholder may own. Users of this Database are cautioned that they may have to clear other rights or consult other licences.
176
+
177
+
178
+ 4.3 Relationship to trade marks. This Document does not grant You a licence for any trade marks that the Rightsholder may own or that the Rightsholder may use to cover the Work. Users of this Database are cautioned that they may have to clear other rights or consult other licences.
179
+
180
+
181
+ Part III: General provisions
182
+
183
+
184
+ 5.0 Warranties, disclaimer, and limitation of liability
185
+
186
+
187
+ 5.1 The Work is provided by the Rightsholder “as is” and without any warranty of any kind, either express or implied, whether of title, of accuracy or completeness, of the presence of absence of errors, of fitness for purpose, or otherwise. Some jurisdictions do not allow the exclusion of implied warranties, so this exclusion may not apply to You.
188
+
189
+
190
+ 5.2 Subject to any liability that may not be excluded or limited by law, the Rightsholder is not liable for, and expressly excludes, all liability for loss or damage however and whenever caused to anyone by any use under this Document, whether by You or by anyone else, and whether caused by any fault on the part of the Rightsholder or not. This exclusion of liability includes, but is not limited to, any special, incidental, consequential, punitive, or exemplary damages. This exclusion applies even if the Rightsholder has been advised of the possibility of such damages.
191
+
192
+
193
+ 5.3 If liability may not be excluded by law, it is limited to actual and direct financial loss to the extent it is caused by proved negligence on the part of the Rightsholder.
194
+
195
+
196
+ 6.0 General
197
+
198
+
199
+ 6.1 If any provision of this Document is held to be invalid or unenforceable, that must not affect the validity or enforceability of the remainder of the terms of this Document.
200
+
201
+
202
+ 6.2 This Document is the entire agreement between the parties with respect to the Work covered here. It replaces any earlier understandings, agreements or representations with respect to the Work not specified here.
203
+
204
+
205
+ 6.3 This Document does not affect any rights that You or anyone else may independently have under any applicable law to make any use of this Work, including (for jurisdictions where this Document is a licence) fair dealing, fair use, database exceptions, or any other legally recognised limitation or exception to infringement of copyright or other applicable laws.
206
+
207
+
208
+ 6.4 This Document takes effect in the relevant jurisdiction in which the Document terms are sought to be enforced. If the rights waived or granted under applicable law in the relevant jurisdiction includes additional rights not waived or granted under this Document, these additional rights are included in this Document in order to meet the intent of this Document.
PD_Rest_from_BV.m ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ %% PD Rest
2
+ clear all; clc
3
+ datalocation='Y:\EEG_Data\PDDys\EEG\Raw EEG Data\'; % Data are here
4
+ savedir='Y:\EEG_Data\PDDys\EEG\Processed EEG Data\REST for PREDiCT\'; % Data go here
5
+ cd(savedir);
6
+
7
+ PDsx=[801 802 803 804 805 806 807 808 809 810 811 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829];
8
+ CTLsx=[894 908 8010 890 891 892 893 895 896 897 898 899 900 901 902 903 904 905 906 907 909 910 911 912 913 914 8060 8070];
9
+
10
+ % Data are 68 chans: 1=63 is EEG, 64 is VEOG, 66-68 is XYZ accelerometer on hand (varied L or R).
11
+ % Ref'd to CPz - - will want to retrieve that during re-referencing. See below for code for that.
12
+ % See bottom of script for the stimulus presentation script used to collect these data
13
+
14
+ for subj=[PDsx,CTLsx]
15
+ for session=1:2; % ON or OFF medication. CTL only had 1 session
16
+ if (subj>850 && session==1) || subj<850 % If not ctl, do session 2
17
+ if ~(exist([num2str(subj),'_',num2str(session),'_PD_REST.mat'])==2); % If it doesn't already exist
18
+ disp(['Do Rest --- Subno: ',num2str(subj),' Session: ',num2str(session)]); disp(' ');
19
+
20
+ % ----------Load BrainVision data
21
+ EEG = pop_loadbv(datalocation,[num2str(subj),'_',num2str(session),'_ODDBALL.vhdr']);
22
+
23
+ % Note: 803 S1 is bad. Don't use.
24
+
25
+ % ----------Get Locs
26
+ locpath=('Y:\Programs\eeglab12_0_2_1b\plugins\dipfit2.2\standard_BESA\standard-10-5-cap385.elp');
27
+ EEG = pop_chanedit(EEG, 'lookup', locpath);
28
+ EEG = eeg_checkset( EEG );
29
+
30
+
31
+ % ---------- Get event types
32
+ % All data start with 1 min of eyes closed rest:
33
+ % trigger 3 happens every 2 seconds
34
+ % trigger 4 happens every 2 seconds
35
+ % Followed by 1 min of eyes open rest:
36
+ % trigger 1 happens every 2 seconds
37
+ % trigger 2 happens every 2 seconds
38
+ for ai=2:length(EEG.event); temp=EEG.event(ai).type; TYPES(ai)=str2num(temp(2:end)) ; clear temp; end
39
+ % For fun
40
+ UNIQUE_TYPES=unique(TYPES);
41
+ for bi=1:length(UNIQUE_TYPES); UNIQUE_TYPES_COUNT(bi)=sum(TYPES==UNIQUE_TYPES(bi)); end
42
+ clc; TRIGGERS=[UNIQUE_TYPES;UNIQUE_TYPES_COUNT] % Trigger type, Frequency
43
+ % OK, now find the last trigger of the rest
44
+ Rest_Triggers=find(TYPES<5);
45
+ Last_Rest_Trigger=EEG.event(Rest_Triggers(end)).latency; % Last trigger in **samples**
46
+ Last_Rest_Trigger_ms=Last_Rest_Trigger .* (1/(EEG.srate/1000));
47
+ Last_Rest_Trigger_Seconds=floor(Last_Rest_Trigger_ms/1000)+4; % +4 for a little buffer
48
+
49
+ % Cut data
50
+ EEG = pop_select( EEG,'time',[0 Last_Rest_Trigger_Seconds] );
51
+
52
+ % ---------- Make sure we have all 2 mins of rest
53
+ clear UNIQUE* TYPES TRIGGERS
54
+ for ai=2:length(EEG.event); temp=EEG.event(ai).type; TYPES(ai)=str2num(temp(2:end)) ; clear temp; end
55
+ UNIQUE_TYPES=unique(TYPES);
56
+ for bi=1:length(UNIQUE_TYPES); UNIQUE_TYPES_COUNT(bi)=sum(TYPES==UNIQUE_TYPES(bi)); end
57
+ clc; TRIGGERS=[UNIQUE_TYPES;UNIQUE_TYPES_COUNT] % Trigger type, Frequency
58
+ % Start the count
59
+ N_Trigs=0;
60
+ for ci=1:4, N_Trigs=N_Trigs+UNIQUE_TYPES_COUNT(UNIQUE_TYPES==ci); end
61
+ if N_Trigs<120, BOOM; end % BOOM just kills things
62
+
63
+ % Note, 8070 only has a little bit of eyes closed data.
64
+ % Must have started recording too late.
65
+
66
+ % ---------- Save
67
+ save([savedir,num2str(subj),'_',num2str(session),'_PD_REST.mat'],'EEG');
68
+
69
+ % ---------- Housekeeping
70
+ clear EEG UNIQUE* TYPES TRIGGERS
71
+
72
+ end
73
+ end
74
+ end
75
+ end
76
+
77
+ BOOM;
78
+
79
+ %% If you want, you could do some of this to make life easier:
80
+
81
+ % ---------- Remove X,Y,Z & VEOG
82
+ EEG.VEOG=squeeze(EEG.data(64,:,:));
83
+ EEG.X=squeeze(EEG.data(65,:,:));
84
+ EEG.Y=squeeze(EEG.data(66,:,:));
85
+ EEG.Z=squeeze(EEG.data(67,:,:));
86
+ EEG.data=EEG.data(1:63,:,:);
87
+ EEG.nbchan=63;
88
+ EEG.chanlocs(67)=[]; EEG.chanlocs(66)=[]; EEG.chanlocs(65)=[]; EEG.chanlocs(64)=[];
89
+ % ---------- Add CPz
90
+ EEG = pop_chanedit(EEG,'append',63,'changefield',{64 'labels' 'CPz'});
91
+ EEG = pop_chanedit(EEG,'lookup', locpath);
92
+ % ---------- Re-Ref to Average Ref and recover CPz
93
+ EEG = pop_reref(EEG,[],'refloc',struct('labels',{'CPz'},'type',{''},'theta',{180},'radius',{0.12662},'X',{-32.9279},'Y',{-4.0325e-15},'Z',{78.363},...
94
+ 'sph_theta',{-180},'sph_phi',{67.208},'sph_radius',{85},'urchan',{64},'ref',{''}),'keepref','on');
95
+ % ---------- Remove CONSISTENLY BAD channels now that CPz has been reconstructed from the total
96
+ EEG.MASTOIDS = squeeze(mean(EEG.data([10,21],:,:),1));
97
+ EEG.data = EEG.data([1:4,6:9,11:20,22:26,28:64],:,:);
98
+ EEG.nbchan=60;
99
+ EEG.chanlocs(27)=[]; EEG.chanlocs(21)=[]; EEG.chanlocs(10)=[]; EEG.chanlocs(5)=[]; % Have to be in this order!
100
+ % ---------- Re-ref to average again now that the contaminated channels are gone
101
+ EEG = pop_reref(EEG,[]);
102
+ % ---------- Remove mean
103
+ EEG = pop_rmbase(EEG,[],[]);
104
+
105
+ %%
106
+
107
+ % ~ SNIP
108
+
109
+ % Experimenter instructions
110
+ Screen('TextSize',wPtr,30);
111
+ Screen('TextFont',wPtr,'Times');
112
+ Screen('TextStyle',wPtr,0);
113
+ Screen('TextColor',wPtr,[255 255 255]);
114
+ beginningText1 = 'Experimenter: Continue';
115
+ DrawFormattedText(wPtr,beginningText1,'center','center');
116
+ Screen(wPtr, 'Flip');
117
+ KbWait([],3); %Waits for keyboard(any) press
118
+
119
+ instructionText = 'Welcome and thank you for participating in our study. \n\n\n We are going to start by recording some activities \n\n of your brain activity at rest.';
120
+ DrawFormattedText(wPtr,instructionText,'center','center');
121
+ Screen(wPtr, 'Flip');
122
+ KbWait([],3); %Waits for keyboard(any) press
123
+
124
+ instructionText = 'All you need to do is sit and rest quietly. \n\n\nWe will be recording resting EEG with your eyes \n\n\n CLOSED for the next minute. \n\n\n A tone will sound to let you know when \n\nthe time is up.';
125
+ DrawFormattedText(wPtr,instructionText,'center','center');
126
+ Screen(wPtr, 'Flip');
127
+ KbWait([],3); %Waits for keyboard(any) press
128
+
129
+ % CLOSED
130
+ DrawFormattedText(wPtr,'Close Eyes','center','center'); Screen(wPtr, 'Flip'); WaitSecs(1);
131
+ for ai=1:30
132
+ io64(ioObject,LTP1address,3); WaitSecs(.05); io64(ioObject,LTP1address,0); WaitSecs(.95);
133
+ io64(ioObject,LTP1address,4); WaitSecs(.05); io64(ioObject,LTP1address,0); WaitSecs(.95);
134
+ end
135
+ sound(Tone(1,:),echant);
136
+
137
+ instructionText = 'Now another minute with your eyes OPEN.';
138
+ DrawFormattedText(wPtr,instructionText,'center','center');
139
+ Screen(wPtr, 'Flip');
140
+ KbWait([],3); %Waits for keyboard(any) press
141
+
142
+ % OPEN
143
+ DrawFormattedText(wPtr,' + ','center','center'); Screen(wPtr, 'Flip'); WaitSecs(1);
144
+ for ai=1:30
145
+ io64(ioObject,LTP1address,1); WaitSecs(.05); io64(ioObject,LTP1address,0); WaitSecs(.95);
146
+ io64(ioObject,LTP1address,2); WaitSecs(.05); io64(ioObject,LTP1address,0); WaitSecs(.95);
147
+ end
148
+ sound(Tone(1,:),echant);
149
+
150
+ % ~ SNIP
151
+
README.md CHANGED
@@ -1,17 +1,42 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: text
5
- dtype: string
6
- splits:
7
- - name: train
8
- num_bytes: 16217
9
- num_examples: 208
10
- download_size: 8833
11
- dataset_size: 16217
12
- configs:
13
- - config_name: default
14
- data_files:
15
- - split: train
16
- path: /itet-stor/jlauer/net_scratch/datasets/Cavanagh2018b/train-*
17
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Cavanagh2018b: EEG Parkinson's Classification Dataset in Resting-State
2
+ The Cavanagh2018b dataset contains resting-state EEG recordings from the same group of people used in the Cavanagh2018a study. Participants included 28 individuals diagnosed with Parkinson's disease and 28 age- and sex-matched control participants. Each subject underwent a 2-minute resting-state EEG recording session with eyes open. These recordings were collected in a seated posture, prior to or following the auditory oddball task, under the same EEG setup (64-channel cap, 500 Hz sampling rate).
3
+
4
+ This dataset serves as a complementary baseline condition for evaluating spontaneous brain dynamics in Parkinson's disease. Though not central to the novelty task paradigm, resting-state data may be useful for investigations into low-frequency oscillations or non-task-based classification approaches of Parkinson's disease.
5
+ ## Paper
6
+ Cavanagh, J. F., Kumar, P., Mueller, A. A., Richardson, S. P., & Mueen, A. (2018). **Diminished EEG habituation to novel events effectively classifies Parkinson's patients**. _Clinical Neurophysiology_, 129(2), 409-418.
7
+
8
+ DISCLAIMER: We (DISCO) are NOT the owners or creators of this dataset, but we merely uploaded it here, to support our's ("EEG-Bench") and other's work on EEG benchmarking.
9
+ ## Dataset Structure
10
+ The `IMPORT_ME_REST.xlsx` file contains some information about the patients with PD (sex, age, medication status at first recording), as well as their matched control patients.
11
+ ### Filename Format
12
+
13
+ ```
14
+ [PID]_[SESSION]_PD_REST.mat
15
+ ```
16
+ PID is the patient ID (e.g. `813`), while SESSION distinguishes different days of recording (can be `1` or `2` for patients with PD and is always `1` for patients without PD). All patients with PID <= 829 have Parkinson's Disease and all patients with PID >= 890 do NOT have Parkinson's Disease and hence belong to the control group.
17
+
18
+ ### Fields in each File
19
+ A `.mat` file can be read in python as follows:
20
+ ```python
21
+ from scipy.io import loadmat
22
+ filename = "813_2_PD_REST.mat"
23
+ mat = loadmat(filename, simplify_cells=True)
24
+ ```
25
+ (A field "fieldname" can be read from `mat` as `mat["fieldname"]`.)
26
+
27
+ Then `mat` contains (among others) the following fields and subfields
28
+ - `EEG`
29
+ - `data`: EEG data of shape `(#channels, time_len)`. E.g. a recording of 7 minutes with 67 channels and a sampling rate of 500 Hz will have shape `(67, 210000)`.
30
+ - `event`: Contains a list of dictionaries, each entry (each event) having the following description:
31
+ - `latency`: The onset of the event, measured as the index in the time-dimension `time_len`. The duration of each event is 1 second. Hence, with a 500 Hz sampling rate, the EEG data `event_data` corresponding to the `i`-th event would be
32
+ ```
33
+ start_index = mat["EEG"]["event"][i]["latency"]
34
+ event_data = numpy.transpose(mat["EEG"]["data"], [1, 2]).reshape([#channels, #trials * trial_len])[:, start_index:start_index+500] # shape (#channels, 500)
35
+ ```
36
+ - `type`: The type of event. Can be `"S 1"` / `"S 2"` (patient has eyes open), or `"S 3"` / `"S 4"` (patient has eyes closed).
37
+ - `chanlocs`: A list of channel descriptors
38
+ - `nbchan`: Number of channels
39
+ - `srate`: Sampling Rate (Hz)
40
+
41
+ ## License
42
+ By the original authors of this work, this work has been licensed under the PDDL v1.0 license (see LICENSE.txt).
data/8010_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57c15ad936fc0ec243fec090e77fb9d0c876cb048485da81540dddc111695826
3
+ size 19231069
data/801_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7bdca0496a8e06988727f04bf44046a25f87a3757280f31594b20257000961e
3
+ size 21909417
data/801_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fec5cf903c245790aed9798351b8813bdba73aab83cb72ac18ceb53cf6e5cb6
3
+ size 19808991
data/802_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:054847f8f080d69e8ae8b626f780b3cf86dc8027ce67f66442ada2bcd253ca1a
3
+ size 25012899
data/802_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f98b5037aeba29654fb4b0c8444bf147e2d5c68f98011cfee63ea687f5f10e69
3
+ size 21617653
data/803_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef69eb573f7ece25dab5abc604b0d340e6ec079e2f42af5a7ece36232c2a21b5
3
+ size 10056758
data/803_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ee2084c88f7835fe7bbbc2f5d5fc0ee5794ac4b21f05aa0b7d12235d430cf60
3
+ size 49401302
data/804_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d52a90d89d5a7b90fcb0a9e4f6d504f40309dd78a25cbcc0e72d1f8b104006b
3
+ size 22249938
data/804_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c9e26d5e9ce851389bb3bce64c69346cc08da5aba588634f5889adc18f0d025
3
+ size 22170789
data/805_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf349fd6ece0dedb032175565915489d26a155626919419818e3e12b61d738dc
3
+ size 24584808
data/805_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffe17da648da392cda823cc21377de8b5d1c8a4596e0b0c58a7379451cc76ac5
3
+ size 20541440
data/8060_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8c2fefdbaa6bc2d76470c8510ff3ef4840fd858ff18f546b57d4000c6a96e40
3
+ size 26312047
data/806_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b84cb7c2f485205751f754f93c48eba12bf422d7dfc10b48682b0d89eb4f5910
3
+ size 26261885
data/806_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:492e403f893962495a4092599063a14a875bd1d466916356fb5cffc85a49eee9
3
+ size 25840202
data/8070_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7ed3d399c7f3558d7936f5e66d61606d1829aee9b7477836b6e2f2a75a180ea
3
+ size 8397998
data/807_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b068c68d7a045ec5e84e26e7f539ffc2ffae28bafffd603664e6c60f5dfe238
3
+ size 29814188
data/807_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9aa5825bc24cae1dafba3a7f2805f6afe5b79bbd0640d8e205074111379f5481
3
+ size 30753558
data/808_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43b02e0e4608384d9f7e8128660dfa4225d0de7c21687697e13037acfaa3844e
3
+ size 20743819
data/808_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ffa23ec4226ca40c7fa543b126549b07ab6690ea38d6be48d157d963ba6f2a4
3
+ size 30073818
data/809_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d07d7ecb5dccd74b8cce772c59d12d1dd9a87dda98e11b972dfe03d040e28bdb
3
+ size 22712852
data/809_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41ac108a10f85392d952e010ca38db319af55a54f961f3a51cc51ec33644a51b
3
+ size 20653277
data/810_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b14a95f745dcb33193d4d1a3ef6b898087e086e18fa47500b3104aa8c7fb856
3
+ size 23552290
data/810_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8186f254a9f759ef73b6e702aa9c35259f840a423d63232a00a5132436987356
3
+ size 26788864
data/811_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:425f08bf9bf93a9cdb45e1511f66c5a7a07c44974f90a50816787436778570a0
3
+ size 21627015
data/811_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:164ac82d1458ed3c0c40853bdbed65a2eab057e2d86cc386c661d89b391078ee
3
+ size 22029396
data/813_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb012f95b7d46ec852ce57eca188606d7713929072667d13ed9a4b9950aa3872
3
+ size 22971393
data/813_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75dc8b8045595b365d3ae20d2f31dbfa18c770ad0859491bb52c290a89acca5a
3
+ size 20799945
data/814_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53a8f7c55aca8b7add1434c33ebf25e3468736e9aa057963591e11b78e0a40a0
3
+ size 24375359
data/814_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:057719d38d52fb6398b0490d466cdf767216d74bea5bf8a249b13cf76568b8f6
3
+ size 29226485
data/815_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c45165a52176470797d6ede3773137edb2d7814882c10bb772525bf2617429df
3
+ size 24222698
data/815_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1731a936bbe8c9eead35ea89d5dffd4162cc25294e818eee157b3b1466f4d1f5
3
+ size 22579533
data/816_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:305e257b040720fdca6eca8ae81f00728fade6e6aa349974e1ce9ec93032306c
3
+ size 18898483
data/816_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ce97eca216fae5f302352dca66d25f93e9eb0d532c5dd48d9e3cb76c79f48cc
3
+ size 28187398
data/817_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d057b8726c71054a864059398b8e1a954e8219598620d6b364ce55652b117b6
3
+ size 28210840
data/817_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:218596feab37cc1d0bd4df56581f15c9719c666a2bc89f20370c0850dfb92d82
3
+ size 25615877
data/818_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc77ec7badea69a0d1e28f9aec80fe4ed5c37b043c900bea802ca05499ce8d2
3
+ size 24213359
data/818_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b45289c6d79c2089412587fc97d98600e3454fb8b31c0e51a4880d79ff17b659
3
+ size 35022604
data/819_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c0ed9bfbb5f4a8d9daa398c1c5fb78cc9e5babe7f0184cde707ad9e7d2589a4
3
+ size 30824033
data/819_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:111896a0b2309712d42779fe523de21efb027836da44115ab4c39954ae182b55
3
+ size 23839030
data/820_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21c4e5df9ed3cf3902c5336342e3fc4e81a4a474927b8a9ea280becbbccc87f2
3
+ size 23934694
data/820_2_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:833a5bce6dcbbbe5fc0910c6a6ec944b2890b8e64609f3f13aefba55d8e84cba
3
+ size 23863518
data/910_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cd96f22ec0afcd7247e96b3fe24eed7f9a4d825f128c1ae1f2c70614e2a6554
3
+ size 19962945
data/911_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73e7f94478680ec133d8e82efa5efb26f44b4ef3c8e6039f4a1db56a38f49a3e
3
+ size 18536288
data/912_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d7ebcf42ac17fb2ff622b7a876ffddd80bc49ad90455cd86da70015a9f0ee1f
3
+ size 26928133
data/913_1_PD_REST.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b63d01d682c04752d130bc813003bb0205633ceda2407d2ef4b3503f437dd040
3
+ size 18765742