# HG changeset patch
# User bgruening
# Date 1557250435 14400
# Node ID 99517f9b780d4a868499fd26d6bb8c71a4204b46
# Parent  50dc8ca09a50963564fdba9710ba62a781d920b7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/openbabel commit ed9b6859de648aa5f7cde483732f5df20aaff90e
diff -r 50dc8ca09a50 -r 99517f9b780d macros.xml
--- a/macros.xml	Mon Sep 03 16:40:06 2018 -0400
+++ b/macros.xml	Tue May 07 13:33:55 2019 -0400
@@ -1,9 +1,10 @@
 
-    2.4.1
+    2.4.2
 
     
         
             openbabel
+            python
             
         
     
@@ -37,6 +38,3 @@
         
     
 
-
-
-
diff -r 50dc8ca09a50 -r 99517f9b780d ob_grep.xml
--- a/ob_grep.xml	Mon Sep 03 16:40:06 2018 -0400
+++ b/ob_grep.xml	Tue May 07 13:33:55 2019 -0400
@@ -1,5 +1,5 @@
-
-    an advanced molecular grep program using SMARTS
+
+    - an advanced molecular search program using SMARTS
     
     
         macros.xml
@@ -7,28 +7,55 @@
     
     
  '${outfile}'
+
+        #if $input_type.inp == 'single':
+            obgrep
+                $invert_matches
+                #if $n_times:
+                    -t $n_times
+                #end if
+                $only_name
+                $full_match
+                $number_of_matches
+                -i '${infile.ext}'
+                '${input_type.smarts_pattern}'
+                '${infile}'
+                > '${outfile}'
+        #else if $input_type.inp == 'multi':
+            python '$__tool_directory__/multi_obgrep.py'
+                -i $infile
+                --iformat ${infile.ext}
+                -q '${input_type.query}'
+                -o '${outfile}'
+                $invert_matches
+                --n-times $n_times
+                $only_name
+                $full_match
+                $number_of_matches
+                --processors "\${GALAXY_SLOTS:-12}"
+        #end if
+
 ]]>
     
     
         
-        
-        
-        
+        
+            
+                
+                
+            
+            
+                
+            
+            
+                
+            
+        
+        
+        
         
-        
+        
         
     
     
@@ -38,6 +65,7 @@
     
         
             
+            
             
             
             
@@ -45,6 +73,12 @@
             
             
         
+        
+            
+            
+            
+            
+