diff toolVisualizer.py @ 11:bce330b97d42 draft

planemo upload commit 58fe26f452c61f1682290f662666043937943b81-dirty
author pablocarb
date Tue, 11 Jun 2019 04:04:24 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/toolVisualizer.py	Tue Jun 11 04:04:24 2019 -0400
@@ -0,0 +1,31 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+"""
+Created on Mar 19
+
+@author: Pablo Carbonell
+@description: Pathway visualizer.
+
+"""
+import argparse
+import os
+from rpviz.main import run
+
+def arguments():
+    parser = argparse.ArgumentParser(description='toolVisualizer: Pathway visualizer. Pablo Carbonell, SYNBIOCHEM, 2019')
+    parser.add_argument('infile', 
+                        help='Input SBML pathway file.')
+    parser.add_argument('outfile', 
+                        help='Output HTML file.')
+    return parser
+    
+def runVisualizer( infile, outfile ):
+    run(infile,outfile)
+
+
+
+if __name__ == "__main__":
+    parser = arguments()
+    arg = parser.parse_args()
+    assert os.path.exists(arg.infile)
+    runVisualizer( arg.infile, arg.outfile )