Problems validating dataset with two dwi scans

Hi all hope you are well…

Our lab scanning protocol always had 2 short DWI scans in the same session - 65 images.
How do I convert them in a bids compatible way?
I tried calling them ‘a’ and ‘b’ but it produces errors.
I tried calling one normally and the other ‘b’ but it kept all the ‘b’ warnings.
any suggestions?

Error 1: [Code 1] NOT_INCLUDED
Study/sub-1586/ses-1/dwi/sub-1586_ses-1_a_dwi.nii.gz
Study/sub-1586/ses-1/dwi/sub-1586_ses-1_a_dwi.json
Study/sub-1586/ses-1/dwi/sub-1586_ses-1_a_dwi.bvec
Study/sub-1586/ses-1/dwi/sub-1586_ses-1_a_dwi.bval
Study/sub-1586/ses-1/dwi/sub-1586_ses-1_b_dwi.bval
Study/sub-1586/ses-1/dwi/sub-1586_ses-1_b_dwi.bvec
Study/sub-1586/ses-1/dwi/sub-1586_ses-1_b_dwi.json
Study/sub-1586/ses-1/dwi/sub-1586_ses-1_b_dwi.nii.gz

I am getting it also for the resting state:
Study/sub-1586/ses-1/func/sub-1586_ses-1_task-rest-a_bold.json
Study/sub-1586/ses-1/func/sub-1586_ses-1_task-rest-a_bold.nii.gz
Study/sub-1586/ses-1/func/sub-1586_ses-1_task-rest-b_bold.json
Study/sub-1586/ses-1/func/sub-1586_ses-1_task-rest-b_bold.nii.gz

I am also getting
Error 2: [Code 58] TASK_NAME_CONTAIN_ILLEGAL_CHARACTER
Study/sub-1586/ses-1/func/sub-1586_ses-1_task-rest-a_bold.json
Study/sub-1586/ses-1/func/sub-1586_ses-1_task-rest-a_bold.nii.gz
Study/sub-1586/ses-1/func/sub-1586_ses-1_task-rest-b_bold.json
for some reason the nii.gz of ‘b’ does not appear here…

Error 3: [Code 63] SESSION_VALUE_CONTAINS_ILLEGAL_CHARACTER
Study/sub-1586/ses-1/dwi/sub-1586_ses-1_b_dwi.bval
Study/sub-1586/ses-1/dwi/sub-1586_ses-1_b_dwi.bvec
Study/sub-1586/ses-1/dwi/sub-1586_ses-1_b_dwi.json
Study/sub-1586/ses-1/dwi/sub-1586_ses-1_b_dwi.nii.gz
Here only b appears - a is OK?

The characters - and _ are delimiters and cannot be used in entity names. So rest-a is not a valid task name, and _a_ or _b_ cannot exist without a corresponding key of some kind. It seems like you just want to use the run entity, assuming the scan parameters and task are the same from a to b.

So Study/sub-1586/ses-1/dwi/sub-1586_ses-1_a_dwi.nii.gz should be Study/sub-1586/ses-1/dwi/sub-1586_ses-1_run-01_dwi.nii.gz

and Study/sub-1586/ses-1/func/sub-1586_ses-1_task-rest-a_bold.nii.gz should be Study/sub-1586/ses-1/func/sub-1586_ses-1_task-rest_run-01_bold.nii.gz.

1 Like