Greetings all,
I’m hoping you can help me out here. I’m working on a dataset of ex-vivo mouse brains and am trying to optimize my MR-diffusion protocol for fiber tracking and connectome construction in mouse brain. This is the first time for me to use MRtrix and I just want to check if am doing it the right way or do I need to change something.
The commands am using are the followings:
#1 denoinsing the data using the command dwidenoise.
#2 extracting the b0 images to creat a mask using itksnap:
dwiextract dwi-denoised.nii -no_bzero -grad gradient.txt - | mrmath - mean dwi_mean.nii -axis 3
#3 Then I create a mask and apply it.
#4 calculating the bias in b zero images and b zero mean across time using FSL:
fslselectvols -i dwi-denoised-masked.nii.gz --vols=0,1,2 -o dwi-denoised-masked-B0.nii.gz
fslmaths dwi-denoised-masked-B0.nii.gz -Tmean B0-mean.nii.gz
#5 calculate and apply bias field correction using ANTs:
N4BiasFieldCorrection -d 3 -i B0-mean.nii.gz -x mask.nii -o [B0-corrected.nii,bias.nii] -v
fslmaths dwi-denoised-masked.nii.gz -div bias.nii N4.nii
#6 calculating the response function using tournier algorithm since am using single shell.
dwi2response tournier N4.nii.gz response.text -grad gradient.txt -mask mask.nii
#7 calculating FOD:
dwi2fod csd -mask mask.nii -grad gradient.txt N4.nii.gz response.text fod.nii.gz
#8 Generating tracts for given ROIs that covers all brain regions excluding inter-hemispheric connection (referred to as 100.nii):
tckgen -seed_random_per_voxel mask.nii 10 fod.nii Tracks.tck -exclude 100.nii
#9 convert my ROIs datatype to uint32 as recommended by MRtrix so I can generate the connectome:
mrconvert -datatype uint32 labels.nii.gz labels-ui32.nii.gz
#10 Generating the connectome:
tck2connectome Tracks.tck labels-ui32.nii.gz -assignment_all_voxels -out_assignments path_list -zero_diagonal -symmetric connectome.csv
Forgive my poor knowledge as am totally knew in this field. Thanks in advanced.