dbic / heudiconv

little helper to ease DICOM conversion to ready-to-share folder with heuristics
Other
0 stars 1 forks source link

Smartly handle cases when acq-label is not set for fieldmap #4

Closed mvdoc closed 7 years ago

mvdoc commented 7 years ago

eg

mvdoc@smaug:/mnt/btrfs/dbic/inbox/DICOM/2016/10/28/A000087$ ls -l
total 0
drwxr-xr-x 1 yoh yoh 14286 Oct 28 13:02 01-anat-scout
drwxr-xr-x 1 yoh yoh   560 Oct 28 13:02 02-anat-scout_MPR_sag
drwxr-xr-x 1 yoh yoh   336 Oct 28 13:02 03-anat-scout_MPR_cor
drwxr-xr-x 1 yoh yoh   336 Oct 28 13:02 04-anat-scout_MPR_tra
drwxr-xr-x 1 yoh yoh 14278 Oct 28 13:03 05-anat-scout
drwxr-xr-x 1 yoh yoh   560 Oct 28 13:03 06-anat-scout_MPR_sag
drwxr-xr-x 1 yoh yoh   336 Oct 28 13:03 07-anat-scout_MPR_cor
drwxr-xr-x 1 yoh yoh   336 Oct 28 13:03 08-anat-scout_MPR_tra
drwxr-xr-x 1 yoh yoh 21468 Oct 28 13:09 09-anat-T1w_acq-MPRAGE
drwxr-xr-x 1 yoh yoh 12510 Oct 28 13:12 10-fmap_run+_2mm
drwxr-xr-x 1 yoh yoh  6256 Oct 28 13:12 11-fmap_run+_2mm
drwxr-xr-x 1 yoh yoh 45248 Oct 28 13:22 12-func_run+_task-faceobject_acq-2mm0.3gap
drwxr-xr-x 1 yoh yoh 44432 Oct 28 13:29 13-func_run+_task-faceobject_acq-2mm0.3gap
drwxr-xr-x 1 yoh yoh 45248 Oct 28 13:36 14-func_run+_task-faceobject_acq-2mm0.3gap
drwxr-xr-x 1 yoh yoh 45248 Oct 28 13:43 15-func_run+_task-faceobject_acq-2mm0.3gap

possibly, also handle cases when func following fieldmap is set to run+ instead of run= (iff fmap is not preceded by a func, in that case who knows?)

mvdoc commented 7 years ago

Closed by #8