[pymvpa] searchlight for data with different runs with different masks

Kaustubh Patil kaustubh.patil at gmail.com
Sat Jan 16 04:00:57 UTC 2016


Thanks Yaroslav.

I tried your solution and it seems to work for this particular dataset but
unfortunately not for other datasets as the labels cannot be balanced
easily.

Maybe it's possible to directly calculate balanced measures in the CV? I
guess I will have to change the code to do that, any suggestions where to
start?

Best regards


On Sat, Dec 19, 2015 at 3:51 PM, Yaroslav Halchenko <debian at onerussian.com>
wrote:

>
> On Sat, 19 Dec 2015, Kaustubh Patil wrote:
>
> > Hi,
>
> > I want to use PyMVPA for whole-brain searchlight analysis on some
> existing
> > data. The data has been already preprocessed (skull stripping, motion
> > correction etc.). Each subject data contains 10 runs and each run was
> processed
> > separately, so there is a separate full brain boolean mask for each run.
>
> > My question is what is the recommended/correct a way to use this data to
> > perform run-wise cross-validation searchlight?
>
> you have a problem here, since you have done per run preprocessing, in
> particular motion-correction, your volumes are misaligned across runs.
> (used FSL, didn't you? )
>
> ideally, you redo preprocessing while motion correcting to the same
> volume across all the runs.  Alternatively, you reslice all the runs
> into the same space (could well be the common space your toolkit used
> for analysis across runs -- common anatomical or MNI) and then do
> analysis there, while again unifying your mask, which must be the same
> across all the runs.
>
> > As I understand, each run has to be in the same space (same number of
> voxels)
> > so that training and test can be performed, so the whole brain masks
> have to be
> > somehow aligned. How would you recommend doing this?
>
> it is not a mere 'number of voxels' problem but rather that you have
> misaligned across runs volumes.  if just voxel number -- choose
> intersection of all masks.
>
> --
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20160115/5643999c/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list