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

src/find_interaction_cluster/sf_and_communities.py: call get_community -> get_communities_basefile

parent 6466b0ef
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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