view miranda_parser.py @ 1:89d595ffa9db draft

planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/miranda commit f5c5f3d6ce676937f5c673ec7fc0631a9f490dc2
author earlhaminst
date Fri, 24 Mar 2017 12:47:52 -0400
parents 05bc31ccc323
children
line wrap: on
line source

import sys

# get hits from miranda scans
with open(sys.argv[1]) as infile1:
    with open(sys.argv[2], "w") as outfile:
        for line1 in infile1:
            if "%" in line1 and "Forward:" not in line1:
                outfile.write(line1)