rordenlab/dcm2niix ? reverse-engineered prompt
Reverse engineered prompt
Build me a cross platform command line tool that converts medical DICOM scans into NIfTI files for neuroimaging, and also writes the matching BIDS style JSON sidecar so the output is ready for research workflows.
It should work on macOS, Linux, and Windows, handle common vendor differences, and support compressed DICOMs when possible. I want it to name files in a sensible BIDS friendly way, with options for subject and session naming, and to save outputs as nii or nii.gz. If it can also extract useful physiologic recordings and basic spectroscopy data into matching sidecar files, that would be great. Please make it fast, reliable, and easy to build from source, with clear help text and a few practical defaults so it works well out of the box.
Look up current docs online if you need to, and keep the implementation focused on real world DICOM to NIfTI conversion rather than a toy demo.
Are you gonna build this?
make sure you review the code using coderabbit