yeatmanlab / pyAFQ

Automated Fiber Quantification ... in Python
http://yeatmanlab.github.io/pyAFQ/
BSD 2-Clause "Simplified" License
55 stars 34 forks source link

ValueError: Expected subject IDs to match #1159

Closed teresamg closed 1 week ago

teresamg commented 1 week ago

We've been getting a similar error running GroupAFQ on our own data and the example at https://github.com/yeatmanlab/pyAFQ/blob/master/examples/howto_examples/use_subject_space_rois_from_freesurfer.py:

ValueError: Expected subject IDs to match for the retrieved image file and the supplied 'from_path' file. Got sub-01 from image file /home/tmgomez/AFQ_data/stanford_hardi/derivatives/freesurfer/sub-01/ses-01/anat/sub-01_ses-01_desc-leftThal_mask.nii.gz and sub-None from 'from_path' file /home/tmgomez/AFQ_data/stanford_hardi.

Running ParticipantAFQ with direct file paths still gives an error (failed to export warped b0). Could this be a bug?

36000 commented 1 week ago

Good catch! I believe this is a type and this PR fixes it: https://github.com/yeatmanlab/pyAFQ/pull/1160

The "failed to export warped b0" bug might have been fixed by this recently merged PR: https://github.com/yeatmanlab/pyAFQ/pull/1158

arokem commented 1 week ago

@teresamg : could you please confirm that #1160 closes this issue with the data you are working with?

teresamg commented 1 week ago

Yes