help
help > matc2nii using standalone installation of CONN
Sep 28, 2021 07:09 PM | Paul Thomas
matc2nii using standalone installation of CONN
Hello all,
I would like to convert some preprocessed/denoised time series from .matc to .nii file formats. I do not have access to a Matlab license, so I am using the standalone version of CONN with MCR (the GUI works so I am assuming that the installation was successful). I've tried to use the "run_conn.sh" shell script to run the "conn_matc2nii" function from command line (MacOS) via: './run_conn.sh matc2nii "/path/to/data/DATA_Subject001_Condition000.matc"'. I get the following error:
"Error using load
Unable to read MAT-file /path/to/data/DATA_Subject001_Condition000.mat. File might be corrupt.
Error in conn_vol (line 3)
Error in conn_matc2nii (line 28)
Error in conn (line 9907)
CONN19.b
SPM compiled
Matlab v.2019b
project: CONNundetermined
ans =
logical
1"
Where it looks like the file path string has the last character ('c') removed and CONN therefore tries to open the .matc file as a .mat file. I've tried several combinations of using 'conn_matc2nii' instead of 'matc2nii', removing quotes from the file path, encapsulating the entire argument in quotes, etc. I am also fairly confident that the .matc files I have are not corrupt. If anyone has any advice on how to do this I would greatly appreciate it!
Thanks!
Paul
I would like to convert some preprocessed/denoised time series from .matc to .nii file formats. I do not have access to a Matlab license, so I am using the standalone version of CONN with MCR (the GUI works so I am assuming that the installation was successful). I've tried to use the "run_conn.sh" shell script to run the "conn_matc2nii" function from command line (MacOS) via: './run_conn.sh matc2nii "/path/to/data/DATA_Subject001_Condition000.matc"'. I get the following error:
"Error using load
Unable to read MAT-file /path/to/data/DATA_Subject001_Condition000.mat. File might be corrupt.
Error in conn_vol (line 3)
Error in conn_matc2nii (line 28)
Error in conn (line 9907)
CONN19.b
SPM compiled
Matlab v.2019b
project: CONNundetermined
ans =
logical
1"
Where it looks like the file path string has the last character ('c') removed and CONN therefore tries to open the .matc file as a .mat file. I've tried several combinations of using 'conn_matc2nii' instead of 'matc2nii', removing quotes from the file path, encapsulating the entire argument in quotes, etc. I am also fairly confident that the .matc files I have are not corrupt. If anyone has any advice on how to do this I would greatly appreciate it!
Thanks!
Paul
Threaded View
Title | Author | Date |
---|---|---|
Paul Thomas | Sep 28, 2021 | |
Alfonso Nieto-Castanon | Sep 28, 2021 | |
Paul Thomas | Sep 28, 2021 | |