diff pathifier.xml @ 1:0960bd1161fa draft default tip

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/pathifier commit f7363f7c391bd501fc4d1c10aaf372ec2bd82732
author artbio
date Mon, 12 Feb 2024 23:57:01 +0000
parents fec313f5c889
children
line wrap: on
line diff
--- a/pathifier.xml	Mon Apr 12 09:55:24 2021 +0000
+++ b/pathifier.xml	Mon Feb 12 23:57:01 2024 +0000
@@ -1,23 +1,28 @@
-<tool id="pathifier" name="Pathifier" version="1.0.1">
+<tool id="pathifier" name="Pathifier" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
     <description>: Quantify deregulation of pathways in cancer</description>
+    <macros>
+        <token name="@TOOL_VERSION@">1.40.0</token>
+        <token name="@VERSION_SUFFIX@">0</token>
+        <token name="@PROFILE@">23.0</token>
+    </macros>
     <requirements>
-        <requirement type="package" version="1.6.2=r35h6115d3f_0">r-optparse</requirement>
-        <requirement type="package" version="1.22.0=r351_0">bioconductor-pathifier</requirement>
-        <requirement type="package" version="1.0.12=r351h6115d3f_0">r-pheatmap</requirement>
-        <requirement type="package" version="0.3_41=r351h6115d3f_0">r-scatterplot3d</requirement>
-        <requirement type="package" version="0.4.7=r35h6115d3f_0">r-circlize</requirement>
+        <requirement type="package" version="@TOOL_VERSION@">bioconductor-pathifier</requirement>
+        <requirement type="package" version="1.7.4">r-optparse</requirement>
+        <requirement type="package" version="1.0.12">r-pheatmap</requirement>
+        <requirement type="package" version="0.3_44">r-scatterplot3d</requirement>
+        <requirement type="package" version="0.4.15">r-circlize</requirement>
     </requirements>
     <stdio>
         <exit_code range="1:" level="fatal" description="Tool exception" />
     </stdio>
     <command detect_errors="exit_code"><![CDATA[ 
-        Rscript $__tool_directory__/pathifier.R 
+        Rscript '$__tool_directory__/pathifier.R' 
             --exp '$input'
             --sep '$input_sep'
             --genes '$genes'
 
-            #if $reference.is_normal == "Yes":
-                --is_normal 'TRUE'
+            #if str($reference.reference_selector) == 'TRUE':
+                --is_normal '$reference.reference_selector'
                 --normals '$reference.normals'
             #end if
 
@@ -35,7 +40,6 @@
             --logfile '$logfile'
             --plot '$plot'
             --rdata '$rdatafile'
-            
 ]]></command>
     <inputs>
         <param name="input" type="data" format="txt,tabular" label="expression data"/>
@@ -46,9 +50,13 @@
         <param name="genes" type="data" format="txt" label="Gene sets Pathways" 
                help="Must be in gmt format (one pathway per line : Name, description, genes (one by column), tab separated)" />
         <conditional name="reference">
-            <param name="is_normal" label="Do you have non cancer transcriptomes in your data set ?" type="boolean" truevalue="Yes" falsevalue="" checked="false" 
-                   help="If set the starting curve depends on the matrix of points with in a certain row order (first 'normal' then 'cancer' samples), otherwise the first principal component is used. See help for more informations"/>
-            <when value="Yes">
+            <param name="reference_selector" label="Do you have non cancer transcriptomes in your data set ?" type="select"
+                   help="Yes, if the starting curve depends on the matrix of points with in a certain row order
+                         (first 'normal' then 'cancer' samples), otherwise (No) the first principal component is used. See help section for more informations">
+                <option selected="True" value="TRUE">Yes</option>
+                <option value="">No</option>
+            </param>
+            <when value="TRUE">
                 <param name="normals" type="data" format="tabular" label="Sample status"
                        help="A two-column data frame, first column contains data labels, second column the levels of sample status : 1 = Healthy, 0 = Tumor (no header)" />
             </when>
@@ -74,7 +82,6 @@
             <option value="no" selected="True">No</option>
             <option value="yes">Yes</option>
         </param>
-             
     </inputs>
     <outputs>
         <data name="pds" format="tabular" label="Pathifier Deregulation Score (PDS) of ${on_string}" />
@@ -83,14 +90,14 @@
         </data>
         <data name="plot" format="pdf" label="Pathifier vizualization of ${on_string}" />
         <data name="rdatafile" format="rdata" label="Pathifier S4 object of ${on_string}" >
-            <filter>rds == 'yes'</filter>
+            <filter>rdata == 'yes'</filter>
         </data>
     </outputs>
     <tests>
-        <test>
+        <test expect_num_outputs="3">
             <param name="input" value="sheffer.tsv" ftype="tabular"/>
             <param name="genes" value="kegg_pathways.gmt" ftype="txt" />
-            <param name="is_normal" value="True" />
+            <param name="reference_selector" value="TRUE" />
             <param name="normals" value="normals.tsv" ftype="tabular" />
             <param name="log" value="yes" />
             <param name="attempts" value="100" />
@@ -98,10 +105,10 @@
             <output name="pds" file="sheffer.kegg.tsv" ftype="tabular"/>
             <output name="plot" file="plot.pdf" ftype="pdf" compare="sim_size" />
         </test>
-        <test>
+        <test expect_num_outputs="3">
             <param name="input" value="sheffer_noref.tsv" ftype="tabular"/>
             <param name="genes" value="kegg_pathways.gmt" ftype="txt" />
-            <param name="is_normal" value="" />
+            <param name="reference_selector" value="" />
             <param name="log" value="no" />
             <param name="rdata" value="yes" />
             <param name="attempts" value="50" />