Giter Club home page Giter Club logo

rp2paths's Introduction

RP2paths -- RetroPath2.0 to pathways

Anaconda-Server Badge Anaconda-Server Badge

RP2paths extracts the set of pathways that lies in a metabolic space file outputted by the RetroPath2.0 workflow. RetroPath2.0 is freely accessible on myExperiment.org at: https://www.myexperiment.org/workflows/4987.html.

Installation

From conda

# installation in an already existing <myenv> environment (see prerequisites)
conda activate <myenv>
conda install -c brsynth -c conda-forge rp2paths

Usage

From CLI

Once a scope has been produced by RetroPath2.0, a typical command line for extracting the pathways from the results is

python -m rp2paths all <retropath2_scope> [--outdir <outdir>]

where:

  • all specify that all the tasks needed for retrieving pathways will be executed at once.
  • <retropath2_scope> is the metabolic space outputted by the RetroPath2.0 workflow.
  • --outdir <outdir> specify the directory in which all files will be outputted.

In the <outdir> folder, the complete set of pathways enumerated will be written in the out_paths.csv file. In addition, for each pathway there will be a .dot file (.dot representation of the graph) and a .svg file (.svg depiction of the pathway).

Available options

Additional options are described in the embedded help:

# List of possible modes
python -m rp2paths -h

# List of options for the all-in-one mode
python -m rp2paths all -h

Examples

Precomputed results (outputted by RetroPath2.0) are provided in the examples folder for few compounds (carotene, naringenin, pinocembrin, violacein).

Below are the command lines for generating pathways that lie in naringenin result file:

source activate <myenv>
python -m rp2paths all examples/naringenin/rp2-results.csv --outdir examples/naringenin/outdir

No scope warnings

A warning message WARNING: *** Scope Task: no scope matrix was produced, exit indicates that no reaction have been indified as being part of a pathway. This can happen when the retrosynthesis exploration performed by RetroPath2.0 does not reach a minimal set of sink compounds.

For developers

Development installation

After a git clone:

cd <repository>
conda env create -f environment.yaml -n <dev_env>
conda develop -n <dev_env> .
conda activate <dev_env>

Tests

Test can be run with the following commands:

Natively

cd tests
pytest -v

CI/CD

For further tests and development tools, a CI toolkit is provided in ci folder (see ci/README.md).

How to cite RP2paths?

Please cite:

Delepine B, Duigou T, Carbonell P, Faulon JL. RetroPath2.0: A retrosynthesis workflow for metabolic engineers. Metabolic Engineering, 45: 158-170, 2018. DOI: https://doi.org/10.1016/j.ymben.2017.12.002

Licence

RP2paths is released under the MIT licence. See the LICENCE.txt file for details.

rp2paths's People

Contributors

breakthewall avatar stain avatar tduigou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rp2paths's Issues

Retropath of dopamine

Hello! I installed Retropath2.0 and ran successfully the tutorial files. Afterwards I did a trial with dopamine as the source file, ecoli-iJO1366-mnx-compounds as the sink file and knime-ready-rules_mnx-all-reverse_ECOLI-iJO1366 as the rule file (like described in the tutorial pdf).
Poorly the outcome was just a result (56kb) and a source-in-sink file (no scope, no svg)
Pathlength was set to 5. What could be the problem?

Thanks in advance!

Scope Task: no scope matrix was produced, exit

The following input file, rp_pathways_74.zip returns the following message:
Scope Task: no scope matrix was produced, exit

Note that these are partial results returned by RetroPath2.0. Using the following conditions (the rest are default):

Molecule Name: Resokaempferol
Molecule InChI: InChI=1S/C15H10O5/c16-9-3-1-8(2-4-9)15-14(19)13(18)11-6-5-10(17)7-12(11)20-15/h1-7,16-17,19H/p-1
GEM SBML: e_coli_iML1515.sbml
TopX: 1000
Max Steps: 6
Rule Diameters: 2,4,6,8,10,12,14,16

Empty rp2paths results

Running the following RetroPath2.0 results,
rp_pathways_28.csv.zip
returns empty out_path.csv results. Ran using the following conditions:

Molecule Name: Hydrocodone
Molecule InChI: InChI=1S/C18H21NO3/c1-19-8-7-18-11-4-5-13(20)17(18)22-16-14(21-2)6-3-10(15(16)18)9-12(11)19/h3,6,11-12,17H,4-5,7-9H2,1-2H3/t11-,12+,17-,18-/m0/s1
GEM SBML: s_cerevisiae_iMM904.sbml
TopX: 1000
Max Steps: 14
Rule Diameters: 2,4,6,8,10,12,14,16

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.