From b76ca88f8232e91cac315ccd08bfdfc103ee721c Mon Sep 17 00:00:00 2001
From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr>
Date: Tue, 19 Jan 2021 11:48:28 +0100
Subject: [PATCH] src/find_interaction_cluster/sf_and_communities.py: call
 get_community -> get_communities_basefile

---
 src/find_interaction_cluster/sf_and_communities.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/find_interaction_cluster/sf_and_communities.py b/src/find_interaction_cluster/sf_and_communities.py
index d81dc593..41728da8 100644
--- a/src/find_interaction_cluster/sf_and_communities.py
+++ b/src/find_interaction_cluster/sf_and_communities.py
@@ -9,9 +9,8 @@ are often regulated by a splicing factor
 
 from typing import List, Tuple, Dict
 import sqlite3
-from .config import ConfigGraph
+from .config import ConfigGraph, get_communities_basefile
 from ..figures_utils.exons_interactions import get_every_events_4_a_sl
-from .community_finder import get_communities
 import pandas as pd
 import numpy as np
 from itertools import product
@@ -298,8 +297,8 @@ def get_stat4communities(sf_name: str, reg: str,
     cnx = sqlite3.connect(ConfigGraph.db_file)
     result = ConfigGraph.get_community_file(project, weight, global_weight,
                                             same_gene, feature,
-                                            "_communities.txt")
-    communities = get_communities(result, 0)
+                                            ".txt")
+    communities = get_communities_basefile(result, 0)
     regulated_dic, number = get_every_events_4_a_sl(cnx, sf_name, reg)
     reg_ft = regulated_dic[sf_name + "_" + reg]
     reg_ft = adapt_regulated_list(cnx, reg_ft, sf_name, reg, feature)
-- 
GitLab