bbfrederick / rapidtide

rapidtide - a suite of programs for doing time lag correlation analysis on fMRI data
Apache License 2.0
75 stars 14 forks source link

wiener deconvolution for response function per voxel, rapidtide2x #29

Open ZieroNLD opened 4 years ago

ZieroNLD commented 4 years ago

Describe the bug tried the wiener deconvolution option in rapidtide2x (1.9.1), unfortunately the program crashed is this option working at the moment? thanks

To Reproduce commandline I ran: rapidtide2x filtered_func_data.nii.gz RAPIDTIDE2x_lean_p2_deconv/final --datatstep=3 -T --noglm -T --regressor=EtCO2_trace_norm.txt --passes=2 --wiener --psdfilter --nprocs=10

Screenshots from the output shown in the terminal:

Wiener deconvolution Traceback (most recent call last): File "/home/username/anaconda3/bin/rapidtide2x", line 4, in import('pkg_resources').run_script('rapidtide==1.9.0', 'rapidtide2x') File "/home/username/anaconda3/lib/python3.7/site-packages/pkg_resources/init.py", line 667, in run_script self.require(requires)[0].run_script(script_name, ns) File "/home/username/anaconda3/lib/python3.7/site-packages/pkg_resources/init.py", line 1463, in run_script exec(code, namespace, namespace) File "/home/username/anaconda3/lib/python3.7/site-packages/rapidtide-1.9.0-py3.7.egg/EGG-INFO/scripts/rapidtide2x", line 31, in rapidtide2x_workflow.rapidtide_main() File "/home/username/anaconda3/lib/python3.7/site-packages/rapidtide-1.9.0-py3.7.egg/rapidtide/workflows/rapidtide2x.py", line 2362, in rapidtide_main rt_floattype=rt_floattype TypeError: wienerpass() missing 5 required positional arguments: 'r2value', 'fitcoff', 'fitNorm', 'datatoremove', and 'filtereddata'

bbfrederick commented 4 years ago

That should really be in experimental options, rather than miscellaneous. I never really finalized that feature, and I haven't tested it for a while in the face of some internal changes. I'll see if I can at least get it functional again, though.