dPys / PyNets

A Reproducible Workflow for Structural and Functional Connectome Ensemble Learning
https://pynets.readthedocs.io/en/latest/
118 stars 41 forks source link

Node metrics? #42

Closed mick-d closed 6 years ago

mick-d commented 6 years ago

Great package!

When looking at the network metrics (master/pynets/netstats.py), I could only see global metrics (i.e. one scalar for the whole network). How would one use PyNets code to get local metrics, i.e. at node level with one metric for each node, such as the ones below?

dPys commented 6 years ago

Some node metrics are already available :) You can open the pickle file 997_SomMotA_net_mets_sps_cov_0.95 for the example subject (997 master/tests/examples/997) to see what this looks like. PyNets calculates eigenvec. centrality, betweenness centrality, communicability centrality, and rich club coefficient (See lines 672-799 of netstats.py). You can expect to see more nodal metrics including the ones you noted in the next version (i.e. the formal "beta" version) to be released in a few weeks...

Thanks for your suggestions!

dPys commented 6 years ago

Hey @mick-d

See development branch.

mick-d commented 6 years ago

Awesome, thanks!