You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/opm/formats/index.md
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,30 @@ S.positions = 'positions.tsv';
52
52
D =spm_opm_create(S);
53
53
```
54
54
55
+
## MAG4Health
56
+
MAG4Health also uses the existing `.fif` format and can take advantage of existing fileio available in SPM.
57
+
58
+
```matlab
59
+
S = [];
60
+
S.data = 'raw.fif';
61
+
D =spm_opm_create(S);
62
+
```
63
+
64
+
The channel types may not be listed correctly in the file. If so we can manually set the channel type with SPM. This sets all channels to the type `MEGMAG`
65
+
66
+
```matlab
67
+
D = chantype(D,1:size(D,1),'MEGMAG');
68
+
D.save();
69
+
```
70
+
71
+
Currently, the second tangential axis of these sensors has a higher noise floor than the other 2. We can identify and mark these channels as bad using he following code.
72
+
73
+
```matlab
74
+
badinds = D.selectchannels('regexp_(.*tang2$)');
75
+
D = badchannels(D,[badinds],1);
76
+
D.save();
77
+
```
78
+
55
79
## Neuro-1
56
80
The Neuro-1 system developed by QuSpin currently records data in `.lvm` files. just as with the other data files we can provide additional metadata in the form of `.tsv` and .json files
0 commit comments