<html><head></head><body><div style="color:#000; background-color:#fff; font-family:garamond, new york, times, serif;font-size:16px">Thanks Jorn. Appreciate your feedback.<br><div><span></span></div><div> </div><div id="yui_3_16_0_1_1450446141029_8898" class="signature"><div id="yui_3_16_0_1_1450446141029_8897"><font id="yui_3_16_0_1_1450446141029_8896" color="#000000"><div id="yui_3_16_0_1_1450446141029_9047" style="font-family:'bookman old style', 'new york', times, serif;margin-top:0cm;margin-right:0cm;margin-bottom:0pt;margin-left:0cm;" class="MsoPlainText"><span id="yui_3_16_0_1_1450446141029_9046" style=""><font id="yui_3_16_0_1_1450446141029_9045" face="times new roman, new york, times, serif"><font id="yui_3_16_0_1_1450446141029_9048" size="2">__________________________________________________</font></font></span></div> <div id="yui_3_16_0_1_1450446141029_8895" style="font-family:'bookman old style', 'new york', times, serif;margin-top:0cm;margin-right:0cm;margin-bottom:0pt;margin-left:0cm;" class="MsoPlainText"><span id="yui_3_16_0_1_1450446141029_9044" style=""><font id="yui_3_16_0_1_1450446141029_9043" face="times new roman, new york, times, serif"><font id="yui_3_16_0_1_1450446141029_9042" size="2">Leila Ayoubian, PhD.<br>Institute of Psychiatry, Psychology and Neuroscience<br>King's College London<br></font></font></span></div> <div id="yui_3_16_0_1_1450446141029_8907" style="margin-top:0cm;margin-right:0cm;margin-bottom:0pt;margin-left:0cm;" class="MsoPlainText"><font class="Apple-style-span" size="2" face="'times new roman', 'new york', times, serif"><br></font></div></font></div><div id="yui_3_16_0_1_1450446141029_9049" style="MARGIN:0cm 0cm 0pt;" class="MsoPlainText"><font color="#000000"><font style="" face="bookman old style, new york, times, serif"><font face="bookman old style, new york, times, serif"><font color="#000000"><span style="color:rgb(84, 140, 214);font-size:9pt;font-family:Arial;" lang="EN-US"><span style="font-size:10pt;font-family:sans-serif;"><br></span></span></font></font></font></font></div></div><br> <div id="yui_3_16_0_1_1450446141029_9050" class="qtdSeparateBR"><br><br></div><div style="display: block;" id="yui_3_16_0_1_1450446141029_9054" class="yahoo_quoted"> <div id="yui_3_16_0_1_1450446141029_9053" style="font-family: garamond, new york, times, serif; font-size: 16px;"> <div id="yui_3_16_0_1_1450446141029_9052" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1450446141029_9051" dir="ltr"> <font id="yui_3_16_0_1_1450446141029_9055" size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Jörn M. Horschig <jorn@artinis.com><br> <b><span style="font-weight: bold;">To:</span></b> 'FieldTrip discussion list' <fieldtrip@science.ru.nl> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, December 18, 2015 1:17 PM<br> <b id="yui_3_16_0_1_1450446141029_9057"><span id="yui_3_16_0_1_1450446141029_9056" style="font-weight: bold;">Subject:</span></b> Re: [FieldTrip] Importing large edf data<br> </font> </div> <div id="yui_3_16_0_1_1450446141029_9061" class="y_msg_container"><br><div id="yiv8769305188"><style>#yiv8769305188 #yiv8769305188 --
_filtered #yiv8769305188 {panose-1:2 4 5 3 5 4 6 3 2 4;}
_filtered #yiv8769305188 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered #yiv8769305188 {font-family:Verdana;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv8769305188
#yiv8769305188 p.yiv8769305188MsoNormal, #yiv8769305188 li.yiv8769305188MsoNormal, #yiv8769305188 div.yiv8769305188MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}
#yiv8769305188 a:link, #yiv8769305188 span.yiv8769305188MsoHyperlink
{color:#0563C1;text-decoration:underline;}
#yiv8769305188 a:visited, #yiv8769305188 span.yiv8769305188MsoHyperlinkFollowed
{color:#954F72;text-decoration:underline;}
#yiv8769305188 p
{margin-right:0in;margin-left:0in;font-size:12.0pt;}
#yiv8769305188 span.yiv8769305188EmailStyle18
{color:#1F497D;}
#yiv8769305188 .yiv8769305188MsoChpDefault
{font-size:10.0pt;}
_filtered #yiv8769305188 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv8769305188 div.yiv8769305188WordSection1
{}
#yiv8769305188 </style><div id="yui_3_16_0_1_1450446141029_9060"><div id="yui_3_16_0_1_1450446141029_9059" class="yiv8769305188WordSection1"><div id="yui_3_16_0_1_1450446141029_9058" class="yiv8769305188MsoNormal"><span style="font-size:11.0pt;">Hi all,</span></div><div id="yui_3_16_0_1_1450446141029_9062" class="yiv8769305188MsoNormal"><span style="font-size:11.0pt;"> </span></div><div id="yui_3_16_0_1_1450446141029_9064" class="yiv8769305188MsoNormal"><span id="yui_3_16_0_1_1450446141029_9063" style="font-size:11.0pt;">I am not expert in edf data, but it is indeed true that some dataformats allow for reading in single channels, while others do not, and some dataformats allow for reading in only specific time points while others do not. While the FT-end-user may specify these things always, independently of the data format, ‘behind the curtain’ FT may need to read in all data and/or channels and then throw away what the user did NOT ask for. So, while specifying only a second of data for the ft_ high level function, it might be that the specific low-level reading function (mostly written by the manufacturer) does return ALL samples anyways. Same might happen for the channel dimension. </span></div><div class="yiv8769305188MsoNormal"><span style="font-size:11.0pt;"> </span></div><div class="yiv8769305188MsoNormal"><span style="font-size:11.0pt;">Most dataformats allow for at least either the one or the other, few for both and few for none. So, if specifying shorter trial lengths does not work, it might be well worth to specify only a single channel (as Anja suggested). But again, I do not know the specifics of edf. I justed wanted to add that to the discussion for educational purposes.</span></div><div class="yiv8769305188MsoNormal"><span style="font-size:11.0pt;"> </span></div><div class="yiv8769305188MsoNormal"><span style="font-size:11.0pt;">Best of luck ;)</span></div><div class="yiv8769305188MsoNormal"><span style="font-size:11.0pt;">Jörn</span></div><div><div class="yiv8769305188MsoNormal" style=""><b><span style="font-size:9.0pt;">--</span></b><b><span style="font-size:9.0pt;"><br clear="none">Jörn M. Horschig, PhD</span></b><span style="font-size:9.0pt;">, Software Engineer<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.artinis.com/"><span style="color:#626264;">Artinis Medical Systems</span></a> | +31 481 350 980 </span><b><span style="font-size:9.0pt;"></span></b></div></div><div class="yiv8769305188MsoNormal"><span style="font-size:11.0pt;"> </span></div><div class="yiv8769305188yqt8352923552" id="yiv8769305188yqt05991"><div><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in;"><div class="yiv8769305188MsoNormal"><b><span style="font-size:11.0pt;">From:</span></b><span style="font-size:11.0pt;"> fieldtrip-bounces@science.ru.nl [mailto:fieldtrip-bounces@science.ru.nl] <b>On Behalf Of </b>Anja Pflug<br clear="none"><b>Sent:</b> Friday, December 18, 2015 14:07<br clear="none"><b>To:</b> fieldtrip@science.ru.nl<br clear="none"><b>Subject:</b> [FieldTrip] Importing large edf data</span></div></div></div><div class="yiv8769305188MsoNormal"> </div><div>Hello Leila,</div><div>have you tried to import only one of your 51 channels?</div><div>If this works you could cut the data or downsample it and then combine all channels in a later step.</div><div>Best,</div><div>Anja</div><div> </div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt;"><div><a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip-request@science.ru.nl" target="_blank" href="mailto:fieldtrip-request@science.ru.nl"><span lang="DE">fieldtrip-request@science.ru.nl</span></a><span lang="DE"> hat am 18. </span>Dezember 2015 um 12:00 geschrieben:<br clear="none"><br clear="none"><br clear="none">Send fieldtrip mailing list submissions to<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@science.ru.nl" target="_blank" href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a><br clear="none"><br clear="none">To subscribe or unsubscribe via the World Wide Web, visit<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br clear="none">or, via email, send a message with subject or body 'help' to<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip-request@science.ru.nl" target="_blank" href="mailto:fieldtrip-request@science.ru.nl">fieldtrip-request@science.ru.nl</a><br clear="none"><br clear="none">You can reach the person managing the list at<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip-owner@science.ru.nl" target="_blank" href="mailto:fieldtrip-owner@science.ru.nl">fieldtrip-owner@science.ru.nl</a><br clear="none"><br clear="none">When replying, please edit your Subject line so it is more specific<br clear="none">than "Re: Contents of fieldtrip digest..."<br clear="none"><br clear="none"><br clear="none">Today's Topics:<br clear="none"><br clear="none">1. importing large edf data (Leila Ayoubian)<br clear="none"><br clear="none"><br clear="none">----------------------------------------------------------------------<br clear="none"><br clear="none">Message: 1<br clear="none">Date: Fri, 18 Dec 2015 09:43:43 +0000 (UTC)<br clear="none">From: Leila Ayoubian <<a rel="nofollow" shape="rect" ymailto="mailto:leilayou_54@yahoo.com" target="_blank" href="mailto:leilayou_54@yahoo.com">leilayou_54@yahoo.com</a>><br clear="none">To: "<a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@science.ru.nl" target="_blank" href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>" <<a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@science.ru.nl" target="_blank" href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><br clear="none">Subject: [FieldTrip] importing large edf data<br clear="none">Message-ID:<br clear="none"><<a rel="nofollow" shape="rect" ymailto="mailto:807603762.476165.1450431823359.JavaMail.yahoo@mail.yahoo.com" target="_blank" href="mailto:807603762.476165.1450431823359.JavaMail.yahoo@mail.yahoo.com">807603762.476165.1450431823359.JavaMail.yahoo@mail.yahoo.com</a>><br clear="none">Content-Type: text/plain; charset="utf-8"<br clear="none"><br clear="none">Hi:Thanks for providing us with this amazing toolbox.<br clear="none">I am new to fieldtrip. I am trying to import EEG data in the format of *.edf for the purpose of seizure detection for epileptic patients. I can't break up the data as you understand the detection has to have continuous data. However I could load section of the data at a time and clear what is already used and reload again.?<br clear="none">So trying to load the data like this:<br clear="none">cfg.dataset= ('mydata.edf');<br clear="none">rawdata=ft_preprocessing(cfg);<br clear="none">This is the error message I get :<br clear="none">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br clear="none">Error using zeros<br clear="none">Requested 51x51927040 (19.7GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time<br clear="none">and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.<br clear="none"><br clear="none">Error in read_edf (line 403)<br clear="none">? dat = zeros(length(chanindx),nepochs*epochlength);<br clear="none"><br clear="none">Error in ft_read_data (line 622)<br clear="none">??? dat = read_edf(filename, hdr, begsample, endsample, chanindx);<br clear="none"><br clear="none">Error in ft_preprocessing (line 566)<br clear="none">????? dat = ft_read_data(cfg.datafile, 'header', hdr, 'begsample', begsample, 'endsample', endsample, 'chanindx', rawindx, 'checkboundary',<br clear="none">????? strcmp(cfg.continuous, 'no'), 'dataformat', cfg.dataformat);<br clear="none"><br clear="none">Error in ReadFedfiles (line 8)<br clear="none">rawdata=ft_preprocessing(cfg);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br clear="none">I tried the ft_redefinetrial, but since the input to this file is the output from ft-PREPROCESSING it gives me the same error. <br clear="none"><br clear="none"><br clear="none">I also tried to use ft_read_data to choose the samples I want to load :?filename???? = 'mydata.edf'<br clear="none">?hdr?? = ft_read_header(filename);<br clear="none">?sample.start=1<br clear="none">?sample.end=100<br clear="none">dat = ft_read_data(filename,'sample.start','1','sample.end','100') <br clear="none">and here is again the error message:<br clear="none">Error using zeros<br clear="none">Requested 51x51927040 (19.7GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a<br clear="none">long time and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.<br clear="none"><br clear="none">Error in read_edf (line 403)<br clear="none">? dat = zeros(length(chanindx),nepochs*epochlength);<br clear="none"><br clear="none">Error in ft_read_data (line 622)<br clear="none">??? dat = read_edf(filename, hdr, begsample, endsample, chanindx);<br clear="none"><br clear="none">Error in ReadFedfiles (line 31)<br clear="none">dat = ft_read_data(filename,'sample.start','1','sample.end','100')<br clear="none">?<br clear="none">>> <br clear="none"><br clear="none">Could you please direct me as to which functions and in which order I should be using the functions to load data in smaller samples.Some examples would be useful.<br clear="none">Thanks again for your support and assistance. <br clear="none">We appreciate your effort.<br clear="none">Kind regards<br clear="none"><br clear="none">___________________________________________________ Dr. Leila Ayoubian <br clear="none">-------------- next part --------------<br clear="none">An HTML attachment was scrubbed...<br clear="none">URL: <<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20151218/6dfa7ce1/attachment-0001.html">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20151218/6dfa7ce1/attachment-0001.html</a>><br clear="none"><br clear="none">------------------------------<br clear="none"><br clear="none">_______________________________________________<br clear="none">fieldtrip mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@donders.ru.nl" target="_blank" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br clear="none"><br clear="none">End of fieldtrip Digest, Vol 61, Issue 14<br clear="none">*****************************************</div></blockquote></div></div></div></div><br><div class="yqt8352923552" id="yqt69796">_______________________________________________<br clear="none">fieldtrip mailing list<br clear="none"><a shape="rect" ymailto="mailto:fieldtrip@donders.ru.nl" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br clear="none"><a shape="rect" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div><br><br></div> </div> </div> </div></div></body></html>