help > RE: Error in timeseries_extract function | spm12
Apr 13, 2017  01:04 AM | Donald McLaren
RE: Error in timeseries_extract function | spm12
Sorry for the delay.

I believe this is the result of several typos, you identified the correct line, but wrong correction.

The same bug on line 140 occurred on 141 and 146. There needed to be a _ after Sess.

Please let me know if the new file solves the problem.

An alternative approach, which I generally use (and why the bug hasn't been reported) is to specify P.VOI as a filename that is the mask.

Best,
Donald
Originally posted by Sigita Venclove:
Hello,

I would like to ask your help to solve a problem with timeseries_extract:
when I try to run PPPI(P) I get the error message:
_____________________
Error using load
Unable to read file
'myfolder/VOI_ROI_Broca_45_R_MNI_ID_0_Sess1'.
No such file or directory.
Error in timeseries_extract (line 140)

Error in PPPI (line 461)
_____________________
Shouldn't it be :

load(deblank([SPM.swd filesep 'VOI_' file '_' P.subject '_Sess' sess '_' sess '.mat']),'xY'); intead of load(deblank([SPM.swd filesep 'VOI_' file '_' P.subject '_Sess' sess]),'xY');?

However, when I changed it, the error in line 146 appeared...
_____________________
Error using
spm_vol>spm_vol_hdr (line 80)
File "myfolder\VOI_ROI_Broca_45_R_MNI_ID_0_Sess1.img"
does not exist.

Error in spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
Error in timeseries_extract (line 146)
___________________________________

Is it related with session number? ( In my data, I have only one session).  Or it is due to the wrong definition of a parameter in P?
Besides I get the same error and using spm8, so it shouldn't be the reason...

Any comments would be very helpful.

Thank you very much.

Best,
Sigita

Threaded View

TitleAuthorDate
Sigita Venclove Mar 28, 2017
RE: Error in timeseries_extract function | spm12
Donald McLaren Apr 13, 2017