Back to the main page.

Bug 1347 - readCTFds cannot read BCIT MEG files

Status CLOSED INVALID
Reported 2012-02-28 17:35:00 +0100
Modified 2019-08-10 11:56:18 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to:
URL:
Tags:
Depends on:
Blocks:
See also:

Jörn M. Horschig - 2012-02-28 17:35:34 +0100

Either I got a blackout and am doing something wrong, or this is a bug: readCTFds('H:\electromag\yukoka\BCIT\MEG_raw_dat\BCITs03_realtime_20111013_01.ds') readCTFds: In directory H:\electromag\yukoka\BCIT\MEG_raw_dataBCITs03_realtime_20111013_01.ds, cannot find .res4 and/or .meg4 files. ans = 0x0 struct array with no fields. /home/electromag/yukoka/BCIT/MEG_raw_data/BCITs03_realtime_2011 1013_01.ds 403 $ ls -l total 5684228 -rw-rw-rw- 1 500 500 0 Oct 13 16:19 BadChannels -rw-rw-rw- 1 500 500 2135808008 Oct 13 16:16 BCIT03_realtime_20111013_01.1_meg4 -rw-rw-rw- 1 500 500 1522752008 Oct 13 16:19 BCIT03_realtime_20111013_01.2_meg4 -rw-rw-rw- 1 500 500 40784 Oct 13 16:19 BCIT03_realtime_20111013_01.acq -rw-rw-rw- 1 500 500 2241 Oct 13 16:19 BCIT03_realtime_20111013_01.eeg -rw-rw-rw- 1 500 500 823 Oct 13 16:19 BCIT03_realtime_20111013_01.hc -rw-rw-rw- 1 500 500 622 Oct 13 16:19 BCIT03_realtime_20111013_01.hist -rw-rw-rw- 1 500 500 2509 Oct 13 16:19 BCIT03_realtime_20111013_01.infods -rw-rw-rw- 1 500 500 2509 Oct 13 16:19 BCIT03_realtime_20111013_01.infods.bak -rw-rw-rw- 1 500 500 2135808008 Oct 13 16:11 BCIT03_realtime_20111013_01.meg4 -rw-rw-rw- 1 500 500 346 Oct 13 16:19 BCIT03_realtime_20111013_01.newds -rw-rw-rw- 1 500 500 3337069 Oct 13 16:07 BCIT03_realtime_20111013_01.res4 -rw-rw-rw- 1 500 500 2936 Oct 13 16:19 ChannelGroupSet.cfg -rw-rw-rw- 1 500 500 268 Oct 13 16:19 ClassFile.cls -rw-rw-rw- 1 yukoka electromag 3554 Oct 28 20:18 default.de drwxrwxrwx 2 500 500 4096 Oct 13 16:19 hz.ds It works perfectly find when I use one my other datasets. The only difference I can think of might be that we did not use the realtime protocol. Stupid user error or is there something more serious going on? Anyway, it's time to go home and rest for me ;)


Jörn M. Horschig - 2012-02-28 17:38:11 +0100

well, I see that there are nice copy&paste errors here, like MEG_raw_dat instead of data, or a missing slash, but I can verify that this is not the cause and just happened because slashes in bugzilla are apparently not good ;) btw, the BCIt directory is accessible to anyone, so feel free to try it yourself by just copying that line or call ft_read_header on that file


Arjen Stolk - 2012-02-28 19:47:44 +0100

(In reply to comment #1) It seems the files in that dir are non-executable.


Robert Oostenveld - 2012-02-28 23:26:35 +0100

(In reply to comment #2) the files don't have to be executable, but readable. The directory needs to be (and is) executable. The problem is that the dataset was incorrectly renamed >> ls BCITs03_realtime_20111013_01.ds/BCIT03_realtime_20111013_01.* BCITs03_realtime_20111013_01.ds/BCIT03_realtime_20111013_01.1_meg4 BCITs03_realtime_20111013_01.ds/BCIT03_realtime_20111013_01.2_meg4 BCITs03_realtime_20111013_01.ds/BCIT03_realtime_20111013_01.acq BCITs03_realtime_20111013_01.ds/BCIT03_realtime_20111013_01.eeg BCITs03_realtime_20111013_01.ds/BCIT03_realtime_20111013_01.hc BCITs03_realtime_20111013_01.ds/BCIT03_realtime_20111013_01.hist BCITs03_realtime_20111013_01.ds/BCIT03_realtime_20111013_01.infods BCITs03_realtime_20111013_01.ds/BCIT03_realtime_20111013_01.infods.bak BCITs03_realtime_20111013_01.ds/BCIT03_realtime_20111013_01.meg4 BCITs03_realtime_20111013_01.ds/BCIT03_realtime_20111013_01.newds BCITs03_realtime_20111013_01.ds/BCIT03_realtime_20111013_01.res4 Note the s03 in the directory name and the 03 without "s" for the files inside.


Arjen Stolk - 2012-02-29 08:11:45 +0100

(In reply to comment #3) Well-spotted. :) It seems this holds for file 01 to 09. Can one rename all files by hand or does it require the -newDS functionality? e.g. as when to anonimize datasets: http://fieldtrip.fcdonders.nl/faq/how_can_i_anonimize_a_ctf_dataset?s[]=anonymous


Jörn M. Horschig - 2012-02-29 09:04:22 +0100

ah great, thanks for the support then! I will just rename the directory again ;)


Robert Oostenveld - 2019-08-10 11:56:18 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue describing the issue on https://github.com/fieldtrip/fieldtrip/issues.