annotate merge.xml @ 3:c0c988378838 draft

planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
author nml
date Mon, 24 Oct 2016 16:23:11 -0400
parents 4263967e8d40
children 25136a2b0cfe
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
1 <tool id="collapse_dataset" name="Collapse Collection" version="3.0">
0
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
2 <description>Collapse collection into single dataset in order of the collection</description>
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
3 <command>
1
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
4 <![CDATA[
2
4263967e8d40 planemo upload commit ee055b53af5f4a3420b35f3641d45c0559be37fc
nml
parents: 1
diff changeset
5
1
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
6 (
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
7 #for $f in $input_list#
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
8 #if $filename.add_name:
3
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
9 #if str($filename.place_name) == "same_once":
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
10 printf "$f.element_identifier\t"; cat "$f";
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
11 #elif str($filename.place_name) == "same_multiple":
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
12 awk '{print "$f.element_identifier\t"$0}' "$f";
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
13 #elif str($filename.place_name) == "above":
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
14 printf "$f.element_identifier\n"; cat "$f";
1
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
15 #end if
3
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
16 #else:
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
17 cat "$f" ;
1
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
18 #end if
3
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
19
1
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
20 #end for#
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
21 )
0
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
22 > $output
1
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
23
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
24 ]]>
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
25
0
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
26 </command>
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
27 <inputs>
3
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
28 <param name="input_list" type="data" format="data" label="Collection of files to collapse into single dataset" help="" optional="false" multiple="true" />
1
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
29 <conditional name="filename">
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
30 <param name="add_name" type="boolean" display="checkboxes" label="Append File name"/>
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
31 <when value="true">
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
32 <param name="place_name" type="select" label="Where to add dataset name">
3
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
33 <option value="same_once">Same line and only once per dataset</option>
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
34 <option value="same_multiple">Same line and each line in dataset</option>
1
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
35 <option value="above">Line Above</option>
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
36 </param>
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
37 </when>
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
38 <when value='false'>
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
39 </when>
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
40 </conditional>
0
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
41 </inputs>
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
42 <outputs>
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
43 <data name="output" format_source="input_list" ></data>
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
44 </outputs>
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
45 <tests>
3
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
46 <test>
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
47 <param name="input_list">
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
48 <collection type="list">
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
49 <element name="input1" value="input1" />
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
50 <element name="input2" value="input2" />
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
51 </collection>
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
52 </param>
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
53 <output name="output" file="answer.txt"/>
c0c988378838 planemo upload commit 6bde05f38465311441e89cfa070f03d3b6edad1b
nml
parents: 2
diff changeset
54 </test>
0
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
55 </tests>
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
56 <help>
1
a78a70d4806c planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents: 0
diff changeset
57 Combines a list collection into a single file dataset with option to include dataset names.
0
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
58 </help>
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
59 <citations>
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
60 </citations>
49bd84e136c7 planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff changeset
61 </tool>