brainstat.context.resting.yeo_networks_associations

brainstat.context.resting.yeo_networks_associations(data, template='fsaverage5', seven_networks=True, data_dir=None, reduction_operation=<function nanmean>)[source]

Computes association

Parameters
  • data (ArrayLike) – Data to be summarized in the Yeo networks in a sample-by-feature format.

  • template (str, optional) – Surface template. Valid values are “fsaverage5”, “fsaverage”, and “fslr32k”, “civet41k”, and “civet164k”, by default “fsaverage5”.

  • seven_networks (bool, optional) – If true, uses the 7 network parcellation, otherwise uses the 17 network parcellation, by default True.

  • data_dir (str, Path, optional) – Data directory to store the Yeo network files, by default $HOME_DIR/brainstat_data/parcellation_data.

  • reduction_operation (str, callable, optional) – How to summarize data. If str, options are: {‘min’, ‘max’, ‘sum’, ‘mean’, ‘median’, ‘mode’, ‘average’}. If callable, it should receive a 1D array of values, array of weights (or None) and return a scalar value. Default is ‘mean’.

Returns

np.ndarray – Summary statistic in the yeo networks.