Skip to content

Siemens XA30: heudiconv fails to handle partial volumes #814

@mvdoc

Description

@mvdoc

Whenever a run is manually halted, Siemens XA30 generates a valid enhanced DICOM with fewer slices. If that happens, dcm2niix splits the series into a nifti with the full volumes and another nifti with the partial volume (see rordenlab/dcm2niix#742). Currently, heudiconv doesn't handle this case, and crashes because it tries to overwrite the intact volume with the partial volume.

Possible solutions:

  1. Since dcm2niix will flag the partial volumes as derived, a solution would be to allow calling dcm2niix with the flag -i y, which ignores all derived series. But this is not really a great solution, since there are cases where we may want to convert also derived series.
  2. dcm2niix adds a derived string under the bidsguess key in the output json. We could check if that string exists, but I guess it would work only when heudiconv is run with the flag --bids
  3. The partial volumes are valid nifti files with fewer slices than prescribed. If multiple files are generated from the same series, we could maybe add a check on the number of slices to detect the partial volumes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions