Unified representation of tractography and diffusion-weighted MRI data using sparse multidimensional arrays