Skip to content

Commit e79f3c3

Browse files
committed
Documented mag4health support
1 parent b3fdeaf commit e79f3c3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/tutorials/opm/formats/index.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,30 @@ S.positions = 'positions.tsv';
5252
D =spm_opm_create(S);
5353
```
5454

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+
5579
## Neuro-1
5680
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
5781

0 commit comments

Comments
 (0)