rpLibs, contains:
- rpSBML
- inchikeyMIRIAM
- rpPathway, rpReaction, rpCompound (inheritance from chemlite)
Defines an enriched SBML structure with additional fields relative to RetroPath2 objects.
rpSBML class allows the merging between two rpSBML objects. This method is using to integrate an heterologu pathway within a model.
The compartment of the pathway to each compartment of the model. The comparison is done by ID, name or MIRIAM annotations. If a model compartment matches, then we rename the compartment of each species of the pathway to the name of the model matched compartment. Otherwise, the pathway compartment is added to the model.
Uses the rrCache to parse an SBML file to find all the chemical species, and try to recover the inchikey and add it to the MIRIAM annotation.
To print statistics on pathways, type:
python -m rplibs.stats --pathways <Pathway_1> <Pathway_2>
# Installation Guide
## Overview
`rplibs` depends on `cobra`, which requires `python-libsbml`.
On Apple Silicon (`arm64`) macOS, `python-libsbml` is not available as a native Conda package.
Therefore, installation must be done using an **Intel (`osx-64`) Conda environment under Rosetta**.
---
## General case
```bash
conda install -c conda-forge rplibs
softwareupdate --install-rosetta --agree-to-licenseCONDA_SUBDIR=osx-64 conda install -c conda-forge rplibsOr with mamba:
CONDA_SUBDIR=osx-64 mamba install -c conda-forge rplibsconda config --env --set subdir osx-64python -c "import rplibs; print('rplibs installed successfully')"
python -c "import cobra; print(cobra.__version__)"Make sure you are using:
CONDA_SUBDIR=osx-64Check:
conda config --show subdirExpected output:
subdir: osx-64python -m pytest tests
## Authors
* **Joan Hérisson**
* **Melchior du Lac**
## Acknowledgments
* Thomas Duigou
## Licence
rplibs is released under the MIT licence. See the LICENCE file for details.