.. include:: links.rst ##### Usage ##### The *QSIPrep* preprocessing workflow takes as principal input the path of the dataset that is to be processed. The input dataset is required to be in valid :abbr:`BIDS (Brain Imaging Data Structure)` format at least one diffusion MRI series. The T1w image and the DWI may be in separate BIDS folders for a given subject. We highly recommend that you validate your dataset with the free, online `BIDS Validator `_. The exact command to run *QSIPrep* depends on the Installation_ method. The common parts of the command are similar to the `BIDS-Apps `_ definition. Example: :: qsiprep data/bids_root/ out/ participant -w work/ --output-resolution 2 ********************** Command-Line Arguments ********************** .. argparse:: :ref: qsiprep.cli.parser._build_parser :prog: qsiprep *********** Infant mode *********** If ``--infant`` is used, the pipeline will select an MNIInfant template with the appropriate cohort based on the participant's age. ``--infant`` is only compatible with ``--subject-anatomical-reference sessionwise``. .. note:: *QSIPrep*'s cohort selection is derived from Nibabies. Participant Ages ================ *QSIPrep* will attempt to automatically extract participant ages (in months) from the BIDS layout. Specifically, these two files will be checked: Sessions file: //_sessions.tsv Participants file: /participants.tsv Either file should include age (or if you wish to be more explicit: age_months) columns, and it is recommended to have an accompanying JSON file to further describe these fields, and explicitly state the values are in months. ************************** Preparing data for QSIPrep ************************** QSIPrep is a BIDS App, meaning that it expects the data to be in BIDS format. However, QSIPrep does contain some idiosyncrasies that mean that the data may need to be prepared in a specific way. Siemens Reverse Phase-Encoded "Field Maps" ========================================== Reverse phase-encoded images are a common acquisition for distortion correction. For a dMRI scan, this would mean acquiring one or more volumes of b=0 images with the opposite phase encoding direction of the main dMRI scan. It can be hard to acquire a scan that only contains b=0 volumes with Siemens scanners, so researchers often acquire a short dMRI run with a mix of b=0 and b>0 volumes. QSIPrep expects these short scans to be in the fmap directory, instead of the dwi directory. If you acquire data like this, you should organize your data as below:: sub-