<div dir="ltr">Dear Ahn,<div><br></div><div>As background:</div><div><ol><li>Constructing your own format is easy, and is explained on the page "<a href="http://www.fieldtriptoolbox.org/faq/how_can_i_import_my_own_dataformat">How can I import my own dataformat?</a>"<br></li><li>I'm assuming you're using the function '<span style="color:rgb(0,0,0);font-family:Consolas,'Andale Mono',Menlo,Monaco,monospace;font-size:12px;text-align:justify;white-space:pre-wrap;background-color:rgb(247,249,250)">ft_crossfrequencyanalysis</span>', which doesn't seem to be embedded in a tutorial or anything similar. I do know that it wants the output of ft_freqanalysis, but if you want to know how it works, you're going to have to dive into the code.<br></li><li>Working with Brainvision Recorder, you don't import the raw data directly; you direct Fieldtrip to the header file, and use ft_preprocessing to read all the data and the markers. If this goes awry, you can use the separate functions ft_read_header, ft_read_data, and ft_read_event to load those elements into memor (more info <a href="http://www.fieldtriptoolbox.org/dataformat">here</a>). I seem to remember Brainvision events need to be read using ft_read_event anyway.<br></li></ol><div>Importing data works best either through ft_preprocessing, or through ft_read_data. You're trying to define a trial structure, but don't provide a method to do that. Read the <a href="http://www.fieldtriptoolbox.org/tutorial/preprocessing">tutorial on preprocessing</a>, and simply copy the code used there, making a few changes to fit your data.</div></div><div><br></div><div>Good luck!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 February 2016 at 03:20, 안민희 <span dir="ltr"><<a href="mailto:tigoum@naver.com" target="_blank">tigoum@naver.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:Gulim"><span style="font-size:10pt"></span><div style="font-size:10pt;font-family:Gulim"><p>Dear community,</p><p><br></p><p><span style="font-size:10pt;line-height:1.5">My name is Ahn Min-Hee and I am working in the mindbrain lab in korea university, south koera</span> </p><div style="font-size:10pt;font-family:Gulim"><p><span style="font-size:10pt">on invasive BMI.</span></p><p>Currently I am analyzing EEG data of our lab project, where we processed using our time-frequency</p><p>analysis method on matlab. It's sourcing from Brain Vision Recorder.</p><p> </p><p>I tried using ft_crossfrequency() to assess time-frequency aspects of our data.</p><p>First, I tried importing our own data that formed 3D type by frequency x time x channel,</p><p>but I don't know how it convert the fieldtrip style data structure.</p><p>Specially, about converting epoch dimension & constructing trial struct... </p><p> </p><p>So, I tried <span style="font-size:13.3333px;line-height:1.5">additional</span><span style="font-size:13.3333px;line-height:1.5"> </span><span style="font-size:10pt;line-height:1.5">work as initiation. I import raw data such as *.eeg from Brain Vision Recorder.</span></p><p>I work following:</p><p> </p><p>>> cfg = [] ; </p><p>>> cfg.dataset='SSVEP_NEW_su0001.eeg'; </p><p>>> cfg.trialdef.eventtype='?'; </p><p>>> [cfg] = ft_definetrial(cfg); </p><p> </p><p>Warning: no trialfun was specified, using ft_trialfun_general </p><p>> In ft_definetrial (line 135) </p><p>evaluating trialfunction 'ft_trialfun_general'</p><p>reading the events from 'SSVEP_NEW_su0001.vhdr'</p><p>the following events were found in the datafile</p><p>event type: 'Comment' with event values: 'actiCAP Data On' </p><p>event type: 'New Segment' with event values: </p><p>event type: 'Stimulus' with event values: 'S 11' 'S 12' 'S 13' 'S 14' 'S 15' 'S 16' 'S 21' 'S 22' 'S 23' 'S 24' 'S 25' 'S 26' 'S 28' 'S111' 'S112' 'S113' 'S114' 'S115' 'S116' 'S121' 'S122' 'S123' 'S124' 'S125' 'S126' 'S127' </p><p>no trials have been defined yet, see FT_DEFINETRIAL for further help</p><p>found 943 events</p><p>created 0 trials</p><p>the call to "ft_definetrial" took 0 seconds and required the additional allocation of an estimated 0 MB</p><div> </div><div>Then... I don't know that its result is correct or not... also, how treat warning & why resulting trial to 0.</div><div> </div><div>-----</div><div> </div><div>So, I summarize my question:</div><div> </div><div>1. How convert/construct our own data format(freq x time x channel) to fieldtrip type data struct ? </div><div>2. What or where detailed example for ft_crossfrequency() function ?</div><div>3. How import *.eeg(brain vision raw data) ? Especially treat a trial information ?</div><div> </div><div>I uploaded our data formed file o a filehoster such as fieldtriptoolbox ftp site as it exceeds the </div><div>critical file size of 1 MB. Here is the link:</div><div><a href="ftp://ftp.fieldtriptoolbox.org/pub/incoming/TiGoum_USIL.FREQxTIMExCHANNEL.mat" target="_blank">ftp://ftp.fieldtriptoolbox.org/pub/incoming/TiGoum_USIL.FREQxTIMExCHANNEL.mat</a> </div><div> </div><div>Can someone tell me above questions. Any help world be appreciated.</div><div><span style="font-size:10pt;line-height:1.5">Thank you very much.</span> </div><div><span style="font-size:10pt;line-height:1.5"> </span></div><div><span style="font-size:10pt;line-height:1.5">Best,</span></div><div><span style="font-size:10pt;line-height:1.5"> </span></div><div><span style="font-size:10pt;line-height:1.5">Ahn Min-Hee.</span></div><div><span style="font-size:10pt;line-height:1.5"> </span></div></div>
</div>
</div></div>
<table><tbody><tr><td><img src="http://mail.naver.com/readReceipt/notify/?img=kqeR%2B6eN1B3Spop0FqmspoJCpAUqaxk4Fq0vaxvrMoU9MxbZpo%2BoK4pgMX%2B0Moum74lR74lcWNFlbX30WLloWrdQarpGp6wv%2BHiGbuIqMr00W4F07Ni974ln.gif" border="0"></td></tr></tbody></table><br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>