4D data reading
Stancak, Andrej
A.Stancak at LIVERPOOL.AC.UK
Wed Oct 8 15:07:40 CEST 2008
Dear Jan-Mathijs,
thanks for your e-mail and further information. It turned out that the archive data I used for testing the data reading did not have a config file, and neither it is displayed in the MSI window in the list of posted/non-posted files so I was not sure where to find it. Today I have exported data using the MSI disk/tape utilities, and the config file was there as it should be.
I have now tested reading the 4D files with a correct config file on board and it worked well. I still have to do "dbcont" but this is a small cosmetic issue compared to the way we handled data before. Again many thanks for your advice and information.
With best wishes
Andrej
Prof. Andrej Stancak, PhD.
The University of Liverpool
School of Psychology
The Eleanor Rathbone Building
Bedford Street South, Room 209
Liverpool
L69 7ZA
E:mail: a.stancak at liverpool.ac.uk (primary)
stancak at centrum.cz (secondary)
Phone: 0151 7946951
Office hours: Monday 10-12, Wednesday 10-12
-----Original Message-----
From: FieldTrip discussion list on behalf of jan-mathijs schoffelen
Sent: Tue 07/10/2008 18:58
To: FIELDTRIP at NIC.SURFNET.NL
Subject: Re: [FIELDTRIP] 4D data reading
Dear Andrej,
I am glad it works now. The keyboard statement in the code (leading to
K>>) was just to debug some code. I forgot to clear it when I was
done. I fixed it yesterday, and it should be correct in the latest
version of fieldtrip (20081007). The idea is certainly not to read the
events/header/data only once, store it, and refer to it for later use.
However, depending on what you want, it could be useful (I often save
my trial definitions after artifact rejection because this is a time
consuming step). Hopefully you can run batch with the keyboard
statement removed.
As far as I understood from the formatting of the data coming from our
248-channel system, each recording is automatically saved with a
config-file, which is a copy of the system config-file, and which is
adjusted with run-specific parameters (most importantly weight tables
for the denoising, and filter setting (I am not entirely sure about
the filter settings). Anyway, as it is programmed at the moment, the
code assumes the run-specific config file to be present in the
run-directory, and it assumes the file to be named 'config'. This of
course can be made a bit more flexible (for example one could provide
an explicit path/filename to the system's config file).
Do I understand correctly, that the data you record does not generally
contain a config-file in the data-directories themselves?
Yours,
Jan-Mathijs
Quoting "Stancak, Andrej" <A.Stancak at LIVERPOOL.AC.UK>:
> Dear Jan-Mathijs,
>
> 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.
>
> 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.
>
> 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.
>
> Best wishes
> Andrej
>
> Prof. Andrej Stancak, PhD.
> The University of Liverpool
> School of Psychology
> The Eleanor Rathbone Building
> Bedford Street South, Room 209
> Liverpool
> L69 7ZA
>
> E:mail: a.stancak at liverpool.ac.uk (primary)
> stancak at centrum.cz (secondary)
> Phone: 0151 7946951
> Office hours: Monday 10-12, Wednesday 10-12
>
>
>
> -----Original Message-----
> From: FieldTrip discussion list on behalf of jan-mathijs schoffelen
> Sent: Mon 06/10/2008 15:54
> To: FIELDTRIP at NIC.SURFNET.NL
> Subject: Re: [FIELDTRIP] 4D data reading
>
> Dear Andrej, dear Gopa,
>
> Sorry to bother you again, but I tried to make a point in my last
> mail that it is not necessary to intermediately convert your raw
> epoched or continuous 4D-data into another format, prior to be able
> to read it into Fieldtrip. Of course you are free to do so, but the
> most natural way to me would seem to work on the raw datafiles
> directly. Fieldtrip should support this and it has reading routines
> for the raw data-file (beginning with e, or c,), the config-file, and
> the file containing the digitized head-surface positions.
> You should be able to obtain the header information directly by
> calling: hdr = read_header('e,thenameofyourrawdatafile') (give or
> take an accidental 'keyboard'-statement in the low-level function
> read_4d_hdr, this will be fixed in tonight's release version: if it
> occurs now, just type dbcont on the command line when it prompts:
> K>>) As far as I know hdr contains a structure grad, which specifies
> the sensor-positions. At least it works on our Glaswegian 248-sensor
> system.
>
> Yours,
>
> Jan-Mathijs
>
>
> On Oct 6, 2008, at 3:31 PM, Gopakumar Venugopalan wrote:
>
>> Sure will send you those files. Please remember in my files there are
>> only 146 channel locations as we turned off two channels.I also have a
>> matlab file from Don Rojas for the 148 channel layout and a file which
>> he created for the 146 channel layout. Please give some time today, as
>> I run those programs on a different machine.
>> regards
>> gopa
>>
>>
>> Quoting "Stancak, Andrej" <A.Stancak at LIVERPOOL.AC.UK>:
>>
>>> Dear Gopa and Almu,
>>>
>>> do I understand the procedure correctly: we should export data from
>>> 4D in FIF format (currently we export in native e,... (binary), and
>>> the text files for the header and the surface points), and then use a
>>> modified xyz file containing the layout of 148 sensors. I would be
>>> grateful for one sample xyz file to see whether we can read data this
>>> way. Naturally, the best would be to incorporate it into the reading
>>> procedures of FieldTrip.
>>>
>>> Best wishes
>>> Andrej
>>>
>>>
>>> Prof. Andrej Stancak, PhD.
>>> The University of Liverpool
>>> School of Psychology
>>> The Eleanor Rathbone Building
>>> Bedford Street South, Room 209
>>> Liverpool
>>> L69 7ZA
>>>
>>> E:mail: a.stancak at liverpool.ac.uk (primary)
>>> stancak at centrum.cz (secondary)
>>> Phone: 0151 7946951
>>> Office hours: Monday 10-12, Wednesday 10-12
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: FieldTrip discussion list on behalf of Gopakumar Venugopalan
>>> Sent: Mon 06/10/2008 14:12
>>> To: FIELDTRIP at NIC.SURFNET.NL
>>> Subject: Re: [FIELDTRIP] 4D data reading
>>>
>>> Dear Almu (that is a nice name!) thank you Rob Oostenveld, Christian
>>>
>>> Weinbruch and Arno (EEGLAB) may be the ones who can make it work for
>>>
>>> the other users. There was also a discussion about whether the
>>> systems
>>> were using third order gradiometers and/or magnetometers as the
>>> reference. There are mail postings in that thread.
>>> Everyone: I apologize for the typos in my hastily composed response
>>> earlier.
>>> regards
>>> gopa
>>>
>>>
>>> Quoting Almudena Capilla <a.capilla at PSY.GLA.AC.UK>:
>>>
>>>> Dear Gopa,
>>>>
>>>> I have got a template for the 4D - 148 channels system. I could
>>> give
>>>> it to
>>>> the Fieldtrip developers if this is helpful for other users of
>>> this
>>>> system.
>>>>
>>>> Best,
>>>> Almu
>>>>
>>>> -----Original Message-----
>>>> From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL]
>>> On
>>>> Behalf
>>>> Of Gopakumar Venugopalan
>>>> Sent: 06 October 2008 13:22
>>>> To: FIELDTRIP at NIC.SURFNET.NL
>>>> Subject: Re: [FIELDTRIP] 4D data reading
>>>>
>>>> Hello everyone, I have been wrestling with these problems for a
>>> while
>>>>
>>>> too.
>>>> Here is what I found: Fieldtrip/EEGLAB will read neuroscan files
>>>> (.avg,
>>>> and .eeg), and will read raw data (e,..)from 4D.
>>>> I believe that EEGLAB/Fieldtrip may not have a template for the
>>> 148-
>>>> Channel system co-ordinates. Christian and Don Rojas created one
>>> for
>>>> me
>>>> in early April this year.
>>>> A FIF export from the 4D system may also solve this problem.
>>> Stephen
>>>>
>>>> Moratti helped me with this a while a ago. It puts out three
>>>> files .xyz, .4D and the original e,.. file. But, if the .xyz file
>>>> which
>>>> has coordinates for 148 channels does not match with the template,
>>>> then
>>>> the data will not load. I think for one may have to load a create
>>> a
>>>> 148
>>>> channel template for this purpose. This is my experience with
>>> EEGLAB,
>>>>
>>>> and I think that they underlying engine is the same for both
>>> EEGLAB
>>>> and
>>>> Fieldtrip
>>>> Then again, I may be completely wrong about everything except the
>>>> templates that were created for me.
>>>> regards
>>>> gopa
>>>>
>>>>
>>>> Quoting "Stancak, Andrej" <A.Stancak at LIVERPOOL.AC.UK>:
>>>>
>>>>> Dear all,
>>>>>
>>>>> we have some problems reading 4D Neuroimaging MEG data (148
>>>>> sensors). For now, we export original 4D data into BESA format,
>>>> and
>>>>> then read those into FieldTrip. This is not optimal, as e.g.
>>>> gradient
>>>>> coils information is not transferred into FieldTrip. We would be
>>>>> grateful for a plugin or a hint enabling us to read the 4D data
>>>>> directly into FieldTrip.
>>>>>
>>>>> Best wishes
>>>>> Andrej Stancak
>>>>>
>>>>>
>>>>> Prof. Andrej Stancak, PhD.
>>>>> The University of Liverpool
>>>>> School of Psychology
>>>>> The Eleanor Rathbone Building
>>>>> Bedford Street South, Room 209
>>>>> Liverpool
>>>>> L69 7ZA
>>>>>
>>>>> E:mail: a.stancak at liverpool.ac.uk (primary)
>>>>> stancak at centrum.cz (secondary)
>>>>> Phone: 0151 7946951
>>>>> Office hours: Monday 10-12, Wednesday 10-12
>>>>>
>>>>>
>>>>> ----------------------------------
>>>>> 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
>>>>> http://listserv.surfnet.nl/archives/fieldtrip.html and
>>>>> http://www.ru.nl/fcdonders/fieldtrip.
>>>>>
>>>>
>>>> ----------------------------------
>>>> 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
>>>> http://listserv.surfnet.nl/archives/fieldtrip.html and
>>>> http://www.ru.nl/fcdonders/fieldtrip.
>>>>
>>>> ----------------------------------
>>>> 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
>>>> http://listserv.surfnet.nl/archives/fieldtrip.html and
>>>> http://www.ru.nl/fcdonders/fieldtrip.
>>>>
>>>
>>> ----------------------------------
>>> 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
>>> http://listserv.surfnet.nl/archives/fieldtrip.html and
>>> http://www.ru.nl/fcdonders/fieldtrip.
>>>
>>>
>>> ----------------------------------
>>> 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
>>> http://listserv.surfnet.nl/archives/fieldtrip.html and
>>> http://www.ru.nl/fcdonders/fieldtrip.
>>>
>>
>> ----------------------------------
>> 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 http://listserv.surfnet.nl/
>> archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.
>
> ----------------------------------
> 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
> http://listserv.surfnet.nl/archives/fieldtrip.html and
> http://www.ru.nl/fcdonders/fieldtrip.
>
>
> ----------------------------------
> 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
> http://listserv.surfnet.nl/archives/fieldtrip.html and
> http://www.ru.nl/fcdonders/fieldtrip.
>
------------------------------------------------------------------
The University of Glasgow, Department of Psychology WebMail system
------------------------------------------------------------------
----------------------------------
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 http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.
----------------------------------
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 http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20081008/a1d014bf/attachment-0002.html>
More information about the fieldtrip
mailing list