From 12ce6da1cbf558670fce9a86792d22b9d992b2a0 Mon Sep 17 00:00:00 2001 From: George Marchment <georgemarchment@yahoo.fr> Date: Fri, 12 Apr 2024 14:43:50 +0200 Subject: [PATCH] add remove_script_calls in tools --- src/process.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/process.py b/src/process.py index 10dc1e9..39fb908 100644 --- a/src/process.py +++ b/src/process.py @@ -34,8 +34,20 @@ class Process(Nextflow_Building_Blocks): def get_name(self): return self.name - def get_tools(self): - return self.tools + def get_tools(self, remove_script_calls = True): + def remove_script_calls(tab_temp): + tab = tab_temp.copy() + if("python" in tab): + tab.remove("python") + if("R" in tab): + tab.remove("R") + if("perl" in tab): + tab.remove("perl") + return tab + if(remove_script_calls): + return remove_script_calls(self.tools) + else: + return self.tools #def get_source(self): -- GitLab