Skip to content

Enhance preprocessing scripts and checksum comparison functionality - #18

Merged
NicholasLeotta99 merged 3 commits into
mainfrom
develop
Jul 1, 2026
Merged

Enhance preprocessing scripts and checksum comparison functionality#18
NicholasLeotta99 merged 3 commits into
mainfrom
develop

Conversation

@NicholasLeotta99

Copy link
Copy Markdown
Member

This pull request standardizes command-line argument naming conventions in the preprocessing scripts and introduces a suite of new tools for analyzing, merging, and managing data checksums and session directories. The most important changes include switching all argument names from dash-separated (e.g., --scan-dir) to underscore-separated (e.g., --scan_dir), improving logging in the DICOM-to-NIfTI conversion script, and adding several new Python utilities for checksum analysis and session management.

Command-line argument standardization:

  • All preprocessing scripts (00_preprocess.sh, 01_scanDicom.py) now use underscore-separated command-line arguments (e.g., --scan_dir, --save_dir, --sample_pct) for consistency and clarity. [1] [2] [3] [4] [5]

Logging improvements:

  • Enhanced logging in 03_saveNifti.py to provide more informative messages about the execution and completion of DICOM-to-NIfTI conversions, including error handling.

Checksum analysis and session management tools:

  • Improved session-level comparison logic in compare_checksum.py to more accurately flag sessions needing transfer, ready for deletion, or missing from the primary dataset. The summary output now includes a count of sessions missing from primary. [1] [2]
  • Added new scripts for checksum analysis and session management:
    • digest_comparison.py: Converts a comparison report JSON into plain-text lists of session IDs by category.
    • merge_checksums.py: Merges two checksum scan result files into a unified comparison report, summarizing identical, modified, and unique files.
    • move_sessions.py: Moves session directories listed in a text file from one location to another, with optional dry-run mode.
    • remove_sessions.py: Removes session directories listed in a text file from a target directory, with optional dry-run mode.

…and clarity

fix: enhance checksum comparison logic to report missing sessions and improve output
feat: add digest and merge functionality for checksum comparison reports
feat: implement session moving and removal scripts with dry-run option
@NicholasLeotta99
NicholasLeotta99 merged commit fa4fa41 into main Jul 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant