[pymvpa] How to create bold.nii.gz?

Michael Hanke michael.hanke at gmail.com
Fri Dec 26 16:55:04 UTC 2008


On Fri, Dec 26, 2008 at 04:12:13PM +0000, Matthew Brett wrote:
> Hi,
> 
> On Fri, Dec 26, 2008 at 3:21 PM, Yaroslav Halchenko
> <debian at onerussian.com> wrote:
> >>    I've been using analyze format (.img/.hdr) in SPM5 installed in
> >>    window OS and now I need to convert from analyze to nifti format in
> >>    order to use the pyMVPA.
> > you do not have to -- nifti.NiftiImage used by PyMVPA is capable of
> > reading analyze files. It is just that NIfTI is better ;-)
> 
> I assume that this is SPM's Nifti img/hdr pair though - it's an
> allowable version of the nifti format where the header and data are in
> different files.  Confusingly it has the same file names as the
> Analyze format...
Both. PyNIfTI uses the nifticlib reference implementation (just as FSL
does). It reads plain ANALYZE (without NIfTI header extension) as
hdr/img file pair, as well as single file nifti (commpressed and
uncompressed), but also nifti file pairs (also hdr/img, and optionally
compressed as hdr.gz/nii.gz). The most recent version of PyNIfTI also
provides memory-mapped access to uncompressed NIfTI files.

Cheers,

Michael

-- 
GPG key:  1024D/3144BE0F Michael Hanke
http://apsy.gse.uni-magdeburg.de/hanke
ICQ: 48230050



More information about the Pkg-ExpPsy-PyMVPA mailing list