'pathway completion'
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rpcompletion-1.2.0.tar.gz
.
File metadata
- Download URL: rpcompletion-1.2.0.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a99ca4ed63ec74d8fa7bebc327a1945e830e267dd031ececb61a6a71b5fc24ed |
|
MD5 | 9aa7457945b2e7a877f646398128f1a6 |
|
BLAKE2b-256 | 40ccf46225ee93ba785fa0f1b0d9ba54f89835093c6e5e5a8ea7eda70a44fb61 |
File details
Details for the file rpcompletion-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: rpcompletion-1.2.0-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b00ac618f3ae607a799f956f4ffae91b554ee90ea3a840bde4fb2f9bdd36156 |
|
MD5 | 97ebe81caa6e986722fba26938f75b06 |
|
BLAKE2b-256 | 3f22ec7c6f7a471e0a4dd96cf3c6769d0117170f6bcafb0f7d71fbe3289a5dac |