Completes mono-component reactions output by RetroPath2.0 with the appropriate cofactors. Creates sub-paths when multiple reaction rules are associated with a single reaction. Input is a single pathways file produced by RP2Paths. It stands on rpCache which store pre-computed data.
Required:
Advanced options:
requests module)The main code is src/rpCompletion.py. Once a scope has been produced by RP2Paths, a typical command line for completing the pathways from the results is:
python3 ../src/rpCompletion.py \
-rp2_pathways rp2_pathways.csv \
-rp2paths_pathways rp2paths_pathways.csv \
-rp2paths_compounds rp2paths_compounds.csv \
-output out \
-maxSubPaths_filter 10 \
-sm db
where:
-rp2_pathways is the metabolic space outputted by the RetroPath2.0 workflow.-rp2paths_pathways is the set of pathways outputted by the RP2Paths tool.-rp2paths_compounds is the set of compounds outputted by the RP2Paths tool.--output specify the directory in which all files will be outputted.Some tests can be runned. To do so, please follow insructions below:
cd test
./run.sh [small | normal | big] <max_subpaths>
The first parameter indicates the dataset to use, the second indicates the maxSubPaths_filter option.
rpCompletion can be run into a docker container.
brsynth/rpCache <https://hub.docker.com/r/brsynth/rpcache>_Before running the container, the image has to be built with:
cd docker
docker-compose build
Then, the tool is runnable by:
cd docker
./rpCompletion.sh <absolute_indata_folder>
Inside the container, rpCompletion can be run following the Standalone Mode.
All modes can be tested with:
cd test
./run[-in-docker].sh
rpCompletion is released under the MIT licence. See the LICENCE.txt file for details.
Content type
Image
Digest
Size
489.4 MB
Last updated
over 6 years ago
docker pull brsynth/rpcompletion