annotate absval/absval.xml @ 1:aff6409d16d1 draft

Uploaded
author fubar2
date Fri, 08 Dec 2023 08:47:36 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
1 <tool name="absval" id="absval" version="1" profile="22.05">
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
2 <!--Source in git at: https://github.com/fubar2/galaxy_tf_overlay-->
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
3 <!--Created by toolfactory@galaxy.org at 08/12/2023 08:31:05 using the Galaxy Tool Factory.-->
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
4 <description>Returns a file of absolute values from differences</description>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
5 <requirements>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
6 <requirement type="package">python</requirement>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
7 </requirements>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
8 <version_command><![CDATA[echo "1"]]></version_command>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
9 <command><![CDATA[python
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
10 '$runme'
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
11 <
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
12 $absin
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
13 >
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
14 $absout]]></command>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
15 <configfiles>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
16 <configfile name="runme"><![CDATA[#raw
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
17 import sys
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
18 inp = []
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
19 for line in sys.stdin:
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
20 if line.strip() > '':
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
21 ls = line.split()
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
22 if len(ls) > 2:
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
23 x = abs(int(ls[2]) - int(ls[1]))
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
24 ls.append((str(x)))
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
25 inp.append('\t'.join(ls))
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
26 else:
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
27 break
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
28 sys.stdout.write('\n'.join(inp))
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
29 #end raw]]></configfile>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
30 </configfiles>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
31 <inputs>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
32 <param name="absin" type="data" optional="false" label="absin" help="Input file to be converted using abs()" format="csfasta,txt,tabular" multiple="false"/>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
33 </inputs>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
34 <outputs>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
35 <data name="absout" format="txt" hidden="false"/>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
36 </outputs>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
37 <tests>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
38 <test>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
39 <param name="absin" value="absin_sample"/>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
40 <output name="absout" value="absout_sample"/>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
41 </test>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
42 </tests>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
43 <help><![CDATA[
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
44 **What it Does**
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
45 Takes absolute values on the input
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
46
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
47 This tool is a temporary step to enable the Sanger TreeVal NF gap_finder workflow to be
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
48 translated into Galaxy
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
49
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
50 See https://github.com/fubar2/treeval_gal/tree/main/gap_finder
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
51 ]]></help>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
52 <citations>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
53 <citation type="doi">10.1093/bioinformatics/bts573</citation>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
54 </citations>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
55 </tool>
aff6409d16d1 Uploaded
fubar2
parents:
diff changeset
56