<div dir="ltr">Hi Stephen,<div><br></div><div>I was able to find the solution, which is to specify the trl field in the ft_preprocessing cfg. I'll put it here for posterity.</div><div><br></div><div>cfg = [];</div><div>cfg.dataset = 'full_recording_session.edf';</div><div>cfg.trl = [blockbeg blockend 0]; % The 0 indicates there are no triggers associated with the trial</div><div>cfg.continuous = 'yes';</div><div><br></div><div>datp = ft_preprocessing(cfg);</div><div><br></div><div>Found in this thread: <a href="https://mailman.science.ru.nl/pipermail/fieldtrip/2016-January/009960.html">https://mailman.science.ru.nl/pipermail/fieldtrip/2016-January/009960.html</a></div><div><br></div><div>Cheers,</div><div>Tim</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 7, 2017 at 10:52 AM, Tim Meehan <span dir="ltr"><<a href="mailto:timeehan@gmail.com" target="_blank">timeehan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Stephen,<div><br></div><div>Aha, this looks like what I'm looking for. However, I've tried it and I'm not sure what the effect is. For example, if I run:<br></div><div><br></div><div>nchan = 1;</div>blockbeg = 4197000;<div>blockend = 5782000;</div><div><br></div><div>for n = 1:nchan<br>  </div><div>  cfgp = [];<br>  cfgp.dataset = 'full_recording_session.edf';<br>  cfgp.channel = n;<br>  cfgp.latency = [blockbeg blockend];<br>    <br>  datp{n} = ft_preprocessing(cfgp);</div><div><br></div><div><div>end</div><div><br></div><div><div>>> datp{1}</div><div><br></div><div>ans = </div><div><br></div><div>           hdr: [1x1 struct]</div><div>         label: {'SEEG F11'}</div><div>          time: {[1x9002826 double]}</div><div>         trial: {[1x9002826 double]}</div><div>       fsample: 2000</div><div>    sampleinfo: [1 9002826]</div><div>           cfg: [1x1 struct]</div><div><br></div><div><div>>> datp{1}.cfg.latency</div><div><br></div><div>ans =</div><div><br></div><div>     4197000     5782000</div></div><div><br></div><div><br></div><div>So, the beginning and end points are being stored in the cfg.latency field, but it seems they are not being used to subset the data since datp.time and datp.trial contain the full session.</div><div><br></div><div>Is there a way to achieve the actual subsetting? Otherwise I will run out of memory when looping through all the channels, even if I downsample each channel at each iteration.</div><div><br><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div>Tim</div></font></span></div></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 7, 2017 at 9:15 AM, Stephen Whitmarsh <span dir="ltr"><<a href="mailto:stephen.whitmarsh@gmail.com" target="_blank">stephen.whitmarsh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Tim,<br><br></div>In ft_selectdata, check cfg.latency. And maybe ft_redefinetrials, depending on where you are in your pipeline, i.e. after or before timelocking/epoching.<br><br></div><div>Cheers,<br></div><div>Stephen<br></div></div><div class="m_-1940403719759021424HOEnZb"><div class="m_-1940403719759021424h5"><div class="gmail_extra"><br><div class="gmail_quote">On 6 February 2017 at 23:53, Tim Meehan <span dir="ltr"><<a href="mailto:timeehan@gmail.com" target="_blank">timeehan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Stephen,<div><br></div><div>Thanks, I checked out ft_selectdata, but what I really want is a way to subselect the time dimension, not the channel dimension. I don't see this as an option in ft_selectdata. I can do this subselection manually by going into the trials and time fields but it's a little bit clunky and was hoping there might be a more elegant way...</div><div><br></div><div>Thanks,</div><div>Tim</div></div><div class="m_-1940403719759021424m_3718602179771001836HOEnZb"><div class="m_-1940403719759021424m_3718602179771001836h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 4, 2017 at 9:35 AM, Stephen Whitmarsh <span dir="ltr"><<a href="mailto:stephen.whitmarsh@gmail.com" target="_blank">stephen.whitmarsh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Tim,<div><br></div><div>You might want to check out the cfg.channel setting in ft_preprocessing, or use cfg.channel and cfg.trials in ft_selectdata. You can use ft_appenddata to recombine data over trials or channels at a later point.</div><div><br></div><div>Hope this helps,</div><div>Stephen</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-1940403719759021424m_3718602179771001836m_-1858791323770431393h5">On 3 February 2017 at 23:23, Tim Meehan <span dir="ltr"><<a href="mailto:timeehan@gmail.com" target="_blank">timeehan@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-1940403719759021424m_3718602179771001836m_-1858791323770431393h5"><div dir="ltr">Hello everyone,<div><br></div><div>I'm trying to preprocess a block of continuous data, but the block is too long such that I can't hold all the channels in memory together, even after downsampling. Is there perhaps a setting in ft_preprocessing through which you can specify a subset of data from a larger block? This would solve my problem, I think.</div><div><br></div><div>Thanks!</div><span class="m_-1940403719759021424m_3718602179771001836m_-1858791323770431393m_-5289009015032665923HOEnZb"><font color="#888888"><div>Tim</div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>