# BIDS Conversion Tools Reference This reference covers detailed workflows for converting DICOM and other raw data formats to BIDS using the three main conversion tools. ## HeuDiConv HeuDiConv is the most flexible DICOM-to-BIDS converter. It supports three usage modes — from fully automatic turnkey conversion to fully custom heuristics — and handles duplicates, provenance tracking, and sourcedata archiving out of the box. **Repository**: https://github.com/nipy/heudiconv **Docs**: https://heudiconv.readthedocs.io/ **Tutorials**: https://heudiconv.readthedocs.io/en/latest/tutorials.html ### Installation ```bash uv pip install heudiconv # HeuDiConv wraps dcm2niix for the actual conversion # dcm2niix is usually installed as a dependency, but can also be installed via: # conda install -c conda-forge dcm2niix # or: apt-get install dcm2niix ``` ### Mode 1: ReproIn (Turnkey Conversion — Recommended for New Studies) If scanner protocol names follow the [ReproIn naming convention](https://github.com/repronim/reproin), conversion is fully automatic with no heuristic file to write. ReproIn is a setup for automatic generation of sharable, version-controlled BIDS datasets directly from MR scanners. ```bash # Turnkey conversion — just point at DICOMs, HeuDiConv does the rest heudiconv --files dicom/001 -o data -f reproin --bids --minmeta ``` #### ReproIn Protocol Naming Rules Protocol names encode BIDS entities directly. Format: `[-][_-