Skip to content
Snippets Groups Projects
Commit dea5098c authored by nfontrod's avatar nfontrod
Browse files

src/find_interaction_cluster/community_finder.py: fix community_finder function

parent 8929cc2b
No related branches found
No related tags found
No related merge requests found
...@@ -301,7 +301,7 @@ def write_interaction_file(arr_interaction: np.array, project: str, ...@@ -301,7 +301,7 @@ def write_interaction_file(arr_interaction: np.array, project: str,
same_gene, "_interation.txt") same_gene, "_interation.txt")
result = ConfigGraph.get_community_file(project, weight, global_weight, result = ConfigGraph.get_community_file(project, weight, global_weight,
same_gene, same_gene,
"_interation_result.txt") "_communities.txt")
with outfile.open('w') as f: with outfile.open('w') as f:
for exon1, exon2, cweight in arr_interaction: for exon1, exon2, cweight in arr_interaction:
if not use_weight: if not use_weight:
...@@ -337,7 +337,7 @@ def community_finder(weight: int, global_weight: int, project: str = "", ...@@ -337,7 +337,7 @@ def community_finder(weight: int, global_weight: int, project: str = "",
weight, global_weight, weight, global_weight,
same_gene) same_gene)
graph = create_graph(interaction) graph = create_graph(interaction)
df, dic_community = find_communities2(graph, project, outfile, result_file) df, dic_community = find_communities(graph, project, outfile, result_file)
outfiles = [ConfigGraph.get_community_file( outfiles = [ConfigGraph.get_community_file(
project, weight, global_weight, same_gene, ext) project, weight, global_weight, same_gene, ext)
for ext in ['.txt', '.cyjs', '.html']] for ext in ['.txt', '.cyjs', '.html']]
......
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