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