annotate pyrevpos/pyrevpos.xml @ 0:bf92b6bd8b20 draft

Uploaded
author fubar
date Tue, 24 Nov 2020 21:59:01 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
1 <tool name="pyrevpos" id="pyrevpos" version="0.01">
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
2 <!--Cite: Creating re-usable tools from scripts doi: 10.1093/bioinformatics/bts573-->
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
3 <!--Source in git at: https://github.com/fubar2/toolfactory-->
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
4 <!--Created by ross.lazarus@gmail.com at 22/08/2020 22:44:22 using the Galaxy Tool Factory.-->
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
5 <description>pyrevpos</description>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
6 <requirements>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
7 <requirement version="" type="package">python</requirement>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
8 </requirements>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
9 <configfiles>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
10 <configfile name="runMe"><![CDATA[
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
11
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
12 # reverse order of text by row
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
13 import sys
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
14 inp = sys.argv[1]
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
15 outp = sys.argv[2]
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
16 i = open(inp,'r').readlines()
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
17 o = open(outp,'w')
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
18 for row in i:
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
19 rs = row.rstrip()
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
20 rs = list(rs)
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
21 rs.reverse()
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
22 o.write(''.join(rs))
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
23 o.write('\n')
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
24 o.close()
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
25 ]]></configfile>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
26 </configfiles>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
27 <stdio>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
28 <exit_code range="1:" level="fatal"/>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
29 </stdio>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
30 <version_command/>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
31 <command interpreter="python"><![CDATA[$runMe $input1
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
32 $output]]></command>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
33 <inputs>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
34 <param help="parameter_help" label="inputfile" optional="false" multiple="false" format="txt" type="data" name="input1" argument="input1"/>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
35 </inputs>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
36 <outputs>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
37 <data hidden="false" format="txt" name="output"/>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
38 </outputs>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
39 <tests>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
40 <test>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
41 <output value="output_sample" name="output" format="txt"/>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
42 <param value="input1_sample" name="input1"/>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
43 </test>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
44 </tests>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
45 <help><![CDATA[
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
46 **What it Does**
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
47 ]]></help>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
48 </tool>
bf92b6bd8b20 Uploaded
fubar
parents:
diff changeset
49