comparison pyrev_pos_test/pyrev_pos_test.xml @ 1:0183cad9d13b draft

planemo upload
author fubar
date Thu, 22 Feb 2024 10:48:01 +0000
parents
children
comparison
equal deleted inserted replaced
0:2beaae16651e 1:0183cad9d13b
1 <tool name="pyrev_pos_test" id="pyrev_pos_test" version="0.01" profile="22.05">
2 <!--Source in git at: https://github.com/fubar2/galaxy_tf_overlay-->
3 <!--Created by toolfactory@galaxy.org at 22/02/2024 10:27:18 using the Galaxy Tool Factory.-->
4 <description></description>
5 <requirements/>
6 <version_command><![CDATA[echo "0.01"]]></version_command>
7 <command><![CDATA[python
8 '$runme'
9 $Input_text_file_to_be_reversed
10 $pyrev_positionalparse_output]]></command>
11 <configfiles>
12 <configfile name="runme"><![CDATA[#raw
13 ## reverse order of text by row
14 ## ToolFactory demonstration
15 ## positional parameters
16 import sys
17 inp = sys.argv[1]
18 outp = sys.argv[2]
19 i = open(inp,'r').readlines()
20 o = open(outp,'w')
21 for row in i:
22 rs = row.rstrip()
23 rs = list(rs)
24 rs.reverse()
25 o.write(''.join(rs))
26 o.write('\n')
27 o.close()
28 #end raw]]></configfile>
29 </configfiles>
30 <inputs>
31 <param name="Input_text_file_to_be_reversed" type="data" optional="false" label="Input text file to be reversed" help="" format="txt" multiple="false"/>
32 </inputs>
33 <outputs>
34 <data name="pyrev_positionalparse_output" format="txt" label="pyrev_positionalparse_output" hidden="false"/>
35 </outputs>
36 <tests>
37 <test>
38 <output name="pyrev_positionalparse_output" value="pyrev_positionalparse_output_sample" compare="diff" lines_diff="0"/>
39 <param name="Input_text_file_to_be_reversed" value="Input_text_file_to_be_reversed_sample"/>
40 </test>
41 </tests>
42 <help><![CDATA[
43 **What it Does**
44 ]]></help>
45 <citations>
46 <citation type="doi">10.1093/bioinformatics/bts573</citation>
47 </citations>
48 </tool>
49