From c31e354d663e7857d56535c372cb4ecd32af476c Mon Sep 17 00:00:00 2001
From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr>
Date: Mon, 6 Jul 2020 16:11:27 +0200
Subject: [PATCH] src/find_interaction_cluster/__main__.py: launch installation
 of hipMCL before searching for communities

---
 src/find_interaction_cluster/__main__.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/find_interaction_cluster/__main__.py b/src/find_interaction_cluster/__main__.py
index 4cbe6ad3..da3fd7e2 100644
--- a/src/find_interaction_cluster/__main__.py
+++ b/src/find_interaction_cluster/__main__.py
@@ -11,6 +11,7 @@ from .community_finder import multiple_community_launcher
 import lazyparser as lp
 from .config import ConfigGraph
 from typing import List
+from .install_hipMCL import install_hipmcl
 
 
 @lp.parse
@@ -30,10 +31,12 @@ def launcher(weight: List[int] = (1),
     seen in `global_weight` project are taken into account (default 0)
     :param project: The name of the project of interest (default GSM1517081)
     :param same_gene: Say if we consider as co-localised, exons within the \
-    same gene (True) or not (False) (default False)
+    same gene (True) or not (False) (default True)
     :param  html_fig: True to display the html figure (default False).
     :param logging_level: The level of data to display (default 'DISABLE')
     """
+    if not ConfigGraph.get_hipmcl_prog().is_file():
+        install_hipmcl()
     multiple_community_launcher(ps, weight, global_weight, same_gene, html_fig,
                                 logging_level)
 
-- 
GitLab