binarize_magnitude¶
- binarize_magnitude(netin, level, sign='pos')[source]¶
Make binary network based on magnitude thresholding.
- Parameters:
netin (array or dict) – Network (graphlet or contact representation),
level (float) – Magnitude level threshold at.
sign (str, default='pos') – States the sign of the thresholding. Can be ‘pos’, ‘neg’ or ‘both’. If “neg”, only negative values are thresholded and vice versa.
axis (str, default='time') – Specify which dimension thresholding is applied against. Only ‘time’ option exists at present.
- Returns:
netout – Binarized network
- Return type:
array or dict (depending on input)