tedana.io.writefeats

writefeats(data, mmix, mask, ref_img, suffix='')[source]

Converts data to component space with mmix 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
  • ref_img (str or img_like) – Reference image to dictate how outputs are saved to disk
  • suffix (str, optional) – Appended to name of saved files (before extension). Default: ‘’
Returns:

fname – Filepath to saved file

Return type:

str

Notes

This function writes out a file:

Filename Content
feats_[suffix].nii Z-normalized spatial component maps.