graphpype.nodes.graph_stats.
ShuffleMatrix
(from_file=None, resource_monitor=None, ignore_exception=False, **inputs)[source]¶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
Attributes: |
|
---|
Methods
aggregate_outputs ([runtime, needed_outputs]) |
Collate expected outputs and check for existence |
help ([returnhelp]) |
Prints class help |
input_spec |
alias of ShuffleMatrixInputSpec |
load_inputs_from_json (json_file[, overwrite]) |
A convenient way to load pre-set inputs from a JSON file. |
output_spec |
alias of ShuffleMatrixOutputSpec |
run ([cwd, ignore_exception]) |
Execute this interface. |
save_inputs_to_json (json_file) |
A convenient way to save current inputs to a JSON file. |
__init__
(from_file=None, resource_monitor=None, ignore_exception=False, **inputs)¶Subclasses must implement __init__
Methods
__init__ ([from_file, resource_monitor, …]) |
Subclasses must implement __init__ |
aggregate_outputs ([runtime, needed_outputs]) |
Collate expected outputs and check for existence |
help ([returnhelp]) |
Prints class help |
load_inputs_from_json (json_file[, overwrite]) |
A convenient way to load pre-set inputs from a JSON file. |
run ([cwd, ignore_exception]) |
Execute this interface. |
save_inputs_to_json (json_file) |
A convenient way to save current inputs to a JSON file. |
Attributes
always_run |
Should the interface be always run even if the inputs were not changed? Only applies to interfaces being run within a workflow context. |
can_resume |
Defines if the interface can reuse partial results after interruption. |
references_ |
|
resource_monitor |
|
version |
interfaces should implement a version property |