From 4a9ae1f4bdcca1ae84229e7e34321c45e2bb44b1 Mon Sep 17 00:00:00 2001 From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr> Date: Tue, 19 Jan 2021 14:28:04 +0100 Subject: [PATCH] src/find_interaction_cluster/nt_and_community.py: fix create_outfiles function --- src/find_interaction_cluster/nt_and_community.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/find_interaction_cluster/nt_and_community.py b/src/find_interaction_cluster/nt_and_community.py index cb855ff0..c38f4f87 100644 --- a/src/find_interaction_cluster/nt_and_community.py +++ b/src/find_interaction_cluster/nt_and_community.py @@ -278,7 +278,7 @@ def create_outfiles(project: str, weight: int, global_weight: int, outfolder = f"community_enrichment/{cpnt_type}_analysis" if community_file != "": - cn = Path(outfolder).name.replace(".txt", "") + cn = Path(community_file).name.replace(".txt", "") base = ConfigGraph.output_folder / outfolder / f"custom_{cn}" base.mkdir(exist_ok=True, parents=True) outfile = base / f"{cpnt}-{cpnt_type}_stat_{test_type}.txt" -- GitLab