[FieldTrip] problem in pre-processing stage

Seyedeh Samane Shojaei samane.shojaie at gmail.com
Thu Aug 13 08:21:47 CEST 2015


Dear Stephen,

It is solved when I provided the full path to the dataset.

Thanks a lot,
Samane

On Thu, Aug 13, 2015 at 2:04 PM, Stephen Whitmarsh <stephen.whitmarsh at ki.se>
wrote:

> Hi Seyede,
>
> Have you tried providing the full path to the dataset, e.g. cfg.dataset =
> 'C:/data/MEG/ArtifactRemoval.ds'?
> Adding the dataset directory to the path as you did, doesn't make those
> files accessible to MATLAB when loading data etc. I would remove that.
>
> If its still doesn't work, try to work through the initial steps here, and
> see where it breaks:
> http://www.fieldtriptoolbox.org/getting_started/ctf
>
> Cheers,
> Stephen
>
> P.s. Of course you could run your script from the dataset directory but
> this is *highly* discouraged and will result in problems further down the
> line.
>
> ------------------------------
> *From:* fieldtrip-bounces at science.ru.nl [fieldtrip-bounces at science.ru.nl]
> on behalf of Seyedeh Samane Shojaei [samane.shojaie at gmail.com]
> *Sent:* 13 August 2015 07:21
> *To:* fieldtrip at science.ru.nl
> *Subject:* [FieldTrip] problem in pre-processing stage
>
> Dear all,
>
> I am a new user of FieldTrip, I got problem at the first stage of reading
> data. I am using Matlab R2011a, windows 7, 64 bit.  when I run my code, the
> following problem appears:
>
> addpath('FielTrip\fieldtrip-lite-20150810\fieldtrip-20150810')
> addpath('FielTrip\Tutorial\ArtifactRemoval\ArtifactRemoval.ds')
> ft_defaults
> % ft_preprocessing of example dataset
> cfg = [];
> cfg.dataset = 'ArtifactRemoval.ds';
> cfg.trialdef.eventtype = 'trial';
> cfg = ft_definetrial(cfg);
>
> Warning: could not determine filetype of ArtifactRemoval.ds
> > In ft_filetype at 1221
>   In utilities\private\dataset2files at 42
>   In ft_checkconfig at 541
>   In ft_definetrial at 128
>   In ICAremoveEOG at 9
> Warning: no trialfun was specified, using ft_trialfun_general
> > In ft_definetrial at 135
>   In ICAremoveEOG at 9
> evaluating trialfunction 'ft_trialfun_general'
> ??? Error using ==> ft_read_header at 2053
> unsupported header format (unknown)
>
> Error in ==> ft_trialfun_general at 78
> hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);
>
> Error in ==> ft_definetrial at 174
>     [trl, event] = feval(cfg.trialfun, cfg);
>
> Error in ==> ICAremoveEOG at 9
> cfg = ft_definetrial(cfg);
>
> It is appreciated if you could help me.
> Regards,
> Samane
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150813/0a6ef2c3/attachment-0002.html>


More information about the fieldtrip mailing list