dipy_auto#
Synopsis#
Run diffusion pipelines based on configuration files.
Usage#
dipy_auto [OPTIONS] input_files
Input Parameters#
input_filesInput files passed to the pipeline. File types are detected automatically from their extensions (case-insensitive):
.toml— pipeline configuration file..nii/.nii.gz— DWI NIfTI file..bval/.bvals— b-values file..bvec/.bvecs— b-vectors file.*report*.html— HTML report; all other inputs are ignored and the report is served via a local HTTP server.
With
--bids, the arguments follow the BIDS-App convention instead:dipy_auto <bids_dir> [<output_dir>] [participant].
General Options#
--t1_filePath to the T1 file. Resolved from the dataset with
--bids. (default: None)--mask_filePath to the brain mask file. (default: None)
--dwi_opp_phase_filePath to the opposite phase DWI file (for phase correction). Resolved from the fieldmaps of the dataset with
--bids. (default: None)--bidsTreat the inputs as a BIDS dataset and run the pipeline on every diffusion acquisition it contains, writing BIDS derivatives. (default: False)
--bids_folderPath to the BIDS dataset root, as an alternative to passing it positionally. Requires
--bids. (default: None)--participant_labelSubject labels to process, with or without the
sub-prefix. All subjects are processed when omitted. (default: None)--session_labelSession labels to process, with or without the
ses-prefix. (default: None)--acquisition_labelacq-labels to process. (default: None)--run_labelrun-labels to process. (default: None)--stop_on_errorStop a BIDS batch at the first acquisition that fails instead of reporting it and carrying on. (default: False)
--atlas_tractogramPath to atlas tractogram for registration (dipy_slr). If not provided and dipy_slr is in the pipeline, will auto-download HCP 30-bundle atlas. (default: None)
--bundle_atlas_dirPath to bundle atlas directory for segmentation (dipy_recobundles). If not provided and dipy_recobundles is in the pipeline, will auto-download HCP 30-bundle atlas. (default: None)
--interactive_modeEnable interactive mode for pipeline customization. (default: False)
--pipeline_typePredefined pipeline type: ‘preprocessing’, ‘dti_only’, ‘tractography’ or ‘full’. Use –list-pipelines to see all available pipelines. (default: None)
--startStage name to start execution from. Earlier stages will be skipped, but their outputs must exist on disk. Use this to resume a failed pipeline or re-run later stages with different parameters. (default: None)
--dry_runShow execution plan without running commands. (default: False)
--list_pipelinesList all available predefined pipelines and exit. (default: False)
Output Options#
--out_dirOutput directory. When omitted, the
out_dirof the[io]section of the configuration, or the current directory. With--bids, the root of the derivative dataset, defaulting to<bids_dir>/derivatives/dipy. (default: current directory)--out_reportPath to the report file. (default: reports.toml)
References#
Garyfallidis, E., M. Brett, B. Amirbekian, A. Rokem, S. Van Der Walt, M. Descoteaux, and I. Nimmo-Smith. Dipy, a library for the analysis of diffusion MRI data. Frontiers in Neuroinformatics, 1-18, 2014.