tedana.selection.selcomps

selcomps(seldict, mmix, mask, ref_img, manacc, n_echos, t2s, s0, olevel=2, oversion=99, filecsdata=True, savecsdiag=True, strict_mode=False)[source]

Labels components in mmix

Parameters:
  • seldict (dict) – As output from fitmodels_direct
  • mmix ((C x T) array_like) – Mixing matrix for converting input data to component space, where C is components and T is the number of volumes in the original data
  • mask ((S,) array_like) – Boolean mask array
  • ref_img (str or img_like) – Reference image to dictate how outputs are saved to disk
  • manacc (list) – Comma-separated list of indices of manually accepted components
  • n_echos (int) – Number of echos in original data
  • t2s ((S,) array_like) –
  • s0 ((S,) array_like) –
  • olevel (int, optional) – Default: 2
  • oversion (int, optional) – Default: 99
  • filecsdata (bool, optional) – Default: False
  • savecsdiag (bool, optional) – Default: True
  • strict_mode (bool, optional) – Default: False
Returns:

  • 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
  • ign (list) – Indices of ignored components in mmix