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.
To set the logging level simply call set_loggers_level() method with the desired level
from tvb.basic.logger.builder import set_loggers_level
import logging
#sets the console's logging level
set_loggers_level(logging.DEBUG)
%matplotlib widget
from tvb.simulator.lab import connectivity , plot_connectivity
conn = connectivity.Connectivity.from_file()
conn.configure()
def plot_with_weights(weights):
conn = connectivity.Connectivity.from_file()
conn.configure()
conn.weights = weights
plot_connectivity(conn, num="tract_mode", plot_tracts=False)
plot_with_weights(conn.scaled_weights(mode='tract'))
2023-03-03 15:44:57,024 - WARNING - tvb.basic.readers - File 'hemispheres' not found in ZIP. 2023-03-03 15:44:57,030 - WARNING - tvb.basic.readers - File 'hemispheres' not found in ZIP.
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())
2023-03-03 15:44:57,411 - WARNING - tvb.basic.readers - File 'hemispheres' not found in ZIP. 2023-03-03 15:44:57,512 - WARNING - tvb.basic.readers - File 'hemispheres' not found in ZIP. 2023-03-03 15:44:57,613 - WARNING - tvb.basic.readers - File 'hemispheres' not found in ZIP. 2023-03-03 15:44:57,790 - WARNING - tvb.basic.readers - File 'hemispheres' not found in ZIP.