A general processing pipeline for diffusion data