rpCompletion
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.
Input
Required:
- rp2_pathways: (string) Path to the RetroPath2.0 pathways file
- rp2paths_compounds: (string) Path to the rp2paths compounds file
- rp2paths_pathways: (string) Path to the rp2paths pathways file
- outdir: (string) Path to the folder where result files are written
Advanced options:
- -upper_flux_bound: (integer, default=9999) Upper flux bound value
- -lower_flux_bound: (integer, default=0) Lower flux bound value
- -maxSubPaths_filter: (integer, default=10) Number of subpaths per path
- -pathway_id: (string, default=rp_pathway) ID of the heterologous pathway
- -compartment_id: (string, default=MNXC3 (i.e. cytoplasm)) Heterologous pathway compartment ID
- -species_group_id: (string, default=central_species) ID of the central species, i.e. not cofactors, in the heterologous reactions
- --store-mode, -sm: (optional, string, default: file) Store mode. If 'file', rpCache is supposed to be stored in files. Else, the rpCache is supposed to be stored in a redis database which the name is the value of this input field. The redis server is considered to be up and running.
Memory management
File mode
This is the default mode. All cache data are stored into files on disk and loaded in memory each time the tool is used. In this mode, fingerprint in memory is equal to the size of cache files loaded in memory multiplied by the number of processes which are running at the same time. Option can be specified by --store-mode file.
DB mode
In order to save memory space, cache data can be loaded once in a database (redis) so that the memory space taken is equal to one instance of the cache, whatever the number of processes whic are running. Option can be specified by --store-mode <db_host>, where db_host is the hostname on which redis server is running.
Install
rpCompletion requires RDKit which is not available through pip. It can be installed through Conda:
[sudo] conda install -c rdkit rdkit
From pip
[sudo] python -m pip install rpcompletion
From Conda
[sudo] conda install -c brsynth rpcompletion
Run
rpCompletion process
From Python code
from rpcompletion import rpCompletion, build_args_parser
parser = build_args_parser()
args = parser.parse_args()
rpcompletion = rpCompletion(db=args.store_mode)
rpcompletion.rp2ToSBML(args.rp2_pathways,
args.rp2paths_compounds,
args.rp2paths_pathways,
args.outdir)
From CLI
python -m rpcompletion \
rp2_pathways.csv \
rp2paths_compounds.csv \
rp2paths_pathways.csv \
<outdir>
Test
Tests can be runned. To do so, please follow insructions below:
cd tests
./test-in-docker.sh
Authors
- Melchior du Lac
- Joan Hérisson
Acknowledgments
- Thomas Duigou
Licence
rpCompletion is released under the MIT licence. See the LICENCE file for details.
Metadata
Release files for rpcompletion 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rpcompletion-1.2.0.tar.gz | 17.9 kB | Without provenance | Details for rpcompletion-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rpcompletion-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for rpcompletion-1.2.0-py3-none-any.whl |
Total release size: 36.9 kB
Release files / rpcompletion-1.2.0.tar.gz
| Download URL | rpcompletion-1.2.0.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a99ca4ed63ec74d8fa7bebc327a1945e830e267dd031ececb61a6a71b5fc24ed
|
|
BLAKE2b-256 checksum How to use checksums |
40ccf46225ee93ba785fa0f1b0d9ba54f89835093c6e5e5a8ea7eda70a44fb61
|
| 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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
|
Release files / rpcompletion-1.2.0-py3-none-any.whl
| Download URL | rpcompletion-1.2.0-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b00ac618f3ae607a799f956f4ffae91b554ee90ea3a840bde4fb2f9bdd36156
|
|
BLAKE2b-256 checksum How to use checksums |
3f22ec7c6f7a471e0a4dd96cf3c6769d0117170f6bcafb0f7d71fbe3289a5dac
|
| 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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
|
Security for rpcompletion 1.2.0
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.