Back to the main page.

Bug 1265 - error while running "ft_megrealign"

Status CLOSED FIXED
Reported 2012-01-17 15:28:00 +0100
Modified 2019-08-10 11:55:55 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 major
Assigned to:
URL:
Tags:
Depends on:
Blocks:
See also:

Yoni Levy - 2012-01-17 15:28:40 +0100

When running the script: cfg = []; cfg.template = {'D:/MEG/MEG_subj1.ds', 'D:/MEG/CriticConsc_CriticConsc_20081028_01.ds', 'D:/MEG/CriticConsc_CriticConsc_20081028_02.ds', 'D:/MEG/CriticConsc_CriticConsc_20081028_03.ds', 'D:/MEG/CriticConsc_CriticConsc_20081030_02.ds', 'D:/MEG/CriticConsc_CriticConsc_20081130_01.ds', 'D:/MEG/CriticConsc_CriticConsc_20081209_01.ds', 'D:/MEG/CriticConsc_CriticConsc_20081210_01.ds', 'D:/MEG/CriticConsc_CriticConsc_20081211_01.ds', 'D:/MEG/CriticConsc_CriticConsc_20081212_03.ds', 'D:/MEG/CriticConsc_CriticConsc_20081212_04.ds', 'D:/MEG/CriticConsc_CriticConsc_20081212_05.ds', 'D:/MEG/CriticConsc_CriticConsc_20081216_01.ds'}; cfg.hdmfile = strcat(lower(tata),'.hdm'); cfg.inwardshift = 1.0; cfg.feedback ='no'; realign = ft_megrealign(cfg, toto); I receive the error message: "the input is timelock data with 274 channels and 2222 timebins Warning: reconstructing sampleinfo by assuming that the trials are consecutive segments of a continuous recording > In utilities\private\warning_once at 75 In utilities\private\fixsampleinfo at 79 In ft_checkdata at 604 In ft_megrealign at 138 reading template sensor position from D:/MEG/MEG_subj1.ds readCTFds: In directory D:/MEG/MEG_subj1.ds, cannot find .res4 and/or .meg4 files. Reference to non-existent field 'res4'." When verifying, the directory "D:/MEG/MEG_subj1.ds" does include the files: MEG_subj1.meg4 MEG_subj1.res4 Could you please help out here? Thanks, Yoni


Jan-Mathijs Schoffelen - 2012-01-27 08:42:12 +0100

hi Yoni, Is this still an issue? It is hard for us to reproduce this type of error, so could you please try again on a very recent fieldtrip version and be sure that all the matlab paths are correctly defined?


Yoni Levy - 2012-01-28 00:28:25 +0100

Hi, I currently cannot test it again. I will try it again in 3 weeks, as you say on a new version, though last time it I tried it was on a new version, and also all paths to the mentioned directory were defined. Thanks (In reply to comment #1)


Boris Reuderink - 2012-02-03 12:00:16 +0100

Changing this bug's status to new (can't directly go to unconfirmed).


Boris Reuderink - 2012-02-03 12:00:46 +0100

Changing status to unconfirmd.


Yoni Levy - 2012-03-07 11:25:22 +0100

(In reply to comment #4) Hi Again, I think there is a bug in the 'ft_megrealign' function. When I run: **** cfg = []; cfg.template = {'D:/DATA Yoni Levy/MEG_HR/yonlev_1200hz_20100306_01.ds'}; cfg.hdmfile = strcat ('subj', num2str(ff),'.hdm'); cfg.inwardshift = 1.0; realign_file = ft_megrealign(cfg, preprocessed_file); **** I receive the output: " reading template sensor position from D:/DATA Yoni Levy/MEG_HR/yonlev_1200hz_20100306_01.ds readCTFds: In directory D:/DATA Yoni Levy/MEG_HR/yonlev_1200hz_20100306_01.ds, cannot find .res4 and/or .meg4 files. Reference to non-existent field 'res4'. " and when double checking, there are clearly *.meg4 and *.res4 files in the above-mentioned directory. Please assistance


Yoni Levy - 2012-03-07 11:45:22 +0100

(In reply to comment #5) ok, I found the problem: I should have defined cfg.template = {'yonlev_1200hz_20100306_01.ds'}; instead of cfg.template = {'D:/DATA Yoni Levy/MEG_HR/yonlev_1200hz_20100306_01.ds'}; thanks


Yoni Levy - 2012-03-07 11:46:07 +0100

found the problem as mentioned in the last comment of the bug


Robert Oostenveld - 2019-08-10 11:52:00 +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.


Robert Oostenveld - 2019-08-10 11:55:55 +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.