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

src/find_interaction_cluster/__main__.py: script that launches ppi interaction

parent ddabfd83
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ from typing import List
from .install_hipMCL import install_hipmcl
from .sf_and_communities import multiple_stat_launcher
from .nt_and_community import multiple_nt_lmm_launcher
from .create_ppi_files import ppi_stat_launcher
import logging
from ..logging_conf import logging_def
......@@ -24,6 +25,7 @@ def launcher(weight: List[int] = (1),
same_gene: bool = True,
ps: int = ConfigGraph.cpu,
html_fig: bool = False, feature: str = 'exon', region: str = '',
iteration_ppi: int = 1000,
logging_level: str = "DISABLE"):
"""
Script used to find communities inside exon co-localized within a project
......@@ -41,6 +43,8 @@ def launcher(weight: List[int] = (1),
:param region: The region of a gene to analyse (used only if feature \
is 'gene') (default '').
:param logging_level: The level of data to display (default 'DISABLE')
:param iteration_ppi: the number of iteration for ppi analysis
:param ps: The number of processes to use
"""
logging_def(ConfigGraph.community_folder, __file__, logging_level)
if feature == "gene" and not same_gene:
......@@ -56,6 +60,10 @@ def launcher(weight: List[int] = (1),
multiple_nt_lmm_launcher(ps, weight, global_weight, same_gene, feature,
region,
logging_level)
if feature == "gene":
ppi_stat_launcher(ps, weight, global_weight, same_gene,
ConfigGraph.ppi_threshold, iteration_ppi,
logging_level)
launcher()
\ No newline at end of file
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