# HG changeset patch # User bgruening # Date 1595939544 14400 # Node ID 171c94786a56d9faa167acbb9e976a91d9b158b5 # Parent c4abd2c7d5f68852ea579ec10afe753ccf99adc0 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/openbabel commit 944ea4bb8a9cd4244152a4a4fecd0485fabc2ad0" diff -r c4abd2c7d5f6 -r 171c94786a56 change_title_to_metadata_value.py --- a/change_title_to_metadata_value.py Thu Apr 09 09:59:40 2020 -0400 +++ b/change_title_to_metadata_value.py Tue Jul 28 08:32:24 2020 -0400 @@ -9,13 +9,13 @@ import os import sys import argparse -import openbabel -openbabel.obErrorLog.StopLogging() -import pybel import random import string +from openbabel import openbabel, pybel +openbabel.obErrorLog.StopLogging() + def main(): parser = argparse.ArgumentParser( description="Change the title from a molecule file to metadata \ diff -r c4abd2c7d5f6 -r 171c94786a56 cheminfolib.py --- a/cheminfolib.py Thu Apr 09 09:59:40 2020 -0400 +++ b/cheminfolib.py Tue Jul 28 08:32:24 2020 -0400 @@ -13,8 +13,8 @@ print('psycopg2 is not available. It is currently used in the pgchem wrappers, that are not shipped with default CTB') try: - import pybel - import openbabel + from openbabel import openbabel, pybel + openbabel.obErrorLog.StopLogging() except: print('OpenBabel could not be found. A few functions are not available without OpenBabel.') diff -r c4abd2c7d5f6 -r 171c94786a56 distance_finder.py --- a/distance_finder.py Thu Apr 09 09:59:40 2020 -0400 +++ b/distance_finder.py Tue Jul 28 08:32:24 2020 -0400 @@ -12,10 +12,10 @@ # there would be properties for distance1, distance2 and distance3. import argparse, os, sys, math + from openbabel import pybel - def log(*args, **kwargs): """Log output to STDERR """ diff -r c4abd2c7d5f6 -r 171c94786a56 macros.xml --- a/macros.xml Thu Apr 09 09:59:40 2020 -0400 +++ b/macros.xml Tue Jul 28 08:32:24 2020 -0400 @@ -1,9 +1,9 @@ - 2.4.2.2 + 3.1.1 - openbabel + openbabel python diff -r c4abd2c7d5f6 -r 171c94786a56 multi_obgrep.py --- a/multi_obgrep.py Thu Apr 09 09:59:40 2020 -0400 +++ b/multi_obgrep.py Tue Jul 28 08:32:24 2020 -0400 @@ -6,15 +6,14 @@ """ import sys, os import argparse -import openbabel -openbabel.obErrorLog.StopLogging() -import pybel import multiprocessing import tempfile import subprocess import shutil import shlex +from openbabel import openbabel, pybel +openbabel.obErrorLog.StopLogging() def parse_command_line(): parser = argparse.ArgumentParser() parser.add_argument('-i', '--infile', required=True, help='Molecule file.') diff -r c4abd2c7d5f6 -r 171c94786a56 ob_addh.py --- a/ob_addh.py Thu Apr 09 09:59:40 2020 -0400 +++ b/ob_addh.py Tue Jul 28 08:32:24 2020 -0400 @@ -5,9 +5,9 @@ """ import sys, os import argparse -import openbabel + +from openbabel import openbabel, pybel openbabel.obErrorLog.StopLogging() -import pybel def parse_command_line(argv): parser = argparse.ArgumentParser() diff -r c4abd2c7d5f6 -r 171c94786a56 ob_filter.py --- a/ob_filter.py Thu Apr 09 09:59:40 2020 -0400 +++ b/ob_filter.py Tue Jul 28 08:32:24 2020 -0400 @@ -10,9 +10,9 @@ import argparse import cheminfolib import json -import pybel import shlex, subprocess +from openbabel import pybel cheminfolib.pybel_stop_logging() def parse_command_line(): diff -r c4abd2c7d5f6 -r 171c94786a56 ob_genProp.py --- a/ob_genProp.py Thu Apr 09 09:59:40 2020 -0400 +++ b/ob_genProp.py Tue Jul 28 08:32:24 2020 -0400 @@ -8,9 +8,9 @@ import argparse import openbabel openbabel.obErrorLog.StopLogging() -import pybel import cheminfolib +from openbabel import pybel def parse_command_line(argv): parser = argparse.ArgumentParser() diff -r c4abd2c7d5f6 -r 171c94786a56 ob_remIons.py --- a/ob_remIons.py Thu Apr 09 09:59:40 2020 -0400 +++ b/ob_remIons.py Tue Jul 28 08:32:24 2020 -0400 @@ -6,9 +6,9 @@ """ import sys, os import argparse -import openbabel + +from openbabel import openbabel, pybel openbabel.obErrorLog.StopLogging() -import pybel def parse_command_line(): parser = argparse.ArgumentParser() diff -r c4abd2c7d5f6 -r 171c94786a56 ob_spectrophore_search.py --- a/ob_spectrophore_search.py Thu Apr 09 09:59:40 2020 -0400 +++ b/ob_spectrophore_search.py Tue Jul 28 08:32:24 2020 -0400 @@ -6,12 +6,11 @@ """ import sys, os import argparse -import openbabel -openbabel.obErrorLog.StopLogging() -import pybel import math import numpy as np +from openbabel import openbabel, pybel +openbabel.obErrorLog.StopLogging() #TODO get rid of eval() global spectrophore diff -r c4abd2c7d5f6 -r 171c94786a56 remove_protonation_state.py --- a/remove_protonation_state.py Thu Apr 09 09:59:40 2020 -0400 +++ b/remove_protonation_state.py Tue Jul 28 08:32:24 2020 -0400 @@ -6,9 +6,9 @@ """ import sys, os import argparse -import openbabel + +from openbabel import openbabel, pybel openbabel.obErrorLog.StopLogging() -import pybel def parse_command_line(): parser = argparse.ArgumentParser() diff -r c4abd2c7d5f6 -r 171c94786a56 subsearch.py --- a/subsearch.py Thu Apr 09 09:59:40 2020 -0400 +++ b/subsearch.py Tue Jul 28 08:32:24 2020 -0400 @@ -6,14 +6,14 @@ """ import sys, os import argparse -import openbabel -openbabel.obErrorLog.StopLogging() -import pybel import multiprocessing import tempfile import subprocess import shutil +from openbabel import openbabel, pybel +openbabel.obErrorLog.StopLogging() + def parse_command_line(): parser = argparse.ArgumentParser() parser.add_argument('-i', '--infile', required=True, help='Molecule file.') diff -r c4abd2c7d5f6 -r 171c94786a56 subsearch.xml --- a/subsearch.xml Thu Apr 09 09:59:40 2020 -0400 +++ b/subsearch.xml Tue Jul 28 08:32:24 2020 -0400 @@ -1,7 +1,8 @@ - + of fingerprint data sets macros.xml + 0 diff -r c4abd2c7d5f6 -r 171c94786a56 test-data/ob_convert_on_CID2244.cml --- a/test-data/ob_convert_on_CID2244.cml Thu Apr 09 09:59:40 2020 -0400 +++ b/test-data/ob_convert_on_CID2244.cml Tue Jul 28 08:32:24 2020 -0400 @@ -1,27 +1,27 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + diff -r c4abd2c7d5f6 -r 171c94786a56 test-data/ob_convert_on_CID2244.pdb --- a/test-data/ob_convert_on_CID2244.pdb Thu Apr 09 09:59:40 2020 -0400 +++ b/test-data/ob_convert_on_CID2244.pdb Tue Jul 28 08:32:24 2020 -0400 @@ -1,5 +1,5 @@ COMPND 2244 -AUTHOR GENERATED BY OPEN BABEL 2.3.90 +AUTHOR GENERATED BY OPEN BABEL 3.1.0 HETATM 1 O UNL 1 3.732 -0.060 0.000 1.00 0.00 O HETATM 2 O UNL 1 6.330 1.440 0.000 1.00 0.00 O HETATM 3 O UNL 1 4.598 1.440 0.000 1.00 0.00 O @@ -23,16 +23,16 @@ HETATM 21 H UNL 1 6.330 2.060 0.000 1.00 0.00 H CONECT 1 5 12 CONECT 2 11 21 -CONECT 3 11 -CONECT 4 12 -CONECT 5 1 6 7 -CONECT 6 5 8 11 -CONECT 7 5 9 14 -CONECT 8 6 10 15 -CONECT 9 7 10 16 -CONECT 10 8 9 17 -CONECT 11 2 3 6 -CONECT 12 1 4 13 +CONECT 3 11 11 +CONECT 4 12 12 +CONECT 5 1 6 7 7 +CONECT 6 5 8 8 11 +CONECT 7 5 5 9 14 +CONECT 8 6 6 10 15 +CONECT 9 7 10 10 16 +CONECT 10 8 9 9 17 +CONECT 11 2 3 3 6 +CONECT 12 1 4 4 13 CONECT 13 12 18 19 20 CONECT 14 7 CONECT 15 8 diff -r c4abd2c7d5f6 -r 171c94786a56 test-data/ob_depiction_svg_on_8_mol.svg --- a/test-data/ob_depiction_svg_on_8_mol.svg Thu Apr 09 09:59:40 2020 -0400 +++ b/test-data/ob_depiction_svg_on_8_mol.svg Tue Jul 28 08:32:24 2020 -0400 @@ -7,44 +7,44 @@ - - - - - - - - - - - - - - - - - - - - - - - - - -S -Cl -NH -2 -O -O -S -N -H -O -O -N -H + + + + + + + + + + + + + + + + + + + + + + + + + +S +Cl +NH +2 +O +O +S +N +H +O +O +N +H - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Cl -H -2 -N -O -O -S -OH -O -NH -O + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Cl +H +2 +N +O +O +S +OH +O +NH +O - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -N -H -O -O -O -O -O -O -O -H -H -H -N -H -H -H -O -O + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +O +O +O +O +O +O +O +N +O +O +HN - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -O -O -O -O -O -S -Cl -NH -2 -O -O -S -N -H -O -O -O -N -H -H -H -N -H -H -O -H -H -O -O -N -H + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +O +O +O +O +N +H +S +O +O +N +H +S +O +O +NH +2 +Cl +O +N +O +O +HN +O +O - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -N -N -N -N + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +N +N +N +N - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -N -N -N -N + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +N +N +N +N - - - - - - - - - - - - - - - - - - -O -O -O -_ -O + + + + + + + + + + + + + + + + + + +O +O +O +_ +O - - - - - - - - - - - - - - - - - - -O -O -O -_ -O + + + + + + + + + + + + + + + + + + +O +O +O +_ +O