# HG changeset patch # User tduigou # Date 1681993818 0 # Node ID 8d76e86168395b5aa761fb12c25dc8b44bf627bb # Parent d315876215432812375d63659e34966da5d9f92e planemo upload commit 28852b9b524b2b3ec85d6e85bc30f82593cb026c diff -r d31587621543 -r 8d76e8616839 README.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Thu Apr 20 12:30:18 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 d31587621543 -r 8d76e8616839 config/job_conf.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/job_conf.xml Thu Apr 20 12:30:18 2023 +0000 @@ -0,0 +1,1 @@ + diff -r d31587621543 -r 8d76e8616839 config/tool_conf.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/tool_conf.xml Thu Apr 20 12:30:18 2023 +0000 @@ -0,0 +1,3 @@ +
+ +
diff -r d31587621543 -r 8d76e8616839 retropath2.xml --- a/retropath2.xml Wed Sep 21 12:49:42 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 d31587621543 -r 8d76e8616839 retropath2_wrapper.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/retropath2_wrapper.xml Thu Apr 20 12:30:18 2023 +0000 @@ -0,0 +1,114 @@ + + Build a reaction network from a set of source compounds to a set of sink compounds + + 0 + 3.0.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. + ]]> + + 10.1016/j.ymben.2017.12.002 + +