nipy / heudiconv

Flexible DICOM conversion into structured directory layouts
https://heudiconv.readthedocs.io
Other
235 stars 125 forks source link

ASL Support #711

Open pbbaba opened 1 year ago

pbbaba commented 1 year ago

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
  2. 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 ()
tsalo commented 4 months ago

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