<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>RE: [FIELDTRIP] single trial source signal</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Dear Vasan,<BR>
<BR>
I also feel single-trial source-analysis does work, I have done it and published it J Neurosci (using pcc for just power data).<BR>
<BR>
The problem as you sent it in the mail below is that the cfg.grid.pos that you entered is not inside your headmodel:<BR>
0 dipoles inside, 1 dipoles outside brain<BR>
<BR>
There wil not be any data in there. You could try to plot the functional data interpolated on the mri with cfg.interactive = 'yes'; and then click on the location you want to do the single-trial analysis on. The coordinates will be printed in the workspace. These can be entered in cfg.grid.pos.<BR>
<BR>
If you have any more questions could you then send the cfg you used as well? This might give some hints as to what went wrong.<BR>
<BR>
It's just not the case that you can use some-one elses code and run your data through it. The choises you make for the data analysis depend a lot on the kind of data and what you want to do.<BR>
But this mailing list is there to help you allong the way!<BR>
<BR>
Hope it helps,<BR>
<BR>
Best, Hanneke<BR>
<BR>
<BR>
<BR>
<BR>
-----Oorspronkelijk bericht-----<BR>
Van: van Dijk, Hanneke<BR>
Verzonden: zo 29.11.2009 09:38<BR>
Aan: FieldTrip discussion list<BR>
Onderwerp: RE: [FIELDTRIP] single trial source signal<BR>
<BR>
Dear Vasan,<BR>
<BR>
Since I don't know exactly how far you are in doing the analysis, I just send you the basic script that shows the most important parameters. Don't forget to do freqanalysis with cfg.output = 'fourier' and cfg.method = 'mtmfft' for the specific frequency (cfg.foilim) you want to focus on.<BR>
<BR>
cfg = [];<BR>
cfg.grid.pos = location of source coordinate;% [x y z] to fill in<BR>
cfg.frequency = frequency of interest;<BR>
cfg.vol = headmodel; %to make yourself see <A HREF="http://fieldtrip.fcdonders.nl/example/make_leadfields_using_different_headmodels">http://fieldtrip.fcdonders.nl/example/make_leadfields_using_different_headmodels</A><BR>
cfg.projectnoise = 'yes';%to compute the neural activity index using sourcedescriptives<BR>
cfg.lambda = '10%';%the amount of noice to estimate estimated<BR>
cfg.method = 'pcc';<BR>
cfg.keeptrials = 'yes';<BR>
Virtual_channeldata = sourceanalysis(cfg,freq);<BR>
<BR>
You can do sourcedescriptives after that.<BR>
<BR>
'help freqanalysis', 'help sourceanalysis' and 'help sourcedescriptives' should also help you further. Or you could have a look at the fieldtrip website. There are a lot of options to taylor the analysis to your data.<BR>
<BR>
Hope this helps!<BR>
<BR>
Best,<BR>
<BR>
Hanneke van Dijk<BR>
<BR>
------------------------------------------------------------<BR>
Institute for Clinical Neuroscience and Medical Psychology<BR>
Heinrich Heine Universitaet, Duesseldorf, Germany<BR>
------------------------------------------------------------<BR>
<BR>
-----Oorspronkelijk bericht-----<BR>
Van: FieldTrip discussion list namens Rajamoni Nadar, Sreenivasan (NIH/NIMH) [E]<BR>
Verzonden: do 26.11.2009 14:53<BR>
Aan: FIELDTRIP@NIC.SURFNET.NL<BR>
Onderwerp: [FIELDTRIP] single trial source signal<BR>
<BR>
FieldTrip Users,<BR>
<BR>
Is it possible to get single trial source signal using FieldTrip? I would appreciate if anybody could provide code for the same.<BR>
<BR>
Thank you,<BR>
Vasan<BR>
----------------------------------<BR>
The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also <A HREF="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</A> and <A HREF="http://www.ru.nl/neuroimaging/fieldtrip">http://www.ru.nl/neuroimaging/fieldtrip</A>.<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>
<p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p> http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p> http://www.ru.nl/fcdonders/fieldtrip/</p>