API#

Pydra tasks for dcm2bids.

>>> from pydra.tasks.dcm2bids import Dcm2Bids

Examples

>>> task = Dcm2Bids(
...     dicom_dir="/path/to/dicom/dir",
...     output_dir="/path/to/bids/dir",
...     participant_id="sub-01",
...     session_id="ses-baseline",
...     config_file="/path/to/config/file.json",
... )
>>> task.cmdline
'dcm2bids -d /path/to/dicom/dir -p sub-01 -s ses-baseline -c /path/to/config/file.json -o /path/to/bids/dir'