diff miranda_parser.py @ 0:05bc31ccc323 draft

planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/miranda commit e24b91d3051c422ee2a20caf8bb12f0896e2c84a-dirty
author earlhaminst
date Fri, 11 Nov 2016 07:03:25 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/miranda_parser.py	Fri Nov 11 07:03:25 2016 -0500
@@ -0,0 +1,8 @@
+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)