tedana.metrics.dependence.threshold_to_match

threshold_to_match(maps, n_sig_voxels, mask, ref_img, csize=None)[source]

Cluster-extent threshold a map to target number of significant voxels.

Resulting maps have roughly the requested number of significant voxels, after cluster-extent thresholding.

Parameters:
  • maps ((M x C) array_like) – Statistical maps to be thresholded.

  • n_sig_voxels ((C) array_like) – Number of significant voxels to threshold to, for each map in maps.

  • mask ((S) array_like) – Binary mask.

  • ref_img (img_like) – Reference image to convert to niimgs with.

  • csize (int or None, optional) – Minimum cluster size. If None, standard thresholding (non-cluster-extent) will be done. Default is None.

Returns:

clmaps ((S x C) array_like) – Cluster-extent thresholded and binarized maps.