changeset 7:e01b49c112b0 draft

Uploaded
author bornea
date Sat, 06 Aug 2016 17:10:23 -0400
parents 5990c4dbfbaa
children afcea0f23a55
files filter_fasta.py
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/filter_fasta.py	Sat Aug 06 17:04:57 2016 -0400
+++ b/filter_fasta.py	Sat Aug 06 17:10:23 2016 -0400
@@ -79,10 +79,11 @@
                 if merged!="":
                     seq.append(merged)
     cnt=0
-    with open("output.fasta","w") as x:
-        for i in header:
-            x.write(i+'\n'+seq[cnt]+'\n')
-            cnt+=1
+    x = open("output.fasta","w"):
+    for i in header:
+        x.write(i+'\n'+seq[cnt]+'\n')
+        cnt+=1
+    x.close()
 fasta = sys.argv[1] # fasta file to filter
 data = sys.argv[2] # scaffold report #2 -- filename