Detrend Time Series for NIML Dataset

Hello. I’m a long-time AFNI user, but relatively new to SUMA. I’m working with a surface dataset in which I want to do all preprocessing in afni/suma before uploading to matlab for an encoding model analysis. In the past I have used 3dDetrend for volumetric data. Is there an equivalent method for detrending a dataset in niml format? Is the best option to save the dataset as a 1D file and then use 3dDetrend? Would using the -detpoly and -detprefix flags in SurfFWHM produce the same outcome? Thanks in advance!


Hi Anthony,

3dDetrend should work fine with niml formatted datasets if they have a
proper time axis. How did you create yours?

Note that can do surface-based analysis.

  • rick