-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathdiary
7294 lines (6036 loc) · 321 KB
/
diary
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
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
clc
raw = nirs.testing.simData
raw =
<a href="matlab:helpPopup nirs.core.Data" style="font-weight:bold">Data</a> with properties:
description: []
data: [3001×32 double]
probe: [1×1 nirs.core.Probe]
time: [3001×1 double]
Fm: 0
auxillary: [1×1 Dictionary]
stimulus: [1×1 Dictionary]
demographics: [1×1 Dictionary]
Fs: 10
raw.draw
raw.draw(1)
raw.draw([1 10])
ls ~/Desktop/nirs-toolbox/external/matlab/
add_matlab_toolboxes.m remove_matlab_toolboxes.m
add_toolbox.m toolbox.zip
clc
raw=nirs.testing.simData
raw =
<a href="matlab:helpPopup nirs.core.Data" style="font-weight:bold">Data</a> with properties:
description: []
data: [3001×32 double]
probe: [1×1 nirs.core.Probe]
time: [3001×1 double]
Fm: 0
auxillary: [1×1 Dictionary]
stimulus: [1×1 Dictionary]
demographics: [1×1 Dictionary]
Fs: 10
edit nirs.testing.simData
edit nirs.design.createDesignMatri
edit nirs.design.createDesignMatrix
raw=nirs.testing.simData
raw =
<a href="matlab:helpPopup nirs.core.Data" style="font-weight:bold">Data</a> with properties:
description: []
data: [3001×32 double]
probe: [1×1 nirs.core.Probe]
time: [3001×1 double]
Fm: 0
auxillary: [1×1 Dictionary]
stimulus: [1×1 Dictionary]
demographics: [1×1 Dictionary]
Fs: 10
clc
raw=nirs.testing.simData
raw =
<a href="matlab:helpPopup nirs.core.Data" style="font-weight:bold">Data</a> with properties:
description: []
data: [3001×32 double]
probe: [1×1 nirs.core.Probe]
time: [3001×1 double]
Fm: 0
auxillary: [1×1 Dictionary]
stimulus: [1×1 Dictionary]
demographics: [1×1 Dictionary]
Fs: 10
clc
raw.probe
ans =
<a href="matlab:helpPopup nirs.core.Probe" style="font-weight:bold">Probe</a> with properties:
optodes: [17×6 table]
link: [32×3 table]
distances: [32×1 double]
srcPos: [9×3 double]
detPos: [8×3 double]
types: [2×1 double]
raw.probe.link
ans =
32×3 <a href="matlab:helpPopup table" style="font-weight:bold">table</a>
<strong>source</strong> <strong>detector</strong> <strong>type</strong>
<strong>______</strong> <strong>________</strong> <strong>____</strong>
1 1 690
1 1 830
2 1 690
2 1 830
2 2 690
: : :
8 7 830
8 8 690
8 8 830
9 8 690
9 8 830
<a href="matlab:if exist('ans','var') && istabular(ans),displayWholeObj(ans,'ans'),else,fprintf('Unable to display table variable ''ans'' because it no longer exists.\n');end">Display all 32 rows.</a>
clc
raw.gui
ans =
<a href="matlab:helpPopup matlab.ui.Figure" style="font-weight:bold">Figure</a> (nirsviewer) with properties:
Number: 1
Name: ''
Color: [0.9400 0.9400 0.9400]
Position: [680 458 560 420]
Units: 'pixels'
Show <a href="matlab:if exist('ans', 'var'), matlab.graphics.internal.getForDisplay('ans', ans, 'matlab.ui.Figure'), else, matlab.graphics.internal.getForDisplay('ans'), end">all properties</a>
raw
raw =
<a href="matlab:helpPopup nirs.core.Data" style="font-weight:bold">Data</a> with properties:
description: []
data: [3001×32 double]
probe: [1×1 nirs.core.Probe]
time: [3001×1 double]
Fm: 0
auxillary: [1×1 Dictionary]
stimulus: [1×1 Dictionary]
demographics: [1×1 Dictionary]
Fs: 10
raw.stimulus
ans =
Dictionary Class Containing:
A : nirs.design.StimulusEvents
clc
raw.stimulus
ans =
Dictionary Class Containing:
A : nirs.design.StimulusEvents
raw.stimulus('A')
ans =
<a href="matlab:helpPopup nirs.design.StimulusEvents" style="font-weight:bold">StimulusEvents</a> with properties:
name: 'A'
onset: [35×1 double]
dur: [35×1 double]
amp: [35×1 double]
regressor_no_interest: 0
metadata: [0×0 table]
count: 35
clc
job = nirs.modules.OpticalDensity
job =
<a href="matlab:helpPopup nirs.modules.OpticalDensity" style="font-weight:bold">OpticalDensity</a> with properties:
name: 'Optical Density'
prevJob: []
OD = job.run(raw)
OD =
<a href="matlab:helpPopup nirs.core.Data" style="font-weight:bold">Data</a> with properties:
description: []
data: [3001×32 double]
probe: [1×1 nirs.core.Probe]
time: [3001×1 double]
Fm: 0
auxillary: [1×1 Dictionary]
stimulus: [1×1 Dictionary]
demographics: [1×1 Dictionary]
Fs: 10
OD.gui
ans =
<a href="matlab:helpPopup matlab.ui.Figure" style="font-weight:bold">Figure</a> (nirsviewer) with properties:
Number: 1
Name: ''
Color: [0.9400 0.9400 0.9400]
Position: [680 458 560 420]
Units: 'pixels'
Show <a href="matlab:if exist('ans', 'var'), matlab.graphics.internal.getForDisplay('ans', ans, 'matlab.ui.Figure'), else, matlab.graphics.internal.getForDisplay('ans'), end">all properties</a>
clc
job=nirs.modules.BeerLambertLaw
job =
<a href="matlab:helpPopup nirs.modules.BeerLambertLaw" style="font-weight:bold">BeerLambertLaw</a> with properties:
PPF: 0.1000
name: 'Beer-Lambert Law'
prevJob: []
job=nirs.modules.Resample(job)
job =
<a href="matlab:helpPopup nirs.modules.Resample" style="font-weight:bold">Resample</a> with properties:
Fs: 4
Resample_Auxillary_Data: 1
name: 'Resample'
prevJob: [1×1 nirs.modules.BeerLambertLaw]
Hb=job.run(OD)
Hb =
<a href="matlab:helpPopup nirs.core.Data" style="font-weight:bold">Data</a> with properties:
description: []
data: [1201×32 double]
probe: [1×1 nirs.core.Probe]
time: [1201×1 double]
Fm: 0
auxillary: [1×1 Dictionary]
stimulus: [1×1 Dictionary]
demographics: [1×1 Dictionary]
Fs: 4
Hb.probe.link
ans =
32×3 <a href="matlab:helpPopup table" style="font-weight:bold">table</a>
<strong>source</strong> <strong>detector</strong> <strong>type</strong>
<strong>______</strong> <strong>________</strong> <strong>_______</strong>
1 1 {'hbo'}
1 1 {'hbr'}
2 1 {'hbo'}
2 1 {'hbr'}
2 2 {'hbo'}
: : :
8 7 {'hbr'}
8 8 {'hbo'}
8 8 {'hbr'}
9 8 {'hbo'}
9 8 {'hbr'}
<a href="matlab:if exist('ans','var') && istabular(ans),displayWholeObj(ans,'ans'),else,fprintf('Unable to display table variable ''ans'' because it no longer exists.\n');end">Display all 32 rows.</a>
clc
job=nirs.modules.BeerLambertLaw;
job=nirs.modules.Resample(job);
job
job =
<a href="matlab:helpPopup nirs.modules.Resample" style="font-weight:bold">Resample</a> with properties:
Fs: 4
Resample_Auxillary_Data: 1
name: 'Resample'
prevJob: [1×1 nirs.modules.BeerLambertLaw]
clc
Hb.probe
ans =
<a href="matlab:helpPopup nirs.core.Probe" style="font-weight:bold">Probe</a> with properties:
optodes: [17×6 table]
link: [32×3 table]
distances: [32×1 double]
srcPos: [9×3 double]
detPos: [8×3 double]
types: {2×1 cell}
Hb.probe.link
ans =
32×3 <a href="matlab:helpPopup table" style="font-weight:bold">table</a>
<strong>source</strong> <strong>detector</strong> <strong>type</strong>
<strong>______</strong> <strong>________</strong> <strong>_______</strong>
1 1 {'hbo'}
1 1 {'hbr'}
2 1 {'hbo'}
2 1 {'hbr'}
2 2 {'hbo'}
: : :
8 7 {'hbr'}
8 8 {'hbo'}
8 8 {'hbr'}
9 8 {'hbo'}
9 8 {'hbr'}
<a href="matlab:if exist('ans','var') && istabular(ans),displayWholeObj(ans,'ans'),else,fprintf('Unable to display table variable ''ans'' because it no longer exists.\n');end">Display all 32 rows.</a>
clc
job
job =
<a href="matlab:helpPopup nirs.modules.Resample" style="font-weight:bold">Resample</a> with properties:
Fs: 4
Resample_Auxillary_Data: 1
name: 'Resample'
prevJob: [1×1 nirs.modules.BeerLambertLaw]
job=nirs.modules.GLM
job =
<a href="matlab:helpPopup nirs.modules.GLM" style="font-weight:bold">GLM</a> with properties:
type: 'AR-IRLS'
AddShortSepRegressors: 0
useGPU: 0
precisionSingle: 0
options: []
basis: [1×1 Dictionary]
verbose: 1
trend_func: @nirs.design.trend.constant
goforit: 0
name: 'GLM via AR(P)-IRLS'
prevJob: []
Stats=job.run(Hb);
................................Finished 1 of 1.
clc
Stats
Stats =
<a href="matlab:helpPopup nirs.core.ChannelStats" style="font-weight:bold">ChannelStats</a> with properties:
description: []
variables: [32×4 table]
beta: [32×1 double]
covb: [32×32 double]
dfe: 1.1512e+03
tail: 'two-sided'
probe: [1×1 nirs.core.Probe]
demographics: [1×1 Dictionary]
basis: [1×1 struct]
conditions: {'A'}
tstat: [32×1 double]
p: [32×1 double]
q: [32×1 double]
Stats.draw
ans =
1×2 <a href="matlab:helpPopup matlab.ui.Figure" style="font-weight:bold">Figure</a> array:
Figure Figure
Stats.draw('Tstat',[],'q<0.05')
{Unrecognized method, property, or field 'Tstat' for class 'nirs.core.ChannelStats'.
Error in <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.core.ChannelStats/draw', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+core/@ChannelStats/draw.m', 21)" style="font-weight:bold">nirs.core.ChannelStats/draw</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+core/@ChannelStats/draw.m',21,0)">line 21</a>)
values{ii} = obj(ii).(vtype);
}
Stats.draw('tstat',[],'q<0.05')
ans =
1×2 <a href="matlab:helpPopup matlab.ui.Figure" style="font-weight:bold">Figure</a> array:
Figure Figure
Stats.draw('tstat',[],'p<0.05')
ans =
1×2 <a href="matlab:helpPopup matlab.ui.Figure" style="font-weight:bold">Figure</a> array:
Figure Figure
Stats.gui
ans =
<a href="matlab:helpPopup matlab.ui.Figure" style="font-weight:bold">Figure</a> (1) with properties:
Number: 1
Name: ''
Color: [0.9400 0.9400 0.9400]
Position: [680 458 560 420]
Units: 'pixels'
Show <a href="matlab:if exist('ans', 'var'), matlab.graphics.internal.getForDisplay('ans', ans, 'matlab.ui.Figure'), else, matlab.graphics.internal.getForDisplay('ans'), end">all properties</a>
[Warning: unable to find name: B]
[> In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.design.contrastvector', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+design/contrastvector.m', 195)" style="font-weight:bold">nirs.design.contrastvector</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+design/contrastvector.m',195,0)">line 195</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.design.contrastvector', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+design/contrastvector.m', 20)" style="font-weight:bold">nirs.design.contrastvector</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+design/contrastvector.m',20,0)">line 20</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.core.ChannelStats/ttest', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+core/@ChannelStats/ttest.m', 60)" style="font-weight:bold">nirs.core.ChannelStats/ttest</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+core/@ChannelStats/ttest.m',60,0)">line 60</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.core.ChannelStats/gui>editcond', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+core/@ChannelStats/gui.m', 152)" style="font-weight:bold">nirs.core.ChannelStats/gui>editcond</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+core/@ChannelStats/gui.m',152,0)">line 152</a>)]
[Warning: error processing: ]
[> In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.core.ChannelStats/ttest', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+core/@ChannelStats/ttest.m', 63)" style="font-weight:bold">nirs.core.ChannelStats/ttest</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+core/@ChannelStats/ttest.m',63,0)">line 63</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.core.ChannelStats/gui>editcond', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+core/@ChannelStats/gui.m', 152)" style="font-weight:bold">nirs.core.ChannelStats/gui>editcond</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+core/@ChannelStats/gui.m',152,0)">line 152</a>)]
[Warning: invalid contrast]
[> In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.core.ChannelStats/gui>editcond', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+core/@ChannelStats/gui.m', 158)" style="font-weight:bold">nirs.core.ChannelStats/gui>editcond</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+core/@ChannelStats/gui.m',158,0)">line 158</a>)]
clc
run('/Users/theodorehuppert/Desktop/NIRS_Course2024/Presentations/Day1/FRESH_Audio.mlx')
Searching directory for SNIRF files
17 files found
Loading FRESH-Audio/sub-01/ses-01/nirs/sub-01_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-01/ses-01/nirs/sub-01_ses-01_task-FRESHAUDIO_nirs.snirf
{Operation terminated by user during <a href="matlab:matlab.internal.language.introspective.errorDocCallback('str2num>protected_conversion')" style="font-weight:bold">str2num>protected_conversion</a>
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('str2num', '/Applications/MATLAB_R2023a.app/toolbox/matlab/strfun/str2num.m', 61)" style="font-weight:bold">str2num</a> (<a href="matlab: opentoline('/Applications/MATLAB_R2023a.app/toolbox/matlab/strfun/str2num.m',61,0)">line 61</a>)
[x,ok] = protected_conversion(['[' s ']'], isDefaultCall, isRestrictedEval); % Always add brackets
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.io.loadSNIRF>array2struct', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+io/loadSNIRF.m', 65)" style="font-weight:bold">nirs.io.loadSNIRF>array2struct</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+io/loadSNIRF.m',65,0)">line 65</a>)
if(~isempty(str2num(array{i,1}(end))))
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.io.loadSNIRF>array2struct', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+io/loadSNIRF.m', 92)" style="font-weight:bold">nirs.io.loadSNIRF>array2struct</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+io/loadSNIRF.m',92,0)">line 92</a>)
s = array2struct(array2(lst,:));
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.io.loadSNIRF>array2struct', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+io/loadSNIRF.m', 92)" style="font-weight:bold">nirs.io.loadSNIRF>array2struct</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+io/loadSNIRF.m',92,0)">line 92</a>)
s = array2struct(array2(lst,:));
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.io.loadSNIRF>array2struct', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+io/loadSNIRF.m', 92)" style="font-weight:bold">nirs.io.loadSNIRF>array2struct</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+io/loadSNIRF.m',92,0)">line 92</a>)
s = array2struct(array2(lst,:));
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.io.loadSNIRF', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+io/loadSNIRF.m', 40)" style="font-weight:bold">nirs.io.loadSNIRF</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+io/loadSNIRF.m',40,0)">line 40</a>)
snirf = array2struct(array);
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.bids.loadBIDS', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+bids/loadBIDS.m', 19)" style="font-weight:bold">nirs.bids.loadBIDS</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+bids/loadBIDS.m',19,0)">line 19</a>)
data(i,1)=nirs.io.loadSNIRF(snirf_files(i).name);
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('FRESH_Audio', '/Users/theodorehuppert/Desktop/NIRS_Course2024/Presentations/Day1/FRESH_Audio.mlx', 10)" style="font-weight:bold">FRESH_Audio</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/NIRS_Course2024/Presentations/Day1/FRESH_Audio.mlx',10,0)">line 10</a>)
raw=nirs.bids.loadBIDS('FRESH-Audio',true);
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('run', '/Applications/MATLAB_R2023a.app/toolbox/matlab/lang/run.m', 91)" style="font-weight:bold">run</a> (<a href="matlab: opentoline('/Applications/MATLAB_R2023a.app/toolbox/matlab/lang/run.m',91,0)">line 91</a>)
evalin('caller', strcat(script, ';'));
}
edit('/Users/theodorehuppert/Desktop/NIRS_Course2024/Presentations/Day1/FRESH_Audio.mlx')
clc
folder = '~/Desktop/NIRS_Course2024/DataSets';
cd(folder);
raw=nirs.bids.loadBIDS('FRESH-Audio',true);
Searching directory for SNIRF files
17 files found
Loading FRESH-Audio/sub-01/ses-01/nirs/sub-01_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-01/ses-01/nirs/sub-01_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-02/ses-01/nirs/sub-02_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-02/ses-01/nirs/sub-02_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-03/ses-01/nirs/sub-03_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-03/ses-01/nirs/sub-03_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-04/ses-01/nirs/sub-04_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-04/ses-01/nirs/sub-04_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-05/ses-01/nirs/sub-05_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-05/ses-01/nirs/sub-05_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-06/ses-01/nirs/sub-06_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-06/ses-01/nirs/sub-06_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-07/ses-01/nirs/sub-07_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-07/ses-01/nirs/sub-07_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-08/ses-01/nirs/sub-08_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-08/ses-01/nirs/sub-08_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-09/ses-01/nirs/sub-09_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-09/ses-01/nirs/sub-09_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-10/ses-01/nirs/sub-10_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-10/ses-01/nirs/sub-10_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-11/ses-01/nirs/sub-11_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-11/ses-01/nirs/sub-11_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-12/ses-01/nirs/sub-12_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-12/ses-01/nirs/sub-12_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-13/ses-01/nirs/sub-13_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-13/ses-01/nirs/sub-13_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-14/ses-01/nirs/sub-14_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-14/ses-01/nirs/sub-14_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-15/ses-01/nirs/sub-15_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-15/ses-01/nirs/sub-15_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-16/ses-01/nirs/sub-16_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-16/ses-01/nirs/sub-16_ses-01_task-FRESHAUDIO_nirs.snirf
Loading FRESH-Audio/sub-17/ses-01/nirs/sub-17_ses-01_task-FRESHAUDIO_nirs.snirf
Loading SNIRF file: FRESH-Audio/sub-17/ses-01/nirs/sub-17_ses-01_task-FRESHAUDIO_nirs.snirf
applying JSON file: FRESH-Audio/dataset_description.json
applying JSON file: FRESH-Audio/participants.json
applying JSON file: FRESH-Audio/sub-01/ses-01/nirs/sub-01_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-01/ses-01/nirs/sub-01_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-02/ses-01/nirs/sub-02_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-02/ses-01/nirs/sub-02_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-03/ses-01/nirs/sub-03_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-03/ses-01/nirs/sub-03_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-04/ses-01/nirs/sub-04_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-04/ses-01/nirs/sub-04_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-05/ses-01/nirs/sub-05_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-05/ses-01/nirs/sub-05_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-06/ses-01/nirs/sub-06_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-06/ses-01/nirs/sub-06_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-07/ses-01/nirs/sub-07_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-07/ses-01/nirs/sub-07_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-08/ses-01/nirs/sub-08_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-08/ses-01/nirs/sub-08_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-09/ses-01/nirs/sub-09_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-09/ses-01/nirs/sub-09_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-10/ses-01/nirs/sub-10_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-10/ses-01/nirs/sub-10_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-11/ses-01/nirs/sub-11_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-11/ses-01/nirs/sub-11_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-12/ses-01/nirs/sub-12_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-12/ses-01/nirs/sub-12_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-13/ses-01/nirs/sub-13_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-13/ses-01/nirs/sub-13_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-14/ses-01/nirs/sub-14_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-14/ses-01/nirs/sub-14_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-15/ses-01/nirs/sub-15_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-15/ses-01/nirs/sub-15_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-16/ses-01/nirs/sub-16_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-16/ses-01/nirs/sub-16_ses-01_task-FRESHAUDIO_nirs.json
applying JSON file: FRESH-Audio/sub-17/ses-01/nirs/sub-17_ses-01_coordsystem.json
applying JSON file: FRESH-Audio/sub-17/ses-01/nirs/sub-17_ses-01_task-FRESHAUDIO_nirs.json
pwd
ans =
'/Users/theodorehuppert/Desktop/NIRS_Course2024/DataSets'
ls
FRESH-Audio Toolbox_demodata
FRESH-Motor fNIRS_Parkinson
Parent-child
clc
raw
raw =
17×1 <a href="matlab:helpPopup nirs.core.Data" style="font-weight:bold">Data</a> array with properties:
description
data
probe
time
Fm
auxillary
stimulus
demographics
Fs
raw.draw
raw(3).draw
clc
nirs.createDemographicsTable(raw)
ans =
17×36 <a href="matlab:helpPopup table" style="font-weight:bold">table</a>
<strong>FrequencyUnit</strong> <strong>LengthUnit</strong> <strong>MNE_coordFrame</strong> <strong>MeasurementDate</strong> <strong>MeasurementTime</strong> <strong>SubjectID</strong> <strong>TimeUnit</strong> <strong>UUID</strong> <strong>Name</strong> <strong>BIDSVersion</strong> <strong>DatasetType</strong> <strong>Authors</strong> <strong>age</strong> <strong>sex</strong> <strong>hand</strong> <strong>weight</strong> <strong>height</strong> <strong>NIRSCoordinateSystem</strong> <strong>NIRSCoordinateSystemDescription</strong> <strong>NIRSCoordinateUnits</strong> <strong>TaskName</strong> <strong>Manufacturer</strong> <strong>PowerLineFrequency</strong> <strong>SamplingFrequency</strong> <strong>SoftwareFilters</strong> <strong>RecordingDuration</strong> <strong>RecordingType</strong> <strong>EEGChannelCount</strong> <strong>EOGChannelCount</strong> <strong>ECGChannelCount</strong> <strong>EMGChannelCount</strong> <strong>MiscChannelCount</strong> <strong>TriggerChannelCount</strong> <strong>NIRSChannelCount</strong> <strong>NIRSSourceOptodeCount</strong> <strong>NIRSDetectorOptodeCount</strong>
<strong>_____________</strong> <strong>__________</strong> <strong>______________</strong> <strong>_______________</strong> <strong>_______________</strong> <strong>__________</strong> <strong>________</strong> <strong>________________________________________</strong> <strong>_____________________</strong> <strong>___________</strong> <strong>___________</strong> <strong>______________</strong> <strong>_______</strong> <strong>_______</strong> <strong>_______</strong> <strong>_______</strong> <strong>_______</strong> <strong>____________________</strong> <strong>________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________</strong> <strong>___________________</strong> <strong>______________</strong> <strong>____________</strong> <strong>__________________</strong> <strong>_________________</strong> <strong>_______________</strong> <strong>_________________</strong> <strong>______________</strong> <strong>_______________</strong> <strong>_______________</strong> <strong>_______________</strong> <strong>_______________</strong> <strong>________________</strong> <strong>___________________</strong> <strong>________________</strong> <strong>_____________________</strong> <strong>_______________________</strong>
{'Hz'} {'m'} 4 {'2019-11-08'} {'09:20:00Z'} {'sub-01'} {'s'} {'738b4971-a378-4548-9a04-5c1b920f541c'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 2004.9 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2019-11-08'} {'10:13:01Z'} {'sub-02'} {'s'} {'9618820e-a515-438f-ab6a-feb37a0b060c'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1344.4 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2019-11-08'} {'10:50:11Z'} {'sub-03'} {'s'} {'7ce7a81c-109f-4b09-b0e1-10cc89ca6b5a'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1271 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2019-11-08'} {'14:06:06Z'} {'sub-04'} {'s'} {'9d156bb5-d2b4-4d69-a81c-64eed72ee212'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1228.6 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2019-11-08'} {'14:45:57Z'} {'sub-05'} {'s'} {'3122455e-5ffb-4f56-869d-e19bdfdfc864'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1239.4 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2019-11-12'} {'10:52:47Z'} {'sub-06'} {'s'} {'ca7da53e-5a4b-4fd6-9442-ab3c3e2fe1ea'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1206 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2019-11-13'} {'11:47:13Z'} {'sub-07'} {'s'} {'d1634f9d-8390-4f7d-a6b0-acc74ce88b2f'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1235.5 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2019-11-15'} {'14:59:33Z'} {'sub-08'} {'s'} {'27d9bdb5-454f-43a2-9448-fdad2e8a6849'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1280.8 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2019-11-28'} {'13:13:53Z'} {'sub-09'} {'s'} {'b18d1ebc-8850-4f8e-8a23-9f65a931f01d'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1262.2 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2019-12-03'} {'14:52:15Z'} {'sub-10'} {'s'} {'fe0a57d7-ea3b-4df7-985b-16c341c469ee'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1254.7 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2020-09-16'} {'11:27:41Z'} {'sub-11'} {'s'} {'626d3d3a-38a5-4aed-8c89-4c46828f9738'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1312.9 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2020-09-16'} {'12:17:27Z'} {'sub-12'} {'s'} {'0eb0872a-f296-4036-8f75-af543a9ae737'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1243 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2020-09-17'} {'14:13:40Z'} {'sub-13'} {'s'} {'9ba25533-b60c-4b77-b7d5-080c227c4e6d'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1232.6 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2020-09-17'} {'15:06:35Z'} {'sub-14'} {'s'} {'e574a6cb-3a27-48fd-9694-c236184ff396'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1244 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2020-09-17'} {'15:59:18Z'} {'sub-15'} {'s'} {'74c60a3b-be36-4c98-aeb4-f922ae933f3e'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1244.2 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2020-09-24'} {'15:21:40Z'} {'sub-16'} {'s'} {'24e7da41-15e0-4d71-ab8e-ffebba3a78d0'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1211.3 {'continuous'} 0 0 0 0 0 0 66 12 20
{'Hz'} {'m'} 4 {'2020-09-24'} {'17:39:49Z'} {'sub-17'} {'s'} {'733390b2-4b7d-4639-8539-906320eae618'} {'FRESHAudioDataset'} {'1.7.0'} {'raw'} {'RobertLuke'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'CapTrak'} {'TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.'} {'m'} {'FRESHAUDIO'} {'SNIRF'} 50 5.2083 {'n/a'} 1302.3 {'continuous'} 0 0 0 0 0 0 66 12 20
clc
raw(1).demographics
ans =
Dictionary Class Containing:
FrequencyUnit : Hz
LengthUnit : m
MNE_coordFrame : 4
MeasurementDate : 2019-11-08
MeasurementTime : 09:20:00Z
SubjectID : sub-01
TimeUnit : s
UUID : 738b4971-a378-4548-9a04-5c1b920f541c
Name : FRESHAudioDataset
BIDSVersion : 1.7.0
DatasetType : raw
Authors : RobertLuke
age : n/a
sex : n/a
hand : n/a
weight : n/a
height : n/a
NIRSCoordinateSystem : CapTrak
NIRSCoordinateSystemDescription : TheX-axisgoesfromtheleftpreauricularpoint(LPA)throughtherightpreauricularpoint(RPA).TheY-axisgoesorthogonallytotheX-axisthroughthenasion(NAS).TheZ-axisgoesorthogonallytotheXY-planethroughthevertexofthehead.Thiscorrespondstoa"RAS"orientationwiththeoriginofthecoordinatesystemapproximatelybetweentheears.SeeAppendixVIIIintheBIDSspecification.
NIRSCoordinateUnits : m
TaskName : FRESHAUDIO
Manufacturer : SNIRF
PowerLineFrequency : 50
SamplingFrequency : 5.2083
SoftwareFilters : n/a
RecordingDuration : 2004.864
RecordingType : continuous
EEGChannelCount : 0
EOGChannelCount : 0
ECGChannelCount : 0
EMGChannelCount : 0
MiscChannelCount : 0
TriggerChannelCount : 0
NIRSChannelCount : 66
NIRSSourceOptodeCount : 12
NIRSDetectorOptodeCount : 20
clc
ls FRESH-Audio/
CHANGES sub-07
README sub-08
code sub-09
dataset_description.json sub-10
participants.json sub-11
participants.tsv sub-12
sub-01 sub-13
sub-02 sub-14
sub-03 sub-15
sub-04 sub-16
sub-05 sub-17
sub-06
tbl=readtable('FRESH-Audio/participants.tsv')
{Error using <a href="matlab:matlab.internal.language.introspective.errorDocCallback('readtable')" style="font-weight:bold">readtable</a>
'.tsv' is not a recognized file extension. Unable to detect file type.
To read the file as a specific file type, regardless of file
extension, use the 'FileType' name-value pair.
}
tbl=readtable('FRESH-Audio/participants.tsv','Type','text')
{Error using <a href="matlab:matlab.internal.language.introspective.errorDocCallback('readtable')" style="font-weight:bold">readtable</a>
Unknown Parameter 'Type'.
}
tbl=readtable('FRESH-Audio/participants.tsv','Format','text')
{Error using <a href="matlab:matlab.internal.language.introspective.errorDocCallback('readtable')" style="font-weight:bold">readtable</a>
File extension ".tsv" is not recognized. Use 'FileType' to specify
the type to read.
}
tbl=readtable('FRESH-Audio/participants.tsv','FileType','text')
tbl =
17×6 <a href="matlab:helpPopup table" style="font-weight:bold">table</a>
<strong>participant_id</strong> <strong>age</strong> <strong>sex</strong> <strong>hand</strong> <strong>weight</strong> <strong>height</strong>
<strong>______________</strong> <strong>_______</strong> <strong>_______</strong> <strong>_______</strong> <strong>_______</strong> <strong>_______</strong>
{'sub-01'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-02'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-03'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-04'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-05'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-06'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-07'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-08'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-09'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-10'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-11'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-12'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-13'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-14'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-15'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-16'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-17'} {'n/a'} {'n/a'} {'n/a'} {'n/a'} {'n/a'}
tbl.age=rand(17,1)*10
tbl =
17×6 <a href="matlab:helpPopup table" style="font-weight:bold">table</a>
<strong>participant_id</strong> <strong>age</strong> <strong>sex</strong> <strong>hand</strong> <strong>weight</strong> <strong>height</strong>
<strong>______________</strong> <strong>_______</strong> <strong>_______</strong> <strong>_______</strong> <strong>_______</strong> <strong>_______</strong>
{'sub-01'} 9.3831 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-02'} 3.0697 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-03'} 4.4773 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-04'} 1.6971 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-05'} 9.6945 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-06'} 4.8261 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-07'} 8.2007 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-08'} 9.167 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-09'} 7.9416 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-10'} 8.2766 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-11'} 4.6683 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-12'} 5.4648 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-13'} 7.585 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-14'} 9.153 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-15'} 0.58298 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-16'} 5.8876 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-17'} 2.6606 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
job=nirs.modules.AddDemographics
job =
<a href="matlab:helpPopup nirs.modules.AddDemographics" style="font-weight:bold">AddDemographics</a> with properties:
demoTable: []
varToMatch: 'subject'
allowMissing: 0
name: 'Add Demographics From Table'
prevJob: []
job.demoTable=tbl
job =
<a href="matlab:helpPopup nirs.modules.AddDemographics" style="font-weight:bold">AddDemographics</a> with properties:
demoTable: [17×6 table]
varToMatch: 'subject'
allowMissing: 0
name: 'Add Demographics From Table'
prevJob: []
tbl
tbl =
17×6 <a href="matlab:helpPopup table" style="font-weight:bold">table</a>
<strong>participant_id</strong> <strong>age</strong> <strong>sex</strong> <strong>hand</strong> <strong>weight</strong> <strong>height</strong>
<strong>______________</strong> <strong>_______</strong> <strong>_______</strong> <strong>_______</strong> <strong>_______</strong> <strong>_______</strong>
{'sub-01'} 9.3831 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-02'} 3.0697 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-03'} 4.4773 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-04'} 1.6971 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-05'} 9.6945 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-06'} 4.8261 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-07'} 8.2007 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-08'} 9.167 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-09'} 7.9416 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-10'} 8.2766 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-11'} 4.6683 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-12'} 5.4648 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-13'} 7.585 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-14'} 9.153 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-15'} 0.58298 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-16'} 5.8876 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
{'sub-17'} 2.6606 {'n/a'} {'n/a'} {'n/a'} {'n/a'}
job.varToMatch='participant_id'
job =
<a href="matlab:helpPopup nirs.modules.AddDemographics" style="font-weight:bold">AddDemographics</a> with properties:
demoTable: [17×6 table]
varToMatch: 'participant_id'
allowMissing: 0
name: 'Add Demographics From Table'
prevJob: []
raw=job.run(raw)
[Warning: participant_id does not exist in Dictionary]
[> In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('Dictionary/get', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m', 271)" style="font-weight:bold">Dictionary/get</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m',271,0)">line 271</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('Dictionary/subsref', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m', 356)" style="font-weight:bold">indexing</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m',356,0)">line 356</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules/AddDemographics/runThis', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m', 65)" style="font-weight:bold">nirs.modules/AddDemographics/runThis</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m',65,0)">line 65</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules/AbstractModule/run', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m', 77)" style="font-weight:bold">nirs.modules/AbstractModule/run</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m',77,0)">line 77</a>)]
[Warning: participant_id does not exist in Dictionary]
[> In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('Dictionary/get', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m', 271)" style="font-weight:bold">Dictionary/get</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m',271,0)">line 271</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('Dictionary/subsref', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m', 356)" style="font-weight:bold">indexing</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m',356,0)">line 356</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules/AddDemographics/runThis', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m', 65)" style="font-weight:bold">nirs.modules/AddDemographics/runThis</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m',65,0)">line 65</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules/AbstractModule/run', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m', 77)" style="font-weight:bold">nirs.modules/AbstractModule/run</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m',77,0)">line 77</a>)]
[Warning: participant_id does not exist in Dictionary]
[> In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('Dictionary/get', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m', 271)" style="font-weight:bold">Dictionary/get</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m',271,0)">line 271</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('Dictionary/subsref', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m', 356)" style="font-weight:bold">indexing</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m',356,0)">line 356</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules/AddDemographics/runThis', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m', 68)" style="font-weight:bold">nirs.modules/AddDemographics/runThis</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m',68,0)">line 68</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules/AbstractModule/run', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m', 77)" style="font-weight:bold">nirs.modules/AbstractModule/run</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m',77,0)">line 77</a>)]
{Operator '==' is not supported for operands of type 'cell'.
Error in <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules.AddDemographics/runThis', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m', 68)" style="font-weight:bold">nirs.modules.AddDemographics/runThis</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m',68,0)">line 68</a>)
idx=find(obj.demoTable.(varToMatchA)==data(i).demographics(obj.varToMatch) );
Error in <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules.AbstractModule/run', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m', 77)" style="font-weight:bold">nirs.modules.AbstractModule/run</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m',77,0)">line 77</a>)
out = obj.runThis( inputs );
}
clc
tbl.age2=tbl.age;
tbl.age=[];
job.demoTable=tbl
job =
<a href="matlab:helpPopup nirs.modules.AddDemographics" style="font-weight:bold">AddDemographics</a> with properties:
demoTable: [17×6 table]
varToMatch: 'participant_id'
allowMissing: 0
name: 'Add Demographics From Table'
prevJob: []
raw=job.run(raw)
[Warning: participant_id does not exist in Dictionary]
[> In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('Dictionary/get', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m', 271)" style="font-weight:bold">Dictionary/get</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m',271,0)">line 271</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('Dictionary/subsref', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m', 356)" style="font-weight:bold">indexing</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m',356,0)">line 356</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules/AddDemographics/runThis', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m', 65)" style="font-weight:bold">nirs.modules/AddDemographics/runThis</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m',65,0)">line 65</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules/AbstractModule/run', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m', 77)" style="font-weight:bold">nirs.modules/AbstractModule/run</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m',77,0)">line 77</a>)]
[Warning: participant_id does not exist in Dictionary]
[> In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('Dictionary/get', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m', 271)" style="font-weight:bold">Dictionary/get</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m',271,0)">line 271</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('Dictionary/subsref', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m', 356)" style="font-weight:bold">indexing</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m',356,0)">line 356</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules/AddDemographics/runThis', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m', 65)" style="font-weight:bold">nirs.modules/AddDemographics/runThis</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m',65,0)">line 65</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules/AbstractModule/run', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m', 77)" style="font-weight:bold">nirs.modules/AbstractModule/run</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m',77,0)">line 77</a>)]
[Warning: participant_id does not exist in Dictionary]
[> In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('Dictionary/get', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m', 271)" style="font-weight:bold">Dictionary/get</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m',271,0)">line 271</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('Dictionary/subsref', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m', 356)" style="font-weight:bold">indexing</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/Dictionary/Dictionary.m',356,0)">line 356</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules/AddDemographics/runThis', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m', 68)" style="font-weight:bold">nirs.modules/AddDemographics/runThis</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m',68,0)">line 68</a>)
In <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules/AbstractModule/run', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m', 77)" style="font-weight:bold">nirs.modules/AbstractModule/run</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m',77,0)">line 77</a>)]
{Operator '==' is not supported for operands of type 'cell'.
Error in <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules.AddDemographics/runThis', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m', 68)" style="font-weight:bold">nirs.modules.AddDemographics/runThis</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AddDemographics.m',68,0)">line 68</a>)
idx=find(obj.demoTable.(varToMatchA)==data(i).demographics(obj.varToMatch) );
Error in <a href="matlab:matlab.internal.language.introspective.errorDocCallback('nirs.modules.AbstractModule/run', '/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m', 77)" style="font-weight:bold">nirs.modules.AbstractModule/run</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/+nirs/+modules/AbstractModule.m',77,0)">line 77</a>)
out = obj.runThis( inputs );
}
clc
clc
job=nirs.modules.OpticalDensity();
% Step 2. Resample the data from 5.2Hz to 1Hz to make
% analysis faster. This is totally optional and
% generally for publications I prefer to keep at 4Hz.
% The GLM step runs as O(N^2) so 1Hz will run 25times
% faster. This step can be done in any order prior to
% the GLM model
job=nirs.modules.Resample(job); % note, the input to this is the previous "job" step
job.Fs=1;
% Step 3. Run the Modified Beer Lambert law
% The default is a PPF of 0.1 (DPF=6/PVC=60)
job=nirs.modules.BeerLambertLaw(job);
% Finally, run the GLM model using all the defaults.
job=nirs.modules.GLM(job);
job
job =
<a href="matlab:helpPopup nirs.modules.GLM" style="font-weight:bold">GLM</a> with properties:
type: 'AR-IRLS'
AddShortSepRegressors: 0
useGPU: 0
precisionSingle: 0
options: []
basis: [1×1 Dictionary]
verbose: 1
trend_func: @nirs.design.trend.constant
goforit: 0
name: 'GLM via AR(P)-IRLS'
prevJob: [1×1 nirs.modules.BeerLambertLaw]
clc
job.cite
Citations:
-----------------
Beer-Lambert Law
Extinction coef from: Jacques, Steven L. "Optical properties of biological tissues: a review." Physi
cs in medicine and biology 58.11 (2013): R37.
-----------------
GLM via AR(P)-IRLS
Barker, Jeffrey W., Ardalan Aarabi, and Theodore J. Huppert."Autoregressive model based algorithm fo
r correcting motion and serially correlated errors in fNIRS." Biomedical optics express 4.8 (2013):
1366-1379.
clc
nirs.viz.jobmanager
ans =
<a href="matlab:helpPopup matlab.ui.Figure" style="font-weight:bold">Figure</a> (figure1) with properties:
Number: []
Name: 'jobmanagerGUI'
Color: [0.9400 0.9400 0.9400]
Position: [135.6667 2.9231 113.3333 58.3846]
Units: 'characters'
Show <a href="matlab:if exist('ans', 'var'), matlab.graphics.internal.getForDisplay('ans', ans, 'matlab.ui.Figure'), else, matlab.graphics.internal.getForDisplay('ans'), end">all properties</a>
{Error using <a href="matlab:matlab.internal.language.introspective.errorDocCallback('setfield')" style="font-weight:bold">setfield</a>
Not enough input arguments.
Error in <a href="matlab:matlab.internal.language.introspective.errorDocCallback('jobmanagerGUI>callback_onPropertyChange', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/nirsviewer/jobmanagerGUI.m', 388)" style="font-weight:bold">jobmanagerGUI>callback_onPropertyChange</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/nirsviewer/jobmanagerGUI.m',388,0)">line 388</a>)
JJ{lst}=setfield(JJ{lst},propname.toCharArray',val);
}
{Error using <a href="matlab:matlab.internal.language.introspective.errorDocCallback('setfield')" style="font-weight:bold">setfield</a>
Not enough input arguments.
Error in <a href="matlab:matlab.internal.language.introspective.errorDocCallback('jobmanagerGUI>callback_onPropertyChange', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/nirsviewer/jobmanagerGUI.m', 388)" style="font-weight:bold">jobmanagerGUI>callback_onPropertyChange</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/nirsviewer/jobmanagerGUI.m',388,0)">line 388</a>)
JJ{lst}=setfield(JJ{lst},propname.toCharArray',val);
}
{Error using <a href="matlab:matlab.internal.language.introspective.errorDocCallback('setfield')" style="font-weight:bold">setfield</a>
Not enough input arguments.
Error in <a href="matlab:matlab.internal.language.introspective.errorDocCallback('jobmanagerGUI>callback_onPropertyChange', '/Users/theodorehuppert/Desktop/nirs-toolbox/external/nirsviewer/jobmanagerGUI.m', 388)" style="font-weight:bold">jobmanagerGUI>callback_onPropertyChange</a> (<a href="matlab: opentoline('/Users/theodorehuppert/Desktop/nirs-toolbox/external/nirsviewer/jobmanagerGUI.m',388,0)">line 388</a>)
JJ{lst}=setfield(JJ{lst},propname.toCharArray',val);
}
job
job =
<a href="matlab:helpPopup nirs.modules.GLM" style="font-weight:bold">GLM</a> with properties:
type: 'AR-IRLS'
AddShortSepRegressors: 0
useGPU: 0
precisionSingle: 0
options: []
basis: [1×1 Dictionary]
verbose: 1
trend_func: @nirs.design.trend.constant
goforit: 0
name: 'GLM via AR(P)-IRLS'
prevJob: [1×1 nirs.modules.BeerLambertLaw]
Processing job created in workspace
job
job =
<a href="matlab:helpPopup nirs.modules.GLM" style="font-weight:bold">GLM</a> with properties:
type: 'AR-IRLS'
AddShortSepRegressors: 1
useGPU: 0
precisionSingle: 0
options: []
basis: [1×1 Dictionary]
verbose: 1
trend_func: @nirs.design.trend.constant
goforit: 0
name: 'GLM via AR(P)-IRLS'
prevJob: [1×1 nirs.modules.LabelShortSeperation]
nirs.modules.pipelineToList(job)
ans =
6×1 <a href="matlab:helpPopup cell" style="font-weight:bold">cell</a> array
{1×1 nirs.modules.ImportData }
{1×1 nirs.modules.OpticalDensity }
{1×1 nirs.modules.Resample }
{1×1 nirs.modules.BeerLambertLaw }
{1×1 nirs.modules.LabelShortSeperation}
{1×1 nirs.modules.GLM }
job
job =
<a href="matlab:helpPopup nirs.modules.GLM" style="font-weight:bold">GLM</a> with properties:
type: 'AR-IRLS'