Mercurial > repos > computationaltranscriptomics > vgx_converter
changeset 9:26655854fac5 draft
Uploaded
author | computationaltranscriptomics |
---|---|
date | Fri, 13 May 2016 02:40:31 -0400 |
parents | 1ae351222569 |
children | 2faeb500052d |
files | vgx_converter.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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()