annotate catWrapper.xml @ 0:6f54dc6b37da draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
author artbio
date Sun, 11 Mar 2018 18:19:40 -0400
parents
children 3a4694d4354f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
1 <tool id="cat_multi_datasets" name="Concatenate multiple datasets" version="0.3">
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
2 <description>tail-to-head</description>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
3 <command><![CDATA[
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
4 #if $headers == "No":
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
5 cat
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
6 #for $file in $input
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
7 "$file"
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
8 #end for
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
9 > "$out_file1"
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
10 #else:
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
11 #for $file in $input
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
12 printf "# ${file.element_identifier}\n" >> "$out_file1" &&
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
13 cat "$file" >> "$out_file1" &&
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
14 #end for
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
15 sleep 1
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
16 #end if
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
17 ]]>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
18 </command>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
19 <inputs>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
20 <param name="headers" type="select" label="include dataset names">
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
21 <option value="No" selected="true">No</option>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
22 <option value="Yes">Yes</option>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
23 </param>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
24 <param name="input" type="data" label="Concatenate Dataset" multiple="True"/>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
25 </inputs>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
26 <outputs>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
27 <data name="out_file1" format_source="input" metadata_source="input"/>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
28 </outputs>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
29 <tests>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
30 <test>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
31 <param name="headers" value="No" />
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
32 <param name="input" value="1.bed,2.bed"/>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
33 <output name="out_file1" file="cat_wrapper_out1.bed"/>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
34 </test>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
35 <test>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
36 <param name="headers" value="Yes" />
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
37 <param name="input" value="1.bed,2.bed"/>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
38 <output name="out_file1" file="cat_wrapper_out2.bed"/>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
39 </test>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
40
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
41 </tests>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
42 <help>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
43
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
44 .. class:: warningmark
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
45
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
46 **WARNING:** This tool does not check if the datasets being concatenated are in the same format.
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
47
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
48 -----
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
49
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
50 **What it does**
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
51
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
52 Concatenates datasets
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
53
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
54 -----
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
55
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
56 **Example**
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
57
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
58 Concatenating Dataset::
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
59
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
60 chrX 151087187 151087355 A 0 -
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
61 chrX 151572400 151572481 B 0 +
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
62
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
63 with Dataset1::
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
64
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
65 chr1 151242630 151242955 X 0 +
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
66 chr1 151271715 151271999 Y 0 +
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
67 chr1 151278832 151279227 Z 0 -
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
68
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
69 and with Dataset2::
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
70
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
71 chr2 100000030 200000955 P 0 +
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
72 chr2 100000015 200000999 Q 0 +
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
73
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
74 will result in the following::
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
75
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
76 chrX 151087187 151087355 A 0 -
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
77 chrX 151572400 151572481 B 0 +
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
78 chr1 151242630 151242955 X 0 +
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
79 chr1 151271715 151271999 Y 0 +
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
80 chr1 151278832 151279227 Z 0 -
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
81 chr2 100000030 200000955 P 0 +
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
82 chr2 100000015 200000999 Q 0 +
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
83
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
84 -----
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
85
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
86 Adapted from galaxy's catWrapper.xml to allow multiple input files.
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
87
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
88 </help>
6f54dc6b37da planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/concat_multi_datasets commit 732cefeff9a38b50f23820441422d4df3974b922
artbio
parents:
diff changeset
89 </tool>