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

Usman Sheikh u.sheikh at bcbl.eu
Fri Nov 24 17:04:19 UTC 2017


Hi Mr. Yaroslav,

Thanks for your email. Sorry for an incomplete question. Yes, all the other session's functional images are already aligned to the first one. And this is exactly why I was biased towards using the first one's imghdr for the niftiresults. 

Thanks,
Usman Ayub Sheikh
Predoctoral Researcher
www.bcbl.eu

Legal disclaimer/Aviso legal/Lege-oharra: www.bcbl.eu/legal-disclaimer

----- Original Message -----
From: "Yaroslav Halchenko" <debian at onerussian.com>
To: "pkg-exppsy-pymvpa" <pkg-exppsy-pymvpa at lists.alioth.debian.org>
Sent: Friday, November 24, 2017 5:47:43 PM
Subject: Re: [pymvpa] Searchlight on a vstack-ed dataset: Which imghdr to use for niftiresults?

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        

_______________________________________________
Pkg-ExpPsy-PyMVPA mailing list
Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa



More information about the Pkg-ExpPsy-PyMVPA mailing list