vistalab / PRFmodel

MIT License
11 stars 7 forks source link

Nifti has 32700 limit per dimension, check gifti or other 1D formats or best way to do this #33

Open garikoitz opened 4 years ago

noahbenson commented 4 years ago

I believe that the Nifti2 standard allows for sizes of more than 32,767 ; MGH/MGZ (FreeSurfer) also supports it, as do Gifti and Cifti. Nifti2 might be the easiest, though.

noahbenson commented 4 years ago

Matlab's native niftiwrite supports nifti version 2, and automatically uses it when the number of dimensions is greater than 32767; nibabel in Python also supporst nifti2--we should just use it when the dimensions are larger (or just always?)

For running other data, such as the HCP data, we should just convert data over to nifti2 for use with prfanalyze; in the future we can worry about supporting other file formats.

garikoitz commented 4 years ago

Noah, I forgot about this: if the input is an standard 8x8x8 nifti, for example, the outputs shuold be in the same format, so one 8x8x8 file for x, another one for y, sigma and so forth. I haven't checked if this is true right now

noahbenson commented 4 years ago

Note: this needs to be solved in analyzePRF and VistaSoft--once these are fixed, we should be able to use nifti2 throughout. (@noahbenson is going to work on analyzePRF, @garikoitz is going to work on VistaSoft).

garikoitz commented 4 years ago

@garikoitz ask Reynolds what AFNI is doing