RetroPath2 sink generator. From a given SBML file, the tool will extract all the sink molecules and generate a csv file with the InChI structures. For each molecule, the InChI will be get from:
- The local cache (rrCache), if available
- The MetaNetX database from MIRIAM URLs (MetaNetX first)
Required:
- input_sbml: (string) Path to the input SBML file
Optional:
- --remove-dead-end: (boolean, default: True) Perform FVA (Flux Variability Analysis) evaluation to remove dead end metabolites
- --compartment-id: (string, default: 'c') Specify the compartment from which to extract the sink molecules. The default are for MetaNetX files
- --standalone: (boolean, default: False) If True, do not retrieve InChI from Internet
- --cache-dir: (string, default: None) Path to the cache directory
- output_sbml: (string) Path to the output csv file
rpextractsink 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 rpextractsinksoftwareupdate --install-rosetta --agree-to-licenseCONDA_SUBDIR=osx-64 conda install -c conda-forge rpextractsinkOr with mamba:
CONDA_SUBDIR=osx-64 mamba install -c conda-forge rpextractsinkconda config --env --set subdir osx-64python -c "import rpextractsink; print('rpextractsink 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-64from rr_cache import rrCache
from rpextractsink import genSink
cache = rrCache()
sink = genSink(cache, args.input_sbml)python -m rpextractsink --helpTest can be run with the following commands:
python -m pytest- Joan Hérisson
- Thomas Duigou, Melchior du Lac
This project is licensed under the MIT License - see the LICENSE file for details