view toolVisualizer.py @ 25:2f8af738e139 draft

planemo upload commit c74b3ff2329f69ac7b309cc7d9bdf7b9d78106fb-dirty
author pablocarb
date Fri, 05 Jul 2019 17:24:48 -0400
parents bce330b97d42
children
line wrap: on
line source

#!/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 )