Hi, On Tue, Aug 6, 2013 at 4:02 AM, Robert Oostenveld <[email protected]> wrote: > Hi Matthew, > > Although I don't have reference data, I do have an alternative implementation > for reading/writing nifti-2 files, including files containing the cifti > header extension. Although my code is in MATLAB, it still might be useful for > your debugging efforts. > > The code is implemented as part of our FieldTrip toolbox, as that toolbox > will be used for the analysis of the MEG parts in the HCP. The nift-2 and > cifti implementation are not yet completely finished, but can already be > found on my github page on the bug2096-cifti branch (see > https://github.com/oostenveld/fieldtrip/tree/bug2096-cifti and > http://bugzilla.fcdonders.nl/show_bug.cgi?id=2096). Specifically you would > want to go to the fieldtrip/fileio/private directory, where you see > > mac001> cd private/ > mac001> ls *nifti2* *cifti* > read_cifti.m read_nifti2_hdr.m write_cifti.m > write_nifti2_hdr.m > > These low-level functions will in the near future be wrapped in > fieldtrip/fileio/ft_read_mri.m and similar higher-level read/write functions > functions. > > Another relevant file is the test script fieldtrip/test/test_bug2096.m > (visible here: > https://github.com/oostenveld/fieldtrip/blob/bug2096-cifti/test/test_bug2096.m) > > best regards, > Robert > > PS don't hesitate to contact me outside the list to discuss further details, > that might also help me to finalize my MATLAB implementation.
Sorry to be slow to reply - I would have saved quite a bit of time if I'd read your email properly :) I see that the '32' type extension is 'cifti' and that led me to: http://www.nitrc.org/plugins/mwiki/index.php/cifti:ConnectivityMatrixFileFormats#CIFTI_Connectivity_Matrix_File_Formats Thanks - it was kind of you to point me to your code, and put it up. By the way, my struggles are currently at: https://github.com/matthew-brett/nibabel/tree/nifti12-refactor Cheers, Matthew _______________________________________________ HCP-Users mailing list [email protected] http://lists.humanconnectome.org/mailman/listinfo/hcp-users
