network.viz
class NetworkLayout(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases: StrEnum
, Enum
KamadaKawai = ‘kamada_kawai_layout’
Spectral = ‘spectral_layout’
Spring = ‘spring_layout’
create_cmap_from_list(array)
Function to create a cmap from a list of values (corresponding to a condition for each subject.) For example, subject with value = 0 will be mapped black, whereas subject = >1 will be mapped to different colors.
Parameters
array : Array of integers corresponding to condiditions (can be binary also.).
Returns
cmap : List containing all colors.
creating_node_colormap(percentile_dict)
Function to create a colormap for a set of nodes based on a percentile dictionary.
Parameters
percentile_dict : Percentile dictionary with keys identifying clusters.
Returns
cmap : List containing all colors.
membership_distribution(mat, output=’./membership_distribution.png’)
Function returning a plot of the distribution of the maximum membership values for each subject and the delta plot of the difference with the second highest membership from the fuzzy c-partitioned matrix.
Parameters
mat : Membership fuzzy c-partitioned matrix.
output : Output filename and path. Defaults to “./membership_distribution.png”.