[FieldTrip] Converting data from BBCI toolbox to Fieldtrip

Schoffelen, J.M. (Jan Mathijs) janmathijs.schoffelen at donders.ru.nl
Wed Jun 12 18:04:23 CEST 2024


Hi Ruvindu,

Your pasted code in principle looks fine. Since you don’t mention what is not working for you, I cannot provide any pointers apart from that you need to check whether the dimensions of the trial matrices are as expected (i.e. the number of rows equal to the number of elements in the label-field, and the number of columns the same as the number of elements in the corresponding time-vector.

Best wishes,
Jan-Mathijs



On 27 May 2024, at 12:30, Ruvindu Kaluarachchi via fieldtrip <fieldtrip at science.ru.nl> wrote:

Dear FieldTrip Community,
My name is Ruvindu, and I am working on converting a simultaneous EEG and NIRS dataset into FieldTrip format. It is currently in the BBCI format as I wish to use a TRENTOOL for analysis as well as I wish to analyse NIRS data in the future I am exploring this option and convert it to FT format.
The dataset is of the following structure,
EEG Data:

  *   cnt: 1x6 cells, continuous EEG data
     *   cnt{1,1}, cnt{1,3}, cnt{1,5}: Motor imagery data
     *   cnt{1,2}, cnt{1,4}, cnt{1,6}: Mental arithmetic data
  *   mrk: 1x6 cells, task onset markers
     *   mrk{1,1}, mrk{1,3}, mrk{1,5}: Motor imagery markers (16 = left hand imagery, 32 = right hand imagery)
     *   mrk{1,2}, mrk{1,4}, mrk{1,6}: Mental arithmetic markers (16 = mental arithmetic, 32 = baseline)
  *   mnt: Montage for cnt

Standard BBCI data structure format can be found here<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbbci%2Fbbci_public%2Fblob%2Fmaster%2Fdoc%2FToolboxData.markdown&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C7411883f79da44ac239b08dc8af95373%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638538050650024498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=%2BkesqF0RG%2BtJnMk7%2BiWYIqJY7%2F0Kv%2F11bS78M0oldm8%3D&reserved=0>. My attempt can be found here<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2FXd5Q3rMy&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C7411883f79da44ac239b08dc8af95373%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638538050650024498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=NRKJ6oyPDOQgGyVdk8SAmhHlCFwmg%2BqzmxGIiGsHXUs%3D&reserved=0>, which does not work.
I would greatly appreciate any guidance, examples, or scripts that could assist with this conversion.
Thank you for your support!
Best regards,
Ruvindu
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C7411883f79da44ac239b08dc8af95373%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638538050650180783%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=p%2Bjj7d6HM7Smskk9i7W19TlGMq58uqH4KRvhFpj2CME%3D&reserved=0>
https://doi.org/10.1371/journal.pcbi.1002202<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C7411883f79da44ac239b08dc8af95373%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638538050650180783%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=FZwza8RLED10WIrHhThMus6fVKum3Yuec72qd01SU3o%3D&reserved=0>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20240612/279ffae4/attachment.htm>


More information about the fieldtrip mailing list