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