Mercurial > repos > fubar > toolfactory
comparison toolfactory/test-data/generated_xml_sample @ 50:807b8d103f18 draft default tip
Uploaded
author | fubar |
---|---|
date | Wed, 09 Jun 2021 02:28:01 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
49:36d46b20095a | 50:807b8d103f18 |
---|---|
1 <tool name="pyrevpos" id="pyrevpos" version="0.01"> | |
2 <!--Source in git at: https://github.com/fubar2/toolfactory--> | |
3 <!--Created by test@bx.psu.edu at 11/05/2021 18:27:13 using the Galaxy Tool Factory.--> | |
4 <description>positional reverse</description> | |
5 <requirements> | |
6 <requirement type="package">python</requirement> | |
7 </requirements> | |
8 <stdio> | |
9 <exit_code range="1:" level="fatal"/> | |
10 </stdio> | |
11 <version_command><![CDATA[echo "0.01"]]></version_command> | |
12 <command><![CDATA[python | |
13 $runme | |
14 $input | |
15 $output2]]></command> | |
16 <configfiles> | |
17 <configfile name="runme"><![CDATA[#raw | |
18 | |
19 import sys; inp = sys.argv[1]; outp = sys.argv[2]; inlist = open(inp,'r').readlines(); o = open(outp,'w'); rs = [''.join(list(reversed(x.rstrip()))) for x in inlist]; o.write('\n'.join(rs)); o.close() | |
20 | |
21 #end raw]]></configfile> | |
22 </configfiles> | |
23 <inputs> | |
24 <param name="input" type="data" optional="false" label="input" help="help" format="txt" multiple="false"/> | |
25 </inputs> | |
26 <outputs> | |
27 <data name="output2" format="txt" label="output2" hidden="false"/> | |
28 </outputs> | |
29 <tests> | |
30 <test> | |
31 <output name="output2" value="output2_sample" compare="diff" lines_diff="0"/> | |
32 <param name="input" value="input_sample"/> | |
33 </test> | |
34 </tests> | |
35 <help><![CDATA[ | |
36 | |
37 help text goes here | |
38 | |
39 | |
40 | |
41 ------ | |
42 | |
43 | |
44 Script:: | |
45 | |
46 import sys; inp = sys.argv[1]; outp = sys.argv[2]; inlist = open(inp,'r').readlines(); o = open(outp,'w'); rs = [''.join(list(reversed(x.rstrip()))) for x in inlist]; o.write('\n'.join(rs)); o.close() | |
47 | |
48 ]]></help> | |
49 <citations> | |
50 <citation type="doi">10.1093/bioinformatics/bts573</citation> | |
51 </citations> | |
52 </tool> | |
53 |