Graph_stats¶
Preparing stats and permutations
SwapLists¶
- 
class neuropype_graph.nodes.graph_stats.SwapLists(from_file=None, **inputs)¶
- Description: - Exchange lists of files in a random fashion (based on seed value) Typically, cor_mat, coords -> 2, or Z_list, node_corres and labels -> 3 - If seed = -1, no swap is done (keep original values) - Inputs: - list_of_lists:
- type = List of List of List of Files,
- exists=True,
- desc=’list of all correlation matrice files (in npy format) for each subject’,
- mandatory=True
 
- seed:
- type = Int, default = -1, desc=’value for seed’, mandatory=True, usedefault = True
 - Outputs: - permut_lists_of_lists:
- type = List of List of List of Files ,exists=True, desc=’swapped list of all correlation matrice files (in npy format) for each subject’, mandatory=True
 
ShuffleMatrix¶
- 
class neuropype_graph.nodes.graph_stats.ShuffleMatrix(from_file=None, **inputs)¶
- Description: - Compute randomisation of matrix, keeping the same distribution - If seed = -1, no shuffling is done (keep original values) - Inputs: - original_matrix_file:
- type = File, exists=True, desc=’original matrix in npy format’, mandatory=True
- seed:
- type = Int, default = -1, desc=’value for seed’, mandatory=True, usedefault = True
 - Outputs: - shuffled_matrix_file: type = File, exists=True, desc=’shuffled matrix in npy format’, mandatory=True