Connectivity normalization

With significant variability between methods of obtaining structural connectivity, it is often useful to normalize, in one sense or another, the connectivity when comparing, for example, across subjects, or standardizing parameter ranges.

In [1]:
%pylab nbagg
from tvb.simulator.lab import connectivity, plot_connectivity

conn = connectivity.Connectivity(load_default=True)
conn.configure()

def plot_with_weights(weights):
    conn = connectivity.Connectivity(load_default=True)
    conn.configure()
    conn.weights = weights
    plot_connectivity(conn, num="tract_mode", plot_tracts=False)

plot_with_weights(conn.scaled_weights(mode='tract'))
In [2]:
plot_with_weights(conn.scaled_weights(mode='region'))
plot_with_weights(conn.scaled_weights(mode='none'))
plot_with_weights(conn.transform_binarize_matrix())
plot_with_weights(conn.transform_remove_self_connections())