Mercurial > repos > nml > collapse_collections
annotate merge.xml @ 2:4263967e8d40 draft
planemo upload commit ee055b53af5f4a3420b35f3641d45c0559be37fc
author | nml |
---|---|
date | Tue, 17 May 2016 15:56:30 -0400 |
parents | a78a70d4806c |
children | c0c988378838 |
rev | line source |
---|---|
2
4263967e8d40
planemo upload commit ee055b53af5f4a3420b35f3641d45c0559be37fc
nml
parents:
1
diff
changeset
|
1 <tool id="collapse_dataset" name="Collapse Collection" version="2.1"> |
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: |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
9 #if str($filename.place_name) == "same": |
2
4263967e8d40
planemo upload commit ee055b53af5f4a3420b35f3641d45c0559be37fc
nml
parents:
1
diff
changeset
|
10 printf "$f.element_identifier\t" ; |
1
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
11 #else |
2
4263967e8d40
planemo upload commit ee055b53af5f4a3420b35f3641d45c0559be37fc
nml
parents:
1
diff
changeset
|
12 printf "$f.element_identifier\n" ; |
1
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
13 #end if |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
14 #end if |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
15 cat "$f" ; |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
16 #end for# |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
17 ) |
0
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
18 > $output |
1
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
19 |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
20 ]]> |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
21 |
0
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
22 </command> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
23 <inputs> |
2
4263967e8d40
planemo upload commit ee055b53af5f4a3420b35f3641d45c0559be37fc
nml
parents:
1
diff
changeset
|
24 <param name="input_list" type="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
|
25 <conditional name="filename"> |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
26 <param name="add_name" type="boolean" display="checkboxes" label="Append File name"/> |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
27 <when value="true"> |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
28 <param name="place_name" type="select" label="Where to add dataset name"> |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
29 <option value="same">Same line</option> |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
30 <option value="above">Line Above</option> |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
31 </param> |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
32 </when> |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
33 <when value='false'> |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
34 </when> |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
35 </conditional> |
0
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
36 </inputs> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
37 <outputs> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
38 <data name="output" format_source="input_list" ></data> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
39 </outputs> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
40 <tests> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
41 <test> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
42 <param name="input_list"> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
43 <collection type="list"> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
44 <element name="input1" value="input1" /> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
45 <element name="input2" value="input2" /> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
46 </collection> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
47 </param> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
48 <output name="output" file="answer.txt"/> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
49 </test> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
50 </tests> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
51 <help> |
1
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
52 Combines a list collection into a single file dataset with option to include dataset names. |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
53 |
a78a70d4806c
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
nml
parents:
0
diff
changeset
|
54 |
0
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
55 </help> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
56 <citations> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
57 </citations> |
49bd84e136c7
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
nml
parents:
diff
changeset
|
58 </tool> |