Skip to content

Commit

Permalink
Merge branch 'network_relabelling' of https://github.com/bacpop/PopPUNK
Browse files Browse the repository at this point in the history
… into network_relabelling
  • Loading branch information
nickjcroucher committed Nov 15, 2024
2 parents 76dc904 + e7be9d4 commit 171d698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PopPUNK/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def outputsForCytoscape(G, G_mst, isolate_names, clustering, outPrefix, epiCsv,
for v in G.vertices():
comp_filter[v] = (component_assignments[v] == component_idx)
# If using partial query graph find the component name from the clustering
if get_component_name and (component_assignments[v] == component_idx):
if get_component_name and comp_filter[v]:
example_isolate_name = seqLabels[int(v)]
component_name = clustering[example_cluster_title][example_isolate_name]
get_component_name = False
Expand Down

0 comments on commit 171d698

Please sign in to comment.