Skip to content

Commit

Permalink
Added degree visualization
Browse files Browse the repository at this point in the history
Using the recently added hetio.stats module:
hetio/hetnetpy@1f286f6
  • Loading branch information
dhimmel committed Aug 11, 2015
1 parent 9986ecb commit 7c718f1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions integrate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2427,6 +2427,51 @@
"path = 'data/graph.json.gz'\n",
"hetio.readwrite.write_json(graph, path)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Network visualizations and stats"
]
},
{
"cell_type": "code",
"execution_count": 114,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"<module 'hetio.stats' from '/home/dhimmels/Documents/github/hetio/hetio/stats.py'>"
]
},
"execution_count": 114,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import hetio.stats\n",
"import seaborn\n",
"%matplotlib inline\n",
"import imp\n",
"imp.reload(hetio.stats)"
]
},
{
"cell_type": "code",
"execution_count": 116,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"# Create and save degree distribution vizualizations\n",
"hetio.stats.plot_degrees(graph, 'viz/degrees.pdf')"
]
}
],
"metadata": {
Expand Down
Binary file added viz/degrees.pdf
Binary file not shown.

0 comments on commit 7c718f1

Please sign in to comment.