-
Notifications
You must be signed in to change notification settings - Fork 0
/
split_paired_collection.xml
53 lines (45 loc) · 1.54 KB
/
split_paired_collection.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version='1.0' encoding='utf-8'?>
<tool id="split_paired_collection" name="Split Paired Collection" version="0.2">
<description>To split the elements of a Paired Dataset Collection into two distinct outputs</description>
<command>
mv $input_collection.forward $forward_element;
mv $input_collection.reverse $reverse_element;
</command>
<inputs>
<param name="input_collection" type="data_collection" collection_type="paired" label="Input Paired Collection"/>
</inputs>
<outputs>
<data name="forward_element" />
<data name="reverse_element" />
</outputs>
<tests>
<test>
<param name="input_collection">
<collection type="paired">
<element name="forward" value="forward.txt" />
<element name="reverse" value="reverse.txt" />
</collection>
</param>
<output name="forward_element">
<assert_contents>
<has_line line="Forward Element" />
</assert_contents>
</output>
<output name="reverse_element">
<assert_contents>
<has_line line="Reverse Element" />
</assert_contents>
</output>
</test>
</tests>
<help>
.. class:: infomark
**Purpose**
To split the elements of a Paired Dataset Collection into two distinct outputs
-----
.. class:: infomark
**Inputs and outputs**
Input: Paired Dataset Collection
Outputs: two files corresponding to the two elements of said collection
</help>
</tool>