support for Besa Toolbox for .avr files

Andreas Wollbrink a.wollbrink at UNI-MUENSTER.DE
Mon Mar 15 09:40:19 CET 2010


Dear Mrs Ostendorf,

thanks for implementing the readBESAavr function.

Unfortunately the code fails in case no channel labels are defined in
the second row of the .avr file (which were optionally at least in
previous versions of Besa).

To fix the problem you may add a few lines to the besa2fieldtrip
function (see below) to account for a missing 'ChannelLabels' field in
the ('tmp') structure returned by 'readBESAavr':

data.label = [];
if isfield(tmp, 'ChannelLabels'),
	data.label = fixlabels(tmp.ChannelLabels);
end


In this case later on the channel labels have to be defined either
manually by the user or they can be determined from other files (see below).

dat = besa2fieldtrip(avrFile);
dat.elec = read_sens(elecPosFile);
if isempty(dat.label), dat.label = dat.elec.label; end


Regards,
Andreas Wollbrink


On 03/14/10 17:26, Andrea Ostendorf wrote:
> Dear Mr Wollbrink,
>
> In the current Fieldtrip version, readBESAavr has been implemented. Thank
> you for noticing the omission!
>
> Best regards
> Andrea Ostendorf
>
> Dr. Andrea Ostendorf
> Research&  Development
>
> MEGIS Software GmbH
> Freihamer Str. 18
> 82166 Gräfelfing/Germany
> HRB München 109956
> CEOs: Dr. Michael Scherg, Theodor Scherg
>
>
>
>> -----Original Message-----
>> From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On
>> Behalf Of Andreas Wollbrink
>> Sent: Freitag, 12. März 2010 11:33
>> To: FIELDTRIP at NIC.SURFNET.NL
>> Subject: [FIELDTRIP] support for Besa Toolbox for .avr files
>>
>> Dear all,
>>
>> is there any reason the support for the high level input functions
>> provided by the Besa Toolbox (by Carsten Hochstaetter) is not
>> implemented in the besa2fieldtrip function in case using the 'besa_avr'
>> file format even the related function readBESAavr.m does exist?
>> For the other formats (besa_mul, besa_tfc, besa_swf, besa_src) this is
>> realised using the hasbes(-toolbox) switch.
>>
>> Thanks in advance,
>> Andreas Wollbrink
>>
>> --
>>
>>
>> ======================================================================
>>
>>     Andreas Wollbrink, Biomedical Engineer
>>
>>     Institute for Biomagnetism and Biosignalanalysis
>>     Muenster University Hospital
>>
>>     Malmedyweg 15        phone:   +49-(0)251-83-52546
>>     D-48149 Muenster     fax:     +49-(0)251-83-56874
>>     Germany
>>                          e-Mail: a.wollbrink at uni-muenster.de
>>
>> ======================================================================
>>
>> ----------------------------------
>> 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/neuroimaging/fieldtrip.
>>
>> __________ Information from ESET NOD32 Antivirus, version of virus
>> signature database 4937 (20100311) __________
>>
>> The message was checked by ESET NOD32 Antivirus.
>>
>> http://www.eset.com
>>
>
> ----------------------------------
> 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/neuroimaging/fieldtrip.

--


======================================================================

   Andreas Wollbrink, Biomedical Engineer

   Institute for Biomagnetism and Biosignalanalysis       	
   Muenster University Hospital

   Malmedyweg 15        phone:   +49-(0)251-83-52546
   D-48149 Muenster     fax:     +49-(0)251-83-56874	
   Germany
                        e-Mail: a.wollbrink at uni-muenster.de

======================================================================

----------------------------------
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/neuroimaging/fieldtrip.



More information about the fieldtrip mailing list