Mercurial > repos > bgruening > openbabel_structure_distance_finder
changeset 2:4c9d6b47045c draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/openbabel commit 944ea4bb8a9cd4244152a4a4fecd0485fabc2ad0"
| author | bgruening |
|---|---|
| date | Tue, 28 Jul 2020 08:38:28 -0400 |
| parents | f0502d809c4b |
| children | 49242402887b |
| files | change_title_to_metadata_value.py cheminfolib.py distance_finder.py distance_finder.xml macros.xml multi_obgrep.py ob_addh.py ob_filter.py ob_genProp.py 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, 596 insertions(+), 630 deletions(-) [+] |
line wrap: on
line diff
--- a/change_title_to_metadata_value.py Thu Apr 09 10:07:42 2020 -0400 +++ b/change_title_to_metadata_value.py Tue Jul 28 08:38:28 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:07:42 2020 -0400 +++ b/cheminfolib.py Tue Jul 28 08:38:28 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:07:42 2020 -0400 +++ b/distance_finder.py Tue Jul 28 08:38:28 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/distance_finder.xml Thu Apr 09 10:07:42 2020 -0400 +++ b/distance_finder.xml Tue Jul 28 08:38:28 2020 -0400 @@ -1,12 +1,10 @@ -<tool id="openbabel_structure_distance_finder" name="Determine distance to defined points" version="0.1.0"> +<tool id="openbabel_structure_distance_finder" name="Determine distance to defined points" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@"> <description>- determine the minimum distances between a molecule and a set of 3D points</description> <macros> <import>macros.xml</import> + <token name="@GALAXY_VERSION@">0</token> </macros> - <requirements> - <!-- does not run with obabel 2.4.1 --> - <requirement type="package" version="3.0.0">openbabel</requirement> - </requirements> + <expand macro="requirements"/> <command detect_errors="exit_code"><