Hi Michael,<br><br>I have the Event definitions stored in a dict (here ev) and read in through a loop like this<br>    evt = []<br>    for item in ev:<br>        # {&#39;onset&#39;:runnum*runlength+timestamp,&#39;duration&#39;:6,&#39;chunk&#39;:runnum,&#39;label&#39;:cats[c]}<br>
        evt += [Event(onset=item[&#39;onset&#39;],duration=item[&#39;duration&#39;],chunk=item[&#39;chunk&#39;],label=item[&#39;label&#39;])]<br><br>Then define the ERNiftiDataset<br><br>data = ERNiftiDataset(samples=dfile,<br>
                        events = evt,<br>                        mask=mfile,<br>                        dtype=N.float32,<br>                        evconv=True)<br><br>Then the analysis is run with<br><br>    smap = LinearNuSVMC().getSensitivityAnalyzer(transformer=N.abs)<br>
    results = smap(data)<br><br>In this case the TR is 2sec so results contains 3 volumes. I also tried setting the duration to 12 seconds and got results spanning 6 volumes. I assumed that the values in these volumes were just the absolute SVM weights mapped back from array form to their locations in space/time. Is this correct?<br>
<br>Thanks as always,<br>Matt<br><br><div class="gmail_quote">On Thu, Jul 2, 2009 at 7:05 AM,  <span dir="ltr">&lt;<a href="mailto:pkg-exppsy-pymvpa-request@lists.alioth.debian.org">pkg-exppsy-pymvpa-request@lists.alioth.debian.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Send Pkg-ExpPsy-PyMVPA mailing list submissions to<br>
        <a href="mailto:pkg-exppsy-pymvpa@lists.alioth.debian.org">pkg-exppsy-pymvpa@lists.alioth.debian.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:pkg-exppsy-pymvpa-request@lists.alioth.debian.org">pkg-exppsy-pymvpa-request@lists.alioth.debian.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:pkg-exppsy-pymvpa-owner@lists.alioth.debian.org">pkg-exppsy-pymvpa-owner@lists.alioth.debian.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Pkg-ExpPsy-PyMVPA digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. ERNiftiDataset (Matthew Cieslak)<br>
   2. Re: ERNiftiDataset (Michael Hanke)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 1 Jul 2009 11:59:26 -0400<br>
From: Matthew Cieslak &lt;<a href="mailto:mattcieslak@gmail.com">mattcieslak@gmail.com</a>&gt;<br>
Subject: [pymvpa] ERNiftiDataset<br>
To: <a href="mailto:pkg-exppsy-pymvpa@lists.alioth.debian.org">pkg-exppsy-pymvpa@lists.alioth.debian.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:83dca85f0907010859y1785fc9dsb4e18fe009531a6a@mail.gmail.com">83dca85f0907010859y1785fc9dsb4e18fe009531a6a@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi,<br>
<br>
I just switched from using the transformWithBoxcar function in conjunction<br>
with fsl evfiles to make big files of concatenated samples with labels and<br>
chunks specified in an outside text file to using the ERNiftiDataset class<br>
(which is really nice!) with lists of Event objects and am having trouble<br>
running a searchlight on it.  I get the error<br>
<br>
ValueError: Searchlight only works with MappedDatasets that has metric<br>
assigned.<br>
<br>
Is it not possible to use a searchlight when samples have multiple time<br>
points? I had no trouble getting svm weights for the same ERNiftiDatasets,<br>
so I am a little confused<br>
<br>
Thanks,<br>
Matt<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20090701/a0af6530/attachment-0001.htm" target="_blank">http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20090701/a0af6530/attachment-0001.htm</a>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 1 Jul 2009 18:43:32 +0200<br>
From: Michael Hanke &lt;<a href="mailto:michael.hanke@gmail.com">michael.hanke@gmail.com</a>&gt;<br>
Subject: Re: [pymvpa] ERNiftiDataset<br>
To: <a href="mailto:pkg-exppsy-pymvpa@lists.alioth.debian.org">pkg-exppsy-pymvpa@lists.alioth.debian.org</a><br>
Message-ID: &lt;20090701164332.GB10915@runkel&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Hi Matthew,<br>
<br>
On Wed, Jul 01, 2009 at 11:59:26AM -0400, Matthew Cieslak wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I just switched from using the transformWithBoxcar function in conjunction<br>
&gt; with fsl evfiles to make big files of concatenated samples with labels and<br>
&gt; chunks specified in an outside text file to using the ERNiftiDataset class<br>
&gt; (which is really nice!) with lists of Event objects and am having trouble<br>
&gt; running a searchlight on it.  I get the error<br>
&gt;<br>
&gt; ValueError: Searchlight only works with MappedDatasets that has metric<br>
&gt; assigned.<br>
&gt;<br>
&gt; Is it not possible to use a searchlight when samples have multiple time<br>
&gt; points? I had no trouble getting svm weights for the same ERNiftiDatasets,<br>
&gt; so I am a little confused<br>
<br>
Depending on the exact way you are using this dataset type you might<br>
actually get two datasets in one -- one of those has no metric assigned,<br>
because it is not fMRI data. To be able to figure out what is going on<br>
it would be good if you could post the relevant code snippets and an<br>
example of your event definitions.<br>
<br>
Thanks,<br>
Michael<br>
<br>
<br>
--<br>
GPG key:  1024D/3144BE0F Michael Hanke<br>
<a href="http://apsy.gse.uni-magdeburg.de/hanke" target="_blank">http://apsy.gse.uni-magdeburg.de/hanke</a><br>
ICQ: 48230050<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Pkg-ExpPsy-PyMVPA mailing list<br>
<a href="mailto:Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org">Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa</a><br>
<br>
<br>
End of Pkg-ExpPsy-PyMVPA Digest, Vol 17, Issue 2<br>
************************************************<br>
</blockquote></div><br>