@edickie I downloaded ciftify using pip install ciftify to be run on windows subsystem for linux. I have my fmri data preprocessed using fmriprep and obtained as a cifti dtseries file. I want to perform nuissance regression of motion regressors and few other covariates using cifti_clean_img.
The command I gave was:
ciftify_clean_img input.dtseries.nii --output-file=output.dtseries.nii --confounds-tsv=confound_file.tsv
I obtained the following error:
/home/shilpitju/.local/lib/python2.7/site-packages/nilearn/init.py:73: DeprecationWarning: Python2 support is deprecated and will be removed in the next release. Consider switching to Python 3.6 or 3.7.
_python_deprecation_warnings()
Traceback (most recent call last):
File “/home/shilpitju/.local/bin/ciftify_clean_img”, line 11, in
load_entry_point(‘ciftify==2.3.3’, ‘console_scripts’, ‘ciftify_clean_img’)()
File “/home/shilpitju/.local/lib/python2.7/site-packages/ciftify/bin/ciftify_clean_img.py”, line 376, in main
ret = run_ciftify_clean_img(arguments, tmpdir)
File “/home/shilpitju/.local/lib/python2.7/site-packages/ciftify/bin/ciftify_clean_img.py”, line 254, in run_ciftify_clean_img
clean_output = clean_image_with_nilearn(trimmed_nifti, confound_signals, settings)
File “/home/shilpitju/.local/lib/python2.7/site-packages/ciftify/bin/ciftify_clean_img.py”, line 348, in clean_image_with_nilearn
t_r=settings.func.tr)
File “/home/shilpitju/.local/lib/python2.7/site-packages/nilearn/image/image.py”, line 926, in clean_img
ensure_finite=ensure_finite)
File “/home/shilpitju/.local/lib/python2.7/site-packages/nilearn/signal.py”, line 492, in clean
raise ValueError(“Confound signal has an incorrect length”)
ValueError: Confound signal has an incorrect length
Can you please help me running the command.
Thanks and regards,
Shilpi Modi