Global configuration - daducci/AMICO GitHub Wiki

You can set global configuration of AMICO by calling the set_config() method of the Evaluation class:

import amico

ae = amico.Evaluation()
ae.set_config('config_name', value)

General configuration parameters

peaks_filenamePeaks filename containing the main diffusion orientations. If None, the main diffusion orientations are computed using the diffusion tensor model of dipy. (default is None)

doNormalizeSignalNormalize the signal to the b0 value. (default is True)

doKeepb0IntactKeep the b0 image intact in the predicted signal. (default is False)

doComputeRMSECompute the root mean square error between the predicted and the measured signal. (default is False)

doComputeNRMSECompute the normalized root mean square error between the predicted and the measured signal. (default is False)

doMergeB0Merge the b0 images into a single volume. (default is False)

doDebiasSignalRemove Rician bias from the signal. See the Removing rician bias before fitting section for more information. (default is False)

DWI-SNRSignal-to-noise ratio of the DWI data (SNR = b0/sigma). See the Removing rician bias before fitting section for more information. (default is None)

[!WARNING] This parameter must be set if the doDebiasSignal parameter is set to True

Model-specific configuration parameters

NODDI

doSaveModulatedMapsSave the modulated NDI and ODI maps for tissue-weighted means described in Parker, Christopher S. et al. 2021. (default is False)

FreeWater

doSaveCorrectedDWISave the corrected DWI. (default is False)

SANDI

doDirectionalAveragePerform the directional average of the signal of each shell. (default is False)

[!WARNING] This parameter must be set to True if you want to use the SANDI model

Advanced configuration parameters

[!WARNING] The following parameters should be used with caution. If you are not sure about what you are doing, please leave them to their default values

DTI_fit_methodFit method for the diffusion tensor model. Possible values are OLS (ordinary least squares) and WLS (weighted least squares). (default is OLS)

nthreadsNumber of threads to use during the model fitting. If -1 the number of threads is set to the number of available CPUs in the system. See the Multithreading section for more information. (default is -1)

BLAS_nthreadsNumber of threads to use in the threadpool-backend of common BLAS implementations. If -1 the number of threads is set to the number of available CPUs in the system. See the Multithreading section for more information. (dafault is 1)