changeset 15:4a4888bf0338 draft

"planemo upload commit 5520427eafa1144d04445e0b87112a7ff615aed1"
author guerler
date Sun, 27 Sep 2020 20:52:58 +0000
parents b53a98b90354
children 16eb2acaaa20
files spring_minz.py spring_minz.xml test-data/dbCAN_result.txt test-data/pdb70_result.txt
diffstat 4 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/spring_minz.py	Sun Sep 27 14:13:49 2020 +0000
+++ b/spring_minz.py	Sun Sep 27 20:52:58 2020 +0000
@@ -43,7 +43,7 @@
 		interactions.sort(key=lambda tup: tup[1], reverse=True)
 	with open(args.output, 'a+') as output_file:
 		for i in interactions:
-			output_file.write("%s %s %s\n" % (args.name, i[0], i[1]))
+			output_file.write("%s\t%s\t%s\n" % (args.name, i[0], i[1]))
 
 def get_template_scores(hhr_file, min_score, identifier_length):
 	result = {}
--- a/spring_minz.xml	Sun Sep 27 14:13:49 2020 +0000
+++ b/spring_minz.xml	Sun Sep 27 20:52:58 2020 +0000
@@ -20,7 +20,7 @@
         <param name="idx" type="integer" label="Identifier length" value="6" min="1" max="20" help="Specify the length of the identifier e.g. `1ACB_A` has length 6."/>
     </inputs>
     <outputs>
-        <data format="txt" name="output" />
+        <data format="tabular" name="output" />
     </outputs>
     <tests>
         <test>
--- a/test-data/dbCAN_result.txt	Sun Sep 27 14:13:49 2020 +0000
+++ b/test-data/dbCAN_result.txt	Sun Sep 27 20:52:58 2020 +0000
@@ -1,9 +1,9 @@
-6W4H_A.hhr 6W4H_A.hhr 24.7
-6W9Q_A.hhr 6W4H_B.hhr 22.3
-6W9Q_A.hhr 6W9C_A.hhr 21.0
-6W37_A.hhr 6W9C_A.hhr 21.3
-6W37_A.hhr 6W4H_B.hhr 16.0
-6W37_A.hhr 6W37_A.hhr 14.0
-7BQY_A.hhr 6W9C_A.hhr 24.2
-7BQY_A.hhr 6W4H_B.hhr 24.0
-7BQY_A.hhr 6W37_A.hhr 14.0
+6W4H_A.hhr	6W4H_A.hhr	24.7
+6W9Q_A.hhr	6W4H_B.hhr	22.3
+6W9Q_A.hhr	6W9C_A.hhr	21.0
+6W37_A.hhr	6W9C_A.hhr	21.3
+6W37_A.hhr	6W4H_B.hhr	16.0
+6W37_A.hhr	6W37_A.hhr	14.0
+7BQY_A.hhr	6W9C_A.hhr	24.2
+7BQY_A.hhr	6W4H_B.hhr	24.0
+7BQY_A.hhr	6W37_A.hhr	14.0
--- a/test-data/pdb70_result.txt	Sun Sep 27 14:13:49 2020 +0000
+++ b/test-data/pdb70_result.txt	Sun Sep 27 20:52:58 2020 +0000
@@ -1,2 +1,2 @@
-NP_000282.1.hhr NP_000282.1.hhr 875.1
-NP_000282.1.hhr NP_000290.2.hhr 86.5
+NP_000282.1.hhr	NP_000282.1.hhr	875.1
+NP_000282.1.hhr	NP_000290.2.hhr	86.5