Hello,
Is it possible in HeuDiConv to group DICOMs by directory name?
I am submitting multiple DICOM directories to HeuDiConv using --files $FOLDER_LIST, where each folder points to a DICOM series (e.g., /my_path/Series_003_MEPI_AF3_35iso_3xTE_TR2000_B350_VSTM).
From what I understand, HeuDiConv looks inside all DICOM files (independent of which folder they came from), and creates a series_id by combining SeriesNumber and ProtocolName (e.g., 3-MEPI_AF3_35iso_3xTE_TR2000_B350_VSTM). This series_id is then used to organize the seqinfo list in the heuristic.
However, in my session, the scanner was stopped and restarted before the third run. As a result, SeriesNumber started again from 1, and StudyID changed to 2.
- When using the default grouping (by
StudyID), I get an error:
AssertionError: Existing study session StudySessionInfo(...) already in analyzed sessions - When using
--grouping all, the grouping becomes wrong: Series from before and after the interruption are merged incorrectly (please see the attached image illustrating the mismatch). - I also attach the dicominfo table generated by HeuDiConv.
It seems that HeuDiConv cannot currently differentiate the series correctly because SeriesNumber overlaps.
My question:
- Is there a way to force HeuDiConv to group DICOMs based on their input directory instead of DICOM header fields?
- Or at least to ensure that DICOMs from different input folders are treated as separate series, even if their
SeriesNumberoverlaps?
I would appreciate any advice on how to solve this!
The wrong grouping and conversion:
dicominfo.tsv:

