Forum

Notifications
Clear all

2021 Day 5: displayStats function

2 Posts
1 Users
1 Likes
313 Views
Posts: 11
Topic starter
(@codina)
Active Member
Joined: 3 years ago

Hello,

I am trying to follow the lesson from day5 (tCCA), specifically Dataset II->DEMO (files available here: https://www.dropbox.com/s/6tn231i1izcx48f/DATASET_II.zip?dl=0 ).
The issue I have is that I cannot display stats from the baseline-HRF comparison (see https://youtu.be/P9PLkqhRZE0?t=5108 )
After succesfully running the group analysis in Homer (my output looks identical to the plot probes of the lesson)

And hmrG_t_paired_baseline_HRF is being used

However, when I type the following:

displayStats('DEMO.mat', 1, 0.05, 0)

I get the error:

Error using matlab.internal.tabular.private.varNamesDim.makeValidName (line 498)
'Source#' is not a valid variable name.

I am using MATLAB R2017b under Windows 10 Pro and Homer version is 1.32.3

 

I would appreciate any help

 

Thank you

 

Edgar

 

1 Reply
Posts: 11
Topic starter
(@codina)
Active Member
Joined: 3 years ago

Problem solved on R2017b, I'll share in cas it is helpful to somebody:

I just had to remove the # character from the variables names when creating a table, in lines 27 and 45 of displayStats.m to the following:

L27

T = array2table([ml(lst_thresh,1), ml(lst_thresh,2), tval(lst_thresh)', output.misc.hmrstatsG_contrast.pval(Hb,lst_thresh)']...
,'VariableNames',{'Source','Detector','tval','pval'});

 

L45

T = array2table([ml(lst_thresh,1), ml(lst_thresh,2), tval(lst_thresh)', output.misc.hmrstatsG_base_cond.pval(Hb,lst_thresh)']...
,'VariableNames',{'Source','Detector','tval','pval'});
Reply
Share:
en_USEnglish