Skip to content

Commit b71509a

Browse files
Merge pull request #1 from bids-standard/master
updating with base
2 parents 8b40712 + c954317 commit b71509a

File tree

2 files changed

+20
-24
lines changed

2 files changed

+20
-24
lines changed

matlabCode/createBIDS_ieeg_electrodes_tsv.m

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
%
55
% DHermes, 2017
66
% modified RG 201809
7+
% modified Giulio Castegnaro 201811
78

89

910
%%
@@ -26,34 +27,29 @@
2627

2728

2829
%% required columns
29-
30-
name = {''}; % Name of the electrode
31-
x = [0]';
32-
y = [0]';
33-
z = [0]';
34-
Size = [0]'; % Diameter in mm
35-
type = [0]'; % Type of intracranial electrode, one of [?surface?, ?depth? , ?dbs?]
36-
37-
38-
39-
%% optional columns
40-
30+
name = {''}; % Name of the electrode contact point
31+
x = [0]'; %X position. The positions of the center of each electrode in xyz space.
32+
%Units are in millimeters or pixels and are specified in _*space-<label>_electrode.json.
33+
y = [0]';%Y position.
34+
z = [0]';% Z position. If electrodes are in 2D space this should be a column of n/a values.
35+
Size = [0]'; % Diameter in mm^2
36+
37+
%% recommended columns
4138
material = {''}; % Material of the electrodes
42-
43-
tissue = {''}; % If a clinician has made an observation about the tissue
44-
% underneath the electrode (e.g. epilepsy, tumor, if nothing state n/a)
45-
4639
manufacturer = {''}; % Optional field to specify the electrode manufacturer
4740
% for each electrode. Can be used if electrodes were manufactured by more than one company.
41+
group = {''}; %Optional field to specify the group that the electrode is a part of.
42+
%Note that any group specified here should match a group specified in `_channels.tsv`
43+
hemisphere = {''}; %Optional field to specify the hemisphere in which
44+
%the electrode is placed, one of [‘L’ or ‘R’] (use capital).
4845

49-
grid_size = {''}; % Optional field to specify the dimensions of the grid the
50-
% electrode is a part of. Should be of the form `(M, N)`. E.g., (8, 8) or(1, 4).
51-
52-
46+
%% optional columns
47+
type = {''}; %Optional type of the electrode,e.g.,cup, ring, clip-on, wire, needle, ...
48+
impedance = {''}; %Impedance of the electrode in kOhm.
5349

5450
%% write
55-
t = table(name,x,y,z,size,type,material,tissue,manufacturer,grid_size);
51+
t = table(name,x,y,z,Size,material,manufacturer,group,hemisphere,type,impedance);
5652

57-
writetable(t,electrodes_tsv_name,'FileType','text','Delimiter','\t');
53+
writetable(t,electrodes_tsv_name,'FileType','text','Delimiter','\t');
5854

5955
clear Size
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
name x y z size type material tissue manufacturer grid_size
2-
0 0 0 0 0
1+
name x y z Size material manufacturer group hemisphere type impedance
2+
0 0 0 0

0 commit comments

Comments
 (0)