networkx_connectivity Package

parser

class tvb.adapters.uploaders.networkx_connectivity.parser.NetworkxParser(view_model)[source]

Bases: object

This class reads content of a NetworkX stream and builds a Connectivity instance filled with details.

HEMISPHERE_RIGHT = 'right'
KEY_EDGE_TRACT = ['fiber_length_mean']
KEY_EDGE_WEIGHT = ['adc_mean', 'fiber_weight_mean']
KEY_NODE_COORDINATES = ['dn_position']
KEY_NODE_HEMISPHERE = ['dn_hemisphere']
KEY_NODE_LABEL = ['dn_name', 'dn_label']
KEY_NODE_REGION = ['dn_region']
OPERATORS = '[*-+:]'
REGION_CORTICAL = 'cortical'
parse(network)[source]

Populate Connectivity DataType from NetworkX object. Tested with results from Connectome Mapper Toolkit.

Parameters:

network – NetworkX graph

Returns:

Connectivity object