From 4e1e57415767b487befa559153479e1e16bb40b8 Mon Sep 17 00:00:00 2001
From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr>
Date: Mon, 23 Nov 2020 17:18:24 +0100
Subject: [PATCH] src/find_interaction_cluster/nt_and_community.py: change in
 output folder from sf_community_enrichment to community_enrichment

---
 src/find_interaction_cluster/nt_and_community.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/find_interaction_cluster/nt_and_community.py b/src/find_interaction_cluster/nt_and_community.py
index a899ebac..9046ae96 100644
--- a/src/find_interaction_cluster/nt_and_community.py
+++ b/src/find_interaction_cluster/nt_and_community.py
@@ -407,7 +407,7 @@ def get_stat_nt_communities(df: pd.DataFrame, project: str, weight: int,
                                              global_weight,
                                              same_gene, feature,
                                              f"{nt}_stat_{test_type}.txt",
-                                             "sf_community_enrichment")
+                                             "community_enrichment")
     nfolder = outfile.parent / "nt_analysis"
     nfolder.mkdir(exist_ok=True, parents=True)
     noutfile = nfolder / outfile.name
@@ -420,7 +420,7 @@ def get_stat_nt_communities(df: pd.DataFrame, project: str, weight: int,
                                                   same_gene, feature,
                                                   f"{nt}_VS_CTRL_stat_"
                                                   f"{test_type}.txt",
-                                                  "sf_community_enrichment")
+                                                  "community_enrichment")
     if test_type == "lmm":
         rdf = lmm_with_ctrl(df, feature, region, nt, outfile)
     else:
@@ -537,7 +537,7 @@ def multiple_nt_lmm_launcher(ps: int,
     for project, weight, nt in condition:
         nfile_table = ConfigGraph.get_community_file(
             project, weight, global_weight, same_gene, feature,
-            f"_nt_table.txt", "sf_community_enrichment")
+            f"_nt_table.txt", "community_enrichment")
         df.to_csv(nfile_table, sep="\t", index=False)
         args = [df, project, weight, global_weight, same_gene, nt, df_ctrl,
                 dic_com, feature, region, test_type, iteration]
@@ -551,7 +551,7 @@ def multiple_nt_lmm_launcher(ps: int,
                                              global_weight,
                                              same_gene, feature,
                                              f"lmm-nt_stat.txt",
-                                             "sf_community_enrichment")
+                                             "community_enrichment")
     nfolder = outfile.parent / "nt_analysis"
     noutfile = nfolder / outfile.name
     fdf.to_csv(noutfile, sep="\t", index=False)
-- 
GitLab