diff --git a/chemicaltoolbox/README.rst b/chemicaltoolbox/README.rst index 566f9d0bf1..06c20bf366 100644 --- a/chemicaltoolbox/README.rst +++ b/chemicaltoolbox/README.rst @@ -476,17 +476,17 @@ We highly recommend to use PostgreSQL for any kind of production system. .. _molecular frameworks and the reduced molecular frameworks: http://peter-ertl.com/reprints/Schuffenhauer-JCIM-47-47-2007.pdf .. _scaffold topologies: http://www.ncbi.nlm.nih.gov/pubmed/18605680 .. _gaussian volumes as descriptor for molecular shape: http://pubs.acs.org/doi/abs/10.1021/j100011a016 -.. _obgrep: http://openbabel.org/wiki/Obgrep -.. _FastSearch: http://openbabel.org/wiki/FastSearch +.. _obgrep: https://open-babel.readthedocs.io/en/latest/Command-line_tools/babel.html#filtering-molecules-from-a-multimolecule-file +.. _FastSearch: https://open-babel.readthedocs.io/en/latest/Command-line_tools/babel.html#substructure-and-similarity-searching .. _Silicos: http://www.silicos.be/technologies/spectrophore .. _chemfp: http://chemfp.com/ .. _Open Babel command prompt converters: http://openbabel.org/docs/2.3.0/FileFormats/Overview.html -.. _Open Babel: http://openbabel.org/wiki/Main_Page +.. _Open Babel: https://open-babel.readthedocs.io/en/latest/index.html .. _OpenEye: http://www.eyesopen.com/ .. _RDKit: http://www.rdkit.org/ .. _Taylor-Butina clustering: http://www.redbrick.dcu.ie/~noel/R_clustering.html -.. _PNG: http://openbabel.org/docs/dev/FileFormats/PNG_2D_depiction.html -.. _SVG: http://openbabel.org/docs/dev/FileFormats/SVG_2D_depiction.html +.. _PNG: https://open-babel.readthedocs.io/en/latest/FileFormats/PNG_2D_depiction.html +.. _SVG: https://open-babel.readthedocs.io/en/latest/FileFormats/SVG_2D_depiction.html .. _OSRA: http://cactus.nci.nih.gov/osra/ .. _Confab: https://code.google.com/p/confab/ .. _numpy: http://www.numpy.org/ diff --git a/chemicaltoolbox/chemfp/mol2fps.xml b/chemicaltoolbox/chemfp/mol2fps.xml index bd1ade5b80..bc65a0d749 100644 --- a/chemicaltoolbox/chemfp/mol2fps.xml +++ b/chemicaltoolbox/chemfp/mol2fps.xml @@ -1,13 +1,13 @@ - + conversion to several different fingerprint formats - - chemfp - 1.6.1 - 0 + 1 + + chemfp + + + - - @@ -209,7 +209,7 @@ This tool uses chemfp to calculate molecular fingerprints, supporting a number o For more information check the websites listed below:: - http://www.rdkit.org/docs/GettingStartedInPython.html#fingerprinting-and-molecular-similarity - - http://openbabel.org/wiki/Tutorial:Fingerprints + - https://open-babel.readthedocs.io/en/latest/Fingerprints/intro.html ----- diff --git a/chemicaltoolbox/chemfp/nxn_clustering.xml b/chemicaltoolbox/chemfp/nxn_clustering.xml index d39e9273a2..11318d7bb9 100644 --- a/chemicaltoolbox/chemfp/nxn_clustering.xml +++ b/chemicaltoolbox/chemfp/nxn_clustering.xml @@ -2,7 +2,7 @@ of molecular fingerprints 1.6.1 - 0 + 1 chemfp @@ -49,7 +49,7 @@ - + diff --git a/chemicaltoolbox/fragmenter/__not_deployed_.shed.yml b/chemicaltoolbox/fragmenter/__not_deployed_.shed.yml new file mode 100644 index 0000000000..f419ec1471 --- /dev/null +++ b/chemicaltoolbox/fragmenter/__not_deployed_.shed.yml @@ -0,0 +1,16 @@ +name: bgchem +owner: bgruening +remote_repository_url: "https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/fragmenter" +homepage_url: "https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/fragmenter" +categories: +- Computational chemistry +description: "Tools for fragmentation." +long_description: | + "Tools to fragment compounds and merge them together." +auto_tool_repositories: + name_template: "{{ tool_id }}" + description_template: "{{ tool_name }} tool from the bgchem Chemical Toolbox" +suite: + name: suite_bgchem + description: tools from the bgchem Chemical Toolbox are used to fragment compounds and merge them together + type: repository_suite_definition diff --git a/chemicaltoolbox/fragmenter/fragmenter.py b/chemicaltoolbox/fragmenter/fragmenter.py index 40e6775694..db5ad23de4 100755 --- a/chemicaltoolbox/fragmenter/fragmenter.py +++ b/chemicaltoolbox/fragmenter/fragmenter.py @@ -3,8 +3,7 @@ import sys import openbabel -import pybel - +from openbabel import pybel openbabel.obErrorLog.StopLogging() diff --git a/chemicaltoolbox/fragmenter/fragmenter.xml b/chemicaltoolbox/fragmenter/fragmenter.xml index 77e7a01d64..51e45b2df6 100644 --- a/chemicaltoolbox/fragmenter/fragmenter.xml +++ b/chemicaltoolbox/fragmenter/fragmenter.xml @@ -1,11 +1,10 @@ - + - splits a molecule into fragments - cheminfolib - openbabel + openbabel - + mol2 - + @@ -44,18 +43,18 @@ - + non_fragment_file is True - + - + @@ -101,5 +100,6 @@ Copyright 2009-2012 TJ O'Donnell, B Gruening ]]> + 10.1186/1758-2946-3-33 diff --git a/chemicaltoolbox/fragmenter/merger.py b/chemicaltoolbox/fragmenter/merger.py index 97a086a116..e96fc0d70f 100755 --- a/chemicaltoolbox/fragmenter/merger.py +++ b/chemicaltoolbox/fragmenter/merger.py @@ -20,8 +20,7 @@ import tempfile import openbabel -import pybel -from cheminfolib import CountLines, split_smi_library +from openbabel import pybel openbabel.obErrorLog.StopLogging() @@ -52,6 +51,34 @@ ) +def CountLines(path): + out = subprocess.Popen( + ["wc", "-l", path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT + ).communicate()[0] + return int(out.partition(b" ")[0]) + + +def split_smi_library(smiles_file, structures_in_one_file): + """ + Split a file with SMILES to several files for multiprocessing usage. + Usage: split_smi_library( smiles_file, 10 ) + """ + output_files = [] + tfile = tempfile.NamedTemporaryFile(delete=False) + + smiles_handle = open(smiles_file, "r") + for count, line in enumerate(smiles_handle): + if count % structures_in_one_file == 0 and count != 0: + tfile.close() + output_files.append(tfile.name) + tfile = tempfile.NamedTemporaryFile(delete=False) + tfile.write(bytes(line, "utf-8")) + tfile.close() + output_files.append(tfile.name) + smiles_handle.close() + return output_files + + def unique_files(file_paths, unique_file, temp=False): """ Concatenate files and makes them unique afterwarts, utilising the GNU `sort` and `cat` tools. @@ -595,7 +622,7 @@ def filter_input_files(input_file): for line in open(temp_final_result.name): options.output.write("%s\t\n" % line.strip().split("\t")[0]) - if not type(options.output.name) != str(): + if isinstance(options.output.name, str): logging.info( "Results are written to %s (%s)." % (options.output.name, CountLines(options.output.name)) diff --git a/chemicaltoolbox/fragmenter/merger.xml b/chemicaltoolbox/fragmenter/merger.xml index 8a5f5d53ef..70a84c3c8b 100644 --- a/chemicaltoolbox/fragmenter/merger.xml +++ b/chemicaltoolbox/fragmenter/merger.xml @@ -1,12 +1,11 @@ - + fragmented molecules - cheminfolib - openbabel + openbabel - + - - - - - - - - - - - - - + - + 10.1186/1758-2946-3-33 diff --git a/chemicaltoolbox/fragmenter/test-data/fragmenter_on_CID_2244_recap.smi b/chemicaltoolbox/fragmenter/test-data/fragmenter_on_CID_2244_recap.smi index 5b9ec89e71..71554af914 100644 --- a/chemicaltoolbox/fragmenter/test-data/fragmenter_on_CID_2244_recap.smi +++ b/chemicaltoolbox/fragmenter/test-data/fragmenter_on_CID_2244_recap.smi @@ -1,2 +1,2 @@ -Oc1ccccc1C(=O)O -O=CC +[O]c1c(cccc1)C(=O)O +O=[C]C diff --git a/chemicaltoolbox/fragmenter/test-data/fragmenter_on_CID_2244_recap_mark.smi b/chemicaltoolbox/fragmenter/test-data/fragmenter_on_CID_2244_recap_mark.smi index 3e0ae67e40..6b248a3876 100644 --- a/chemicaltoolbox/fragmenter/test-data/fragmenter_on_CID_2244_recap_mark.smi +++ b/chemicaltoolbox/fragmenter/test-data/fragmenter_on_CID_2244_recap_mark.smi @@ -1,2 +1,2 @@ -[U]c1ccccc1C(=O)O +[U]c1c(cccc1)C(=O)O O=[Pa]C diff --git a/chemicaltoolbox/openmg/openmg.xml b/chemicaltoolbox/openmg/openmg.xml index ab18423c66..2d3fec5da3 100644 --- a/chemicaltoolbox/openmg/openmg.xml +++ b/chemicaltoolbox/openmg/openmg.xml @@ -1,9 +1,9 @@ - + + - exhaustive generation of chemical structures 0.1 - 0 + 1 - - exhaustive generation of chemical structures openmg java-jdk @@ -26,12 +26,12 @@ - + fr is True - + diff --git a/chemicaltoolbox/pgchem/pgchem/_not_deployed_.shed.yml b/chemicaltoolbox/pgchem/pgchem/_not_deployed_.shed.yml new file mode 100644 index 0000000000..59bf936a3f --- /dev/null +++ b/chemicaltoolbox/pgchem/pgchem/_not_deployed_.shed.yml @@ -0,0 +1,16 @@ +name: pgchem +owner: bgruening +remote_repository_url: "https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/pgchem" +homepage_url: "https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/pgchem" +categories: +- Computational chemistry +description: "Tools for chemical database manipulation." +long_description: | + "Tools for chemical database manipulation." +auto_tool_repositories: + name_template: "{{ tool_id }}" + description_template: "{{ tool_name }} tool from the bgchem Chemical Toolbox" +suite: + name: suite_pgchem + description: tools from the pgchem Chemical Toolbox. + type: repository_suite_definition diff --git a/chemicaltoolbox/pgchem/pgchem/db_fetch_by_id.xml b/chemicaltoolbox/pgchem/pgchem/db_fetch_by_id.xml index ff897d791f..e76b42a766 100644 --- a/chemicaltoolbox/pgchem/pgchem/db_fetch_by_id.xml +++ b/chemicaltoolbox/pgchem/pgchem/db_fetch_by_id.xml @@ -1,11 +1,13 @@ - + a list of compounds by unique identifier - - cheminfolib - - + + macros.xml + 0 + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -96,6 +44,9 @@ + + + + diff --git a/chemicaltoolbox/pgchem/pgchem/db_filter.xml b/chemicaltoolbox/pgchem/pgchem/db_filter.xml index e2debcfc69..545e112c05 100644 --- a/chemicaltoolbox/pgchem/pgchem/db_filter.xml +++ b/chemicaltoolbox/pgchem/pgchem/db_filter.xml @@ -1,11 +1,13 @@ - + a small molecule library by physico-chemical properties - - cheminfolib - - + + macros.xml + 0 + + + - - - - - - - - - - - + @@ -120,15 +112,22 @@ + + + + + + + + diff --git a/chemicaltoolbox/pgchem/pgchem/db_similarity_search.xml b/chemicaltoolbox/pgchem/pgchem/db_similarity_search.xml index 5b65c020fa..40cabe089c 100644 --- a/chemicaltoolbox/pgchem/pgchem/db_similarity_search.xml +++ b/chemicaltoolbox/pgchem/pgchem/db_similarity_search.xml @@ -1,11 +1,13 @@ - + of small molecules - - cheminfolib - - + + macros.xml + 0 + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -117,6 +62,7 @@ + + diff --git a/chemicaltoolbox/pgchem/pgchem/db_substructure_search.xml b/chemicaltoolbox/pgchem/pgchem/db_substructure_search.xml index f7611bcbc6..e97b026a63 100644 --- a/chemicaltoolbox/pgchem/pgchem/db_substructure_search.xml +++ b/chemicaltoolbox/pgchem/pgchem/db_substructure_search.xml @@ -1,11 +1,14 @@ - + of small molecules - - cheminfolib - - + + macros.xml + 0 + + + + - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -113,7 +62,9 @@ - + + + + diff --git a/chemicaltoolbox/pgchem/pgchem/macros.xml b/chemicaltoolbox/pgchem/pgchem/macros.xml new file mode 100644 index 0000000000..ebabafca52 --- /dev/null +++ b/chemicaltoolbox/pgchem/pgchem/macros.xml @@ -0,0 +1,79 @@ + + 0.1 + + + cheminfolib + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10.1186/1758-2946-3-33 + + + + \ No newline at end of file diff --git a/chemicaltoolbox/simsearch/simsearch.xml b/chemicaltoolbox/simsearch/simsearch.xml index 2d03608ed9..744efa2202 100644 --- a/chemicaltoolbox/simsearch/simsearch.xml +++ b/chemicaltoolbox/simsearch/simsearch.xml @@ -2,7 +2,7 @@ of fingerprint data sets with chemfp 1.6.1 - 0 + 1 chemfp @@ -97,8 +97,8 @@ - - + + @@ -113,7 +113,7 @@ Similarity searches using a variety of different fingerprints using either the chemfp_ FPS type or the Open Babel FastSearch_ index. .. _chemfp: http://chemfp.com/ -.. _FastSearch: http://openbabel.org/wiki/FastSearch +.. _FastSearch: https://open-babel.readthedocs.io/en/latest/Command-line_tools/babel.html#substructure-and-similarity-searching ]]> diff --git a/chemicaltoolbox/simsearch/test-data/simsearch_on_tragets_and_q.tabular b/chemicaltoolbox/simsearch/test-data/simsearch_on_tragets_and_q.tabular index 8eb3a22cf5..6c31956ec4 100644 --- a/chemicaltoolbox/simsearch/test-data/simsearch_on_tragets_and_q.tabular +++ b/chemicaltoolbox/simsearch/test-data/simsearch_on_tragets_and_q.tabular @@ -1,9 +1,9 @@ #Simsearch/1 #num_bits=881 -#type=Tanimoto k=all threshold=0.7 +#type=Tanimoto k=4 threshold=0.7 #software=chemfp/1.6.1 #queries=./query.fps #targets=./targets.fps #query_source=CID_28434379.sdf #target_source=Desktop/3579363516810334491.sdf -13 28434379 6499094 0.9615 6485578 0.9679 55079807 0.9313 3153534 0.9557 55102353 0.9682 55091466 0.9682 55091416 0.9682 6485577 0.9497 55169009 0.9560 55091752 0.9684 55091467 0.9623 55168823 0.9563 55091849 0.9563 +4 28434379 55091752 0.9684 55102353 0.9682 55091466 0.9682 55091416 0.9682 diff --git a/chemicaltoolbox/xchem-deep/.shed.yml b/chemicaltoolbox/xchem-deep/.shed.yml new file mode 100644 index 0000000000..59480cf115 --- /dev/null +++ b/chemicaltoolbox/xchem-deep/.shed.yml @@ -0,0 +1,12 @@ +name: xchem_transfs_scoring +owner: bgruening +remote_repository_url: "https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/xchem-deep" +homepage_url: "https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/xchem-deep" +categories: +- Computational chemistry +description: "This tool performs scoring of docked ligand poses using deep learning." +long_description: | + This tool performs scoring of docked ligand poses using deep learning. + It uses the gnina and libmolgrid toolkits to perform the scoring to generate + a prediction for how good the pose is. +type: unrestricted \ No newline at end of file diff --git a/chemicaltoolbox/xchem-deep/transfs.xml b/chemicaltoolbox/xchem-deep/transfs.xml index ca09832e36..fe753789b6 100644 --- a/chemicaltoolbox/xchem-deep/transfs.xml +++ b/chemicaltoolbox/xchem-deep/transfs.xml @@ -1,4 +1,4 @@ - + using deep learning @@ -66,8 +66,7 @@ - --> - + @@ -134,4 +133,7 @@ examined against input PDB structure and the with waters that clash (any heavy a the 'distance' parameter being removed. The file names are encoded with the water numbers that are removed. ]]> + + 10.1186/s13321-020-00442-7 +