MICA-MNI / micapipe

micapipe from the Multimodal imaging and connectome analysis lab (http://mica-mni.github.io) at the Montreal Neurological Institute. Read The Docs documentation below
http://micapipe.readthedocs.io
GNU General Public License v3.0
89 stars 31 forks source link

NORDIC denoising in MicaPipe #127

Open PaulBautin opened 2 months ago

PaulBautin commented 2 months ago

What is the current behaviour?

What is the motivation / use case for changing the behaviour?

Before running:

Input data:

Alternative denoising method:

Implementation considerations:

Test:

Code ``` # Input and output file paths img_magn_in='/home/pabaua/dev_mni/data/test_nordic/sub-01_ses-2mm_dir-AP_run-01_part-mag_dwi.nii.gz' img_phase_in='/home/pabaua/dev_mni/data/test_nordic/sub-01_ses-2mm_dir-AP_run-01_part-phase_dwi.nii.gz' img_out='sub-01_ses-2mm_dir-AP_run-01_dwi_nordic' # Do not put extension .nii nordic_matlab_dir='/home/pabaua/dev_mni/NORDIC_Raw/' # Directory containing NIFTI_NORDIC.m # Arguments for the MATLAB function ARG_temporal_phase=3 ARG_phase_filter_width=3 ARG_DIROUT='/home/pabaua/dev_mni/results/nordic/' # Run MATLAB command with the specified arguments matlab -nodisplay -nojvm -nosplash -nodesktop -r " \ try; \ addpath('${nordic_matlab_dir}'); \ ARG.temporal_phase = ${ARG_temporal_phase}; \ ARG.phase_filter_width = ${ARG_phase_filter_width}; \ ARG.DIROUT = '${ARG_DIROUT}'; \ NIFTI_NORDIC('${img_magn_in}', '${img_phase_in}', '${img_out}', ARG); \ end; \ quit;" \ >> ${ARG_DIROUT}/log_NORDIC_$(date '+%Y-%m-%d').txt # Run dwidenoise on dMRI magnitude image dwidenoise ${img_magn_in} ${ARG_DIROUT}/sub-01_ses-2mm_dir-AP_run-01_dwi_mppca.nii.gz ```

Screenshot from 2024-08-26 09-19-17