changeset 7:370d9764f670 draft

planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit e217faa15f73427979bb212036cb130a14c59750
author gbcs-embl-heidelberg
date Mon, 05 Mar 2018 07:13:47 -0500
parents c1a390032ed5
children d556679c88d6
files je-demultiplex-illu.xml macros.xml
diffstat 2 files changed, 28 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/je-demultiplex-illu.xml	Fri Sep 15 08:17:16 2017 -0400
+++ b/je-demultiplex-illu.xml	Mon Mar 05 07:13:47 2018 -0500
@@ -95,7 +95,8 @@
             <param name="MMD" value="2"/>
             <param name="Q" value="20"/>
 	        <param name="DIAG" value="false"/>
-            <output name="METRICS_FILE_NAME" file="illu_summary_PE.txt" ftype="tabular" lines_diff="4">
+            <output name="METRICS_FILE_NAME" file="illu_summary_PE.txt" ftype="tabular" lines_diff="4"/>
+            <output name="DEMULTIPLEX_RESULTS" ftype="tabular">
                 <discovered_dataset designation="unassigned_1" file="illu_unassigned_1_PE.txt" />
                 <discovered_dataset designation="unassigned_2" file="illu_unassigned_2_PE.txt" />
                 <discovered_dataset designation="emb681m5_GGACTCCTCTCTCTAT_2" file="emb681m5_GGACTCCTCTCTCTAT_2.txt"/>
@@ -124,6 +125,8 @@
 
 Wrapper by: Jelle Scholtalbers (jelle.scholtalbers@embl.de).
 
+With contributions by: Mehmet Tekman (@mtekman)
+
 ------
 
 **Know what you are doing**
--- a/macros.xml	Fri Sep 15 08:17:16 2017 -0400
+++ b/macros.xml	Mon Mar 05 07:13:47 2018 -0500
@@ -1,6 +1,6 @@
 <macros>
 
-    <token name="@VERSION_STRING@">1.2</token>
+    <token name="@VERSION_STRING@">1.2.1</token>
     <xml name="requirements">
         <requirements>
             <requirement type="package" version="1.2">je-suite</requirement>
@@ -278,19 +278,19 @@
     </xml>
 
     <token name="@demultiplexer_common_output_options_cmd@">
-        KEEP_UNASSIGNED_READ=$KEEP_UNASSIGNED_READ
-        STATS_ONLY=${adv_options.STATS_ONLY}
-        #if str( $adv_options.DIAG ) == "true":
+        KEEP_UNASSIGNED_READ=${KEEP_UNASSIGNED_READ}
+        STATS_ONLY=${STATS_ONLY}
+        #if str( $DIAG ) == "true":
             BARCODE_DIAG_FILE=$BARCODE_DIAG_FILE
         #end if
     </token>
     <xml name="demultiplexer_common_output_options">
-        <param name="KEEP_UNASSIGNED_READ" type="boolean" label="Keep unassigned reads (KEEP_UNASSIGNED_READ)"
-            truevalue="true"
-            falsevalue="false"
-            checked="true"
-        />
-        <section name="adv_options" title="Advanced Options" expanded="False">
+        <!--<section name="output_options" title="Output Options" expanded="True">-->
+            <param name="COLLECT_OUTPUTS" type="boolean"
+                   truevalue="true" falsevalue="false" checked="false"
+                   label="Output forward and reverse reads in dataset collections" />
+            <param name="KEEP_UNASSIGNED_READ" type="boolean" label="Keep unassigned reads (KEEP_UNASSIGNED_READ)"
+                   truevalue="true" falsevalue="false" checked="true"/>
             <param name="DIAG" type="boolean" label="Output barcode match reporting file (DIAG)"
                 truevalue="true" falsevalue="false" checked="false"
                 help="This file will
@@ -300,7 +300,7 @@
             <param name="STATS_ONLY" type="boolean" label="Only produce metric and diagnostic reports (STATS_ONLY)"
                 truevalue="true" falsevalue="false" checked="false"
                 help="do not demultiplex." />
-        </section>
+        <!--</section>-->
     </xml>
 
     <token name="@common_options_cmd@">
@@ -333,14 +333,24 @@
     <token name="@demultiplexer_common_outputs_cmd@">
         METRICS_FILE_NAME=$METRICS_FILE_NAME
     </token>
+
     <xml name="demultiplexer_common_outputs">
-        <data name="METRICS_FILE_NAME" format="tabular" label="Je-Demultiplex result">
-            <!--<discover_datasets pattern="(?P&lt;name&gt;.*)\.txt" ext="fastqsanger"-->
+        <data name="DEMULTIPLEX_RESULTS" format="tabular" label="Je-Demultiplex result placeholder" hidden="true">
+            <filter>COLLECT_OUTPUTS == False and STATS_ONLY == False</filter>
             <discover_datasets pattern="(?P&lt;name&gt;.*)\.txt" directory="results" visible="true" ext="fastqsanger"/>
         </data>
+        <data name="METRICS_FILE_NAME" format="tabular" label="Je-Demultiplex Metrics"/>
         <data name="BARCODE_DIAG_FILE" format="tabular" label="Barcode statistics">
-            <filter>(adv_options['DIAG'] == 'true')</filter>
+            <filter>DIAG</filter>
         </data>
+        <collection name="COLLECTION_1" type="list" label="${tool.name} on ${on_string} : Reads_1" >
+            <filter>COLLECT_OUTPUTS and STATS_ONLY == False</filter>
+            <discover_datasets pattern="(?P&lt;designation&gt;.+_1\..+)" ext="fastqsangar" directory="results" visible="false" />
+        </collection>
+        <collection name="COLLECTION_2" type="list" label="${tool.name} on ${on_string} : Reads_2" >
+            <filter>COLLECT_OUTPUTS and STATS_ONLY == False</filter>
+            <discover_datasets pattern="(?P&lt;designation&gt;.+_2\..+)" ext="fastqsangar" directory="results" visible="false" />
+        </collection>
     </xml>
     <xml name="citations">
         <citations>