<!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] 4D data reading</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Dear Jan-Mathijs,<BR>
<BR>
I have followed your path (in parallel to the one suggested by Gopakumar) and it worked. It took me a while to dig out the configuration file in the MSI server and to realise it needs to be renamed and put into the data directory, but it works now.<BR>
<BR>
As you write, the procedures change the prompt to K:> and continue after typing dbcont. I do not mind this if it is for once, but what about running batch files? Or is the idea to read data, the header, and the events and then save all for further processing in some different format (e.g. Matlab?). I work with the FieldTrip_20051006 version that I downloaded today, and I do not know whether it has been fixed or whether this feature (K:> dbcont) will stay.<BR>
<BR>
Thank you for your advice. Thanks to you and Gopakumar and few other colleagues we are now close to smooth reading our MEG data into FieldTrip.<BR>
<BR>
Best wishes<BR>
Andrej<BR>
<BR>
Prof. Andrej Stancak, PhD.<BR>
The University of Liverpool<BR>
School of Psychology<BR>
The Eleanor Rathbone Building<BR>
Bedford Street South, Room 209<BR>
Liverpool<BR>
L69 7ZA<BR>
<BR>
E:mail: a.stancak@liverpool.ac.uk (primary)<BR>
stancak@centrum.cz (secondary)<BR>
Phone: 0151 7946951<BR>
Office hours: Monday 10-12, Wednesday 10-12<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: FieldTrip discussion list on behalf of jan-mathijs schoffelen<BR>
Sent: Mon 06/10/2008 15:54<BR>
To: FIELDTRIP@NIC.SURFNET.NL<BR>
Subject: Re: [FIELDTRIP] 4D data reading<BR>
<BR>
Dear Andrej, dear Gopa,<BR>
<BR>
Sorry to bother you again, but I tried to make a point in my last <BR>
mail that it is not necessary to intermediately convert your raw <BR>
epoched or continuous 4D-data into another format, prior to be able <BR>
to read it into Fieldtrip. Of course you are free to do so, but the <BR>
most natural way to me would seem to work on the raw datafiles <BR>
directly. Fieldtrip should support this and it has reading routines <BR>
for the raw data-file (beginning with e, or c,), the config-file, and <BR>
the file containing the digitized head-surface positions.<BR>
You should be able to obtain the header information directly by <BR>
calling: hdr = read_header('e,thenameofyourrawdatafile') (give or <BR>
take an accidental 'keyboard'-statement in the low-level function <BR>
read_4d_hdr, this will be fixed in tonight's release version: if it <BR>
occurs now, just type dbcont on the command line when it prompts: <BR>
K>>) As far as I know hdr contains a structure grad, which specifies <BR>
the sensor-positions. At least it works on our Glaswegian 248-sensor <BR>
system.<BR>
<BR>
Yours,<BR>
<BR>
Jan-Mathijs<BR>
<BR>
<BR>
On Oct 6, 2008, at 3:31 PM, Gopakumar Venugopalan wrote:<BR>
<BR>
> Sure will send you those files. Please remember in my files there are<BR>
> only 146 channel locations as we turned off two channels.I also have a<BR>
> matlab file from Don Rojas for the 148 channel layout and a file which<BR>
> he created for the 146 channel layout. Please give some time today, as<BR>
> I run those programs on a different machine.<BR>
> regards<BR>
> gopa<BR>
><BR>
><BR>
> Quoting "Stancak, Andrej" <A.Stancak@LIVERPOOL.AC.UK>:<BR>
><BR>
>> Dear Gopa and Almu,<BR>
>><BR>
>> do I understand the procedure correctly: we should export data from<BR>
>> 4D in FIF format (currently we export in native e,... (binary), and<BR>
>> the text files for the header and the surface points), and then use a<BR>
>> modified xyz file containing the layout of 148 sensors. I would be<BR>
>> grateful for one sample xyz file to see whether we can read data this<BR>
>> way. Naturally, the best would be to incorporate it into the reading<BR>
>> procedures of FieldTrip.<BR>
>><BR>
>> Best wishes<BR>
>> Andrej<BR>
>><BR>
>><BR>
>> Prof. Andrej Stancak, PhD.<BR>
>> The University of Liverpool<BR>
>> School of Psychology<BR>
>> The Eleanor Rathbone Building<BR>
>> Bedford Street South, Room 209<BR>
>> Liverpool<BR>
>> L69 7ZA<BR>
>><BR>
>> E:mail: a.stancak@liverpool.ac.uk (primary)<BR>
>> stancak@centrum.cz (secondary)<BR>
>> Phone: 0151 7946951<BR>
>> Office hours: Monday 10-12, Wednesday 10-12<BR>
>><BR>
>><BR>
>><BR>
>> -----Original Message-----<BR>
>> From: FieldTrip discussion list on behalf of Gopakumar Venugopalan<BR>
>> Sent: Mon 06/10/2008 14:12<BR>
>> To: FIELDTRIP@NIC.SURFNET.NL<BR>
>> Subject: Re: [FIELDTRIP] 4D data reading<BR>
>><BR>
>> Dear Almu (that is a nice name!) thank you Rob Oostenveld, Christian<BR>
>><BR>
>> Weinbruch and Arno (EEGLAB) may be the ones who can make it work for<BR>
>><BR>
>> the other users. There was also a discussion about whether the<BR>
>> systems<BR>
>> were using third order gradiometers and/or magnetometers as the<BR>
>> reference. There are mail postings in that thread.<BR>
>> Everyone: I apologize for the typos in my hastily composed response<BR>
>> earlier.<BR>
>> regards<BR>
>> gopa<BR>
>><BR>
>><BR>
>> Quoting Almudena Capilla <a.capilla@PSY.GLA.AC.UK>:<BR>
>><BR>
>>> Dear Gopa,<BR>
>>><BR>
>>> I have got a template for the 4D - 148 channels system. I could<BR>
>> give<BR>
>>> it to<BR>
>>> the Fieldtrip developers if this is helpful for other users of<BR>
>> this<BR>
>>> system.<BR>
>>><BR>
>>> Best,<BR>
>>> Almu<BR>
>>><BR>
>>> -----Original Message-----<BR>
>>> From: FieldTrip discussion list [<A HREF="mailto:FIELDTRIP@NIC.SURFNET.NL">mailto:FIELDTRIP@NIC.SURFNET.NL</A>]<BR>
>> On<BR>
>>> Behalf<BR>
>>> Of Gopakumar Venugopalan<BR>
>>> Sent: 06 October 2008 13:22<BR>
>>> To: FIELDTRIP@NIC.SURFNET.NL<BR>
>>> Subject: Re: [FIELDTRIP] 4D data reading<BR>
>>><BR>
>>> Hello everyone, I have been wrestling with these problems for a<BR>
>> while<BR>
>>><BR>
>>> too.<BR>
>>> Here is what I found: Fieldtrip/EEGLAB will read neuroscan files<BR>
>>> (.avg,<BR>
>>> and .eeg), and will read raw data (e,..)from 4D.<BR>
>>> I believe that EEGLAB/Fieldtrip may not have a template for the<BR>
>> 148-<BR>
>>> Channel system co-ordinates. Christian and Don Rojas created one<BR>
>> for<BR>
>>> me<BR>
>>> in early April this year.<BR>
>>> A FIF export from the 4D system may also solve this problem.<BR>
>> Stephen<BR>
>>><BR>
>>> Moratti helped me with this a while a ago. It puts out three<BR>
>>> files .xyz, .4D and the original e,.. file. But, if the .xyz file<BR>
>>> which<BR>
>>> has coordinates for 148 channels does not match with the template,<BR>
>>> then<BR>
>>> the data will not load. I think for one may have to load a create<BR>
>> a<BR>
>>> 148<BR>
>>> channel template for this purpose. This is my experience with<BR>
>> EEGLAB,<BR>
>>><BR>
>>> and I think that they underlying engine is the same for both<BR>
>> EEGLAB<BR>
>>> and<BR>
>>> Fieldtrip<BR>
>>> Then again, I may be completely wrong about everything except the<BR>
>>> templates that were created for me.<BR>
>>> regards<BR>
>>> gopa<BR>
>>><BR>
>>><BR>
>>> Quoting "Stancak, Andrej" <A.Stancak@LIVERPOOL.AC.UK>:<BR>
>>><BR>
>>>> Dear all,<BR>
>>>><BR>
>>>> we have some problems reading 4D Neuroimaging MEG data (148<BR>
>>>> sensors). For now, we export original 4D data into BESA format,<BR>
>>> and<BR>
>>>> then read those into FieldTrip. This is not optimal, as e.g.<BR>
>>> gradient<BR>
>>>> coils information is not transferred into FieldTrip. We would be<BR>
>>>> grateful for a plugin or a hint enabling us to read the 4D data<BR>
>>>> directly into FieldTrip.<BR>
>>>><BR>
>>>> Best wishes<BR>
>>>> Andrej Stancak<BR>
>>>><BR>
>>>><BR>
>>>> Prof. Andrej Stancak, PhD.<BR>
>>>> The University of Liverpool<BR>
>>>> School of Psychology<BR>
>>>> The Eleanor Rathbone Building<BR>
>>>> Bedford Street South, Room 209<BR>
>>>> Liverpool<BR>
>>>> L69 7ZA<BR>
>>>><BR>
>>>> E:mail: a.stancak@liverpool.ac.uk (primary)<BR>
>>>> stancak@centrum.cz (secondary)<BR>
>>>> Phone: 0151 7946951<BR>
>>>> Office hours: Monday 10-12, Wednesday 10-12<BR>
>>>><BR>
>>>><BR>
>>>> ----------------------------------<BR>
>>>> The aim of this list is to facilitate the discussion between<BR>
>> users<BR>
>>> of<BR>
>>>> the FieldTrip toolbox, to share experiences and to discuss new<BR>
>>> ideas<BR>
>>>> for MEG and EEG analysis. See also<BR>
>>>> <A HREF="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</A> and<BR>
>>>> <A HREF="http://www.ru.nl/fcdonders/fieldtrip">http://www.ru.nl/fcdonders/fieldtrip</A>.<BR>
>>>><BR>
>>><BR>
>>> ----------------------------------<BR>
>>> The aim of this list is to facilitate the discussion between users<BR>
>> of<BR>
>>> the<BR>
>>> FieldTrip toolbox, to share experiences and to discuss new ideas<BR>
>> for<BR>
>>> MEG<BR>
>>> and EEG analysis. See also<BR>
>>> <A HREF="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</A> and<BR>
>>> <A HREF="http://www.ru.nl/fcdonders/fieldtrip">http://www.ru.nl/fcdonders/fieldtrip</A>.<BR>
>>><BR>
>>> ----------------------------------<BR>
>>> The aim of this list is to facilitate the discussion between users<BR>
>> of<BR>
>>> the FieldTrip toolbox, to share experiences and to discuss new<BR>
>> ideas<BR>
>>> for MEG and EEG analysis. See also<BR>
>>> <A HREF="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</A> and<BR>
>>> <A HREF="http://www.ru.nl/fcdonders/fieldtrip">http://www.ru.nl/fcdonders/fieldtrip</A>.<BR>
>>><BR>
>><BR>
>> ----------------------------------<BR>
>> The aim of this list is to facilitate the discussion between users of<BR>
>> the FieldTrip toolbox, to share experiences and to discuss new ideas<BR>
>> for MEG and EEG analysis. See also<BR>
>> <A HREF="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</A> and<BR>
>> <A HREF="http://www.ru.nl/fcdonders/fieldtrip">http://www.ru.nl/fcdonders/fieldtrip</A>.<BR>
>><BR>
>><BR>
>> ----------------------------------<BR>
>> The aim of this list is to facilitate the discussion between users of<BR>
>> the FieldTrip toolbox, to share experiences and to discuss new ideas<BR>
>> for MEG and EEG analysis. See also<BR>
>> <A HREF="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</A> and<BR>
>> <A HREF="http://www.ru.nl/fcdonders/fieldtrip">http://www.ru.nl/fcdonders/fieldtrip</A>.<BR>
>><BR>
><BR>
> ----------------------------------<BR>
> The aim of this list is to facilitate the discussion between users <BR>
> of the FieldTrip toolbox, to share experiences and to discuss new <BR>
> ideas for MEG and EEG analysis. See also <A HREF="http://listserv.surfnet.nl/">http://listserv.surfnet.nl/</A><BR>
> archives/fieldtrip.html and <A HREF="http://www.ru.nl/fcdonders/fieldtrip">http://www.ru.nl/fcdonders/fieldtrip</A>.<BR>
<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/fcdonders/fieldtrip">http://www.ru.nl/fcdonders/fieldtrip</A>.<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>