From a2db146496642fcfefbe8cbdf369d515b2a188f6 Mon Sep 17 00:00:00 2001
From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr>
Date: Fri, 26 Jun 2020 17:30:03 +0200
Subject: [PATCH] src/find_interaction_cluster/__main__.py: modification of
 main function to use multiple_community_launcher

---
 src/find_interaction_cluster/__main__.py | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/find_interaction_cluster/__main__.py b/src/find_interaction_cluster/__main__.py
index 283fcfb3..9c126dca 100644
--- a/src/find_interaction_cluster/__main__.py
+++ b/src/find_interaction_cluster/__main__.py
@@ -7,13 +7,17 @@ Description: Launch the script dedicated to find communities
 """
 
 
-from .community_finder import community_finder
+from .community_finder import multiple_community_launcher
 import lazyparser as lp
+from .config import ConfigGraph
+from typing import List
 
 
 @lp.parse
-def launcher(weight: int = 1, global_weight: int = 0,
-             project: str = "GSM1517081", same_gene: bool = True,
+def launcher(weight: List[int] = (1),
+             global_weight: List[int] = (0),
+             same_gene: bool = True,
+             ps: int = ConfigGraph.cpu,
              logging_level: str = "DISABLE"):
     """
     Script used to find communities inside  exon co-localized within a project
@@ -28,7 +32,8 @@ def launcher(weight: int = 1, global_weight: int = 0,
     same gene (True) or not (False) (default False)
     :param logging_level: The level of data to display (default 'DISABLE')
     """
-    community_finder(weight, global_weight, project, same_gene, logging_level)
+    multiple_community_launcher(ps, weight, global_weight, same_gene,
+                                logging_level)
 
 
 launcher()
\ No newline at end of file
-- 
GitLab