Dmriprep: an fmriprep for diffusion?


Is anyone working on an fmriprep equivalent for diffusion? Ideally in a BIDS-App ?

Can FMRIprep preprocess DTI data?

There’ve definitely been people interested in it, but I don’t know that things have materialized into a public repository anywhere.

If anybody does start working on this, we may want to coordinate to ensure that the anatomical preprocessing is consistent with fMRIPrep’s.


I’m writing it.

LoC this far: 0.

(now seriously, yes, Russ has asked a couple of times and I want to do it).


Here’s what i have so far: – right now the code is a little tangled to run with HBN data on AWS

and it generates a .json which can be rendered to


Seems that @Ariel_Rokem (or @arokem) renabmed preAFQ to dmriprep (see and announcement at


Yep. We’ve uploaded it to a more prominent place and renamed it with the goal of moving this ahead and giving @oesteban a place to put his work :slight_smile:


Update: we’ve started the migration from akeshavan/preAFQ to nipy/dmriprep and the new link to the report is:

if anyone has ideas of what other QC images/metrics we should compute, let us know!


Very beautiful work…!

I’ve also been working on QC web page for our diffusion pipeline, but nothing fancy, just static images… But I basically check the same things you guys included in the dmriprep QC. In addition, I look at shell-specific tSNR images (we have multi-shell data) and eddy CNR maps. I also perform shell-specific outlier detection with 3dToutCount. These were inspired by Roelf et al 2016 paper ( The outlier output is by frame, so I put them back together to produce combined Eddy rms/outliers and afni outliers like below;

I hope these will give you additional ideas for your report :stuck_out_tongue_winking_eye:

I collect mean/max values to find outliers at the group level. Sometimes outliers in these values can flag subjects with potential problems. Below is Eddy b=0 SNR image from one subject who was outlier in b=0 afni mean and max outlier values, for instance.


Those images are great! Do you have the code that generated these on GitHub somewhere so we can incorporate into dmriprep? I’ve also created an issue on our repo here: to add your images to the QC report


At the moment they are part of a private lab repo on gitlab but I will pull out codes that concerns the dwi QC part to my github and share with you guys. I will let you know as soon as it’s done!


I’m also working on a pipeline for diffusion image processing and across-software reconstruction. The preprocessing part is mostly done and the reconstruction part is coming along.


@mattcieslak: that looks great! Do I understand correctly that this pipeline will not work for HARDI- and DTI-oriented protocols? Looks like it might be complimentary to what we want to do with dmriprep. Maybe we could aim to merge streams eventually?


Thanks @Ariel_Rokem! The preprocessing part works with HARDI, just not single shell data. The reconstruction part works with any type of data that is appropriate for the reconstruction method. We’re actually planning on using dmriprep for preprocessing our single shell data and reconstructing the output with qsiprep reconstruction pipeline.