Add additional information in SeqInfo to support ASL files. I am working with ASL(perf) files and require information such as In-Plane Phase Encoding Direction, Acquisition Number, Image Orientation (Patient) from the DICOM images to determine the names of the files.
Solution -
Add the following in heudiconv/utils.py file:
image_orientation_patient
in_plane_phase_encoding_direction
acquisition_number
Add the following in heudiconv/dicoms.py file:
in_plane_phase_encoding_direction = dcminfo.get("InPlanePhaseEncodingDirection") if dcminfo.get("InPlanePhaseEncodingDirection") else None,
acquisition_number = dcminfo.get("AcquisitionNumber") if dcminfo.get("AcquisitionNumber") else None,
image_orientation_patient = tuple(dcminfo.get('ImageOrientationPatient')) if dcminfo.get('ImageOrientationPatient') else ()
@pbbaba are you able to share the DICOMs? I'll be working on a new study with ASL data soon, and I want to ensure that heudiconv (and specifically the reproin heuristic) works on those data.
Summary
Add additional information in SeqInfo to support ASL files. I am working with ASL(perf) files and require information such as In-Plane Phase Encoding Direction, Acquisition Number, Image Orientation (Patient) from the DICOM images to determine the names of the files.
Solution -
Add the following in heudiconv/utils.py file:
Add the following in heudiconv/dicoms.py file: