Hi, Sorry for bringing up this very old thread, but I have a related problem, for which I couldn't find a solution with AFNI:
If you have a scan with very strong and prolonged BOLD response (e.g. pharmacological fMRI), you wouldn't want your detrending polynomial to be based on all datapoints.
E.g:
The blue line is the correct detrending line, (here with matlab, which allows excluding the timepoints with the large response from the calculation).
The red line is considering all datapoints, which is what AFNI does by default, and which in this case would be wrong.
How can I create this kind of behavior to get the blue line with 3dcalc or some other tool?
Edited 3 time(s). Last edit at 01/02/2018 12:51AM by paranoidandroid.