# HG changeset patch
# User jay
# Date 1609269849 0
# Node ID f575cb9c9a6715c381d31efe46aab70b0e047ebd
# Parent  f2f389b52376df5f34b64e07d64faa7280e9a61e
"planemo upload for repository https://github.com/jaidevjoshi83/pdaug commit 8b18552f6d2b2261efebe1075ff4c18a295b94dd"

diff -r f2f389b52376 -r f575cb9c9a67 PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.py
--- a/PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.py	Tue Dec 29 04:51:10 2020 +0000
+++ b/PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.py	Tue Dec 29 19:24:09 2020 +0000
@@ -21,14 +21,16 @@
             l.append(line.split('\t')[1].strip('\n').strip('\r'))
         l = list(set(l))
 
+        print(l)
+
         for line in lines:
 
-            if l[0] in line.split('\t')[1].strip('\n').strip('\r'):
+            if l[1] in line.split('\t')[1].strip('\n').strip('\r'):
                 n= n+1
                 of1.write('>peptide_'+str(n)+'_'+str(l[0])+'\n')
                 of1.write(line.split('\t')[0]+'\n')
 
-            if l[1] in line.split('\t')[1].strip('\n').strip('\r'):
+            if l[0] in line.split('\t')[1].strip('\n').strip('\r'):
                 m= m+1
                 of2.write('>peptide_'+str(m)+'_'+str(l[1])+'\n')
                 of2.write(line.split('\t')[0]+'\n')
diff -r f2f389b52376 -r f575cb9c9a67 PDAUG_TSVtoFASTA/test-data/test1/Negative.fasta
--- a/PDAUG_TSVtoFASTA/test-data/test1/Negative.fasta	Tue Dec 29 04:51:10 2020 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
->peptide_1
-GLFDIVKKVVGALG
->peptide_2
-KLLKLLKKKLLK
->peptide_3
-KLLLLKLLK
->peptide_4
-GLFDIVKKVVGALG
->peptide_5
-GLFDIVKKVVGALG
->peptide_6
-KLLKLLKKKLLK
->peptide_7
-KLLLLKLLK
->peptide_8
-GLFDIVKKVVGALG
->peptide_9
-GLFDIVKKVVGALG
->peptide_10
-KLLKLLKKKLLK
->peptide_11
-KLLLLKLLK
->peptide_12
-GLFDIVKKVVGALG
diff -r f2f389b52376 -r f575cb9c9a67 PDAUG_TSVtoFASTA/test-data/test1/Positive.fasta
--- a/PDAUG_TSVtoFASTA/test-data/test1/Positive.fasta	Tue Dec 29 04:51:10 2020 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
->peptide_1
-GLFDIVKKVVGALG
->peptide_2
-KLLKLLKKKLLK
->peptide_3
-KLLLLKLLK
->peptide_4
-GLFDIVKKVVGALG
->peptide_5
-GLFDIVKKVVGALG
->peptide_6
-KLLKLLKKKLLK
->peptide_7
-KLLLLKLLK
->peptide_8
-GLFDIVKKVVGALG
->peptide_9
-KLLKLLKKKLLK
->peptide_10
-KLLLLKLLK
->peptide_11
-GLFDIVKKVVGALG