[FieldTrip] [EXTERNAL] Re: Importing arbitrary dataset using ft_definetrial

Borna, Amir aborna at sandia.gov
Fri Sep 2 17:59:38 CEST 2016

Hi Jan-Mathijs,
Thank you for your suggestion. I haven't tried your solution yet as my question is not specific to any function; it looks like many of the ft functions require the configuration (cfg) argument which is created only by calling ft_definetial. So is there a way to call ft_definetial on a custom dataset? Thank you.

Amir Borna.
Sandia National Lab.

From: fieldtrip-bounces at science.ru.nl [mailto:fieldtrip-bounces at science.ru.nl] On Behalf Of Schoffelen, J.M. (Jan Mathijs)
Sent: Friday, September 02, 2016 1:05 AM
To: FieldTrip discussion list
Subject: [EXTERNAL] Re: [FieldTrip] Importing arbitrary dataset using ft_definetrial

Hi Amir,

It should be possible to bypass ft_definetrial when calling ft_artifact_jump. One needs to supply a second input argument, i.e. ft_artifact_jump(cfg, data); As long as the cfg does not point to a dataset (i.e. does not have cfg.datafile/dataset etc.) it should work, as far as I know.


On 02 Sep 2016, at 01:10, Borna, Amir <aborna at sandia.gov<mailto:aborna at sandia.gov>> wrote:

Dear Fieldtrip community,
I have a basic question regarding importing an arbitrary dataset into the fieldtrip. I have acquired MEG data using atomic magnetometers, and have imported my MEG data into fieldtrip and have had limited success running ICA, etc. To use most ft functions, e.g. ft_artifact_jump, it is essential to import the data using ft_definetrial. I was wondering if there is a way to use ft_definetrial to import an arbitrary dataset into fieldtrip. Thank you in advance for your help.
Amir Borna.
Sandia National Lab.
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>

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

More information about the fieldtrip mailing list