ThomasYeoLab / CBIG

MIT License
570 stars 380 forks source link

Need to run gradient step for estimating group priors with Areal cMSHBM? #44

Open annchenknodt opened 1 year ago

annchenknodt commented 1 year ago

Expected situation

The Readmes and example seem to make it clear that running the gMSHBM steps are optional and only necessary for gMSHBM.

Actual situation

I am running cMSHBM and getting an error in the estimate group priors step that the "gradient_list" files are not found:

Error using readtable (line 198)
Unable to open file
'<project_dir>/estimate_group_priors/gradient_list/training_set/gradient_list_lh.txt'.

Error in CBIG_ArealMSHBM_cMSHBM_estimate_group_priors_parent>fetch_data (line
749)
lh_gradient_name = table2cell(readtable(lh_data_gradient, 'Delimiter', ' ',
'ReadVariableNames', false));

Error in CBIG_ArealMSHBM_cMSHBM_estimate_group_priors_parent (line 192)
fetch_data(project_dir, setting_params.num_session, setting_params.num_sub,
setting_params.mesh, tmp_dir);

Steps to reproduce the issue (optional)

i think this could be easily reproduced by following the steps using new study data (rather than the example data including pre-computed files)

THanks!

rubykong commented 1 year ago

@annchenknodt Yes we have this bug in our previous releases. We have resolved the issue in recent releases.