Computes a global score for a heterologous pathway. The score is calculated from a learning process based on reaction rules score, flux balance analysis and thermodynamics metrics, and the number of reactions in the pathway.
Positional argument:
- infile: (string) Path to pathway (rpSBML) file
- outfile: (string, required if one single input file is passed) path to store the scored pathway
Optional arguments:
- --no_of_rxns_thres: (int, default=10) number of reactions above which a pathway is not scored (too long)
- --data_train_file: (string) path to the trained data
- --log: (string, default=error) Set the log level, choices are 'debug', 'info', 'warning', 'error', 'critical'
- --version: Display program's version and exit
rpthermo depends on rplibs, which 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.
conda install -c conda-forge rpthermosoftwareupdate --install-rosetta --agree-to-licenseCONDA_SUBDIR=osx-64 conda install -c conda-forge rpfbaOr with mamba:
CONDA_SUBDIR=osx-64 mamba install -c conda-forge rpfbaconda config --env --set subdir osx-64python -c "import rpfba; print('rpfba installed successfully')"CONDA_SUBDIR=osx-64 conda env create -f environment.yamlMake sure you are using:
CONDA_SUBDIR=osx-64Check:
conda config --show subdirExpected output:
subdir: osx-64From Python code
from rpscore import predict_score
from rplibs import rpPathway
pathway = rpPathway(
infile='tests/rpscore/data/pathway.xml'
)
global_score = predict_score(pathway)From CLI
python -m rpscore <input_rpsbml> <output_rpsbml>Test can be run with the following commands:
cd tests
pytest -vFor further tests and development tools, a CI toolkit is provided in ci folder (see ci/README.md).
- Jean-Loup Faulon
- Joan Hérisson
This project is licensed under the MIT License - see the LICENSE.md file for details
- Thomas Duigou