tedana.gscontrol.gscontrol_raw

gscontrol_raw(catd, optcom, n_echos, ref_img, out_dir='.', dtrank=4)[source]

Removes global signal from individual echo catd and optcom time series

This function uses the spatial global signal estimation approach to to removal global signal out of individual echo time series datasets. The spatial global signal is estimated from the optimally combined data after detrending with a Legendre polynomial basis of order = 0 and degree = dtrank.

Parameters
  • catd ((S x E x T) array_like) – Input functional data

  • optcom ((S x T) array_like) – Optimally combined functional data (i.e., the output of make_optcom)

  • n_echos (int) – Number of echos in data. Should be the same as E dimension of catd

  • ref_img (str or img_like) – Reference image to dictate how outputs are saved to disk

  • out_dir (str, optional) – Output directory.

  • dtrank (int, optional) – Specifies degree of Legendre polynomial basis function for estimating spatial global signal. Default: 4

Returns

  • dm_catd ((S x E x T) array_like) – Input catd with global signal removed from time series

  • dm_optcom ((S x T) array_like) – Input optcom with global signal removed from time series