Skip to content

Commit

Permalink
Remove redundancy
Browse files Browse the repository at this point in the history
Co-authored-by: Anmol Thapar <[email protected]>
  • Loading branch information
nickjcroucher and absternator authored Nov 15, 2024
1 parent d5fd966 commit e7be9d4
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 e7be9d4

Please sign in to comment.