[pymvpa] Help with map2nifti()

Taku Ito taku.ito1 at gmail.com
Fri Nov 1 22:12:25 UTC 2013


Hi again,

I'm having issues with saving searchlight maps back to NIFTI format... I've
been using the mvpa2.datasets.mri.map2nifti module and I've tried both

map2nifti(res[1])
#and
map2nifti(res[1]).save('s1.nii.gz')

But both come back with the
AttributeError: 'DatasetAttributesCollection' object has no attribute
'mapper'

It seems that I have no mapper in my data set object - however, all I've
done on the original data set is take out some samples, z-score them, and
run an mvpa searchlight analysis with a NFoldPartitioner and Balancer
(combined into a chainNode).  It seems that the dimensions of the output
data set are essentially the same, minus the fact that the number of
samples was reduced from 360 to 150 or so.

I have, been able to use the h5save() command for hdf5 files, but would
like to get it into NIFTI format so I can view the statistical maps in
AFNI.

Please let me know if you have any insights! Your help is appreciated.
Taku

-- 
Takuya Ito
Cognitive Control & Psychopathology Laboratory
Washington University in St. Louis

Cole Neuroscience Laboratory (http://www.mwcole.net/)
Center for Molecular and Behavioral Neuroscience (CMBN)
Rutgers-Newark University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20131101/919cc134/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list