help > VOI2 specification problem
Showing 1-2 of 2 posts
Nov 21, 2015 02:11 PM | Maxim Kireev
VOI2 specification problem
Dear Dr. McLaren,
I am trying to calcuate psycho-physiophysio interaction and to specify VOI2 region. In order to do that I adding the following lines to the standard parameter file:
%User input required (region files)
regionfile={'/folder/VOI1.nii' '/folder/VOI2.nii'};
%User input required (region names)
region={'AREA1' 'AREA2'};
%User input required (master template)
P.VOI=regionfile{regionnumber};
P.Region=region{regionnumber};
P.VOI2=regionfile{2};
P.Region2=region{2};
In accordance with that the P.VOI2 and P.Region2 lines were also added to master template mat file (with brakets).
As a result I am getting error message:
Processing subject: sbj01
VOI file : /folder/VOI1.nii
VOI2 file : /folder/VOI2.nii
ERROR 1: Program will exit. VOI2 has no region name associated with it.
ERROR 2: PPPI inputs were specified correctly, but failed error checking for dependencies. See errorval{1}.
One or more inputs are not correct.
ERROR 1:Program will exit. VOI2 has no region name associated with it.
ERROR 2:PPPI inputs were specified correctly, but failed error checking for dependencies. See errorval{1}.
errorvals saved to errorvals.mat
Should I add some more information to the parameter file to associate name with VOI2 file?
Best regards Maxim Kireev
I am trying to calcuate psycho-physiophysio interaction and to specify VOI2 region. In order to do that I adding the following lines to the standard parameter file:
%User input required (region files)
regionfile={'/folder/VOI1.nii' '/folder/VOI2.nii'};
%User input required (region names)
region={'AREA1' 'AREA2'};
%User input required (master template)
P.VOI=regionfile{regionnumber};
P.Region=region{regionnumber};
P.VOI2=regionfile{2};
P.Region2=region{2};
In accordance with that the P.VOI2 and P.Region2 lines were also added to master template mat file (with brakets).
As a result I am getting error message:
Processing subject: sbj01
VOI file : /folder/VOI1.nii
VOI2 file : /folder/VOI2.nii
ERROR 1: Program will exit. VOI2 has no region name associated with it.
ERROR 2: PPPI inputs were specified correctly, but failed error checking for dependencies. See errorval{1}.
One or more inputs are not correct.
ERROR 1:Program will exit. VOI2 has no region name associated with it.
ERROR 2:PPPI inputs were specified correctly, but failed error checking for dependencies. See errorval{1}.
errorvals saved to errorvals.mat
Should I add some more information to the parameter file to associate name with VOI2 file?
Best regards Maxim Kireev
Nov 23, 2015 05:11 PM | Donald McLaren
RE: VOI2 specification problem
This issue is that you defined:
P.Region=region{regionnumber};
and
P.Region2=region{2}.
Region2 is not a valid field for the Parameter structure field. The code internally splits the Region name based on a space in a string variable or based on the cell number.
Please specify P.Region as P.Region=region;
I've modified the code to accept the cell array.
P.Region=region{regionnumber};
and
P.Region2=region{2}.
Region2 is not a valid field for the Parameter structure field. The code internally splits the Region name based on a space in a string variable or based on the cell number.
Please specify P.Region as P.Region=region;
I've modified the code to accept the cell array.