GithubHelp home page GithubHelp logo

brsynth / rpvisualiser Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 586 KB

Metabolic engineering visualizer

License: MIT License

Dockerfile 0.01% Shell 0.03% Python 2.55% JavaScript 2.50% HTML 94.53% CSS 0.37%

rpvisualiser's Introduction

rpviz

Metabolic engineering visualizer

csv_network.py : To read information from a csv file sbml2list.py : To read information from a sbml file

smile2picture.py : To convert SMILES into svg image

network2json.py : To convert the network in a json file

1 html/pathway

py2html : To create an html file from a json file, using a template (in html/template.html) with jinja2 and to use it with

1 html updated for each pathway

py2html2 : To create a .js file with the json file and to open it with the template2 (in html/template2.html) and the network_viewer.js

nxvisualizer.py : To open the network directly in Cytoscape

Retropath2.0 wrapper

Implementation of the KNIME retropath2.0 workflow. Takes for input the minimal (dmin) and maximal (dmax) diameter for the reaction rules and the maximal path length (maxSteps). The tool expects the following files: rules.csv, sink.csv and source.csv and produces results in an output folder.

Standalone

Prerequisites

  • Python 3

Quick start

The main code is src/RetroPath2.py and can be run as the following:

python src/RetroPath2.py \
  -sinkfile <sink_file> \
  -sourcefile <source_file> \
  -max_steps 3 \
  -rulesfile <rules_file> \
  -topx 100 \
  -dmin 0 \
  -dmax 1000 \
  -mwmax_source 1000 \
  -mwmax_cof 1000 \
  -timeout 30 \
  -outdir <outdir_folder> \
  -is_forward False

Docker

RetroPath2 can be run into a docker container.

Prerequisites

Installation

Before running the container, the image has to be built with:

cd docker
docker-compose build

Run

Then, the tool is runnable by:

cd docker
./RetroPath2.sh
  -sinkfile <sink_file> \
  -sourcefile <source_file> \
  -max_steps 3 \
  -rulesfile <rules_file> \
  -topx 100 \
  -dmin 0 \
  -dmax 1000 \
  -mwmax_source 1000 \
  -mwmax_cof 1000 \
  -timeout 30 \
  -outdir <outdir_folder> \
  -is_forward False

To call the tool with fresh code:

docker-compose run --rm -v <absolutepath_to_src>:/home/src retropath2

To call the tool from any location:

cd docker
docker-compose run --rm \
    -v <path/to/source.csv>:/home/source.csv:ro \
    -v <path/to/sink.csv>:/home/sink.csv:ro \
    -v <path/to/rules.csv>:/home/rules.csv:ro \
    -v <path/to/output_folder>:/home/outdir \
    -w /home \
    retropath2 python src/RetroPath2.py \
        -sinkfile <sink_file> \
        -sourcefile <source_file> \
        -max_steps 3 \
        -rulesfile <rules_file> \
        -topx 100 \
        -dmin 0 \
        -dmax 1000 \
        -mwmax_source 1000 \
        -mwmax_cof 1000 \
        -timeout 30 \
        -outdir <outdir_folder> \
        -is_forward False

Test

All modes can be tested with:

cd test
./run[-in-docker].sh

How to cite RetroPath2.0?

Please cite:

Delépine B, Duigou T, Carbonell P, Faulon JL. RetroPath2.0: A retrosynthesis workflow for metabolic engineers. Metabolic Engineering, 45: 158-170, 2018. DOI: https://doi.org/10.1016/j.ymben.2017.12.002

rpvisualiser's People

Contributors

breakthewall avatar

Stargazers

Peter Clarke avatar  avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.