[pymvpa] Searchlight on a vstack-ed dataset: Which imghdr to use for niftiresults?

Yaroslav Halchenko debian at onerussian.com
Fri Nov 24 16:47:43 UTC 2017


On Fri, 24 Nov 2017, Usman Sheikh wrote:

>    Hi PyMVPA gurus,

>    This question more about nifiresults than it is about searchlight.

>    Specifically, it's about the image header in this command:

>    niftiresults = map2nifti(sl_map, imghdr=dataset.a.imghdr)

>    Let's say I create a big dataset from three of a subject's sessions, using
>    vstack, while setting 'a' argument of the function to 'all'. This will
>    return me a dataset with imghdr as a tuple of all three imghdrs (and
>    imgtype and mapper and all others in the same format as well). Now if I
>    run searchlight on this stacked dataset, which imghdr should I use to get
>    the corresponding accuracy map in nifti format? And what problems I might
>    face if I just select the first of all the tuples i.e. imgtype[0] and
>    mapper[0] and so on?

well -- it is your decision to make I guess ;)
What if they are all different etc.  If you aligned them all into the
same space, then you would be the one to know that it is  "kosher" to
take [0]th one
-- 
Yaroslav O. Halchenko
Center for Open Neuroscience     http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20171124/b8590ef0/attachment.sig>


More information about the Pkg-ExpPsy-PyMVPA mailing list