dipy_fit_force#
Synopsis#
Workflow for FORCE microstructure reconstruction.
Performs FORCE (FORward modeling for Complex microstructure Estimation) reconstruction [1] on the files by ‘globing’ input_files and saves the FORCE metrics in a directory specified by out_dir.
Usage#
dipy_fit_force [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)
--bvecs_tolThreshold used to check that norm(bvec) = 1 +/- bvecs_tol. (default: 0.01)
--penaltyPenalty weight for fiber complexity in the FORCE model. (default: 1e-05)
--n_neighborsNumber of neighbors for signal matching. (default: 50)
--use_exactUse best match instead of posterior averaging. (default: False)
--posterior_betaSoftmax temperature for posterior averaging. (default: 2000.0)
--compute_odfCompute posterior ODF maps. (default: False)
--num_simulationsNumber of simulated voxels for the simulation library. (default: 500000)
--num_cpusNumber of CPU cores for simulation generation. Use -1 to use all available cores. (default: -1)
--use_cacheLoad cached simulations if available. (default: True)
--compute_kurtosisCompute kurtosis metrics (mk, ak, rk, kfa) during simulation. (default: False)
--engineParallel engine for fitting: “ray” or “serial”. If “ray” is requested but not installed, falls back to “serial” with a warning. (default: serial)
--save_metricsList of metrics to save. Possible values: fa, md, rd, wm_fraction, gm_fraction, csf_fraction, num_fibers, dispersion, nd, ufa, uncertainty, ambiguity, mk, ak, rk, kfa, entropy, predicted_signal. If not set, all available metrics are saved. (default: None)
--verboseWhether to print verbose messages during processing. (default: False)
Output Options#
--out_dirOutput directory. (default: current directory)
--out_faName of the fractional anisotropy volume to be saved. (default: fa.nii.gz)
--out_mdName of the mean diffusivity volume to be saved. (default: md.nii.gz)
--out_rdName of the radial diffusivity volume to be saved. (default: rd.nii.gz)
--out_wm_fractionName of the white matter fraction volume to be saved. (default: wm_fraction.nii.gz)
--out_gm_fractionName of the gray matter fraction volume to be saved. (default: gm_fraction.nii.gz)
--out_csf_fractionName of the CSF fraction volume to be saved. (default: csf_fraction.nii.gz)
--out_num_fibersName of the number of fibers volume to be saved. (default: num_fibers.nii.gz)
--out_dispersionName of the orientation dispersion volume to be saved. (default: dispersion.nii.gz)
--out_ndName of the neurite density volume to be saved. (default: nd.nii.gz)
--out_ufaName of the micro-FA volume to be saved. (default: ufa.nii.gz)
--out_uncertaintyName of the uncertainty volume to be saved. (default: uncertainty.nii.gz)
--out_ambiguityName of the ambiguity volume to be saved. (default: ambiguity.nii.gz)
--out_mkName of the mean kurtosis volume to be saved (requires compute_kurtosis). (default: mk.nii.gz)
--out_akName of the axial kurtosis volume to be saved (requires compute_kurtosis). (default: ak.nii.gz)
--out_rkName of the radial kurtosis volume to be saved (requires compute_kurtosis). (default: rk.nii.gz)
--out_kfaName of the kurtosis FA volume to be saved (requires compute_kurtosis). (default: kfa.nii.gz)
--out_entropyName of the entropy volume to be saved (requires use_posterior). (default: entropy.nii.gz)
--out_predicted_signalName of the predicted signal volume to be saved. (default: predicted_signal.nii.gz)
--out_peaksName of the peaks file to be saved (in .pam5 format). (default: peaks.pam5)
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.