[FieldTrip] loading .txt files
Stephen Whitmarsh
stephen.whitmarsh at gmail.com
Wed May 2 19:14:53 CEST 2012
Hi Alex,
Then I expect you to have no trouble at all going from .c3d to
Fieldtrip directly or via the .txt conversion.
One thing you might keep in mind, depending on how you want to use
event and how they are coded in your data. 1) You could read in all
the data into one trial:
data.trial{1} = yourdata(timepointsxchannels)
This would be similar in reading in data with ft_preprocessing without
specifying a cfg.trl (trialdefinition).
In a next step you could use the FT function ft_redefinetrial to
segment your data in trials, using a cfg.trl that has the start,
duration and offset of every trial in every row
(http://fieldtrip.fcdonders.nl/reference/ft_redefinetrial)
2) Or you could do the whole thing with your own script, ending up
with a raw datastructure with multiple trials (
data.trial{1:nroftrial} ). The first option might give you some more
flexibility in the long run though.
Good luck,
Stephen
p.s. If all goes well and you like working with FT and would like to
contribute, your code and experience would be much appreciate on the
wiki (i.e. 'getting started with Vicon data' on the
http://fieldtrip.fcdonders.nl/getting_started)
On 2 May 2012 18:42, Santos, Alex <alex.santos at mso.umt.edu> wrote:
> Hi Stephen,
> The data set I have was converted into ascii by myself. The same set contains EMG signals I collected with a Delsys EMG module thorough a Vicon system. The extension is .c3d and it seems that this format is not supported.
> I will try the option you suggested and let you know.
> Thank you very much.
>
> Alessander D Santos, PT, PhD
> Assistant Professor
> School of Physical Therapy and Rehabilitation Science
> The University of Montana
> 106 Skaggs Building, 32 Campus Drive
> Phone: (406) 243-2530 (office)
> (406) 243-4015 (Motor Control Laboratory- MCLab)
> Missoula - Montana - 59812
>
>
> -----Original Message-----
> From: fieldtrip-bounces at donders.ru.nl [mailto:fieldtrip-bounces at donders.ru.nl] On Behalf Of Stephen Whitmarsh
> Sent: Wednesday, May 02, 2012 10:32 AM
> To: Email discussion list for the FieldTrip project
> Subject: Re: [FieldTrip] loading .txt files
>
> Dear Alex,
>
> Have you converted your data into an ascii file yourself? What data acquisition hard/software are you using? Fieldtrip supports the reading of many EEG/MEG data formats. Perhaps in http://fieldtrip.fcdonders.nl/getting_started you can find a reference to the original dataformat?
>
> If not you probably can't avoid making your own matlab script to load your data from (.txt) file and put it in a (data) structure that FieldTrip can handle. Take a look at the 'raw data format':
> http://fieldtrip.fcdonders.nl/faq/how_are_the_various_data_structures_defined?s[]=data&s[]=format
>
> I hope this helps,
>
> Stephen
>
> On 2 May 2012 18:19, Santos, Alex <alex.santos at mso.umt.edu> wrote:
>> Hello all,
>> I am new using the fieldtrip suite and for now my problem is being the
>> loading of recorded .txt files.
>> These files are simple 36000lines x 9 columns matrices with no headers
>> containing signals I collected previously. I have tried to use the
>> 'ft_preprocessing' file but obviously it did not work.
>> Any help on this matter will be really appreciated.
>>
>> Alex Santos
>>
>>
>>
>>
>>
>> _______________________________________________
>> fieldtrip mailing list
>> 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
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
More information about the fieldtrip
mailing list