def main(): # Parse command line arguments options, args = doc_optparse.parse(__doc__) try: template = Template(args[0]) format = options.format if not format: format = "maf" except: doc_optparse.exception() reader = align.get_reader(format, sys.stdin) for a in reader: template.a = a template.c = a.components print template
def main(): # Parse command line arguments options, args = doc_optparse.parse( __doc__ ) try: template = Template( args[0] ) format = options.format if not format: format = "maf" except: doc_optparse.exception() reader = align.get_reader( format, sys.stdin ) for a in reader: template.a = a template.c = a.components print template