tedana.io
.writefeats¶
-
writefeats
(data, mmix, mask, ref_img, out_dir='.', 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 diskout_dir (
str
, optional) – Output directory.suffix (
str
, optional) – Appended to name of saved files (before extension). Default: ‘’
- Returns
fname (
str
) – Filepath to saved file
Notes
This function writes out a file:
Filename
Content
feats_[suffix].nii
Z-normalized spatial component maps.