Replies: 1 comment
-
Dear Milad, You can do it using the import networx as nx
conn_mats = {}
connectivity_weights = ['FA_mean', 'ADC_mean', 'number_of_fibers']
G = nx.read_gpickle('path/to/connectome.gpickle')
for weight in connectivity_weights:
conn_mats[weight] = nx.to_numpy_array(G, weight=weight) which will store in You can have an example on how to handle the connectome file here in the documentation. Hope this helps, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Sebastian
I have just gotten some outputs of cmp3 (connectivity matrices) in the gpickle format and need to extract connectivity matrices base on the following parameters:
fa mean
adc mean
number of fibers
Can you help me?
Please help me
Thanks in advance
Best regards,
-Milad
Beta Was this translation helpful? Give feedback.
All reactions