help > DCM2NII with Mac OS Sierra
Showing 1-4 of 4 posts
Display:
Results per page:
Nov 10, 2016  12:11 PM | Sabrina Golde - Charité - Universitätsmedizin Berlin
DCM2NII with Mac OS Sierra
Hi,

in order to use BET of the DPARSFA-Toolbox, I need to install the latest version of dcm2nii on an iMac with OS Sierra. However, it does not seem to create the .ini file when I double click on the dcm2nii-file in the MRIcron folder as described in the documentation. At least I cannot find it anywhere in my home directory.

Thanks in advance!
Nov 11, 2016  04:11 PM | Chris Rorden
RE: DCM2NII with Mac OS Sierra
Duplicate of https://www.nitrc.org/forum/message.php?msg_id=19270
Apr 3, 2023  04:04 AM | hanlai Zhang
RE: DCM2NII with Mac OS Sierra
Originally posted by Sabrina Golde:
Hi,

in order to use BET of the DPARSFA-Toolbox, I need to install the latest version of dcm2nii on an iMac with OS Sierra. However, it does not seem to create the .ini file when I double click on the dcm2nii-file in the MRIcron folder as described in the documentation. At least I cannot find it anywhere in my home directory.

Thanks in advance!
Apr 3, 2023  11:04 AM | Chris Rorden
RE: DCM2NII with Mac OS Sierra
Modern versions of dcm2niix will not generate .ini files by default, and some recent versions of MacOS restrict tools from reading and writing files in the users home directory as this is considered a security issue. In theory, you can generate a .ini file with the `-g y` argument, just be aware that your OS may not allow you to read this file.

```
%dcm2niix -g y
Chris Rorden's dcm2niiX version v1.0.20230320 Clang14.0.0 ARM (64-bit MacOS)
Saving defaults file /Users/chris/.dcm2nii.ini
Example output filename: 'myFolder_MPRAGE_19770703150928_1.nii'
% ls ~/.dcm2nii.ini
```
In general, the consensus is that one should control dcm2niix's behavior via the command line arguments, not the .ini file to ensure consistent and reliable behavior across users and machines. Perhaps the DPARSFA-Toolbox developers want to ensure that the desired commands are generated. For more details, see:

https://github.com/rordenlab/dcm2niix/is...
https://github.com/rordenlab/dcm2niix/is...