Skip to content

Instantly share code, notes, and snippets.

@danlurie
Created March 11, 2019 23:48
Show Gist options
  • Save danlurie/d39d0bd13786bf70435266f8b50373cb to your computer and use it in GitHub Desktop.
Save danlurie/d39d0bd13786bf70435266f8b50373cb to your computer and use it in GitHub Desktop.
Rapidtide2 IndexError
(rapidtide) # dlurie@nx4 in ~/Software/rapidtide [16:26:10]
$ rapidtide2 /home/despoB/dlurie/Projects/despolab_lesion/sandbox/sub-101_clean.nii.gz /home/despoB/dlurie/Projects/despolab_lesion/sandbox/rapidtide_testing/patient/clean_blaise_rerun/ --corrmask=/home/despoB/dlurie/Projects/despolab_lesion/data/patients/preproc/out/fmriprep/sub-101/func/sub-101_task-rest_acq-128px_run-01_bold_space-T1w_brainmask.nii.gz -L --passes=3 --despecklepasses=4 -r 10,10 -f 2.5
/home/despoB/dlurie/anaconda3/envs/rapidtide/lib/python3.6/site-packages/statsmodels/compat/pandas.py:56: FutureWarning: The pandas.core.datetools module is deprecated and will be removed in a future version. Please use the pandas.tseries module instead.
from pandas.core import datetools
/home/despoB/dlurie/anaconda3/envs/rapidtide/lib/python3.6/site-packages/rapidtide-1.7.0-py3.6.egg/rapidtide
/home/despoB/dlurie/anaconda3/envs/rapidtide/bin/rapidtide2 version: v1.7.0 124-g5e5ed34
using standard scipy.fftpack
numba exists
memprofiler does not exist
nibabel exists
no aggressive optimization
using numba if present
Using /home/despoB/dlurie/Projects/despolab_lesion/data/patients/preproc/out/fmriprep/sub-101/func/sub-101_task-rest_acq-128px_run-01_bold_space-T1w_brainmask.nii.gz as mask file - corrmaskthresh will be ignored
prefiltering to lfo band
Will do 3 processing passes
Will do 4 despeckling passes
Correlations will be calculated over range 10.0 to 10.0
Will prefilter fMRI data with a gaussian kernel of 2.5 mm
running single process - disabled shared memory use
setting internal precision to double
setting output precision to single
input file is NIFTI
oversample factor set to 4
1278900 spatial locations, 300 timepoints
startpoint set to minimum, (0)
endppoint set to maximum, ( 299 )
applying gaussian spatial filter to timepoints 0 to 299
Percent complete: [############################################################] 100.000%
validvoxels shape = 129597
original size = (1278900, 300) , trimmed size = (129597, 300)
no regressor file specified - will use the global mean regressor
used 60445 voxels to calculate global mean signal
regressor start time, end time, and step 0.0 600.0 2.0
first fMRI point is at 0.0 seconds relative to time origin
filtering to lfo band
applying trapezoidal antialiasing filter
allocating memory for correlation arrays (1278900, 0) (129597, 0)
*********************
Pass number 1
checking reference regressor autocorrelation properties
searching for sidelobes with amplitude > 0.1 with abs(lag) < 10.0 s
no sidelobes found in range
Significance estimation, pass 1
Traceback (most recent call last):
File "/home/despoB/dlurie/anaconda3/envs/rapidtide/bin/rapidtide2", line 4, in <module>
__import__('pkg_resources').run_script('rapidtide==1.7.0', 'rapidtide2')
File "/home/despoB/dlurie/anaconda3/envs/rapidtide/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg/pkg_resources/__init__.py", line 744, in run_script
File "/home/despoB/dlurie/anaconda3/envs/rapidtide/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg/pkg_resources/__init__.py", line 1499, in run_script
File "/home/despoB/dlurie/anaconda3/envs/rapidtide/lib/python3.6/site-packages/rapidtide-1.7.0-py3.6.egg/EGG-INFO/scripts/rapidtide2", line 2377, in <module>
main()
File "/home/despoB/dlurie/anaconda3/envs/rapidtide/lib/python3.6/site-packages/rapidtide-1.7.0-py3.6.egg/EGG-INFO/scripts/rapidtide2", line 1747, in main
rt_floattype=rt_floattype
File "/home/despoB/dlurie/anaconda3/envs/rapidtide/lib/python3.6/site-packages/rapidtide-1.7.0-py3.6.egg/rapidtide/nullcorrpass.py", line 248, in getNullDistributionData
rt_floattype=rt_floattype
File "/home/despoB/dlurie/anaconda3/envs/rapidtide/lib/python3.6/site-packages/rapidtide-1.7.0-py3.6.egg/rapidtide/corrfit.py", line 388, in onecorrfit
displayplots=displayplots)
File "/home/despoB/dlurie/anaconda3/envs/rapidtide/lib/python3.6/site-packages/rapidtide-1.7.0-py3.6.egg/rapidtide/fit.py", line 573, in findmaxlag_gauss
binwidth = thexcorr_x[1] - thexcorr_x[0]
IndexError: index 1 is out of bounds for axis 0 with size 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment