annotate abslen_bed/abslen_bed.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="abslen_bed" id="abslen_bed" version="1" 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 10/12/2023 11:37:03 using the Galaxy Tool Factory.-->
0183cad9d13b planemo upload
fubar
parents:
diff changeset
4 <description>Returns a file of absolute values from differences</description>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
5 <requirements>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
6 <requirement type="package">python</requirement>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
7 </requirements>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
8 <version_command><![CDATA[echo "1"]]></version_command>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
9 <command><![CDATA[python
0183cad9d13b planemo upload
fubar
parents:
diff changeset
10 '$runme'
0183cad9d13b planemo upload
fubar
parents:
diff changeset
11 <
0183cad9d13b planemo upload
fubar
parents:
diff changeset
12 $absin
0183cad9d13b planemo upload
fubar
parents:
diff changeset
13 >
0183cad9d13b planemo upload
fubar
parents:
diff changeset
14 $absout]]></command>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
15 <configfiles>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
16 <configfile name="runme"><![CDATA[#raw
0183cad9d13b planemo upload
fubar
parents:
diff changeset
17 import sys
0183cad9d13b planemo upload
fubar
parents:
diff changeset
18 inp = []
0183cad9d13b planemo upload
fubar
parents:
diff changeset
19 for line in sys.stdin:
0183cad9d13b planemo upload
fubar
parents:
diff changeset
20 if line.strip() > '':
0183cad9d13b planemo upload
fubar
parents:
diff changeset
21 ls = line.split()
0183cad9d13b planemo upload
fubar
parents:
diff changeset
22 if len(ls) > 2:
0183cad9d13b planemo upload
fubar
parents:
diff changeset
23 x = abs(int(ls[2]) - int(ls[1]))
0183cad9d13b planemo upload
fubar
parents:
diff changeset
24 ls.append((str(x)))
0183cad9d13b planemo upload
fubar
parents:
diff changeset
25 inp.append('\t'.join(ls))
0183cad9d13b planemo upload
fubar
parents:
diff changeset
26 else:
0183cad9d13b planemo upload
fubar
parents:
diff changeset
27 break
0183cad9d13b planemo upload
fubar
parents:
diff changeset
28 sys.stdout.write('\n'.join(inp))
0183cad9d13b planemo upload
fubar
parents:
diff changeset
29 #end raw]]></configfile>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
30 </configfiles>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
31 <inputs>
0183cad9d13b planemo upload
fubar
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"/>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
33 </inputs>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
34 <outputs>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
35 <data name="absout" format="bed" hidden="false"/>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
36 </outputs>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
37 <tests>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
38 <test>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
39 <param name="absin" value="absin_sample"/>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
40 <output name="absout" value="absout_sample"/>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
41 </test>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
42 </tests>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
43 <help><![CDATA[
0183cad9d13b planemo upload
fubar
parents:
diff changeset
44 **What it Does**
0183cad9d13b planemo upload
fubar
parents:
diff changeset
45 Takes absolute values on the input
0183cad9d13b planemo upload
fubar
parents:
diff changeset
46
0183cad9d13b planemo upload
fubar
parents:
diff changeset
47 This tool is a temporary step to enable the Sanger TreeVal NF gap_finder workflow to be
0183cad9d13b planemo upload
fubar
parents:
diff changeset
48 translated into Galaxy
0183cad9d13b planemo upload
fubar
parents:
diff changeset
49
0183cad9d13b planemo upload
fubar
parents:
diff changeset
50 See https://github.com/fubar2/treeval_gal/tree/main/gap_finder
0183cad9d13b planemo upload
fubar
parents:
diff changeset
51 ]]></help>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
52 <citations>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
53 <citation type="doi">10.1093/bioinformatics/bts573</citation>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
54 </citations>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
55 </tool>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
56