From 1bb5612d2f443b1cacb3887ddfb7e79d0974f74f Mon Sep 17 00:00:00 2001
From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr>
Date: Tue, 19 Jan 2021 11:51:25 +0100
Subject: [PATCH] src/find_interaction_cluster/__main__.py: add display_size
 parameter

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

diff --git a/src/find_interaction_cluster/__main__.py b/src/find_interaction_cluster/__main__.py
index 21750ae9..19361fad 100644
--- a/src/find_interaction_cluster/__main__.py
+++ b/src/find_interaction_cluster/__main__.py
@@ -31,6 +31,7 @@ def launcher(weight: int = 1,
              html_fig: bool = False, feature: str = 'exon', region: str = '',
              component_type: str = 'nt',
              iteration: int = 1000, test_type: str = "lm",
+             display_size: bool = False,
              project: str = "GSM1018963_GSM1018964",
              logging_level: str = "DISABLE"):
     """
@@ -56,6 +57,8 @@ def launcher(weight: int = 1,
     (only used is global_weight = 0).
     :param test_type: The king of test to perform for frequency analysis. \
     (default 'lm') (choose from 'lm', 'permutation')
+    :param display_size: True to display the size of the community. \
+    False to display nothing. (default False)
     :param ps: The number of processes to use
     """
     logging_def(ConfigGraph.community_folder, __file__, logging_level)
@@ -67,11 +70,12 @@ def launcher(weight: int = 1,
         install_hipmcl("INFO")
     multiple_community_launcher(weight, global_weight, project, same_gene,
                                 html_fig, feature, logging_level)
-    multiple_stat_launcher(ps, weight, global_weight, project, same_gene,
-                           feature, logging_level)
+    # multiple_stat_launcher(ps, weight, global_weight, project, same_gene,
+    #                        feature, logging_level)
     multiple_nt_lm_launcher(ps, weight, global_weight, project,
                             same_gene, feature, region, component_type,
-                            test_type, iteration, logging_level)
+                            test_type, iteration, display_size,
+                            logging_level=logging_level)
     if feature == "gene":
         # ppi_stat_launcher(weight, global_weight, project, same_gene,
         #                   ConfigGraph.ppi_threshold, iteration,
-- 
GitLab