arielletambini / denoiser

Nuisance removal tool for fMRI data
Apache License 2.0
54 stars 18 forks source link

ValueError: Digital filter critical frequencies must be 0 < Wn < 1 #40

Open juliapottkaemper opened 2 years ago

juliapottkaemper commented 2 years ago

Hey!

I am having trouble running denoiser.. I get the following error: ValueError: Digital filter critical frequencies must be 0 < Wn < 1 My code is as follows: run_denoise.py \ $raw/$sub/$ses/func/sub-006_ses-01_task-rest_space-MNI152NLin6Asym_desc-smoothAROMAnonaggr_bold.nii.gz $raw/$sub/$ses/func/sub-006_ses-01_task-rest_desc-confounds_timeseries.tsv $raw/denoised \ --col_names csf white_matter \ --hp_filter 0.009 \ --lp_filter 0.8 \ --out_figure_path $raw/denoised/$sub/$ses

I specified the high pass and low pass filter options as suggested. I have a feeling that something goes wrong while selecting the high pass filter as of the following output that I get:

of TRs: 160

of Confound Regressors: 2 [SELECTED regressors in CSV]

of High-pass Filter Regressors: 0

/data/jcpottkamper/miniconda3/envs/fmriprep/bin/run_denoise.py:114: RuntimeWarning: divide by zero encountered in true_divide Fs = 1. / TR

Could you help me please?

Cheers, Julia

manzouri commented 2 years ago

@juliapottkaemper , Hi Julia, did you get any response regarding this issue?