Repository 'pdaug_tsvtofasta'
hg clone https://toolshed.g2.bx.psu.edu/repos/jay/pdaug_tsvtofasta

Changeset 4:87b77f2ddb0c (2020-12-29)
Previous changeset 3:e873a5224d1e (2020-12-29) Next changeset 5:f93187136dfb (2020-12-30)
Commit message:
"planemo upload for repository https://github.com/jaidevjoshi83/pdaug commit 8b18552f6d2b2261efebe1075ff4c18a295b94dd"
modified:
PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.py
PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.xml
removed:
PDAUG_TSVtoFASTA/test-data/test1/Negative.fasta
PDAUG_TSVtoFASTA/test-data/test1/Positive.fasta
b
diff -r e873a5224d1e -r 87b77f2ddb0c PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.py
--- a/PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.py Tue Dec 29 03:57:13 2020 +0000
+++ b/PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.py Tue Dec 29 18:13:00 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')
b
diff -r e873a5224d1e -r 87b77f2ddb0c PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.xml
--- a/PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.xml Tue Dec 29 03:57:13 2020 +0000
+++ b/PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.xml Tue Dec 29 18:13:00 2020 +0000
b
@@ -49,8 +49,8 @@
     <test>
       <param name="InFile" value="test1.tsv"/>
       <param name="Method" value="WithClassLabel"/>
-      <output name="OutFile1" file="test1/Positive.fasta"/>
-      <output name="OutFile2" file="test1/Negative.fasta"/>
+      <output name="OutFile1" file="test1/FirstDataFile.fasta"/>
+      <output name="OutFile2" file="test1/SecondDataFile.fasta"/>
     </test>
     <test>
       <param name="InFile" value="test2.tsv"/>
b
diff -r e873a5224d1e -r 87b77f2ddb0c PDAUG_TSVtoFASTA/test-data/test1/Negative.fasta
--- a/PDAUG_TSVtoFASTA/test-data/test1/Negative.fasta Tue Dec 29 03:57:13 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
b
@@ -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
b
diff -r e873a5224d1e -r 87b77f2ddb0c PDAUG_TSVtoFASTA/test-data/test1/Positive.fasta
--- a/PDAUG_TSVtoFASTA/test-data/test1/Positive.fasta Tue Dec 29 03:57:13 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
b
@@ -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