Convert DICOM images to standardized image format

Images were converted from a DICOM file format to NifTi, a standardized image format, using the dcm2niix tool in MRIcron (v1.0.2017821, Website download:  https://www.nitrc.org/plugins/mwiki/index.php/dcm2nii:MainPage). There are two files for each participant to convert from DICOM to NifTi, the T1 structural image and the diffusion-weighted image (dwi). 
The first line of code below is the terminal bash commands to convert the DICOM file to NifTi format. The second line of code was used to convert the diffusion-weighted images. The -f option indicates the file name for the output--t1 and dwi. The "y" following the  -x option indicates that the file was be cropped and reoriented; the "n" after the -z option indicates that the structural T1 file will not be compressed, whereas the "y" in the second line indicates that the T2 diffusion-weighted (DWI) will be compressed. There are two additional outputs for the DWI data besides the NIfTI files: a .bval file, a file containing b-values, which indicate the amount of diffusion weighting for each volume; and a .bvec file, a gradient diffusion table containing the b-vectors indicating the gradient directions.