'libraries for rptools'
Project description
brs-libs
Libraries for rpTools:
- rpCache
- rpSBML
rpSBML
Defines SBML structure with additional fields relative to RetroPath2 objects.
Prerequisites
- Python 3 with the following modules:
- python-libsbml
- RDKit
rpCache
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 brs_libs
From Conda
[sudo] conda install -c brsynth brs_libs
Run
(Re-)generate the cache
From Python code
from brs_libs import rpCache
rpCache.generate_cache(outdir)
From CLI
After having installed brs_libs Python module:
python -m brs_libs --gen_cache <folder>
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
brs_libs 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brs_libs-0.2.0.tar.gz.
File metadata
- Download URL: brs_libs-0.2.0.tar.gz
- Upload date:
- Size: 41.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/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
329efbcae77edb89dc73e7d32e92d4388b78d71e57e27e43d937eab7753ea0d6
|
|
| MD5 |
7b9f692654d2401eb7e01d000f167bf7
|
|
| BLAKE2b-256 |
fdbab502963fdd6651133368d0681170cc7a095d762b5a79411a586c9181b496
|
File details
Details for the file brs_libs-0.2.0-py3-none-any.whl.
File metadata
- Download URL: brs_libs-0.2.0-py3-none-any.whl
- Upload date:
- Size: 41.4 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/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6d3be51fac5ff1365e99f39bff8a6f449406abc1c98e57ee05e110ec7d83c70
|
|
| MD5 |
a762a2b16aa5f2fad7c31a4c89c60944
|
|
| BLAKE2b-256 |
d57f20479f32268e75e31eb4c84ffcdf0ecc061e77c50f7f3dba4929204db016
|