[FieldTrip] loreta2fieldtrip function error

Ingrid Nieuwenhuis inieuwenhuis at berkeley.edu
Mon Jun 3 17:52:14 CEST 2013


Hi Fatameh,

- In the LORETA program, you go to main utilities > Format converter.
- There you select: input binary file (sLORETA)
- It does not matter which format for output you choose, I coded it 
robust, it'll figure it out. As it says, rows are time points, columns 
are the volume-gridpoints (called voxels)
- After using loreta2fieldtrip the data is in normal FieldTrip volume 
format, see here: http://fieldtrip.fcdonders.nl/reference/ft_datatype_volume

To get familiar with FieldTrip source plotting etc, see the tutorials, 
for instance: http://fieldtrip.fcdonders.nl/tutorial/plotting
- The following steps are:
1) create a template: template = ft_read_mri([cur_path_FT, 
'\external\spm8\templates\T1.nii']);
2) interpolate your volume on the MNI template: [interp_mean] = 
ft_sourceinterpolate(cfg, GA_mean, template);
3) plot it using ft_sourceplot

Hope it helps,
Ingrid

On 5/31/2013 8:56 AM, Fatemeh Ebrahimi nia wrote:
> Dear respondent,
>
> Thank you for your advices.
> I have used the function that you have updated. It works out. Can you 
> give me information about the output structure (What do the matrixes 
> refer to?) or advise a reference to study about that please?
>
> Best,
> Fatemeh
>
>
> ------------------------------------------------------------------------
> *From:* Ingrid Nieuwenhuis <inieuwenhuis at berkeley.edu>
> *To:* fieldtrip at science.ru.nl
> *Sent:* Thursday, May 30, 2013 10:30 AM
> *Subject:* Re: [FieldTrip] loreta2fieldtrip function error
>
> Hi Fatemeh,
>
> I had the same error recently when I did the same. I filed the bug, 
> see http://bugzilla.fcdonders.nl/show_bug.cgi?id=2144
>
> I did create a work around. In the LORETA program, you can export the 
> source data as a text file. You can read that text file in with 
> loreta2fieldtrip.m. It's a bit of a patch, but it worked for me.
>
> Hope this helps,
> Ingrid
>
> On 5/30/2013 10:14 AM, Fatemeh Ebrahimi nia wrote:
>> Hi dear all,
>>
>> I am analyzing EEG data. I have computed sLORETA (.slor) from ERP 
>> data. Now I want to read and convert LORETA source reconstruction into a
>> MATLAB data structure using "loreta2fieldtrip" function, But I have 
>> gotten the bellow error.
>>
>> **** Error using fread
>> Invalid precision.
>> Error in loreta2fieldtrip (line 85)
>> activity = fread(fid, [voxnumber Ntime], 'float = >single'); ***
>>
>> Can someone give me a help?
>>
>> Best regards,
>> Fatemeh
>>
>>
>>
>> _______________________________________________
>> fieldtrip mailing list
>> fieldtrip at donders.ru.nl  <mailto:fieldtrip at donders.ru.nl>
>> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
> -- 
> Ingrid Nieuwenhuis PhD
> Postdoctoral Fellow
> Sleep and Neuroimaging Laboratory
> Department of Psychology
> University of California, Berkeley
> California 94720-1650
> Tolman Hall, room 5305
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl <mailto:fieldtrip at donders.ru.nl>
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

-- 
Ingrid Nieuwenhuis PhD
Postdoctoral Fellow
Sleep and Neuroimaging Laboratory
Department of Psychology
University of California, Berkeley
California 94720-1650
Tolman Hall, room 5305

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130603/7b8e6891/attachment-0002.html>


More information about the fieldtrip mailing list