From 07b3e7709da86751db3babcd2bef37458fca2076 Mon Sep 17 00:00:00 2001
From: George Marchment <georgemarchment@yahoo.fr>
Date: Wed, 7 Feb 2024 13:23:16 +0100
Subject: [PATCH] Remove some files from output (outdated)

---
 src/call.py          |  2 +-
 src/nextflow_file.py | 30 +++++++++++++++---------------
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/call.py b/src/call.py
index 7740b65..826778d 100644
--- a/src/call.py
+++ b/src/call.py
@@ -427,7 +427,7 @@ class Call(Executor):
     def initialise(self):
         self.analyse_call(self.get_code(clean_pipe = True))
         self.write_summary()
-        self.add_call_count()
+        #self.add_call_count()
         
 
 
diff --git a/src/nextflow_file.py b/src/nextflow_file.py
index 6e94bfc..771a3e1 100644
--- a/src/nextflow_file.py
+++ b/src/nextflow_file.py
@@ -44,7 +44,7 @@ class Nextflow_File(Nextflow_Building_Blocks):
         self.added_2_rocrate = False
         self.check_file_correctness()
         self.set_DSL(DSL=DSL)
-        self.extract_metadata()
+        #self.extract_metadata()
         self.check_file_correctness_after_DSL()
         self.set_null()
         
@@ -539,20 +539,20 @@ class Nextflow_File(Nextflow_Building_Blocks):
                 sub.initialise()
                 indice+=1
 
-            if(self.first_file):
-                number_process_used = 0
-                with open(self.output_dir / 'debug/processes_used.json') as json_file:
-                    dict = json.load(json_file)
-                for file in dict:
-                    number_process_used+=len(set(dict[file]))
-
-                with open(self.output_dir / "general.json") as json_file:
-                    dico_wf = json.load(json_file)
-
-                #dico_wf["processes"]["number used"] = number_process_used
-
-                with open(self.output_dir / "general.json", "w") as outfile:
-                    json.dump(dico_wf, outfile, indent=4)
+            #if(self.first_file):
+            #    number_process_used = 0
+            #    with open(self.output_dir / 'debug/processes_used.json') as json_file:
+            #        dict = json.load(json_file)
+            #    for file in dict:
+            #        number_process_used+=len(set(dict[file]))
+            #
+            #    with open(self.output_dir / "general.json") as json_file:
+            #        dico_wf = json.load(json_file)
+            #
+            #    #dico_wf["processes"]["number used"] = number_process_used
+            #
+            #    with open(self.output_dir / "general.json", "w") as outfile:
+            #        json.dump(dico_wf, outfile, indent=4)
                 
 
         elif(self.get_DSL()=="DSL1"):
-- 
GitLab