[FieldTrip] creating new dataset

Luo, Jessie (NIH/NIMH) [V] luoj at mail.nih.gov
Mon Sep 26 16:11:42 CEST 2011


Thanks for your answer Jörn  . Yes I can use those functions to 'exlucde', but these definitions cannot be read by other software. What is why I intended to create a new dataset. Looks like fieldtrip does not allow that...

Jessie
________________________________________
From: "Jörn M. Horschig" [jm.horschig at donders.ru.nl]
Sent: Sunday, September 25, 2011 4:09 AM
To: Email discussion list for the FieldTrip project
Subject: Re: [FieldTrip] creating new dataset

Hi Jessie,

not quite sure what you are up to by saying that you do not want to use ft_ functions for that (maybe I misunderstood that part). Of course you could write your own loop, but the easier option would be to call ft_channelselection on your data and then call ft_preprocessing (this will return a new data-structure). See the help of these ft_channelselection:

You can also exclude channels or channel groups using the following syntax
    {'all', '-POz', '-Fp1', -EOG'}




>From ft_preprocessing:

If you are calling FT_PREPROCESSING<http://fieldtrip.fcdonders.nl/reference/ft_preprocessing> with also the second input argument
  "data", then that should contain data that was already read from file in
  a previous call to FT_PREPROCESSING<http://fieldtrip.fcdonders.nl/reference/ft_preprocessing>. In that case only the configuration
  options below apply.

  The channels that will be read and/or preprocessed are specified with
    cfg.channel      = Nx1 cell-array with selection of channels (default = 'all'),
                       see FT_CHANNELSELECTION<http://fieldtrip.fcdonders.nl/reference/ft_channelselection> for details


You could also use ft_selectdata instead of ft_preprocessing in case you are handling already processed data (e.g. tfr-data ). Alternatively, you can check ft_channelrepair for interpolating the bad channels.

Hope this all helps to what you are up to!
Best,
Jörn

On 9/24/2011 10:12 PM, Luo, Jessie (NIH/NIMH) [V] wrote:

Hi,

If there are bad channels (e.g. for a 4D system) in a dataset, Is it possible to create a new dataset by excluding them? I meant creating a NEW dataset  without those channels (not by defining them using the ft_... in fieldtrip).

Thanks,

Jessie
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip




--
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

Contact:
E-Mail: jm.horschig at donders.ru.nl<mailto:jm.horschig at donders.ru.nl>
Tel:    +31-(0)24-36-68493
Web: http://www.ru.nl/donders

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands





More information about the fieldtrip mailing list