Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
In BCT many algorithms can be applied only on BU ... WD matrices.
Currently we do no checking in TVB if the input Connectivity is compliant with the algorithm.
We could: add a flag on a connectivity (directed /undirected ) and add filters in algorithms.
For the B / W algorithms we could add "to_binary" or "normalize_weights" methods on a Connectivity.
This will not solve the Portlets!!! but the rest of places wil be safe.
In BCT many algorithms can be applied only on BU ... WD matrices. Currently we do no checking in TVB if the input Connectivity is compliant with the algorithm. We could: add a flag on a connectivity (directed /undirected ) and add filters in algorithms. For the B / W algorithms we could add "to_binary" or "normalize_weights" methods on a Connectivity. This will not solve the Portlets!!! but the rest of places wil be safe.
Description
Possible solution:
Part1: We should write a method "normalized_weights" on Connectivity DataType and modify the bct_*.xml interface files to replace currently used Connectivity.weight field with the new Connectivity.normalized_weights.
We would then need a full list of other algorithms besides Clustering Coeficient where this is needed.
Part2: For Unidirectional / Bidirectional algorithms, a new field should be added on Connectivity DataType, and a filter should make sure only compatible matrices are available for selection in UI.