Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry-Antipov committed Jan 25, 2025
1 parent 9d8a620 commit 7642ac9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/scripts/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def run_clustering (graph_gfa, mashmap_sim, hic_byread, output_dir, no_rdna, une
if v1 in G.nodes and v2 in G.nodes and matchGraph[v1][v2]['weight'] < 0:
if component_colors[v1] != component_colors[v2]:
logging_f.write(f"Adding graph link between homologous {v1} {v2}, components {component_colors[v1]} and {component_colors[v2]}\n")
G.add_edge(v1, v2)
# G.add_edge(v1, v2)



Expand Down Expand Up @@ -405,13 +405,12 @@ def run_clustering (graph_gfa, mashmap_sim, hic_byread, output_dir, no_rdna, une
break
logging_f.write(f'Currently {C.number_of_nodes()} in current component\n')


if C.number_of_nodes() > 1:
for u, v, w in matchGraph.edges.data("weight"):
'''for u, v, w in matchGraph.edges.data("weight"):
if u in C and v in C:
if w != None:
C.add_edge(u, v, weight=w)

C.add_edge(u, v, weight=w)'''


res = checkXYcomponent(current_component, matchGraph, G, edges)
Expand Down

0 comments on commit 7642ac9

Please sign in to comment.