Skip to content

Commit

Permalink
Fix cytoscape network vertex labels
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjcroucher committed Aug 4, 2020
1 parent 896159b commit dcfca15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PopPUNK/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,11 @@ def outputsForCytoscape(G, clustering, outPrefix, epiCsv, queryList = None, suff
viz_vertex[vertex] = False
G.set_vertex_filter(viz_vertex)

# edit names
edited_names = isolateNameToLabel(G.vp.id)
for n,v in enumerate(G.vertices()):
G.vp.id[v] = edited_names[n]

# write graph file
if suffix is None:
graph_file_name = os.path.basename(outPrefix) + "_cytoscape.graphml"
Expand Down

0 comments on commit dcfca15

Please sign in to comment.