diff --git a/src/process.py b/src/process.py
index 76f5993ff4a34ccf5bf191c1439cc46cf0191137..4879073b6ab5d4b561a54404cd4bf9cec423abf1 100644
--- a/src/process.py
+++ b/src/process.py
@@ -58,7 +58,7 @@ class Process(Nextflow_Building_Blocks):
     def get_external_scripts_call(self):
         code = self.get_script_code()
         tab = []
-        for match in re.finditer(r"([^\s\\\*]+\.(sh|py|R|r|pl))[^\w]", code):
+        for match in re.finditer(r"([^\s\\\*]+\.(sh|py|R|r|pl|rg))[^\w]", code):
             tab.append(match.group(1))
         return list(set(tab))
     
@@ -124,8 +124,8 @@ class Process(Nextflow_Building_Blocks):
         libraries+= self.get_R_libraries_loaded_internal_script()
         libraries+= self.get_R_libraries_loaded_external_scripts()
         return list(set(libraries))
-          
-            
+
+
     def get_perl_modules_imported_internal_script(self):
         libraries = []
         libraries+= get_perl_modules(self.get_script_code())