'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
Hashes for rpcompletion-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 671c5a210ec0c67742b6878c8049ba185d371f848d62ca64f896ccab2108b269 |
|
MD5 | 109b28e462fb63a4c04907578018359b |
|
BLAKE2b-256 | e17fa997d77acba9c4650bd4975471146da5dd26bb4a12236a10b2c05aba1658 |