A .nii or .nii.gz is not a CIFTI file (it is a NIFTI file), and consequently ciftiopen doesn’t work with it.
If you want to load a NIFTI file in matlab, there are a number of tools out there, including load_nifti.m that comes with FreeSurfer, and read_avw.m that comes with FSL. I’m sure there are other dedicated NIFTI matlab readers as well.
cheers,
-MH
--
Michael Harms, Ph.D.
-----------------------------------------------------------
Conte Center for the Neuroscience of Mental Disorders
Washington University School of Medicine
Department of Psychiatry, Box 8134
660 South Euclid Ave.
Tel: 314-747-6173
St. Louis, MO 63110
Email: mha...@wustl.edu
From: <hcp-users-boun...@humanconnectome.org> on behalf of Ferdaus Kawsar <ferdaus.kaw...@gmail.com>
Date: Wednesday, August 24, 2016 at 10:46 AM To: Timothy Coalson <tsc...@mst.edu> Cc: "hcp-users@humanconnectome.org" <HCP-Users@humanconnectome.org> Subject: Re: [HCP-Users] Extract average time-course from cortical parcels Hi Tim,
I used -cifti-separate and created the files. However, even though I can load the data in Matlab for left_data.func.gii and right_data.func.gii, I cannot load the volume files
in Matlab. I could not load out_vol.nii.gz and out_vol_structs.nii.gz , files in matlab.(I unzipped them first) I tried both ft_read_cifti and ciftiopen and none of them works.
They can both be viewed by workbench.
Here is the error message I see when I use ciftiopen to load out_vol.nii
out_vol_cft_open=ciftiopen('/home/fkawsar/HCP_Data/Experimental/MNI3.17/out_vol.nii','/home/fkawsar/Downloads/workbench/exe_linux64/wb_command');
While running:
/home/fkawsar/Downloads/workbench/exe_linux64/wb_command -cifti-convert -to-gifti-ext /home/fkawsar/HCP_Data/Experimental/MNI3.17/out_vol.nii /tmp/tp5ece90ba_3f9e_4d81_aec6_2b19c0f950c2.gii
ERROR: no cifti extension found in file '/home/fkawsar/HCP_Data/Experimental/MNI3.17/out_vol.nii'
/home/fkawsar/Downloads/workbench/exe_linux64/wb_command -cifti-convert -to-gifti-ext /home/fkawsar/HCP_Data/Experimental/MNI3.17/out_vol.nii /tmp/tp5ece90ba_3f9e_4d81_aec6_2b19c0f950c2.gii: Signal 127
Error using read_gifti_file_standalone (line 20)
[GIFTI] Loading of XML file /tmp/tp5ece90ba_3f9e_4d81_aec6_2b19c0f950c2.gii failed.
Error in gifti (line 71)
this = read_gifti_file_standalone(varargin{1},giftistruct);
Error in ciftiopen (line 31)
cifti = gifti([tmpfile '.gii']);
Hope you can help.
Best,
-Ferdaus
On Thu, Aug 11, 2016 at 5:39 PM, Timothy Coalson
<tsc...@mst.edu> wrote:
Ferdaus A. Kawsar, PhD
Research Scientist II
Department of Neurology
Medical College of Wisconsin
Milwaukee, WI
_______________________________________________ The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail. _______________________________________________ |
- [HCP-Users] Extract average time-course from cortical par... Ferdaus Kawsar
- Re: [HCP-Users] Extract average time-course from cor... Glasser, Matthew
- Re: [HCP-Users] Extract average time-course from cor... Timothy Coalson
- Re: [HCP-Users] Extract average time-course from... Ferdaus Kawsar
- Re: [HCP-Users] Extract average time-course ... Glasser, Matthew
- Re: [HCP-Users] Extract average time-cou... Ferdaus Kawsar
- Re: [HCP-Users] Extract average tim... Glasser, Matthew
- Re: [HCP-Users] Extract average... Glasser, Matthew
- Re: [HCP-Users] Extract average time-course ... Timothy Coalson
- Re: [HCP-Users] Extract average time-cou... Ferdaus Kawsar
- Re: [HCP-Users] Extract average tim... Harms, Michael
- Re: [HCP-Users] Extract average... Glasser, Matthew
- Re: [HCP-Users] Extract ave... Timothy Coalson