dipy_fit_odffp#
Synopsis#
Workflow for ODF-Fingerprinting (ODF-FP) reconstruction.
Performs ODF-FP [1][2] on the files by
‘globing’ input_files and saves the peaks and the microstructure
maps in a directory specified by out_dir.
The ODF of every voxel is reconstructed with GQI and matched against a
dictionary of ODF fingerprints simulated from a multi-compartment
model. The dictionary is generated for the gradient table of the input
data, or loaded from dict_file when it was saved by a previous run
with save_dict.
Usage#
dipy_fit_odffp [OPTIONS] input_files bvalues_files bvectors_files mask_files
Input Parameters#
input_filesPath to the input volumes. This path may contain wildcards to process multiple inputs at once.
bvalues_filesPath to the bvalues files. This path may contain wildcards to use multiple bvalues files at once.
bvectors_filesPath to the bvectors files. This path may contain wildcards to use multiple bvectors files at once.
mask_filesPath to the input masks. This path may contain wildcards to use multiple masks at once.
General Options#
--b0_thresholdThreshold used to find b0 volumes. (default: 50.0)
--bvecs_tolThreshold used to check that norm(bvec) = 1 +/- bvecs_tol. (default: 0.01)
--dict_filePath to a dictionary archive (
.npz) saved by a previous run withsave_dict. If set, the dictionary is loaded instead of generated. It must have been generated with the same gradient table and sphere as the current run. (default: None)--dict_sizeNumber of fingerprints in the generated dictionary. (default: 1000000)
--max_peaks_numMaximum number of fiber compartments in a fingerprint. (default: 3)
--equal_fibersUse identical microstructure parameters for all fibers of a fingerprint. (default: False)
--p_isoTwo values
min maxfor the free-water volume fraction. If not set, defaults to0 1. (default: None)--p_fibTwo values
min maxfor each fiber-compartment volume fraction. If not set, defaults to0 1. (default: None)--f_inTwo values
min maxfor the intra-axonal signal fraction. If not set, defaults to0 1. (default: None)--d_isoTwo values
min max(in um^2/ms) for the free-water isotropic diffusivity. If not set, defaults to2 3. (default: None)--d_aTwo values
min max(in um^2/ms) for the intra-axonal diffusivity. If not set, defaults to1.5 2.5. (default: None)--d_eTwo values
min max(in um^2/ms) for the extra-axonal axial diffusivity. If not set, defaults to1.5 2.5. (default: None)--d_rTwo values
min max(in um^2/ms) for the extra-axonal radial diffusivity. If not set, defaults to0.5 1.5. (default: None)--max_chunk_sizeMaximum number of fingerprints simulated at once. (default: 10000)
--assert_faster_d_aReject fingerprints whose intra-axonal diffusivity is smaller than their extra-axonal axial diffusivity. (default: False)
--tortuosity_approximationDerive the extra-axonal radial diffusivity from the intra-axonal fraction and diffusivity with the tortuosity approximation. (default: False)
--seedRandom seed used to generate the dictionary. The same seed always yields the same dictionary. (default: 42)
--sphere_nameName of the full symmetric sphere on which the dictionary and the measured ODFs are sampled. If not set,
repulsion724is used. (default: None)--sampling_lengthSampling length of the GQI model used to reconstruct the ODFs. (default: 1.2)
--penaltyModel-complexity penalty applied to fingerprints with more fibers during matching, in the interval [0, 0.1]. (default: 1e-05)
--sh_order_maxMaximum spherical harmonics order (l) used for alignment, matching and to store the matched ODFs. (default: 8)
--keep_negative_odfKeep negative ODF samples instead of setting them to zero before normalization. (default: False)
--zero_baseline_odfSubtract the minimum of each ODF before normalization. (default: False)
--output_measured_odfStore the measured (GQI) ODF of each voxel instead of the matched dictionary ODF. (default: False)
--matching_precisionFloating-point precision used for fingerprint matching:
float32orfloat64. (default: float32)--num_threadsNumber of threads used by the matching kernels. If not set, the default number of OpenMP threads is used. (default: None)
--engineParallel engine for fitting: “ray” or “serial”. If “ray” is requested but not installed, falls back to “serial” with a warning. (default: serial)
--n_jobsNumber of processes used by the “ray” engine. Use -1 to use all available cores. (default: -1)
--vox_per_chunkNumber of voxels matched per batch. If not set, an engine-specific default is used. (default: None)
--save_dictSave the generated dictionary to
out_dictso it can be reused withdict_file. (default: False)--normalize_peaksDivide the peak values of each voxel by its main-peak value. By default the peak values are the quantitative anisotropy: the ODF amplitude above its isotropic floor, scaled so that the largest peak in the volume is 1. (default: False)
--extract_pam_valuesSave or not to save pam volumes as single nifti files. (default: False)
--verboseWhether to print verbose messages during processing. (default: False)
Output Options#
--out_dirOutput directory. (default: current directory)
--out_pamName of the peaks volume to be saved. (default: peaks.pam5)
--out_dictName of the dictionary archive to be saved (requires save_dict). (default: odf_dict.npz)
--out_num_fibersName of the number of fibers volume to be saved. (default: num_fibers.nii.gz)
--out_free_waterName of the free-water fraction volume to be saved. (default: free_water.nii.gz)
--out_predicted_signalName of the predicted signal volume to be saved. (default: predicted_signal.nii.gz)
--out_shmName of the spherical harmonics volume to be saved. (default: shm.nii.gz)
--out_peaks_dirName of the peaks directions volume to be saved. (default: peaks_dirs.nii.gz)
--out_peaks_valuesName of the peaks values volume to be saved. (default: peaks_values.nii.gz)
--out_peaks_indicesName of the peaks indices volume to be saved. (default: peaks_indices.nii.gz)
--out_gfaName of the generalized FA volume to be saved. (default: gfa.nii.gz)
--out_qaName of the quantitative anisotropy volume to be saved. (default: qa.nii.gz)
References#
Garyfallidis, E., M. Brett, B. Amirbekian, A. Rokem, S. Van Der Walt, M. Descoteaux, and I. Nimmo-Smith. Dipy, a library for the analysis of diffusion MRI data. Frontiers in Neuroinformatics, 1-18, 2014.