Repository 'filter_fasta'
hg clone https://toolshed.g2.bx.psu.edu/repos/bornea/filter_fasta

Changeset 9:6794a638a504 (2016-08-06)
Previous changeset 8:afcea0f23a55 (2016-08-06) Next changeset 10:c9e6e2e7697c (2016-08-16)
Commit message:
Uploaded
modified:
filter_fasta.py
b
diff -r afcea0f23a55 -r 6794a638a504 filter_fasta.py
--- a/filter_fasta.py Sat Aug 06 17:12:36 2016 -0400
+++ b/filter_fasta.py Sat Aug 06 17:15:14 2016 -0400
[
@@ -79,7 +79,7 @@
                 if merged!="":
                     seq.append(merged)
     cnt=0
-    x = open("output.fasta","w")
+    x = open("output.txt","w")
     for i in header:
         x.write(i+'\n'+seq[cnt]+'\n')
         cnt+=1
@@ -88,4 +88,4 @@
 data = sys.argv[2] # scaffold report #2 -- filename
 
 FilterFastaSeq(fasta,getAccessions(data))
-os.rename("output.fasta", sys.argv[3])
\ No newline at end of file
+os.rename("output.txt", sys.argv[3])
\ No newline at end of file