fsl_bptf: 'bptf' function from FSL

View source: R/fsl_bptf.R

fsl_bptfR Documentation

bptf function from FSL

Description

Copy of bptf highpass filter from FSL. The results are very similar but not identical.

Usage

fsl_bptf(orig_data, HP_sigma = 2000, LP_sigma = NULL)

Arguments

orig_data

T \times V data matrix whose columns will be detrended

HP_sigma

The frequency parameter, sigma, for the highpass filter. Recommended HP_sigma: 1/(2*f*TR), where f is the cutoff filter in Hz and TR is the time resolution in seconds (See jiscmail link in function description). Default: 2000.

LP_sigma

The frequency parameter, sigma, for the lowpass filter.

Details

Sources: https://cpb-us-w2.wpmucdn.com/sites.udel.edu/dist/7/4542/files/2016/09/fsl_temporal_filt-15sywxn.m https://github.com/rordenlab/niimath/blob/master/src/coreFLT.c#L1935 https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=FSL;f6fd75a6.1709

Value

The data with detrended columns

References

  • Jenkinson, M., Beckmann, C. F., Behrens, T. E. J., Woolrich, M. W. & Smith, S. M. FSL. NeuroImage 62, 782-790 (2012).

Examples

fsl_bptf(matrix(rnorm(700), nrow=100))

fMRItools documentation built on April 12, 2025, 1:32 a.m.