Repository 'openbabel_structure_distance_finder'
hg clone https://toolshed.g2.bx.psu.edu/repos/bgruening/openbabel_structure_distance_finder

Changeset 1:f0502d809c4b (2020-04-09)
Previous changeset 0:c066b5accacf (2020-03-25) Next changeset 2:4c9d6b47045c (2020-07-28)
Commit message:
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/openbabel commit cda909c5e0b88fa3d12abe43fc72b8dd0729417a"
modified:
macros.xml
ob_filter.py
b
diff -r c066b5accacf -r f0502d809c4b macros.xml
--- a/macros.xml Wed Mar 25 16:47:13 2020 -0400
+++ b/macros.xml Thu Apr 09 10:07:42 2020 -0400
b
@@ -1,5 +1,5 @@
 <macros>
-    <token name="@VERSION@">2.4.2.1</token>
+    <token name="@VERSION@">2.4.2.2</token>
 
     <xml name="requirements">
         <requirements>
b
diff -r c066b5accacf -r f0502d809c4b ob_filter.py
--- a/ob_filter.py Wed Mar 25 16:47:13 2020 -0400
+++ b/ob_filter.py Thu Apr 09 10:07:42 2020 -0400
[
@@ -40,7 +40,7 @@
     for mol in pybel.readfile('sdf', args.input):
         for key, elem in filters.items():
             # map the short description to the larger metadata names stored in the sdf file
-            property = cheminfolib.ColumnNames[key]
+            property = cheminfolib.ColumnNames.get(key, key)
             min = elem[0]
             max = elem[1]
             if float(mol.data[property]) >= float(min) and float(mol.data[property]) <= float(max):
@@ -113,7 +113,7 @@
         # Check if the sdf file contains all of the required metadata to invoke the precalculation filtering
         mol = next(pybel.readfile('sdf', args.input))
         for key, elem in filters.items():
-            property = cheminfolib.ColumnNames[key]
+            property = cheminfolib.ColumnNames.get(key, key)
             if not property in mol.data:
                 break
         else: