comparison toolVisualizer.py @ 11:bce330b97d42 draft

planemo upload commit 58fe26f452c61f1682290f662666043937943b81-dirty
author pablocarb
date Tue, 11 Jun 2019 04:04:24 -0400
parents
children
comparison
equal deleted inserted replaced
10:6a1fbacdfaf5 11:bce330b97d42
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 """
4 Created on Mar 19
5
6 @author: Pablo Carbonell
7 @description: Pathway visualizer.
8
9 """
10 import argparse
11 import os
12 from rpviz.main import run
13
14 def arguments():
15 parser = argparse.ArgumentParser(description='toolVisualizer: Pathway visualizer. Pablo Carbonell, SYNBIOCHEM, 2019')
16 parser.add_argument('infile',
17 help='Input SBML pathway file.')
18 parser.add_argument('outfile',
19 help='Output HTML file.')
20 return parser
21
22 def runVisualizer( infile, outfile ):
23 run(infile,outfile)
24
25
26
27 if __name__ == "__main__":
28 parser = arguments()
29 arg = parser.parse_args()
30 assert os.path.exists(arg.infile)
31 runVisualizer( arg.infile, arg.outfile )