You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a dataset where some of the participants have multi-shell data split across multiple scans (one scan per b-value), and we used the acq entity to label them. For example the raw BIDS data would look something like this:
sub-001_ses-1_acq-B0_dir-AP_run-01_dwi.nii.gz
sub-001_ses-1_acq-B0_dir-AP_run-02_dwi.nii.gz
sub-001_ses-1_acq-B0_dir-AP_run-03_dwi.nii.gz
sub-001_ses-1_acq-B0_dir-AP_run-04_dwi.nii.gz
sub-001_ses-1_acq-B0_dir-PA_run-01_dwi.nii.gz
sub-001_ses-1_acq-B1000_dir-PA_run-01_dwi.nii.gz
sub-001_ses-1_acq-B2000_dir-PA_run-01_dwi.nii.gz
sub-001_ses-1_acq-B700_dir-PA_run-01_dwi.nii.gz
So there are four B0 scans in the AP direction, then 4 in the PA direction with b-values 0, 1000, 2000 and 700. All of them have accompanying .bval/.bvec files too.
PR #862 changed QSIPrep's behaviour to account for the acq tag during the distortion group definition. Unfortunately, this results in undesirable behaviour in 1.0.0rc1 in my case, where the scans are not being merged as expected. With 0.23.0 I was getting a single desc-preproc_dwi.nii.gz file, while with 1.0.0rc1 I am getting a desc-preproc_dwi.nii.gz file for each of the B1000, B2000, and B700 scans, and I think there was was an error for the B0 scans because only the JSON was produced (might be a related issue).
I understand the reasoning for grouping by acq, but would it be possible to add a flag that allows the user to revert to the old behaviour of ignoring the acq entity when defining the scan groups?
Happy to create a PR for this if you could point me to the parts of the code to change.
Additional details
Next steps
The text was updated successfully, but these errors were encountered:
@mattcieslak and I have been talking about it and we came to the conclusion that QSIPrep should use the MultipartID metadata field to define these kinds of groups.
The basic idea is that, if multiple DWI scans share a MultipartID value, then they will be combined. I don't think the ID applies across phase encoding directions, so in your case you would probably have two IDs: apgroup and pagroup (or something similar).
Yeah I think that should be the default behavior. I'm not 100% sure what QSIPrep will do with multiple scans that aren't delimited with acq and dir entities though. E.g., sub-01_run-01_dwi.nii.gz and sub-01_run-02_dwi.nii.gz.
Summary
Hi, I have a dataset where some of the participants have multi-shell data split across multiple scans (one scan per b-value), and we used the
acq
entity to label them. For example the raw BIDS data would look something like this:sub-001_ses-1_acq-B0_dir-AP_run-01_dwi.nii.gz
sub-001_ses-1_acq-B0_dir-AP_run-02_dwi.nii.gz
sub-001_ses-1_acq-B0_dir-AP_run-03_dwi.nii.gz
sub-001_ses-1_acq-B0_dir-AP_run-04_dwi.nii.gz
sub-001_ses-1_acq-B0_dir-PA_run-01_dwi.nii.gz
sub-001_ses-1_acq-B1000_dir-PA_run-01_dwi.nii.gz
sub-001_ses-1_acq-B2000_dir-PA_run-01_dwi.nii.gz
sub-001_ses-1_acq-B700_dir-PA_run-01_dwi.nii.gz
So there are four B0 scans in the AP direction, then 4 in the PA direction with b-values 0, 1000, 2000 and 700. All of them have accompanying
.bval
/.bvec
files too.PR #862 changed QSIPrep's behaviour to account for the
acq
tag during the distortion group definition. Unfortunately, this results in undesirable behaviour in 1.0.0rc1 in my case, where the scans are not being merged as expected. With 0.23.0 I was getting a singledesc-preproc_dwi.nii.gz
file, while with 1.0.0rc1 I am getting adesc-preproc_dwi.nii.gz
file for each of the B1000, B2000, and B700 scans, and I think there was was an error for the B0 scans because only the JSON was produced (might be a related issue).I understand the reasoning for grouping by
acq
, but would it be possible to add a flag that allows the user to revert to the old behaviour of ignoring theacq
entity when defining the scan groups?Happy to create a PR for this if you could point me to the parts of the code to change.
Additional details
Next steps
The text was updated successfully, but these errors were encountered: