heudiconv icon indicating copy to clipboard operation
heudiconv copied to clipboard

ASL Support

Open pbbaba opened this issue 2 years ago • 1 comments

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 -

  1. Add the following in heudiconv/utils.py file:
  • image_orientation_patient
  • in_plane_phase_encoding_direction
  • acquisition_number
  1. 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 avatar Oct 06 '23 15:10 pbbaba

@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.

tsalo avatar Jun 21 '24 16:06 tsalo