Repository 'vgx_converter'
hg clone https://toolshed.g2.bx.psu.edu/repos/computationaltranscriptomics/vgx_converter

Changeset 9:26655854fac5 (2016-05-13)
Previous changeset 8:1ae351222569 (2016-05-10) Next changeset 10:2faeb500052d (2016-05-13)
Commit message:
Uploaded
modified:
vgx_converter.py
b
diff -r 1ae351222569 -r 26655854fac5 vgx_converter.py
--- a/vgx_converter.py Tue May 10 19:21:45 2016 -0400
+++ b/vgx_converter.py Fri May 13 02:40:31 2016 -0400
[
@@ -34,11 +34,11 @@
             if p1 not in ids:
                 ids[p1] = idc
                 idc = idc + 1
-                nodes.append({'id': ids[p1], 'name': p1 })
+                nodes.append({'id': str(ids[p1]), 'label': p1 })
             if p2 not in ids:
                 ids[p2] = idc
                 idc = idc + 1
-                nodes.append({'id': ids[p2], 'name': p2 })
+                nodes.append({'id': str(ids[p2]), 'label': p2 })
             
             links.append({'source': ids[p1], 'target': ids[p2]})
     f.close()