Skip to content
Snippets Groups Projects
Commit 697afec3 authored by Yoann Dufresne's avatar Yoann Dufresne
Browse files

louvain for evaluation

parent c475c1d3
No related branches found
No related tags found
No related merge requests found
......@@ -46,8 +46,8 @@ def deconvolve2(G,node):
return # nothing to deconvolve here
for node2,clique_id in cliques.items():
G.add_node(node+"-MI%d" % clique_id)
G.add_edge(node+"-MI%d" % clique_id, node2, contigs=(G[node][node2]['contigs'] if 'contigs' in G[node][node2] else ""))
G.add_node(node+".%d" % clique_id)
G.add_edge(node+".%d" % clique_id, node2, contigs=(G[node][node2]['contigs'] if 'contigs' in G[node][node2] else ""))
# for debugging
G2.nodes[node2]['mi'] = clique_id
......@@ -62,4 +62,4 @@ g_nodes = list(G.nodes())
for node in g_nodes:
deconvolve2(G,node)
nx.write_graphml(G,sys.argv[1]+".deconvolved.graphml")
nx.write_graphml(G,sys.argv[1]+".louvain-deconvolved.graphml")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment