-
Notifications
You must be signed in to change notification settings - Fork 83
/
config.py
616 lines (565 loc) · 19 KB
/
config.py
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
"""Configuration values for MNE-BIDS."""
from mne import io
from mne.io.constants import FIFF
BIDS_VERSION = "1.7.0"
PYBV_VERSION = "0.7.3"
DOI = """https://doi.org/10.21105/joss.01896"""
EPHY_ALLOWED_DATATYPES = ["meg", "eeg", "ieeg", "nirs"]
ALLOWED_DATATYPES = EPHY_ALLOWED_DATATYPES + ["anat", "beh"]
MEG_CONVERT_FORMATS = ["FIF", "auto"]
EEG_CONVERT_FORMATS = ["BrainVision", "auto"]
IEEG_CONVERT_FORMATS = ["BrainVision", "auto"]
NIRS_CONVERT_FORMATS = ["auto"]
CONVERT_FORMATS = {
"meg": MEG_CONVERT_FORMATS,
"eeg": EEG_CONVERT_FORMATS,
"ieeg": IEEG_CONVERT_FORMATS,
"nirs": NIRS_CONVERT_FORMATS,
}
# Orientation of the coordinate system dependent on manufacturer
ORIENTATION = {
".con": "KitYokogawa",
".ds": "CTF",
".fif": "ElektaNeuromag",
".pdf": "4DBti",
".sqd": "KitYokogawa",
}
EXT_TO_UNIT_MAP = {".con": "m", ".ds": "cm", ".fif": "m", ".pdf": "m", ".sqd": "m"}
UNITS_MNE_TO_BIDS_MAP = {
"C": "oC", # temperature in deg. C
}
meg_manufacturers = {
".con": "KIT/Yokogawa",
".ds": "CTF",
".fif": "Elekta",
".meg4": "CTF",
".pdf": "4D Magnes",
".sqd": "KIT/Yokogawa",
}
eeg_manufacturers = {
".vhdr": "Brain Products",
".eeg": "Brain Products",
".edf": "n/a",
".EDF": "n/a",
".bdf": "Biosemi",
".BDF": "Biosemi",
".set": "n/a",
".fdt": "n/a",
".lay": "Persyst",
".dat": "Persyst",
".EEG": "Nihon Kohden",
".cnt": "Neuroscan",
".CNT": "Neuroscan",
".bin": "EGI",
".cdt": "Curry",
}
ieeg_manufacturers = {
".vhdr": "Brain Products",
".eeg": "Brain Products",
".edf": "n/a",
".EDF": "n/a",
".set": "n/a",
".fdt": "n/a",
".mef": "n/a",
".nwb": "n/a",
".lay": "Persyst",
".dat": "Persyst",
".EEG": "Nihon Kohden",
}
nirs_manufacturers = {".snirf": "SNIRF"}
# file-extension map to mne-python readers
reader = {
".con": io.read_raw_kit,
".sqd": io.read_raw_kit,
".fif": io.read_raw_fif,
".pdf": io.read_raw_bti,
".ds": io.read_raw_ctf,
".vhdr": io.read_raw_brainvision,
".edf": io.read_raw_edf,
".EDF": io.read_raw_edf,
".bdf": io.read_raw_bdf,
".set": io.read_raw_eeglab,
".lay": io.read_raw_persyst,
".EEG": io.read_raw_nihon,
".cnt": io.read_raw_cnt,
".CNT": io.read_raw_cnt,
".bin": io.read_raw_egi,
".snirf": io.read_raw_snirf,
".cdt": io.read_raw_curry,
}
# Merge the manufacturer dictionaries in a python2 / python3 compatible way
# MANUFACTURERS dictionary only includes the extension of the input filename
# that mne-python accepts (e.g. BrainVision has three files, but the reader
# takes the filename for `.vhdr`)
MANUFACTURERS = dict()
MANUFACTURERS.update(meg_manufacturers)
MANUFACTURERS.update(eeg_manufacturers)
MANUFACTURERS.update(ieeg_manufacturers)
MANUFACTURERS.update(nirs_manufacturers)
# List of synthetic channels by manufacturer that are to be excluded from the
# channel list. Currently this is only for stimulus channels.
IGNORED_CHANNELS = {
"KIT/Yokogawa": ["STI 014"],
"BrainProducts": ["STI 014"],
"n/a": ["STI 014"], # for unknown manufacturers, ignore it
"Biosemi": ["STI 014"],
}
allowed_extensions_meg = [".con", ".sqd", ".fif", ".pdf", ".ds"]
allowed_extensions_eeg = [
".vhdr", # BrainVision, accompanied by .vmrk, .eeg
".edf", # European Data Format
".bdf", # Biosemi
".set", # EEGLAB, potentially accompanied by .fdt
]
allowed_extensions_ieeg = [
".vhdr", # BrainVision, accompanied by .vmrk, .eeg
".edf", # European Data Format
".set", # EEGLAB, potentially accompanied by .fdt
".mef", # MEF: Multiscale Electrophysiology File
".nwb", # Neurodata without borders
]
allowed_extensions_nirs = [
".snirf", # SNIRF
]
# allowed extensions (data formats) in BIDS spec
ALLOWED_DATATYPE_EXTENSIONS = {
"meg": allowed_extensions_meg,
"eeg": allowed_extensions_eeg,
"ieeg": allowed_extensions_ieeg,
"nirs": allowed_extensions_nirs,
}
# allow additional extensions that are not BIDS
# compliant, but we will convert to the
# recommended formats
ALLOWED_INPUT_EXTENSIONS = (
allowed_extensions_meg
+ allowed_extensions_eeg
+ allowed_extensions_ieeg
+ allowed_extensions_nirs
+ [".lay", ".EEG", ".cnt", ".CNT", ".bin", ".cdt"]
)
# allowed suffixes (i.e. last "_" delimiter in the BIDS filenames before
# the extension)
ALLOWED_FILENAME_SUFFIX = [
"meg",
"markers",
"eeg",
"ieeg",
"T1w",
"FLASH", # datatype
"participants",
"scans",
"sessions",
"electrodes",
"optodes",
"channels",
"coordsystem",
"events", # sidecars
"headshape",
"digitizer", # meg-specific sidecars
"beh",
"physio",
"stim", # behavioral
"nirs",
]
# converts suffix to known path modalities
SUFFIX_TO_DATATYPE = {
"meg": "meg",
"headshape": "meg",
"digitizer": "meg",
"markers": "meg",
"eeg": "eeg",
"ieeg": "ieeg",
"T1w": "anat",
"FLASH": "anat",
}
# allowed BIDS extensions (extension in the BIDS filename)
ALLOWED_FILENAME_EXTENSIONS = (
ALLOWED_INPUT_EXTENSIONS
+ [".json", ".tsv", ".tsv.gz", ".nii", ".nii.gz"]
+ [".pos", ".eeg", ".vmrk"]
+ [".dat", ".EEG"] # extra datatype-specific metadata files.
+ [".mrk"] # extra eeg extensions # KIT/Yokogawa/Ricoh marker coil
)
# allowed BIDSPath entities
ALLOWED_PATH_ENTITIES = (
"subject",
"session",
"task",
"run",
"processing",
"recording",
"space",
"acquisition",
"split",
"description",
"suffix",
"extension",
)
ALLOWED_PATH_ENTITIES_SHORT = {
"sub": "subject",
"ses": "session",
"task": "task",
"acq": "acquisition",
"run": "run",
"proc": "processing",
"space": "space",
"rec": "recording",
"split": "split",
"desc": "description",
}
# Annotations to never remove during reading or writing
ANNOTATIONS_TO_KEEP = ("BAD_ACQ_SKIP",)
BIDS_STANDARD_TEMPLATE_COORDINATE_SYSTEMS = [
"ICBM452AirSpace",
"ICBM452Warp5Space",
"IXI549Space",
"fsaverage",
"fsaverageSym",
"fsLR",
"MNIColin27",
"MNI152Lin",
"MNI152NLin2009aSym",
"MNI152NLin2009bSym",
"MNI152NLin2009cSym",
"MNI152NLin2009aAsym",
"MNI152NLin2009bAsym",
"MNI152NLin2009cAsym",
"MNI152NLin6Sym",
"MNI152NLin6ASym",
"MNI305",
"NIHPD",
"OASIS30AntsOASISAnts",
"OASIS30Atropos",
"Talairach",
"UNCInfant",
]
coordsys_standard_template_deprecated = [
"fsaverage3",
"fsaverage4",
"fsaverage5",
"fsaverage6",
"fsaveragesym",
"UNCInfant0V21",
"UNCInfant1V21",
"UNCInfant2V21",
"UNCInfant0V22",
"UNCInfant1V22",
"UNCInfant2V22",
"UNCInfant0V23",
"UNCInfant1V23",
"UNCInfant2V23",
]
# accepted BIDS formats, which may be subject to change
# depending on the specification
BIDS_IEEG_COORDINATE_FRAMES = ["ACPC", "Pixels"]
BIDS_MEG_COORDINATE_FRAMES = [
"CTF",
"ElektaNeuromag",
"4DBti",
"KitYokogawa",
"ChietiItab",
]
BIDS_EEG_COORDINATE_FRAMES = ["CapTrak"]
# accepted coordinate SI units
BIDS_COORDINATE_UNITS = ["m", "cm", "mm"]
coordsys_wildcard = ["Other"]
BIDS_SHARED_COORDINATE_FRAMES = (
BIDS_STANDARD_TEMPLATE_COORDINATE_SYSTEMS
+ coordsys_standard_template_deprecated
+ coordsys_wildcard
)
ALLOWED_SPACES = dict()
ALLOWED_SPACES["meg"] = ALLOWED_SPACES["eeg"] = (
BIDS_SHARED_COORDINATE_FRAMES
+ BIDS_MEG_COORDINATE_FRAMES
+ BIDS_EEG_COORDINATE_FRAMES
)
ALLOWED_SPACES["ieeg"] = BIDS_SHARED_COORDINATE_FRAMES + BIDS_IEEG_COORDINATE_FRAMES
ALLOWED_SPACES["anat"] = None
ALLOWED_SPACES["beh"] = None
# See: https://bids-specification.readthedocs.io/en/latest/appendices/entity-table.html#encephalography-eeg-ieeg-and-meg # noqa
ENTITY_VALUE_TYPE = {
"subject": "label",
"session": "label",
"task": "label",
"run": "index",
"processing": "label",
"recording": "label",
"space": "label",
"acquisition": "label",
"split": "index",
"description": "label",
"suffix": "label",
"extension": "label",
}
# mapping from supported BIDs coordinate frames -> MNE
BIDS_TO_MNE_FRAMES = {
"CTF": "ctf_head",
"4DBti": "ctf_head",
"KitYokogawa": "ctf_head",
"ElektaNeuromag": "head",
"ChietiItab": "head",
"CapTrak": "head",
"ACPC": "ras", # assumes T1 is ACPC-aligned, if not the coordinates are lost # noqa
"fsaverage": "mni_tal", # XXX: note fsaverage and MNI305 are the same # noqa
"MNI305": "mni_tal",
}
# mapping from supported MNE coordinate frames -> BIDS
# XXX: note that there are a lot fewer MNE available coordinate
# systems so the range of BIDS supported coordinate systems we
# can write is limited.
MNE_TO_BIDS_FRAMES = {"ctf_head": "CTF", "head": "CapTrak", "mni_tal": "fsaverage"}
# these coordinate frames in mne-python are related to scalp/meg
# 'meg', 'ctf_head', 'ctf_meg', 'head', 'unknown'
# copied from "mne.transforms.MNE_STR_TO_FRAME"
MNE_STR_TO_FRAME = dict(
meg=FIFF.FIFFV_COORD_DEVICE,
mri=FIFF.FIFFV_COORD_MRI,
mri_voxel=FIFF.FIFFV_MNE_COORD_MRI_VOXEL,
head=FIFF.FIFFV_COORD_HEAD,
mni_tal=FIFF.FIFFV_MNE_COORD_MNI_TAL,
ras=FIFF.FIFFV_MNE_COORD_RAS,
fs_tal=FIFF.FIFFV_MNE_COORD_FS_TAL,
ctf_head=FIFF.FIFFV_MNE_COORD_CTF_HEAD,
ctf_meg=FIFF.FIFFV_MNE_COORD_CTF_DEVICE,
unknown=FIFF.FIFFV_COORD_UNKNOWN,
)
MNE_FRAME_TO_STR = {val: key for key, val in MNE_STR_TO_FRAME.items()}
# see BIDS specification for description we copied over from each
BIDS_COORD_FRAME_DESCRIPTIONS = {
"acpc": "The origin of the coordinate system is at the Anterior "
"Commissure and the negative y-axis is passing through the "
"Posterior Commissure. The positive z-axis is passing through "
"a mid-hemispheric point in the superior direction.",
"pixels": "If electrodes are localized in 2D space (only x and y are "
"specified and z is n/a), then the positions in this file "
"must correspond to the locations expressed in pixels on "
"the photo/drawing/rendering of the electrodes on the brain. "
"In this case, coordinates must be (row,column) pairs, with "
"(0,0) corresponding to the upper left pixel and (N,0) "
"corresponding to the lower left pixel.",
"ctf": "ALS orientation and the origin between the ears",
"elektaneuromag": "RAS orientation and the origin between the ears",
"4dbti": "ALS orientation and the origin between the ears",
"kityokogawa": "ALS orientation and the origin between the ears",
"chietiitab": "RAS orientation and the origin between the ears",
"captrak": (
"The X-axis goes from the left preauricular point (LPA) through "
"the right preauricular point (RPA). "
"The Y-axis goes orthogonally to the X-axis through the nasion (NAS). "
"The Z-axis goes orthogonally to the XY-plane through the vertex of "
"the head. "
'This corresponds to a "RAS" orientation with the origin of the '
"coordinate system approximately between the ears. "
"See Appendix VIII in the BIDS specification."
),
"fsaverage": "Defined by FreeSurfer, the MRI (surface RAS) origin is "
"at the center of a 256×256×256 mm^3 anisotropic volume "
"(may not be in the center of the head).",
"icbm452airspace": 'Reference space defined by the "average of 452 '
'T1-weighted MRIs of normal young adult brains" '
'with "linear transforms of the subjects into the '
"atlas space using a 12-parameter affine "
'transformation"',
"icbm452warp5space": 'Reference space defined by the "average of 452 '
'T1-weighted MRIs of normal young adult brains" '
'"based on a 5th order polynomial transformation '
'into the atlas space"',
"ixi549space": 'Reference space defined by the average of the "549 (...) '
'subjects from the IXI dataset" linearly transformed to '
"ICBM MNI 452.",
"fsaveragesym": "The fsaverage is a dual template providing both "
"volumetric and surface coordinates references. The "
"volumetric template corresponds to a FreeSurfer variant "
"of MNI305 space. The fsaverageSym atlas also defines a "
"symmetric surface reference system (formerly described "
"as fsaveragesym).",
"fslr": "The fsLR is a dual template providing both volumetric and "
"surface coordinates references. The volumetric template "
"corresponds to MNI152NLin6Asym. Surface templates are given "
"at several sampling densities: 164k (used by HCP pipelines "
"for 3T and 7T anatomical analysis), 59k (used by HCP pipelines "
"for 7T MRI bold and DWI analysis), 32k (used by HCP pipelines "
"for 3T MRI bold and DWI analysis), or 4k (used by HCP "
"pipelines for MEG analysis) fsaverage_LR surface "
"reconstructed from the T1w image.",
"mnicolin27": "Average of 27 T1 scans of a single subject.",
"mni152lin": "Also known as ICBM (version with linear coregistration).",
"mni152nlin6sym": "Also known as symmetric ICBM 6th generation "
"(non-linear coregistration).",
"mni152nlin6asym": "A variation of MNI152NLin6Sym built by A. Janke that "
"is released as the MNI template of FSL. Volumetric "
"templates included with HCP-Pipelines correspond to "
"this template too.",
"mni305": "Also known as avg305.",
"nihpd": "Pediatric templates generated from the NIHPD sample. Available "
"for different age groups (4.5–18.5 y.o., 4.5–8.5 y.o., "
"7–11 y.o., 7.5–13.5 y.o., 10–14 y.o., 13–18.5 y.o. This "
"template also comes in either -symmetric or -asymmetric flavor.",
"oasis30antsoasisants": "See https://figshare.com/articles/ANTs_ANTsR_Brain_Templates/915436", # noqa: E501
"oasis30atropos": "See https://mindboggle.info/data.html",
"talairach": "Piecewise linear scaling of the brain is implemented as "
"described in TT88.",
"uncinfant": "Infant Brain Atlases from Neonates to 1- and 2-year-olds.",
}
for letter in ("a", "b", "c"):
for sym in ("Sym", "Asym"):
BIDS_COORD_FRAME_DESCRIPTIONS[
f"mni152nlin2009{letter}{sym}"
] = "Also known as ICBM (non-linear coregistration with 40 iterations,"
" released in 2009). It comes in either three different flavours "
"each in symmetric or asymmetric version."
REFERENCES = {
"mne-bids": "Appelhoff, S., Sanderson, M., Brooks, T., Vliet, M., "
"Quentin, R., Holdgraf, C., Chaumon, M., Mikulan, E., "
"Tavabi, K., Höchenberger, R., Welke, D., Brunner, C., "
"Rockhill, A., Larson, E., Gramfort, A. and Jas, M. (2019). "
"MNE-BIDS: Organizing electrophysiological data into the "
"BIDS format and facilitating their analysis. Journal of "
"Open Source Software 4: (1896). "
"https://doi.org/10.21105/joss.01896",
"meg": "Niso, G., Gorgolewski, K. J., Bock, E., Brooks, T. L., "
"Flandin, G., Gramfort, A., Henson, R. N., Jas, M., Litvak, "
"V., Moreau, J., Oostenveld, R., Schoffelen, J., Tadel, F., "
"Wexler, J., Baillet, S. (2018). MEG-BIDS, the brain "
"imaging data structure extended to magnetoencephalography. "
"Scientific Data, 5, 180110. "
"https://doi.org/10.1038/sdata.2018.110",
"eeg": "Pernet, C. R., Appelhoff, S., Gorgolewski, K. J., "
"Flandin, G., Phillips, C., Delorme, A., Oostenveld, R. (2019). "
"EEG-BIDS, an extension to the brain imaging data structure "
"for electroencephalography. Scientific Data, 6, 103. "
"https://doi.org/10.1038/s41597-019-0104-8",
"ieeg": "Holdgraf, C., Appelhoff, S., Bickel, S., Bouchard, K., "
"D'Ambrosio, S., David, O., … Hermes, D. (2019). iEEG-BIDS, "
"extending the Brain Imaging Data Structure specification "
"to human intracranial electrophysiology. Scientific Data, "
"6, 102. https://doi.org/10.1038/s41597-019-0105-7",
"nirs": "In preperation",
}
# Mapping subject information between MNE-BIDS and MNE-Python.
HAND_BIDS_TO_MNE = {
("n/a",): 0,
("right", "r", "R", "RIGHT", "Right"): 1,
("left", "l", "L", "LEFT", "Left"): 2,
("ambidextrous", "a", "A", "AMBIDEXTROUS", "Ambidextrous"): 3,
}
HAND_MNE_TO_BIDS = {0: "n/a", 1: "R", 2: "L", 3: "A"}
SEX_BIDS_TO_MNE = {
("n/a", "other", "o", "O", "OTHER", "Other"): 0,
("male", "m", "M", "MALE", "Male"): 1,
("female", "f", "F", "FEMALE", "Female"): 2,
}
SEX_MNE_TO_BIDS = {0: "n/a", 1: "M", 2: "F"}
def _map_options(what, key, fro, to):
if what == "sex":
mapping_bids_mne = SEX_BIDS_TO_MNE
mapping_mne_bids = SEX_MNE_TO_BIDS
elif what == "hand":
mapping_bids_mne = HAND_BIDS_TO_MNE
mapping_mne_bids = HAND_MNE_TO_BIDS
else:
raise ValueError("Can only map `sex` and `hand`.")
if fro == "bids" and to == "mne":
# Many-to-one mapping
mapped_option = None
for bids_keys, mne_option in mapping_bids_mne.items():
if key in bids_keys:
mapped_option = mne_option
break
elif fro == "mne" and to == "bids":
# One-to-one mapping
mapped_option = mapping_mne_bids.get(key, None)
else:
raise RuntimeError(
"fro value {} and to value {} are not "
"accepted. Use 'mne', or 'bids'.".format(fro, to)
)
return mapped_option
# Which JSON data can safely be transferred from a non-anonymized to an
# anonymized dataset without accidentally exposing personal identifiable
# information
ANONYMIZED_JSON_KEY_WHITELIST = [
# Common
"Manufacturer",
"ManufacturersModelName",
"InstitutionName",
"InstitutionalDepartmentName",
"InstitutionAddress",
"DeviceSerialNumber",
# MRI
# Many of these are not standardized, but produced by dcm2niix.
"Modality",
"MagneticFieldStrength",
"ImagingFrequency",
"StationName",
"SeriesInstanceUID",
"StudyInstanceUID",
"StudyID",
"BodyPartExamined",
"PatientPosition",
"ProcedureStepDescription",
"SoftwareVersions",
"MRAcquisitionType",
"SeriesDescription",
"ProtocolName",
"ScanningSequence",
"SequenceVariant",
"ScanOptions",
"SequenceName",
"ImageType",
"SeriesNumber",
"AcquisitionNumber",
"SliceThickness",
"SAR",
"EchoTime",
"RepetitionTime",
"InversionTime",
"FlipAngle",
"PartialFourier",
"BaseResolution",
"ShimSetting",
"TxRefAmp",
"PhaseResolution",
"ReceiveCoilName",
"ReceiveCoilActiveElements",
"PulseSequenceDetails",
"ConsistencyInfo",
"PercentPhaseFOV",
"PercentSampling",
"PhaseEncodingSteps",
"AcquisitionMatrixPE",
"PixelBandwidth",
"DwellTime",
"ImageOrientationPatientDICOM",
"InPlanePhaseEncodingDirectionDICOM",
"ConversionSoftware",
"ConversionSoftwareVersion",
# Electrophys common
"TaskName",
"TaskDescription",
"Instructions",
"PowerLineFrequency",
"SamplingFrequency",
"SoftwareFilters",
"RecordingType",
"EEGChannelCount",
"EOGChannelCount",
"ECGChannelCount",
"EMGChannelCount",
"MiscChannelCount",
"TriggerChannelCount",
"RecordingDuration",
# EEG
"EEGReference",
"EEGPlacementScheme",
# MEG
"DewarPosition",
"DigitizedLandmarks",
"DigitizedHeadPoints",
"MEGChannelCount",
"MEGREFChannelCount",
"ContinuousHeadLocalization",
"HeadCoilFrequency",
]