brainconn.centrality
.gateway_coef_sign¶
-
gateway_coef_sign
(W, ci, centrality_type='degree')[source]¶ The gateway coefficient is a variant of participation coefficient. It is weighted by how critical the connections are to intermodular connectivity (e.g. if a node is the only connection between its module and another module, it will have a higher gateway coefficient, unlike participation coefficient).
Parameters: - W (NxN
numpy.ndarray
) – undirected signed connection matrix - ci (Nx1
numpy.ndarray
) – community affiliation vector - centrality_type (enum) – ‘degree’ - uses the weighted degree (i.e, node strength) ‘betweenness’ - uses the betweenness centrality
Returns: - Gpos (Nx1
numpy.ndarray
) – gateway coefficient for positive weights - Gneg (Nx1
numpy.ndarray
) – gateway coefficient for negative weights
References
[1] Vargas ER, Wahl LM, Eur Phys J B (2014) 87:1-10 - W (NxN