# Batching Diffusion Tensor Imaging Processing

**URL:** <https://discourse.slicer.org/t/batching-diffusion-tensor-imaging-processing/2790>\
**Category:** Development\
**Tags:** diffusion, batch\
**Created:** [May 9, 2018, 5:51pm UTC](https://discourse.slicer.org/t/batching-diffusion-tensor-imaging-processing/2790 "2018-05-09T17:51:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yasernakib](https://avatars.discourse-cdn.com/v4/letter/y/a4c791/32.png) [@yasernakib](https://discourse.slicer.org/u/yasernakib)\
**Post date:** [May 9, 2018, 5:51pm UTC](https://discourse.slicer.org/t/batching-diffusion-tensor-imaging-processing/2790/1 "2018-05-09T17:51:38Z")

</div>

Hi people,  
In short, I’d like to write a batch code to calculate Diffusion Tensors and FA for multiple DTI .nii data.  
I want to replicate steps in this tutorial [DTI-tutorial](https://www.slicer.org/w/images/3/35/DiffusionMRITutorial_UCSF2010_SoniaPujol.pdf) automatically. I will also need to convert all of my files(with associated bval and bvec) to nrrd files. I know how to do the steps using GUI, but couldn’t find a clue on how to pass those paramteres in a batch python code.  
Any Help?
