tedana.io.write_split_ts

write_split_ts(data, mmix, mask, comptable, io_generator, echo=0)[source]

Splits data into denoised / noise / ignored time series and saves to disk

Parameters
  • data ((S x T) array_like) – Input time series

  • mmix ((C x T) array_like) – Mixing matrix for converting input data to component space, where C is components and T is the same as in data

  • mask ((S,) array_like) – Boolean mask array

  • io_generator (tedana.io.OutputGenerator) – Reference image to dictate how outputs are saved to disk

  • out_dir (str, optional) – Output directory.

  • echo (:obj: int, optional) – Echo number to generate filenames, used by some verbose functions. Default 0.

Returns

varexpl (float) – Percent variance of data explained by extracted + retained components

Notes

This function writes out several files:

Filename

Content

[prefix]Accepted_bold.nii.gz

High-Kappa time series.

[prefix]Rejected_bold.nii.gz

Low-Kappa time series.

[prefix]Denoised_bold.nii.gz

Denoised time series.