AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
July 12, 2019 11:41AM
Hello,
After attempting to run rest_afni_proc.py I receive this RetroTs.py error. The respiration and ecg files should be standard, so is the problem due to a permissions error? Here is the particular error message, with the entirety of the log file included below:

RetroTS for Resp_data_5.1D, ECG_data_5.1D ... File "/opt/apps/core/afni/17.0.09/RetroTS.py", line 130
print 'Could not read enough slice offsets from file'
^

[jsmith@d1125 AY480]$ ./rest_afni_proc.py -id AY480-T0-REST-R1 \-f mprage_scan_3_002+orig.HEAD \-FS ../FS6_AY480_R21Visit1 \-r Resp_data_5.1D \-c ECG_data_5.1D \-sc scan_5 \--rm_1st_trs 5 \--template MNI \--blur_fwhm 6 \--censor 0.2
mri_convert.bin ../FS6_AY480_R21Visit1/mri/aparc+aseg.mgz ./aparc+aseg.nii
$Id: mri_convert.c,v 1.226 2016/02/26 16:15:24 mreuter Exp $
reading from ../FS6_AY480_R21Visit1/mri/aparc+aseg.mgz...
TR=0.00, TE=0.00, TI=0.00, flip angle=0.00
i_ras = (-1, 0, 0)
j_ras = (0, 0, -1)
k_ras = (0, 1, 0)
writing to ./aparc+aseg.nii...
mri_convert.bin ../FS6_AY480_R21Visit1/mri/T1.mgz ./T1.nii
$Id: mri_convert.c,v 1.226 2016/02/26 16:15:24 mreuter Exp $
reading from ../FS6_AY480_R21Visit1/mri/T1.mgz...
TR=0.00, TE=0.00, TI=0.00, flip angle=0.00
i_ras = (-1, 0, 0)
j_ras = (0, 0, -1)
k_ras = (0, 1, 0)
writing to ./T1.nii...
++ no -frac option: defaulting to -union
++ processing 1 input datasets...
++ padding all datasets by 10 (for dilations)
** AFNI converts NIFTI_datatype=8 (INT32) in file ./aparc+aseg.nii to FLOAT32
Warnings of this type will be muted for this session.
Set AFNI_NIFTI_TYPE_WARN to YES to see them all, NO to see none.
++ frac 0 over 1 volumes gives min count 0
++ voxel limits: 0 clipped, 1407903 survived, 15369313 were zero
++ filled 0 holes (0 voxels)
++ writing result brainmask.nii...
++ Output dataset ./brainmask.nii
++ 3dcalc: AFNI version=AFNI_17.0.09 (Feb 10 2017) [64-bit]
++ Authored by: A cast of thousands
++ Output dataset ././SurfVol.nii
++ 3dcalc: AFNI version=AFNI_17.0.09 (Feb 10 2017) [64-bit]
++ Authored by: A cast of thousands
** AFNI converts NIFTI_datatype=8 (INT32) in file aparc+aseg.nii to FLOAT32
Warnings of this type will be muted for this session.
Set AFNI_NIFTI_TYPE_WARN to YES to see them all, NO to see none.
++ Output dataset ./FT_vent.nii
++ 3dcalc: AFNI version=AFNI_17.0.09 (Feb 10 2017) [64-bit]
++ Authored by: A cast of thousands
** AFNI converts NIFTI_datatype=8 (INT32) in file aparc+aseg.nii to FLOAT32
Warnings of this type will be muted for this session.
Set AFNI_NIFTI_TYPE_WARN to YES to see them all, NO to see none.
++ Output dataset ./FT_WM.nii
RetroTS for Resp_data_5.1D, ECG_data_5.1D ... File "/opt/apps/core/afni/17.0.09/RetroTS.py", line 130
print 'Could not read enough slice offsets from file'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Could not read enough slice offsets from file')?
Traceback (most recent call last):
File "./rest_afni_proc.py", line 431, in <module>
censor=censor)
File "./rest_afni_proc.py", line 365, in main
num_slices, TR)
File "./rest_afni_proc.py", line 123, in retro_ts
subprocess.check_call(cmd, shell=True, executable='/bin/bash')
File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'RetroTS.py -r Resp_data_5.1D -c ECG_data_5.1D -p 40.0 -n 34 -v 2.0 -prefix ./rvt_AY480-T0-REST-R1.oba' returned non-zero exit status 1
[jsmith@d1125 AY480]$

Thanks
Subject Author Posted

RetroTs.py error (Could not read enough slices offsets from file?)

Jsmith@laureateinstitute.org July 12, 2019 11:41AM

Re: RetroTs.py error (Could not read enough slices offsets from file?)

Peter Molfese July 12, 2019 12:15PM

Re: RetroTs.py error (Could not read enough slices offsets from file?)

Jsmith@laureateinstitute.org July 12, 2019 07:11PM

Re: RetroTs.py error (Could not read enough slices offsets from file?)

rick reynolds July 14, 2019 09:39AM