Mercurial > repos > fubar > tacrev
view pyrevpos/pyrevpos.xml @ 0:bf92b6bd8b20 draft
Uploaded
author | fubar |
---|---|
date | Tue, 24 Nov 2020 21:59:01 +0000 |
parents | |
children |
line wrap: on
line source
<tool name="pyrevpos" id="pyrevpos" version="0.01"> <!--Cite: Creating re-usable tools from scripts doi: 10.1093/bioinformatics/bts573--> <!--Source in git at: https://github.com/fubar2/toolfactory--> <!--Created by ross.lazarus@gmail.com at 22/08/2020 22:44:22 using the Galaxy Tool Factory.--> <description>pyrevpos</description> <requirements> <requirement version="" type="package">python</requirement> </requirements> <configfiles> <configfile name="runMe"><![CDATA[ # reverse order of text by row import sys inp = sys.argv[1] outp = sys.argv[2] i = open(inp,'r').readlines() o = open(outp,'w') for row in i: rs = row.rstrip() rs = list(rs) rs.reverse() o.write(''.join(rs)) o.write('\n') o.close() ]]></configfile> </configfiles> <stdio> <exit_code range="1:" level="fatal"/> </stdio> <version_command/> <command interpreter="python"><![CDATA[$runMe $input1 $output]]></command> <inputs> <param help="parameter_help" label="inputfile" optional="false" multiple="false" format="txt" type="data" name="input1" argument="input1"/> </inputs> <outputs> <data hidden="false" format="txt" name="output"/> </outputs> <tests> <test> <output value="output_sample" name="output" format="txt"/> <param value="input1_sample" name="input1"/> </test> </tests> <help><![CDATA[ **What it Does** ]]></help> </tool>