TractoFlow: A robust, efficient and reproducible diffusion MRI pipeline leveraging Nextflow & Singularity

A diffusion MRI (dMRI) tractography processing pipeline should be: i) reproducible in immediate test-test, ii) reproducible in time, iii) efficient and iv) easy to use. Two runs of the same processing pipeline with the same input data should give the same output today, tomorrow and in 2 years. However, processing dMRI data requires a large number of steps (20+ steps) that, at this time, may not be reproducible between runs or over time. If parameters such as the number of threads or the random number generator are not carefully set in the brain extraction, registration and fiber tracking steps, the end tractography results obtained can be far from reproducible and limit brain connectivity studies. Moreover, processing can take several hours to days of computation for a large database, even more so if the steps are running sequentially. To handle these issues, we present TractoFlow, a fully automated pipeline that processes datasets from the raw diffusion weighted images (DWI) to tractography. It also outputs classical diffusion tensor imaging measures (fractional anisotropy (FA) and diffu-sivities) and several HARDI measures (Number of Fiber Orientation (NuFO), Apparent Fiber Density (AFD)). The pipeline requires a DWI and T1-weighted image as NIfTI files and b-values/b-vectors in FSL format. An optional reversed phase encoded b=0 image can also be used. This pipeline is based on two technologies: Nextflow and Singularity, as well as recommended pre-processing and processing steps from the dMRI community. In this work, the TractoFlow pipeline is evaluated on three databases and shown to be efficient and reproducible from 98% to 100% depending on parameter choices. For example, 105 subjects from the Human Connectome Project (HCP) were fully ran in twenty-five (25) hours to produce, for each subject, a whole-brain tractogram with 4 million streamlines. The contribution of this paper is to introduce the importance of a robust pipeline in terms of runtime and reproducibility over time. In the era of open data and open science, efficiency and reproducibility is critical in neuroimaging projects. Our TractoFlow pipeline is publicly available for academic research and is an important step forward for better structural brain connectivity mapping.

[1]  Jan Sijbers,et al.  Multi-tissue constrained spherical deconvolution for improved analysis of multi-shell diffusion MRI data , 2014, NeuroImage.

[2]  Stefan Skare,et al.  How to correct susceptibility distortions in spin-echo echo-planar images: application to diffusion tensor imaging , 2003, NeuroImage.

[3]  J. Helpern,et al.  MRI quantification of non‐Gaussian water diffusion by kurtosis analysis , 2010, NMR in biomedicine.

[4]  Steen Moeller,et al.  The Human Connectome Project: A data acquisition perspective , 2012, NeuroImage.

[5]  Russell A. Poldrack,et al.  FMRIPrep: a robust preprocessing pipeline for functional MRI , 2018 .

[6]  S Pajevic,et al.  Color schemes to represent the orientation of anisotropic tissues from diffusion tensor data: Application to white matter fiber tract mapping in the human brain , 1999, Magnetic resonance in medicine.

[7]  Paolo Di Tommaso,et al.  Nextflow enables reproducible computational workflows , 2017, Nature Biotechnology.

[8]  Wilfried Philips,et al.  Reproducibility and intercorrelation of graph theoretical measures in structural brain connectivity networks , 2019, Medical Image Anal..

[9]  Brian B. Avants,et al.  N4ITK: Improved N3 Bias Correction , 2010, IEEE Transactions on Medical Imaging.

[10]  Peter F. Neher,et al.  The challenge of mapping the human connectome based on diffusion tractography , 2017, Nature Communications.

[11]  Peter F. Neher,et al.  Limits to anatomical accuracy of diffusion tractography using modern approaches , 2018, NeuroImage.

[12]  P. Elliott,et al.  UK Biobank: An Open Access Resource for Identifying the Causes of a Wide Range of Complex Diseases of Middle and Old Age , 2015, PLoS medicine.

[13]  Vanessa Sochat,et al.  Singularity: Scientific containers for mobility of compute , 2017, PloS one.

[14]  Hartwig R. Siebner,et al.  Interpolation of diffusion weighted imaging datasets , 2014, NeuroImage.

[15]  Rachid Deriche,et al.  Deterministic and Probabilistic Tractography Based on Complex Fibre Orientation Distributions , 2009, IEEE Transactions on Medical Imaging.

[16]  Alan Connelly,et al.  Anatomically-constrained tractography: Improved diffusion MRI streamlines tractography through effective use of anatomical information , 2012, NeuroImage.

[17]  L. Cammoun,et al.  The Connectome Mapper: An Open-Source Processing Pipeline to Map Connectomes with MRI , 2012, PloS one.

[18]  Alan Connelly,et al.  Robust determination of the fibre orientation distribution in diffusion MRI: Non-negativity constrained super-resolved spherical deconvolution , 2007, NeuroImage.

[19]  Stephen M. Smith,et al.  Segmentation of brain MR images through a hidden Markov random field model and the expectation-maximization algorithm , 2001, IEEE Transactions on Medical Imaging.

[20]  Maxime Descoteaux,et al.  Dipy, a library for the analysis of diffusion MRI data , 2014, Front. Neuroinform..

[21]  M. Catani,et al.  Can spherical deconvolution provide more information than fiber orientations? Hindrance modulated orientational anisotropy, a true‐tract specific index to characterize white matter diffusion , 2013, Human brain mapping.

[22]  Rachid Deriche,et al.  Impact of Rician Adapted Non-Local Means Filtering on HARDI , 2008, MICCAI.

[23]  Satrajit S. Ghosh,et al.  FMRIPrep: a robust preprocessing pipeline for functional MRI , 2018, bioRxiv.

[24]  Carl-Fredrik Westin,et al.  Diffusion Tensor Analysis With Invariant Gradients and Rotation Tangents , 2007, IEEE Transactions on Medical Imaging.

[25]  D. Le Bihan,et al.  Diffusion tensor imaging: Concepts and applications , 2001, Journal of magnetic resonance imaging : JMRI.

[26]  Tristan Glatard,et al.  CBRAIN: a web-based, distributed computing platform for collaborative neuroimaging research , 2014, Front. Neuroinform..

[27]  Andrew J. Saykin,et al.  The open diffusion data derivatives, brain data upcycling via integrated publishing of derivatives and reproducible open cloud services , 2018, Scientific Data.

[28]  Stephen M Smith,et al.  Fast robust automated brain extraction , 2002, Human brain mapping.

[29]  Mark W. Woolrich,et al.  Advances in functional and structural MR image analysis and implementation as FSL , 2004, NeuroImage.

[30]  Maxime Descoteaux,et al.  Non Local Spatial and Angular Matching : Enabling higher spatial resolution diffusion MRI datasets through adaptive denoising , 2016, Medical Image Anal..

[31]  Chun-Hung Yeh,et al.  MRtrix3: A fast, flexible and open software framework for medical image processing and visualisation , 2019, NeuroImage.

[32]  Satrajit S. Ghosh,et al.  The brain imaging data structure, a format for organizing and describing outputs of neuroimaging experiments , 2016, Scientific Data.

[33]  Pengfei Xu,et al.  PANDA: a pipeline toolbox for analyzing brain diffusion images , 2013, Front. Hum. Neurosci..

[34]  Yu Zhang,et al.  The Human Brainnetome Atlas: A New Brain Atlas Based on Connectional Architecture , 2016, Cerebral cortex.

[35]  Jan Sijbers,et al.  Denoising of diffusion MRI using random matrix theory , 2016, NeuroImage.

[36]  Mark Jenkinson,et al.  The minimal preprocessing pipelines for the Human Connectome Project , 2013, NeuroImage.

[37]  Rachid Deriche,et al.  Structural connectivity reproducibility through multiple acquisitions , 2015 .

[38]  Peter F. Neher,et al.  Limits to anatomical accuracy of diffusion tractography using modern approaches , 2018 .

[39]  K. Whittingstall,et al.  Diffusion MRI monitoring of specific structures in the irradiated rat brain , 2018, Magnetic resonance in medicine.

[40]  Stamatios N. Sotiropoulos,et al.  An integrated approach to correction for off-resonance effects and subject movement in diffusion MR imaging , 2016, NeuroImage.

[41]  Ben Jeurissen,et al.  Diffusion MRI fiber tractography of the brain , 2019, NMR in biomedicine.

[42]  Sven Rahmann,et al.  Genome analysis , 2022 .

[43]  Stuart Crozier,et al.  Apparent Fibre Density: A novel measure for the analysis of diffusion-weighted magnetic resonance images , 2012, NeuroImage.

[44]  Peter F. Neher,et al.  TractSeg - Fast and accurate white matter tract segmentation , 2018, NeuroImage.

[45]  David N. Vaughan,et al.  Fibre-specific white matter reductions in Alzheimer’s disease and mild cognitive impairment , 2018, Brain : a journal of neurology.

[46]  Brian B. Avants,et al.  Symmetric diffeomorphic image registration with cross-correlation: Evaluating automated labeling of elderly and neurodegenerative brain , 2008, Medical Image Anal..

[47]  Klaus H. Maier-Hein,et al.  Bundle-specific tractography with incorporated anatomical and orientational priors , 2019, NeuroImage.

[48]  Maxime Descoteaux,et al.  Tractometer: Online Evaluation System for Tractography , 2012, MICCAI.

[49]  Rachid Deriche,et al.  Towards quantitative connectivity analysis: reducing tractography biases , 2014, NeuroImage.

[50]  Bibek Dhital,et al.  Gibbs‐ringing artifact removal based on local subvoxel‐shifts , 2015, Magnetic resonance in medicine.

[51]  Steen Moeller,et al.  Advances in diffusion MRI acquisition and processing in the Human Connectome Project , 2013, NeuroImage.

[52]  Jurgen Fripp,et al.  A spatio-temporal atlas of neonatal diffusion MRI based on kernel ridge regression , 2017, 2017 IEEE 14th International Symposium on Biomedical Imaging (ISBI 2017).

[53]  Maher Moakher,et al.  A rigorous framework for diffusion tensor calculus , 2005, Magnetic resonance in medicine.

[54]  R. Deriche,et al.  Design of multishell sampling schemes with uniform coverage in diffusion MRI , 2013, Magnetic resonance in medicine.

[55]  R. Deriche,et al.  Regularized, fast, and robust analytical Q‐ball imaging , 2007, Magnetic resonance in medicine.

[56]  Maxime Descoteaux,et al.  Tractometer: Towards validation of tractography pipelines , 2013, Medical Image Anal..

[57]  Satrajit S. Ghosh,et al.  Nipype: A Flexible, Lightweight and Extensible Neuroimaging Data Processing Framework in Python , 2011, Front. Neuroinform..

[58]  Pierrick Coupé,et al.  An Optimized Blockwise Nonlocal Means Denoising Filter for 3-D Magnetic Resonance Images , 2008, IEEE Transactions on Medical Imaging.

[59]  Ninon Burgos,et al.  New advances in the Clinica software platform for clinical neuroimaging studies , 2019 .

[60]  O. Sporns,et al.  Mapping the Structural Core of Human Cerebral Cortex , 2008, PLoS biology.