Skip to main content

RP2paths -- RetroPath2.0 to pathways

Anaconda-Server Badge Anaconda-Server Badge

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

Installation

Prerequisites

rp2paths relies on several packages (rdkit, cairo) and binaries (java, graphviz) that can't be installed directly with pip. Please install them before pursuing the rp2paths set up:

# from a new <myenv> conda environment
conda create --name <myenv> python=3
conda install --yes --channel rdkit rdkit cairo
conda install --yes --channel cyclus java-jre
conda install --yes --channel conda-forge graphviz

From pip

# installation in an already existing <myenv> environment (see prerequisites)
conda activate <myenv>
python -m pip install rp2paths

From conda

# installation in an already existing <myenv> environment (see prerequisites)
conda activate <myenv>
conda install -c brsynth 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

For developers

Development installation

After a git clone:

cd <repository>
conda create --name <dev_env> python=3
conda install --name <dev_env> --yes --channel rdkit rdkit cairo
conda install --name <dev_env> --yes --channel cyclus java-jre
conda install --name <dev_env> --yes --channel conda-forge graphviz flake8
conda install --name <dev_env> --yes pytest
conda develop --name <dev_env> .

Tests

Using Docker containers with:

cd tests
./test-in-docker.sh [file_to_test]

Without using Docker containers:

cd tests
conda activate <dev_env>
pytest [file_to_test]

How to cite RP2paths?

Please cite:

Delépine 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.

Metadata

Release files for rp2paths 1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rp2paths 1.5.1
File Size Uploaded Provenance Actions
rp2paths-1.5.1.tar.gz 31.9 kB Without provenance Details for rp2paths-1.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rp2paths 1.5.1
File Interpreter ABI Platform Actions
rp2paths-1.5.1-py3-none-any.whl Python 3 none any Details for rp2paths-1.5.1-py3-none-any.whl

Total release size: 61.8 kB

Release files / rp2paths-1.5.1.tar.gz

Download URL rp2paths-1.5.1.tar.gz
Size 31.9 kB
Tags Source
SHA-256 checksum
How to use checksums
124336d1ce87cc0885658609f45c69e0cc08c157cc7ff45caa0ba2416f684762
BLAKE2b-256 checksum
How to use checksums
d9671433229e38d640e2d5bf61666ee5879b2ed0561548d9e365aa9a31e109ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.6

Release files / rp2paths-1.5.1-py3-none-any.whl

Download URL rp2paths-1.5.1-py3-none-any.whl
Size 29.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bcc294eb4ca0e06302f2b3f2d96536d6930c55e123a2552e2afb8fdf8ba295f
BLAKE2b-256 checksum
How to use checksums
c04fcdbe49033bc6feef989db625a9c617f6f17c30fdb1bb25846b5e52c7f77f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.6

Security for rp2paths 1.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.5.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page