Mercurial > repos > bgruening > prepare_ligands_for_docking
changeset 4:de4c80d17527 draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/openbabel commit 944ea4bb8a9cd4244152a4a4fecd0485fabc2ad0"
| author | bgruening |
|---|---|
| date | Tue, 28 Jul 2020 08:40:43 -0400 |
| parents | 015ccbd1ad68 |
| children | a5f4b80e6769 |
| files | change_title_to_metadata_value.py cheminfolib.py distance_finder.py macros.xml multi_obgrep.py ob_addh.py ob_filter.py ob_genProp.py ob_prepare_ligands.xml ob_remIons.py ob_spectrophore_search.py remove_protonation_state.py subsearch.py test-data/ob_convert_on_CID2244.cml test-data/ob_convert_on_CID2244.pdb test-data/ob_depiction_svg_on_8_mol.svg test-data/ob_prepare_ligands1.pdbqt test-data/ob_prepare_ligands2.pdbqt test-data/split1.pdbqt test-data/split2.pdbqt |
| diffstat | 20 files changed, 595 insertions(+), 626 deletions(-) [+] |
line wrap: on
line diff
--- a/change_title_to_metadata_value.py Thu Apr 09 10:10:31 2020 -0400 +++ b/change_title_to_metadata_value.py Tue Jul 28 08:40:43 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 \
--- a/cheminfolib.py Thu Apr 09 10:10:31 2020 -0400 +++ b/cheminfolib.py Tue Jul 28 08:40:43 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.')
--- a/distance_finder.py Thu Apr 09 10:10:31 2020 -0400 +++ b/distance_finder.py Tue Jul 28 08:40:43 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 """
--- a/macros.xml Thu Apr 09 10:10:31 2020 -0400 +++ b/macros.xml Tue Jul 28 08:40:43 2020 -0400 @@ -1,9 +1,9 @@ <macros> - <token name="@VERSION@">2.4.2.2</token> + <token name="@TOOL_VERSION@">3.1.1</token> <xml name="requirements"> <requirements> - <requirement type="package" version="2.4.1">openbabel</requirement> + <requirement type="package" version="@TOOL_VERSION@">openbabel</requirement> <requirement type="package" version="3">python</requirement> <yield /> </requirements>
--- a/multi_obgrep.py Thu Apr 09 10:10:31 2020 -0400 +++ b/multi_obgrep.py Tue Jul 28 08:40:43 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.')
--- a/ob_addh.py Thu Apr 09 10:10:31 2020 -0400 +++ b/ob_addh.py Tue Jul 28 08:40:43 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()
--- a/ob_filter.py Thu Apr 09 10:10:31 2020 -0400 +++ b/ob_filter.py Tue Jul 28 08:40:43 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():
--- a/ob_genProp.py Thu Apr 09 10:10:31 2020 -0400 +++ b/ob_genProp.py Tue Jul 28 08:40:43 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()
--- a/ob_prepare_ligands.xml Thu Apr 09 10:10:31 2020 -0400 +++ b/ob_prepare_ligands.xml Tue Jul 28 08:40:43 2020 -0400 @@ -1,7 +1,8 @@ -<tool id="prepare_ligands_for_docking" name="Prepare ligands for docking" version="@VERSION@.0"> +<tool id="prepare_ligands_for_docking" name="Prepare ligands for docking" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@"> <description>Tool to prepare ligands for docking with tools like Autodock Vina</description> <macros> <import>macros.xml</import> + <token name="@GALAXY_VERSION@">0</token> </macros> <expand macro="requirements"/> <command detect_errors="aggressive"><