Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
NIfTI input data format #82
There are a couple ways to accomplish what you want to do (starting with converted nifti images), and our documentation could really use some updating with the details. I'll work on that!
You are correct in that you can use aas_addinitialstream() to import your epi and structural images. This is quite easy for the structural stream, and the code you provided earlier should work:
Things are a little more complicated for the epis, because you would also need create and import a dicom_header stream (that contains information about the TR, TE, etc.). Luckily, this is all made easier by the aamod_epifromnifti module that Tibor referenced; it will create the epi streams and the corresponding dicom_header files. Just make sure that you set the options (TR and TE) in aamod_epifromnifti.xml, or in your user script like this:
aap.tasksettings.aamod_epifromnifti.TR = 1920; % in millseconds
As Tibor pointed out, aamod_epifromnifti knows how to find the epi images for each subject because you specify them in aas_addsubject(), like this:
Note that aas_addsubject() expects the third input to be a cell array of file names (one cell for each epi image). If you have multiple sessions, then it should be a cell array of cell arrays!
Hope this helps, please let us know if you encounter any further problems. Thank you!