brsynth / RetroPath2-wrapper

Python wrapper for Retropath2.0 Knime workflow
MIT License
7 stars 1 forks source link

Unrequired metabolites and reactions in the network? #6

Open niraito opened 2 years ago

niraito commented 2 years ago

Hello, I was trying to reproduce pinocembrin production pathways by using:

You can find them collected here: 19-docs.zip

Here is my command using RetroPath2-wrapper on mentioned files, and the result:

python -m retropath2_wrapper 19-docs/E._coli_sink.csv 19-docs/retrorules_parsed.csv 19-repeat-of-11/ --source_file 19-docs/source.csv
/home/nilay/anaconda3/envs/rptools/lib/python3.9/runpy.py:127: RuntimeWarning: 'retropath2_wrapper.__main__' found in sys.modules after import of package 'retropath2_wrapper', but prior to execution of 'retropath2_wrapper.__main__'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))
Configuration
 + retropath2_wrapper
     |--version: 2.2.0
 + KNIME
     |--path: /home/nilay/anaconda3/envs/rptools/lib/python3.9/site-packages/retropath2_wrapper/.knime/linux/knime_4.5.0/knime
 + RetroPath2.0 workflow
     |--path: /home/nilay/anaconda3/envs/rptools/lib/python3.9/site-packages/retropath2_wrapper/workflows/RetroPath2.0_r20220104.knwf

Checking input data
   |- InChI
   |- Source in Sink (simple)
Initializing
   |- Formatting files for KNIME
Running KNIME... OK
   |- Checking Source in Sink (advanced)
OK
Results
   |- Checking...
   |--path: 19-repeat-of-11/

When I visualized it on Scope Viewer: zoom_out

When I zoomed in: zoom_in

And when I moved just the source molecule: move_source

I see there are many metabolites and reactions. However, the source molecule connects to only a small pathway. If the pathway is just two steps, why are there all these metabolites and reactions?

tduigou commented 2 years ago

Thanks @niraito for pointing out this. We were a bit overwelmed these last days, hence my late reply. I did check the result and it appears there's an issue in the way the scope is computed. I'll see how to correct that in RetroPath2.0. Notice that anyway this does not change the validity of the results, ie the scope is actually a "superset" of what it should be, but enumeration of pathways with rp2paths should not change.