[FieldTrip] fieldtrip Digest, Vol 123, Issue 2

Yankı Tandırcıoğlu yankitandircioglu at gmail.com
Tue Feb 2 13:47:52 CET 2021


Dear Stephen Whitmarsh,

Thank you for your kind answer. I think you are right. I will try to
segment it.

Thank you again.

Best regards,

Yankı Tandırcıoğlu

<fieldtrip-request at science.ru.nl> adresine sahip kullanıcı 2 Şub 2021 Sal,
14:04 tarihinde şunu yazdı:

> Send fieldtrip mailing list submissions to
>         fieldtrip at science.ru.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> or, via email, send a message with subject or body 'help' to
>         fieldtrip-request at science.ru.nl
>
> You can reach the person managing the list at
>         fieldtrip-owner at science.ru.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of fieldtrip digest..."
>
>
> Today's Topics:
>
>    1. Re: fieldtrip Digest, Vol 123, Issue 1 (Yankı Tandırcıoğlu)
>    2. Re: fieldtrip Digest, Vol 123, Issue 1 (Yankı Tandırcıoğlu)
>    3. Re: fieldtrip Digest, Vol 123, Issue 1 (Stephen Whitmarsh)
>    4. Epoc+ edf file analysis (Vera Gramigna)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 1 Feb 2021 14:35:57 +0300
> From: Yankı Tandırcıoğlu  <yankitandircioglu at gmail.com>
> To: fieldtrip at science.ru.nl
> Subject: Re: [FieldTrip] fieldtrip Digest, Vol 123, Issue 1
> Message-ID:
>         <CAExVZ1hTq+e7qX99=
> PzGV2i9UwL4XCbMayvQ2Ov747CAqKU85w at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Dear Stephen Whitmarsh,
>
> Thank you for your kind and rapid response.
>
> I tried to run your advice, however the problem remains the same. :(
>
> May there any other possible solutions?
>
> Thank you.
>
> Yankı Tandırcıoğlu
>
>
> <fieldtrip-request at science.ru.nl> adresine sahip kullanıcı 1 Şub 2021 Pzt,
> 14:15 tarihinde şunu yazdı:
>
> > Send fieldtrip mailing list submissions to
> >         fieldtrip at science.ru.nl
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >         https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> > or, via email, send a message with subject or body 'help' to
> >         fieldtrip-request at science.ru.nl
> >
> > You can reach the person managing the list at
> >         fieldtrip-owner at science.ru.nl
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of fieldtrip digest..."
> >
> >
> > Today's Topics:
> >
> >    1. Padding Error (Yankı Tandırcıoğlu)
> >    2. Re: Padding Error (Stephen Whitmarsh)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Mon, 1 Feb 2021 13:21:59 +0300
> > From: Yankı Tandırcıoğlu  <yankitandircioglu at gmail.com>
> > To: fieldtrip at science.ru.nl
> > Subject: [FieldTrip] Padding Error
> > Message-ID:
> >         <
> > CAExVZ1hKdGZH7zjj-xHjC545EdxK7JRAm0nWf9zbMzpXTPn_xA at mail.gmail.com>
> > Content-Type: text/plain; charset="utf-8"
> >
> > Dear community,
> >
> > My name is Yankı Tandırcıoğlu and I am a student at Middle East Technical
> > University. Currently I am analyzing MEG dataset.
> >
> > I tried using ft_freqanalysis to obtain TFR. However, when I call
> > ft_freqanalysis, I receive the following error message:
> >
> > Error using ft_specest_mtmconvol (line 103)
> > the padding that you specified is shorter than the data
> >
> > The cfg and data I use are as follows:
> >
> > cfg                         = [];
> > cfg.channel      = {'megplanar'};
> > cfg.lpfilter = 'yes'
> > cfg.lpfreq = 150
> > cfg.continuous = 'yes'
> > RestCondition_1 = ft_preprocessing(cfg, temp);
> >
> >
> > cfg            = [];
> >
> > cfg.output    = 'pow';
> >
> > cfg.channel    = 'megplanar';
> >
> > cfg.method     = 'mtmconvol';
> >
> > cfg.taper      = 'hanning';
> >
> > cfg.foi        = 2:1:40;
> >
> > cfg.toi        = [0:0.05:2];
> >
> > cfg.trials     = 'all';
> >
> > cfg.t_ftimwin  = ones(length(cfg.foi),1).*0.5;
> >
> > cfg.keeptrials= 'yes'; %% we keep the single trials
> >
> > freq_Rest1    = ft_freqanalysis(cfg,RestCondition_1);
> >
> > Can someone tell me if there is something wrong with the cfg settings I
> use
> > or if I am doing something wrong at any other place? T Any help would be
> > appreciated.
> >
> > Best,
> >
> > Yankı Tandırcıoğlu
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <
> >
> http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210201/719a039b/attachment-0001.htm
> > >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Mon, 1 Feb 2021 11:45:49 +0100
> > From: Stephen Whitmarsh <stephen.whitmarsh at gmail.com>
> > To: FieldTrip discussion list <fieldtrip at science.ru.nl>
> > Subject: Re: [FieldTrip] Padding Error
> > Message-ID:
> >         <CAFrxm=
> > w2Ws7c9-Ys7yHOhHL56Kkp_ovRHLCBhTyM8fTGXCQQvw at mail.gmail.com>
> > Content-Type: text/plain; charset="utf-8"
> >
> > Hi Yanki,
> >
> > I suspect something is off with your sampling frequency / triallength;
> >
> > Try debugging:
> >
> > type: dbstop if error
> >
> > then run again, and see what is happening on line 102-103;
> >
> > if round(pad * fsample) < ndatsample
> >   ft_error('the padding that you specified is shorter than the data');
> > end
> >
> > Are the values of sample & ndatsample what you would expect?
> >
> > Hope this helps,
> > Stephen
> >
> >
> >
> >
> > Op ma 1 feb. 2021 om 11:29 schreef Yankı Tandırcıoğlu <
> > yankitandircioglu at gmail.com>:
> >
> > > Dear community,
> > >
> > > My name is Yankı Tandırcıoğlu and I am a student at Middle East
> Technical
> > > University. Currently I am analyzing MEG dataset.
> > >
> > > I tried using ft_freqanalysis to obtain TFR. However, when I call
> > > ft_freqanalysis, I receive the following error message:
> > >
> > > Error using ft_specest_mtmconvol (line 103)
> > > the padding that you specified is shorter than the data
> > >
> > > The cfg and data I use are as follows:
> > >
> > > cfg                         = [];
> > > cfg.channel      = {'megplanar'};
> > > cfg.lpfilter = 'yes'
> > > cfg.lpfreq = 150
> > > cfg.continuous = 'yes'
> > > RestCondition_1 = ft_preprocessing(cfg, temp);
> > >
> > >
> > > cfg            = [];
> > >
> > > cfg.output    = 'pow';
> > >
> > > cfg.channel    = 'megplanar';
> > >
> > > cfg.method     = 'mtmconvol';
> > >
> > > cfg.taper      = 'hanning';
> > >
> > > cfg.foi        = 2:1:40;
> > >
> > > cfg.toi        = [0:0.05:2];
> > >
> > > cfg.trials     = 'all';
> > >
> > > cfg.t_ftimwin  = ones(length(cfg.foi),1).*0.5;
> > >
> > > cfg.keeptrials= 'yes'; %% we keep the single trials
> > >
> > > freq_Rest1    = ft_freqanalysis(cfg,RestCondition_1);
> > >
> > > Can someone tell me if there is something wrong with the cfg settings I
> > > use or if I am doing something wrong at any other place? T Any help
> would
> > > be appreciated.
> > >
> > > Best,
> > >
> > > Yankı Tandırcıoğlu
> > >
> > > _______________________________________________
> > > fieldtrip mailing list
> > > https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> > > https://doi.org/10.1371/journal.pcbi.1002202
> > >
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <
> >
> http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210201/66e8a247/attachment-0001.htm
> > >
> >
> > ------------------------------
> >
> > Subject: Digest Footer
> >
> > _______________________________________________
> > fieldtrip mailing list
> > https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> > _______________________________________________
> > fieldtrip mailing list
> > https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> > https://doi.org/10.1371/journal.pcbi.1002202
> >
> >
> > ------------------------------
> >
> > End of fieldtrip Digest, Vol 123, Issue 1
> > *****************************************
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210201/74bde9b3/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Mon, 1 Feb 2021 14:40:26 +0300
> From: Yankı Tandırcıoğlu  <yankitandircioglu at gmail.com>
> To: fieldtrip at science.ru.nl
> Subject: Re: [FieldTrip] fieldtrip Digest, Vol 123, Issue 1
> Message-ID:
>         <CAExVZ1joNyi43WVPrKzWVdw+VaUMw-C_x7qs=
> cy88EwH8U5eTQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Sorry, I just saw your other question.
>
> I am a beginner, so I don't know what to expect in terms of values of
> sample & ndatsample relating to your question. This is the struct of the
> data:
>
> temp =
>
>   struct with fields:
>
>         hdr: [1×1 struct]
>       label: {306×1 cell}
>       trial: {[306×227572 double]}
>        time: {[1×227572 double]}
>     fsample: 2000
>        grad: [1×1 struct]
>         cfg: []
>
> Thank you again.
>
> Best regards,
>
> Yankı Tandırcıoğlu
>
> Yankı Tandırcıoğlu <yankitandircioglu at gmail.com>, 1 Şub 2021 Pzt, 14:35
> tarihinde şunu yazdı:
>
> > Dear Stephen Whitmarsh,
> >
> > Thank you for your kind and rapid response.
> >
> > I tried to run your advice, however the problem remains the same. :(
> >
> > May there any other possible solutions?
> >
> > Thank you.
> >
> > Yankı Tandırcıoğlu
> >
> >
> > <fieldtrip-request at science.ru.nl> adresine sahip kullanıcı 1 Şub 2021
> > Pzt, 14:15 tarihinde şunu yazdı:
> >
> >> Send fieldtrip mailing list submissions to
> >>         fieldtrip at science.ru.nl
> >>
> >> To subscribe or unsubscribe via the World Wide Web, visit
> >>         https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> >> or, via email, send a message with subject or body 'help' to
> >>         fieldtrip-request at science.ru.nl
> >>
> >> You can reach the person managing the list at
> >>         fieldtrip-owner at science.ru.nl
> >>
> >> When replying, please edit your Subject line so it is more specific
> >> than "Re: Contents of fieldtrip digest..."
> >>
> >>
> >> Today's Topics:
> >>
> >>    1. Padding Error (Yankı Tandırcıoğlu)
> >>    2. Re: Padding Error (Stephen Whitmarsh)
> >>
> >>
> >> ----------------------------------------------------------------------
> >>
> >> Message: 1
> >> Date: Mon, 1 Feb 2021 13:21:59 +0300
> >> From: Yankı Tandırcıoğlu  <yankitandircioglu at gmail.com>
> >> To: fieldtrip at science.ru.nl
> >> Subject: [FieldTrip] Padding Error
> >> Message-ID:
> >>         <
> >> CAExVZ1hKdGZH7zjj-xHjC545EdxK7JRAm0nWf9zbMzpXTPn_xA at mail.gmail.com>
> >> Content-Type: text/plain; charset="utf-8"
> >>
> >> Dear community,
> >>
> >> My name is Yankı Tandırcıoğlu and I am a student at Middle East
> Technical
> >> University. Currently I am analyzing MEG dataset.
> >>
> >> I tried using ft_freqanalysis to obtain TFR. However, when I call
> >> ft_freqanalysis, I receive the following error message:
> >>
> >> Error using ft_specest_mtmconvol (line 103)
> >> the padding that you specified is shorter than the data
> >>
> >> The cfg and data I use are as follows:
> >>
> >> cfg                         = [];
> >> cfg.channel      = {'megplanar'};
> >> cfg.lpfilter = 'yes'
> >> cfg.lpfreq = 150
> >> cfg.continuous = 'yes'
> >> RestCondition_1 = ft_preprocessing(cfg, temp);
> >>
> >>
> >> cfg            = [];
> >>
> >> cfg.output    = 'pow';
> >>
> >> cfg.channel    = 'megplanar';
> >>
> >> cfg.method     = 'mtmconvol';
> >>
> >> cfg.taper      = 'hanning';
> >>
> >> cfg.foi        = 2:1:40;
> >>
> >> cfg.toi        = [0:0.05:2];
> >>
> >> cfg.trials     = 'all';
> >>
> >> cfg.t_ftimwin  = ones(length(cfg.foi),1).*0.5;
> >>
> >> cfg.keeptrials= 'yes'; %% we keep the single trials
> >>
> >> freq_Rest1    = ft_freqanalysis(cfg,RestCondition_1);
> >>
> >> Can someone tell me if there is something wrong with the cfg settings I
> >> use
> >> or if I am doing something wrong at any other place? T Any help would be
> >> appreciated.
> >>
> >> Best,
> >>
> >> Yankı Tandırcıoğlu
> >> -------------- next part --------------
> >> An HTML attachment was scrubbed...
> >> URL: <
> >>
> http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210201/719a039b/attachment-0001.htm
> >> >
> >>
> >> ------------------------------
> >>
> >> Message: 2
> >> Date: Mon, 1 Feb 2021 11:45:49 +0100
> >> From: Stephen Whitmarsh <stephen.whitmarsh at gmail.com>
> >> To: FieldTrip discussion list <fieldtrip at science.ru.nl>
> >> Subject: Re: [FieldTrip] Padding Error
> >> Message-ID:
> >>         <CAFrxm=
> >> w2Ws7c9-Ys7yHOhHL56Kkp_ovRHLCBhTyM8fTGXCQQvw at mail.gmail.com>
> >> Content-Type: text/plain; charset="utf-8"
> >>
> >> Hi Yanki,
> >>
> >> I suspect something is off with your sampling frequency / triallength;
> >>
> >> Try debugging:
> >>
> >> type: dbstop if error
> >>
> >> then run again, and see what is happening on line 102-103;
> >>
> >> if round(pad * fsample) < ndatsample
> >>   ft_error('the padding that you specified is shorter than the data');
> >> end
> >>
> >> Are the values of sample & ndatsample what you would expect?
> >>
> >> Hope this helps,
> >> Stephen
> >>
> >>
> >>
> >>
> >> Op ma 1 feb. 2021 om 11:29 schreef Yankı Tandırcıoğlu <
> >> yankitandircioglu at gmail.com>:
> >>
> >> > Dear community,
> >> >
> >> > My name is Yankı Tandırcıoğlu and I am a student at Middle East
> >> Technical
> >> > University. Currently I am analyzing MEG dataset.
> >> >
> >> > I tried using ft_freqanalysis to obtain TFR. However, when I call
> >> > ft_freqanalysis, I receive the following error message:
> >> >
> >> > Error using ft_specest_mtmconvol (line 103)
> >> > the padding that you specified is shorter than the data
> >> >
> >> > The cfg and data I use are as follows:
> >> >
> >> > cfg                         = [];
> >> > cfg.channel      = {'megplanar'};
> >> > cfg.lpfilter = 'yes'
> >> > cfg.lpfreq = 150
> >> > cfg.continuous = 'yes'
> >> > RestCondition_1 = ft_preprocessing(cfg, temp);
> >> >
> >> >
> >> > cfg            = [];
> >> >
> >> > cfg.output    = 'pow';
> >> >
> >> > cfg.channel    = 'megplanar';
> >> >
> >> > cfg.method     = 'mtmconvol';
> >> >
> >> > cfg.taper      = 'hanning';
> >> >
> >> > cfg.foi        = 2:1:40;
> >> >
> >> > cfg.toi        = [0:0.05:2];
> >> >
> >> > cfg.trials     = 'all';
> >> >
> >> > cfg.t_ftimwin  = ones(length(cfg.foi),1).*0.5;
> >> >
> >> > cfg.keeptrials= 'yes'; %% we keep the single trials
> >> >
> >> > freq_Rest1    = ft_freqanalysis(cfg,RestCondition_1);
> >> >
> >> > Can someone tell me if there is something wrong with the cfg settings
> I
> >> > use or if I am doing something wrong at any other place? T Any help
> >> would
> >> > be appreciated.
> >> >
> >> > Best,
> >> >
> >> > Yankı Tandırcıoğlu
> >> >
> >> > _______________________________________________
> >> > fieldtrip mailing list
> >> > https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> >> > https://doi.org/10.1371/journal.pcbi.1002202
> >> >
> >> -------------- next part --------------
> >> An HTML attachment was scrubbed...
> >> URL: <
> >>
> http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210201/66e8a247/attachment-0001.htm
> >> >
> >>
> >> ------------------------------
> >>
> >> Subject: Digest Footer
> >>
> >> _______________________________________________
> >> fieldtrip mailing list
> >> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> >> _______________________________________________
> >> fieldtrip mailing list
> >> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> >> https://doi.org/10.1371/journal.pcbi.1002202
> >>
> >>
> >> ------------------------------
> >>
> >> End of fieldtrip Digest, Vol 123, Issue 1
> >> *****************************************
> >>
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210201/a99e343d/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Mon, 1 Feb 2021 13:25:55 +0100
> From: Stephen Whitmarsh <stephen.whitmarsh at gmail.com>
> To: FieldTrip discussion list <fieldtrip at science.ru.nl>
> Subject: Re: [FieldTrip] fieldtrip Digest, Vol 123, Issue 1
> Message-ID:
>         <CAFrxm=yH_8h1qhGDQYNHzuw47y2yBH1FXB9=
> bv-EM_4PWeMCHQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Yanki,
>
> It seems your datastructure is a single trial of 227572 samples @ 2000Hz =
> 113s, i.e. about 2 minutes.
> Whatever is causing the issue, I am not sure that is what you want to
> calculate a 2 second TFR on, right?
>
> You should probably first segment your data into trials. Perhaps start with
> the event-related tutorials on the fieldtrip wiki and adapt it to your
> data?
>
> Best wishes,
> Stephen
>
>
>
>
> Op ma 1 feb. 2021 om 12:44 schreef Yankı Tandırcıoğlu <
> yankitandircioglu at gmail.com>:
>
> > Sorry, I just saw your other question.
> >
> > I am a beginner, so I don't know what to expect in terms of values of
> > sample & ndatsample relating to your question. This is the struct of the
> > data:
> >
> > temp =
> >
> >   struct with fields:
> >
> >         hdr: [1×1 struct]
> >       label: {306×1 cell}
> >       trial: {[306×227572 double]}
> >        time: {[1×227572 double]}
> >     fsample: 2000
> >        grad: [1×1 struct]
> >         cfg: []
> >
> > Thank you again.
> >
> > Best regards,
> >
> > Yankı Tandırcıoğlu
> >
> > Yankı Tandırcıoğlu <yankitandircioglu at gmail.com>, 1 Şub 2021 Pzt, 14:35
> > tarihinde şunu yazdı:
> >
> >> Dear Stephen Whitmarsh,
> >>
> >> Thank you for your kind and rapid response.
> >>
> >> I tried to run your advice, however the problem remains the same. :(
> >>
> >> May there any other possible solutions?
> >>
> >> Thank you.
> >>
> >> Yankı Tandırcıoğlu
> >>
> >>
> >> <fieldtrip-request at science.ru.nl> adresine sahip kullanıcı 1 Şub 2021
> >> Pzt, 14:15 tarihinde şunu yazdı:
> >>
> >>> Send fieldtrip mailing list submissions to
> >>>         fieldtrip at science.ru.nl
> >>>
> >>> To subscribe or unsubscribe via the World Wide Web, visit
> >>>         https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> >>> or, via email, send a message with subject or body 'help' to
> >>>         fieldtrip-request at science.ru.nl
> >>>
> >>> You can reach the person managing the list at
> >>>         fieldtrip-owner at science.ru.nl
> >>>
> >>> When replying, please edit your Subject line so it is more specific
> >>> than "Re: Contents of fieldtrip digest..."
> >>>
> >>>
> >>> Today's Topics:
> >>>
> >>>    1. Padding Error (Yankı Tandırcıoğlu)
> >>>    2. Re: Padding Error (Stephen Whitmarsh)
> >>>
> >>>
> >>> ----------------------------------------------------------------------
> >>>
> >>> Message: 1
> >>> Date: Mon, 1 Feb 2021 13:21:59 +0300
> >>> From: Yankı Tandırcıoğlu  <yankitandircioglu at gmail.com>
> >>> To: fieldtrip at science.ru.nl
> >>> Subject: [FieldTrip] Padding Error
> >>> Message-ID:
> >>>         <
> >>> CAExVZ1hKdGZH7zjj-xHjC545EdxK7JRAm0nWf9zbMzpXTPn_xA at mail.gmail.com>
> >>> Content-Type: text/plain; charset="utf-8"
> >>>
> >>> Dear community,
> >>>
> >>> My name is Yankı Tandırcıoğlu and I am a student at Middle East
> Technical
> >>> University. Currently I am analyzing MEG dataset.
> >>>
> >>> I tried using ft_freqanalysis to obtain TFR. However, when I call
> >>> ft_freqanalysis, I receive the following error message:
> >>>
> >>> Error using ft_specest_mtmconvol (line 103)
> >>> the padding that you specified is shorter than the data
> >>>
> >>> The cfg and data I use are as follows:
> >>>
> >>> cfg                         = [];
> >>> cfg.channel      = {'megplanar'};
> >>> cfg.lpfilter = 'yes'
> >>> cfg.lpfreq = 150
> >>> cfg.continuous = 'yes'
> >>> RestCondition_1 = ft_preprocessing(cfg, temp);
> >>>
> >>>
> >>> cfg            = [];
> >>>
> >>> cfg.output    = 'pow';
> >>>
> >>> cfg.channel    = 'megplanar';
> >>>
> >>> cfg.method     = 'mtmconvol';
> >>>
> >>> cfg.taper      = 'hanning';
> >>>
> >>> cfg.foi        = 2:1:40;
> >>>
> >>> cfg.toi        = [0:0.05:2];
> >>>
> >>> cfg.trials     = 'all';
> >>>
> >>> cfg.t_ftimwin  = ones(length(cfg.foi),1).*0.5;
> >>>
> >>> cfg.keeptrials= 'yes'; %% we keep the single trials
> >>>
> >>> freq_Rest1    = ft_freqanalysis(cfg,RestCondition_1);
> >>>
> >>> Can someone tell me if there is something wrong with the cfg settings I
> >>> use
> >>> or if I am doing something wrong at any other place? T Any help would
> be
> >>> appreciated.
> >>>
> >>> Best,
> >>>
> >>> Yankı Tandırcıoğlu
> >>> -------------- next part --------------
> >>> An HTML attachment was scrubbed...
> >>> URL: <
> >>>
> http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210201/719a039b/attachment-0001.htm
> >>> >
> >>>
> >>> ------------------------------
> >>>
> >>> Message: 2
> >>> Date: Mon, 1 Feb 2021 11:45:49 +0100
> >>> From: Stephen Whitmarsh <stephen.whitmarsh at gmail.com>
> >>> To: FieldTrip discussion list <fieldtrip at science.ru.nl>
> >>> Subject: Re: [FieldTrip] Padding Error
> >>> Message-ID:
> >>>         <CAFrxm=
> >>> w2Ws7c9-Ys7yHOhHL56Kkp_ovRHLCBhTyM8fTGXCQQvw at mail.gmail.com>
> >>> Content-Type: text/plain; charset="utf-8"
> >>>
> >>> Hi Yanki,
> >>>
> >>> I suspect something is off with your sampling frequency / triallength;
> >>>
> >>> Try debugging:
> >>>
> >>> type: dbstop if error
> >>>
> >>> then run again, and see what is happening on line 102-103;
> >>>
> >>> if round(pad * fsample) < ndatsample
> >>>   ft_error('the padding that you specified is shorter than the data');
> >>> end
> >>>
> >>> Are the values of sample & ndatsample what you would expect?
> >>>
> >>> Hope this helps,
> >>> Stephen
> >>>
> >>>
> >>>
> >>>
> >>> Op ma 1 feb. 2021 om 11:29 schreef Yankı Tandırcıoğlu <
> >>> yankitandircioglu at gmail.com>:
> >>>
> >>> > Dear community,
> >>> >
> >>> > My name is Yankı Tandırcıoğlu and I am a student at Middle East
> >>> Technical
> >>> > University. Currently I am analyzing MEG dataset.
> >>> >
> >>> > I tried using ft_freqanalysis to obtain TFR. However, when I call
> >>> > ft_freqanalysis, I receive the following error message:
> >>> >
> >>> > Error using ft_specest_mtmconvol (line 103)
> >>> > the padding that you specified is shorter than the data
> >>> >
> >>> > The cfg and data I use are as follows:
> >>> >
> >>> > cfg                         = [];
> >>> > cfg.channel      = {'megplanar'};
> >>> > cfg.lpfilter = 'yes'
> >>> > cfg.lpfreq = 150
> >>> > cfg.continuous = 'yes'
> >>> > RestCondition_1 = ft_preprocessing(cfg, temp);
> >>> >
> >>> >
> >>> > cfg            = [];
> >>> >
> >>> > cfg.output    = 'pow';
> >>> >
> >>> > cfg.channel    = 'megplanar';
> >>> >
> >>> > cfg.method     = 'mtmconvol';
> >>> >
> >>> > cfg.taper      = 'hanning';
> >>> >
> >>> > cfg.foi        = 2:1:40;
> >>> >
> >>> > cfg.toi        = [0:0.05:2];
> >>> >
> >>> > cfg.trials     = 'all';
> >>> >
> >>> > cfg.t_ftimwin  = ones(length(cfg.foi),1).*0.5;
> >>> >
> >>> > cfg.keeptrials= 'yes'; %% we keep the single trials
> >>> >
> >>> > freq_Rest1    = ft_freqanalysis(cfg,RestCondition_1);
> >>> >
> >>> > Can someone tell me if there is something wrong with the cfg
> settings I
> >>> > use or if I am doing something wrong at any other place? T Any help
> >>> would
> >>> > be appreciated.
> >>> >
> >>> > Best,
> >>> >
> >>> > Yankı Tandırcıoğlu
> >>> >
> >>> > _______________________________________________
> >>> > fieldtrip mailing list
> >>> > https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> >>> > https://doi.org/10.1371/journal.pcbi.1002202
> >>> >
> >>> -------------- next part --------------
> >>> An HTML attachment was scrubbed...
> >>> URL: <
> >>>
> http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210201/66e8a247/attachment-0001.htm
> >>> >
> >>>
> >>> ------------------------------
> >>>
> >>> Subject: Digest Footer
> >>>
> >>> _______________________________________________
> >>> fieldtrip mailing list
> >>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> >>> _______________________________________________
> >>> fieldtrip mailing list
> >>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> >>> https://doi.org/10.1371/journal.pcbi.1002202
> >>>
> >>>
> >>> ------------------------------
> >>>
> >>> End of fieldtrip Digest, Vol 123, Issue 1
> >>> *****************************************
> >>>
> >> _______________________________________________
> > fieldtrip mailing list
> > https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> > https://doi.org/10.1371/journal.pcbi.1002202
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210201/a1982da3/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 4
> Date: Mon, 1 Feb 2021 21:21:32 +0100
> From: Vera Gramigna <veragramigna at gmail.com>
> To: fieldtrip at science.ru.nl
> Subject: [FieldTrip] Epoc+ edf file analysis
> Message-ID:
>         <CAASh7wJBpHPzOnwC2Pw5H_MD0yeD5YAxZOnJwq46+FVE=
> zOevA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I would like to analyse Emotiv Epoc+ EEG data using Fieldtrip.
> The protocol is a simple resting state (3 min of eyes open and 3 min eyes
> closed).
> Can I have information on the pipeline necessary to analyse this data?
> Thanks
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210201/143b2873/attachment-0001.htm
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202
>
>
> ------------------------------
>
> End of fieldtrip Digest, Vol 123, Issue 2
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210202/6714a617/attachment.htm>


More information about the fieldtrip mailing list