tedana.utils.io.writeresults

writeresults(ts, mask, comptable, mmix, n_vols, acc, rej, midk, empty, ref_img)[source]

Denoises ts and saves all resulting files to disk

Parameters:
  • ts ((S x T) array_like) – Time series to denoise and save to disk
  • mask ((S,) array_like) – Boolean mask array
  • comptable ((N x 5) array_like) – Array with columns denoting (1) index of component, (2) Kappa score of component, (3) Rho score of component, (4) variance explained by component, and (5) normalized variance explained by component
  • 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
  • acc (list) – Indices of accepted (BOLD) components in mmix
  • rej (list) – Indices of rejected (non-BOLD) components in mmix
  • midk (list) – Indices of mid-K (questionable) components in mmix
  • empty (list) – Indices of ignored components in mmix
  • ref_img (str or img_like) – Reference image to dictate how outputs are saved to disk