Back to the main page.

Bug 1411 - Error in ft_volumenormalise : 'spm_vol_minc' function missing

Status CLOSED FIXED
Reported 2012-04-08 11:27:00 +0200
Modified 2019-08-10 11:56:35 +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-04-08 11:27:23 +0200

Using the latest version of fieldtrip (April 6th), when running 'ft_volumenormalise', it requires 'spm_vol_minc' in line 200 ; however this function is absent from the latest version.


Yoni Levy - 2012-04-08 11:41:35 +0200

(In reply to comment #0) The bug persisted because of the latest changes in the script, thereby not including spm2 anymmore ; the bug occurred because T1.mnc was the template input.


Robert Oostenveld - 2012-04-09 12:00:01 +0200

roboos@mentat001> cd /home/common/matlab/fieldtrip/external/ roboos@mentat001> ls spm2/spm_vol_minc.* spm2/spm_vol_minc.m roboos@mentat001> ls spm8/spm_vol_minc.* ls: spm8/spm_vol_minc.*: No such file or directory It is a function in spm2 not present in spm8. It seems that ft_volumenormalise defaults to an spm2 template and spm8 code. However, the code at http://code.google.com/p/fieldtrip/source/browse/trunk/ft_volumenormalise.m#124 suggests that it is set correctly by default. So it seems a user error, where you specify the template incorrectly (or where you add the incorrect version of spm8). I suggest to change the code around http://code.google.com/p/fieldtrip/source/browse/trunk/ft_volumenormalise.m#198 into case 'minc' if ~strcmp(spm('ver'), 'spm2') error('using a MNC file format for the template is only supported with spm2') else VG = spm_vol_minc(cfg.template); end ...


Jan-Mathijs Schoffelen - 2012-05-16 07:16:55 +0200

hi yoni, could you confirm that this is not an issue anymore. JM


Yoni Levy - 2012-05-16 15:47:57 +0200

(In reply to comment #3) I confirm


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