Characterisation of network features
0
0
Entering edit mode
4.6 years ago

Hi.

I'm trying to obtain statistics to create a characterisation of network features. I want to create a table with a column for the feature and another column for the value found for the network.

This is what i have so far:

network_measures = {
    "n_nodes" : {},
    "n_edges" : {},
    "avg_degree" : {},
    "degree_dist" : {},
    #...
    }

nodes = gr.get_nodes()
network_measures["n_nodes"] = gr.size()[0]
network_measures["n_edges"] = gr.size()[1]
network_measures["avg_degree"] = gr.mean_degree()
network_measures["degree_dist"] = gr.prob_degree()

print(network_measures)

I don't know how to print the data into a table.

Ty

Python Gene Correlation Network table • 783 views
ADD COMMENT
0
Entering edit mode

This is not a bioinformatics question but a python programming one. Try the python channel on Stack Overflow.

ADD REPLY

Login before adding your answer.

Traffic: 2109 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6