Have you tried "which gifti" in matlab to see if some other gifti package is overriding yours? I have a few neuroimaging toolboxes (SPM, for example) that include their own gifti wrappers that don't seem compatible with HCP gifti.
-Keith On Fri, Feb 10, 2017 at 1:31 PM, Lauren N <lmnel...@gmail.com> wrote: > Hi Matt, > > Thanks very much for your reply. Unfortunately, I'm now getting the same > error message trying to read in the cifti files (after downloading the > cifti scripts provided at the link you sent). Do you have any idea why this > might be? > > Thanks, > Lauren > > On Tue, Feb 7, 2017 at 4:50 PM, Glasser, Matthew <glass...@wustl.edu> > wrote: > >> If what you want to do is read the CIFTI into matlab, you can use the >> ciftiopen tool for this (2B): >> >> https://wiki.humanconnectome.org/display/PublicData/HCP+Users+FAQ >> >> Peace, >> >> Matt. >> >> From: <hcp-users-boun...@humanconnectome.org> on behalf of Lauren N < >> lmnel...@gmail.com> >> Date: Tuesday, February 7, 2017 at 3:30 PM >> To: "hcp-users@humanconnectome.org" <hcp-users@humanconnectome.org> >> Subject: [HCP-Users] Reading gifti into matlab >> >> Hi all, >> >> I'm working with HCP data. Starting with some of the cifti dscalar.nii >> files of individual subject myelin and task-based contrasts, I pulled out >> specific columns from the task-based contrasts using -cifti-merge. Then, I >> combined these individual one-column dscalar files into one cifti file with >> 500 columns again using cifti-merge. Finally, I converted this to a metric >> gifti using cifti-separate. The gifti looks great in wb_view. However, I'm >> getting an error reading it into matlab with Guillaume Flandin's gifti >> library: >> >> Error using read_gifti_file_standalone (line 20) >> [GIFTI] Loading of XML file >> AllWM14CLeft.func.gii failed. >> Error in gifti (line 71) >> this = read_gifti_file_standalone(varargin{1},giftistruct); >> >> Any help would be greatly appreciated! I'm using the 1.6 version of the >> gifti library so I think it's up to date. >> Thanks, >> Lauren >> >> _______________________________________________ >> HCP-Users mailing list >> HCP-Users@humanconnectome.org >> http://lists.humanconnectome.org/mailman/listinfo/hcp-users >> >> >> ------------------------------ >> >> 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 mailing list > HCP-Users@humanconnectome.org > http://lists.humanconnectome.org/mailman/listinfo/hcp-users > _______________________________________________ HCP-Users mailing list HCP-Users@humanconnectome.org http://lists.humanconnectome.org/mailman/listinfo/hcp-users