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

Changeset 11:573c36ff075f (2016-08-16)
Previous changeset 10:c9e6e2e7697c (2016-08-16) Next changeset 12:05d48b118f81 (2016-08-16)
Commit message:
Uploaded
modified:
filter_fasta.py
b
diff -r c9e6e2e7697c -r 573c36ff075f filter_fasta.py
--- a/filter_fasta.py Tue Aug 16 20:36:24 2016 -0400
+++ b/filter_fasta.py Tue Aug 16 20:40:19 2016 -0400
[
@@ -84,10 +84,8 @@
         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
-fasta = r"C:\Users\Owner\Desktop\APOSTL\SAINT_preprocessing\SwissProt_HUMAN_2014_08.fasta"
-data = r"C:\Users\Owner\Desktop\APOSTL\Scaffold\scaffold_EGFR.txt"
+fasta = sys.argv[1] # fasta file to filter
+data = sys.argv[2] # scaffold report #2 -- filename
 
 FilterFastaSeq(fasta,getAccessions(data))
 os.rename("output.txt", "output1.txt")
\ No newline at end of file