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)
--wm_thresholdMinimum white-matter signal fraction for a simulated voxel to be assigned fiber-orientation labels when building the library. (default: 0.5)
--tortuosityConstrain the white-matter perpendicular diffusivity through the tortuosity model instead of sampling
wm_d_perp_rangeindependently. (default: False)--odi_rangeTwo values
min maxgiving the orientation-dispersion-index prior range sampled when building the simulation library. If not set, the FORCE default0.01 0.3is used. (default: None)--num_odi_valuesNumber of points in the ODI sampling grid. If not set, the grid is autoscaled from
odi_rangeso its sampling density matches the default grid (10 points across0.01 0.3). (default: None)--wm_d_par_rangeTwo values
min max(in mm^2/s) for the white-matter parallel (axial) diffusivity prior. If not set, defaults to0.002 0.003. (default: None)--wm_d_perp_rangeTwo values
min max(in mm^2/s) for the white-matter perpendicular (radial) diffusivity prior. Ignored whentortuosityis set. If not set, defaults to0.0003 0.0015. (default: None)--gm_d_iso_rangeTwo values
min max(in mm^2/s) for the gray-matter isotropic diffusivity prior. If not set, defaults to0.0007 0.0012. (default: None)--csf_dFixed CSF isotropic diffusivity in mm^2/s. If not set, defaults to
0.003. (default: None)--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)
--out_micro_uncertainty_dirName of the subdirectory for per-microstructure uncertainty maps (weighted IQR of posterior density, normalized by prior range). Maps saved: fa, md, rd, wm_fraction, gm_fraction, csf_fraction, num_fibers, dispersion, nd, ufa, mk, ak, rk, kfa. (default: microstructure_uncertainty)
--out_micro_ambiguity_dirName of the subdirectory for per-microstructure ambiguity maps (FWHM of posterior density, normalized by prior range). Maps saved: fa, md, rd, wm_fraction, gm_fraction, csf_fraction, num_fibers, dispersion, nd, ufa, mk, ak, rk, kfa. (default: microstructure_ambiguity)
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.