diff filter.xml @ 4:3fcbb8030fcc draft

"planemo upload for repository https://github.com/sblanck/MPAgenomics4Galaxy/tree/master/mpagenomics_wrappers commit 40eda5ea3551e8b3bae32d0a8f405fe90ef22646-dirty"
author sblanck
date Mon, 12 Apr 2021 14:47:09 +0000
parents 4d539083cf7f
children 4f753bb8681e
line wrap: on
line diff
--- a/filter.xml	Tue Jun 16 04:34:09 2020 -0400
+++ b/filter.xml	Mon Apr 12 14:47:09 2021 +0000
@@ -1,5 +1,7 @@
-<tool id="callfilter" name="Filter" description="segmented and called data" force_history_refresh="True" version="1.1.0">
-  <requirement type="package" version="1.1.2">mpagenomics</requirement>
+<tool id="callfilter" name="Filter" description="segmented and called data" version="1.2.0">
+   <requirements>
+        <container type="docker">sblanck/mpagenomicsdependencies</container>
+  </requirements>
   <command>
   	<![CDATA[ 
         Rscript 
@@ -7,9 +9,15 @@
   		--input '$input' 
   		--length '$length' 
   		--probes '$probes' 
-  		--new_file_path '$__new_file_path__' 
-  		--nbcall '$nbcall' 
-  		--output '$output' 
+  		--new_file_path '$output.extra_files_path' 
+		 #if $settingsSNP.signal == "fracB":
+ 		      --nbcall 'normal'
+                 #else
+		      --nbcall '${settingsSNP.nbcall}'
+		 
+        	 #end if
+		--settings_signal '$settingsSNP.signal' 
+		--output '$output' 
   		--outputlog '$outputlog' 
   		--log '$log'
   	]]>
@@ -18,13 +26,23 @@
     <param name="input" type="data" format="scr" label="Segmented and called data file" help="Input file with labelled segments"/>
     <param name="length" type="integer" min="1" value="1" label="Minimum length for a segment" help="minimal length (in bp) to keep in a segment"/>
 	<param name="probes" type="integer" min="1" value="1" label="Minimum probes for a segment" help="minimal number of probes to keep in a segment"/>
-    <param name="nbcall" type="select" multiple="true" label="Label(s) to keep">
-      <option value="double loss">double loss</option>
-      <option value="loss">loss</option>
-      <option value="normal">normal</option>
-      <option value="gain">gain</option>
-      <option value="amplification">amplification</option>
-    </param>    
+	
+  <conditional name="settingsSNP">
+        <param name="signal" type="select" multiple="false" label="Signal you want to work on">
+                <option value="CN">CN</option>
+                <option value="fracB">fracB</option>
+        </param>
+        <when value="CN">
+		<param name="nbcall" type="select" multiple="true" label="Label(s) to keep">
+      		<option value="double_loss">double loss</option>
+      		<option value="loss">loss</option>
+      		<option value="normal">normal</option>
+      		<option value="gain">gain</option>
+      		<option value="amplification">amplification</option>
+	    	</param>
+	</when>
+
+  </conditional>
     <param name="outputlog" type="select" label="Output log">
         <option value="TRUE">Yes</option>
         <option value="FALSE">No</option>
@@ -34,7 +52,7 @@
   <outputs>
     <data format="tabular" name="output" label="filter of ${on_string}" />
     
-	<data format="log" name="log" label="log of segmentation of ${input.name}">
+	<data format="log" name="log" label="log of filter of ${input.name}">
     	<filter>outputlog == "TRUE"</filter>
     </data>  
   </outputs>