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
conda install -c conda-forge rpextractsink
from rr_cache import rrCache
from rpextractsink import genSink
cache = rrCache(
attrs=['cid_strc'],
cache_dir=args.cache_dir,
logger=logger
)
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