# HG changeset patch # User tduigou # Date 1681214499 0 # Node ID c31a74a5595c5a928d13a99ac372cb492670a3b7 # Parent 217a87509ccd7f9ba5600f9f22e740068e548013 planemo upload commit 7b62e9fb3271d06909bfad1918fcffc9255562cd diff -r 217a87509ccd -r c31a74a5595c LICENSE.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LICENSE.txt Tue Apr 11 12:01:39 2023 +0000 @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2020 Jean-Loup Faulon's group & INRA +Copyright (c) 2020 University of Evry / Paris-Saclay + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff -r 217a87509ccd -r c31a74a5595c README.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Tue Apr 11 12:01:39 2023 +0000 @@ -0,0 +1,34 @@ +# RetroPath2-wrapper -- Build a reaction network from a set of source compounds to a set of sink compounds. + +The open-source software package RetroPath2-wrapper is available here : https://github.com/brsynth/RetroPath2-wrapper + +## How to run RetroPath2 wrapper tests + +In order to execute tests on RetroPath2 wrapper, you need to: + + - Connect to your galaxy instance in interactive mode: + + ```bash + docker exec -it -u root galaxy_galaxy_1 bash + ``` + - Copy all the contents of `test-data` folder into your own test-data directory which is located in your local galaxy instance : `/galaxy/test-data`. It contains all the input files and expected output files needed for the tests. + + - Install Planemo: + You can see here the documentation for Planemo Installation : https://planemo.readthedocs.io/en/latest/installation.html + Note that they recommand to install Planemo by setting up a virtual environment: + + ```bash + python3 -m venv planemo + . planemo/bin/activate + pip install -U planemo + ``` + + - run the tests: + + ```bash + planemo test --conda_channels conda-forge,brsynth --conda_debug tools/BRSynthTools/RetroPath2-wrapper/wrap.xml + ``` + + IMPORTANT: Maybe you will need to remove CONDA from your PATH for the command `planemo test` to run correctly. To do that, you can edit this file `~/.bashrc`, comment this line `PATH="/root/anaconda3/bin:$PATH"` and save changes. + + Planemo will output an html test summary `tool_test_output.html`. \ No newline at end of file diff -r 217a87509ccd -r c31a74a5595c config/job_conf.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/job_conf.xml Tue Apr 11 12:01:39 2023 +0000 @@ -0,0 +1,1 @@ + diff -r 217a87509ccd -r c31a74a5595c config/tool_conf.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/tool_conf.xml Tue Apr 11 12:01:39 2023 +0000 @@ -0,0 +1,3 @@ +
+ +
diff -r 217a87509ccd -r c31a74a5595c retropath2.xml --- a/retropath2.xml Wed Sep 21 12:47:56 2022 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,140 +0,0 @@ - - Build a reaction network from a set of source compounds to a set of sink compounds - - 0 - 2.3.1 - - - retropath2_wrapper - - - - - - - - - - /dev/null; then - cp out/*_scope.csv '$Reaction_Network'; - else - cp out/results.csv '$Reaction_Network'; - fi - ]]> - - - - - - - - - - -
- - - - - - - - - - -
-
- - - - - - - - - - - - - - - - - `_. It takes for input the minimal (dmin) and maximal (dmax) diameter for the reaction rules and the maximal path length (maxSteps). The tool expects the following files: rules.csv, sink.csv and source.csv and produce a retrosynthesis network as a CSV file providing reactions in the reaction SMILES format and chemicals in both SMILES and InChI formats along with other information like the score for each reaction. Only a single source molecule is processed at this time. - -Input ------ - -Required: - -* **Sink File**\ : (string) Sink file which comprises all compounds that are considered as granted in your system. -* **Source InChI**\ : (string) InChI of compound to produce. -* **Source name**\ : (string) Name of compound to produce. -* **Maximal Pathway length**\ : (integer) The maximal number of metabolic steps (i.e. reactions) for exploring around the target. -* **Rules File**\ : (string) File containing reaction rules which reflect the enzymatic potential of the chassis organism. - - -Advanced options: - -* **TopX**\ : (integer, default: 100) The maximal number of intermediate compounds to use as new starting points for a next iteration of the retrosynthesis algorithm. -* **Minimum rule diameter**\ : (integer, default: 0) Minimum rule diameter of the sphere including the atoms around the reacting center. The higher is the diameter, the more specific are the rules. -* **Maximum rule diameter**\ : (integer, default: 1000) Maximum rule diameter of the sphere including the atoms around the reacting center. The higher is the diameter, the more specific are the rules. -* **Molecular weight of source (Da)**\ : (integer, default: 1000) The molecular weight cutoff (in Da), above which initial source (ie target) and intermediate compounds will be filtered out. -* **Timeout (min)**\ : (integer, default: 60) Maximal time of RetroPath2.0 execution (60 minutes by default) -* **Workflow version**\ : Retropath2.0 Workflow versions, formatted as r{year}{month}{day} (the latest version r20220104 is used by default) - -Output ------- - -* **Reaction Network**\ : CSV file containing retrosynthesis network which provides reactions in the reaction SMILES format and chemicals in both SMILES and InChI formats along with other information like the score for each reaction. - -Project Links ---------------------- - -* `GitHub `_ - -Version ----------- - -2.3.1 - -Authors -------- - -* **Joan Hérisson** -* Melchior du Lac - -License -------- - -This project is licensed under the `MIT `_ License. - -Acknowledgments ---------------- - -* Thomas Duigou - - ]]> - - 10.1016/j.ymben.2017.12.002 - -
\ No newline at end of file diff -r 217a87509ccd -r c31a74a5595c retropath2_wrapper.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/retropath2_wrapper.xml Tue Apr 11 12:01:39 2023 +0000 @@ -0,0 +1,122 @@ + + Build a reaction network from a set of source compounds to a set of sink compounds + + 0 + 2.6.0 + + + retropath2_wrapper + + + + + + + + + /dev/null; then + cp ./out/*_scope.csv '$Reaction_Network'; + else + cp ./out/results.csv '$Reaction_Network'; + fi + ]]> + + + + + + + + + + +
+ + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + `_. It takes for input the minimal (dmin) and maximal (dmax) diameter for the reaction rules and the maximal path length (maxSteps). The tool expects the following files: rules.csv, sink.csv and source.csv and produce a retrosynthesis network as a CSV file providing reactions in the reaction SMILES format and chemicals in both SMILES and InChI formats along with other information like the score for each reaction. Only a single source molecule is processed at this time. + +Input +----- + +Required: + +* **Sink File**\ : (string) Sink file which comprises all compounds that are considered as granted in your system. +* **Source InChI**\ : (string) InChI of compound to produce. +* **Source name**\ : (string) Name of compound to produce. +* **Maximal Pathway length**\ : (integer) The maximal number of metabolic steps (i.e. reactions) for exploring around the target. +* **Rules File**\ : (string) File containing reaction rules which reflect the enzymatic potential of the chassis organism. + + +Advanced options: + +* **TopX**\ : (integer, default: 100) The maximal number of intermediate compounds to use as new starting points for a next iteration of the retrosynthesis algorithm. +* **Minimum rule diameter**\ : (integer, default: 0) Minimum rule diameter of the sphere including the atoms around the reacting center. The higher is the diameter, the more specific are the rules. +* **Maximum rule diameter**\ : (integer, default: 1000) Maximum rule diameter of the sphere including the atoms around the reacting center. The higher is the diameter, the more specific are the rules. +* **Molecular weight of source (Da)**\ : (integer, default: 1000) The molecular weight cutoff (in Da), above which initial source (ie target) and intermediate compounds will be filtered out. +* **Timeout (min)**\ : (integer, default: 20) Maximal time of RetroPath2.0 execution (20 minutes by default) +* **Workflow version**\ : Retropath2.0 Workflow versions, formatted as r{year}{month}{day} (the latest version r20220104 is used by default) + +Output +------ + +* **Reaction Network**\ : CSV file containing retrosynthesis network which provides reactions in the reaction SMILES format and chemicals in both SMILES and InChI formats along with other information like the score for each reaction. + ]]> + + + + + 10.1016/j.ymben.2017.12.002 + +
diff -r 217a87509ccd -r c31a74a5595c test-data/rules_d12_7325.csv.gz Binary file test-data/rules_d12_7325.csv.gz has changed