Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkyu committed Dec 8, 2018
1 parent de4e141 commit 3bf6422
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ddot/Ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -3808,7 +3808,7 @@ def to_NdexGraph(self,
if name is not None:
G.set_name(name)
if description is not None:
G.set_network_attribute('Description', description)
G.set_network_attribute('description', description)

if style:
import ndex.beta.toolbox as toolbox
Expand Down Expand Up @@ -4150,7 +4150,7 @@ def f(x):

G = nx_to_NdexGraph(G_nx)
G.set_name('%s supporting network for %s' % (name, t))
G.set_network_attribute('Description', '%s supporting network for %s' % (name, t))
G.set_network_attribute('description', '%s supporting network for %s' % (name, t))
G.set_network_attribute('Main Feature', main_feature)
for f in features:

Expand Down
1 change: 1 addition & 0 deletions ddot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ def get_passthrough_style():
MONARCH_DISEASE_GENE_URL = 'http://public.ndexbio.org/v2/network/bce041f4-f739-11e8-aaa6-0ac135e8bacf'
MONARCH_DISEASE_GENE_SLIM_URL = 'http://public.ndexbio.org/v2/network/aba9e837-f73b-11e8-aaa6-0ac135e8bacf'
FANGO_URL = "http://public.ndexbio.org/v2/network/0fb9fec3-f772-11e8-aaa6-0ac135e8bacf"
FANGO_DATA_URL = "http://public.ndexbio.org/#/network/84898ca0-fa98-11e8-8438-0ac135e8bacf"
3 changes: 2 additions & 1 deletion examples/Load_example_datasets.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@
"ExecuteTime": {
"end_time": "2018-12-07T22:16:41.167388Z",
"start_time": "2018-12-07T22:16:35.553893Z"
}
},
"collapsed": true
},
"outputs": [],
"source": [
Expand Down
2 changes: 1 addition & 1 deletion examples/Make_disease_gene_ontologies.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@
"source": [
"# Download a table containing multiple types of gene-gene interactions, which were preformatted and uploaded to NDEx for the Fanconi Anemia example.\n",
"from ndex.networkn import NdexGraph\n",
"G_ndex = NdexGraph(server='http://test.ndexbio.org', uuid='9412e430-02f1-11e8-bd69-0660b7976219')\n",
"G_ndex = NdexGraph(server=ddot.parse_ndex_server(ddot.FANGO_DATA_URL), uuid=ddot.parse_ndex_uuid(ddot.FANGO_DATA_URL))\n",
"G = ddot.NdexGraph_to_nx(G_ndex)\n",
"gene_network_data = ddot.nx_edges_to_pandas(G)\n",
"gene_network_data.index.names = ['Gene1', 'Gene2']\n",
Expand Down

0 comments on commit 3bf6422

Please sign in to comment.