changeset 0:7432970f4f80 draft default tip

planemo upload for repository https://github.com/scottx611x/split-paired-collection commit 163187a32873a873de175fb50b5fbe595b456ffd
author scottx611x
date Wed, 11 Oct 2017 13:33:01 -0400
parents
children
files split_paired_collection.xml test-data/forward.txt test-data/reverse.txt
diffstat 3 files changed, 55 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/split_paired_collection.xml	Wed Oct 11 13:33:01 2017 -0400
@@ -0,0 +1,53 @@
+<?xml version='1.0' encoding='utf-8'?>
+
+<tool id="split_paired_collection" name="Split Paired Collection" version="0.1">
+    <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>
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/forward.txt	Wed Oct 11 13:33:01 2017 -0400
@@ -0,0 +1,1 @@
+Forward Element
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/reverse.txt	Wed Oct 11 13:33:01 2017 -0400
@@ -0,0 +1,1 @@
+Reverse Element