dipy_fit_sfm#
Synopsis#
Workflow for Sparse Fascicle Model (SFM)
See [1] for further details about the method.
Usage#
dipy_fit_sfm [OPTIONS] input_files bvalues_files bvectors_files mask_files
Input Parameters#
input_filesPath to the input volumes. This path may contain wildcards to
bvalues_filesPath to the bvalues files. This path may contain wildcards to use multiple bvalues files at once.
bvectors_filesPath to the bvalues files. This path may contain wildcards to use
mask_filesPath to the input masks. This path may contain wildcards to use
General Options#
--sphere_nameSphere name on which to reconstruct the fODFs. (default: None)
--responseResponse function to use. If None, the response function will be defined automatically. (default: None)
--solverThis will determine the algorithm used to solve the set of linear equations underlying this model. It needs to be one of the following: {‘ElasticNet’, ‘NNLS’} (default: ElasticNet)
--l1_ratioThe ElasticNet mixing parameter, with 0 <= l1_ratio <= 1. For l1_ratio = 0 the penalty is an L2 penalty. For l1_ratio = 1 it is an L1 penalty. For 0 < l1_ratio < 1, the penalty is a combination of L1 and L2. (default: 0.5)
--alphaSets the balance between least-squares error and L1/L2 regularization in ElasticNet :footcite:p`Zou2005`. (default: 0.001)
--seedSeed for the random number generator. (default: 42)
--b0_thresholdThreshold used to find b0 volumes. (default: 50.0)
--bvecs_tolBvecs should be unit vectors. (default: 0.01)
--sh_order_maxMaximum spherical harmonics order (l) used in the SFM fit. (default: 8)
--relative_peak_thresholdOnly return peaks greater than
relative_peak_threshold * mwhere m is the largest peak. (default: 0.5)--min_separation_angleThe angle tolerance between directions. (default: 25)
--parallelWhether to use parallelization in peak-finding. (default: False)
--extract_pam_valuesSave or not to save pam volumes as single nifti files. (default: False)
--num_processesIf parallel is True, the number of subprocesses to use (default: None)
Output Options#
--out_dirOutput directory. (default: current directory)
--out_pamName of the peaks volume to be saved. (default: peaks.pam5)
--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_sphereSphere vertices name to be saved. (default: sphere.txt)
--out_bName of the B Matrix to be saved. (default: B.nii.gz)
--out_qaName of the Quantitative Anisotropy 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.