changeset 1:f4056f393ab6 draft default tip

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/pyprophet commit d1c34e31a93761cf7cfd4068bcdb70495d4d90bb"
author galaxyp
date Tue, 14 Apr 2020 12:01:27 +0000
parents e40681ad5b1b
children
files pyprophet_score.xml test-data/score2.osw test-data/score_report2.pdf test-data/test_data.osw
diffstat 4 files changed, 19 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pyprophet_score.xml	Wed Feb 26 09:16:04 2020 +0000
+++ b/pyprophet_score.xml	Tue Apr 14 12:01:27 2020 +0000
@@ -1,4 +1,4 @@
-<tool id="pyprophet_score" name="PyProphet score" version="@VERSION@.0">
+<tool id="pyprophet_score" name="PyProphet score" version="@VERSION@.2">
     <description>
         Error-rate estimation for MS1, MS2 and transition-level data
     </description>
@@ -16,7 +16,7 @@
             $conditional_classifier.xgb_autotune
         #end if
         #if $apply_weights: 
-            --apply_weights
+            --apply_weights='$apply_weights'
         #end if
         --xeval_fraction=$xeval_fraction
         --xeval_num_iter=$xeval_num_iter
@@ -42,9 +42,9 @@
         --ipf_max_peakgroup_pep=$ipf_max_peakgroup_pep
         $tric_chromprob
         $test_mode
+        --threads "\${GALAXY_SLOTS:-4}"
         --out='./output.osw' && mv *_report.pdf report.pdf
 
-
     ]]>
     </command>
     <inputs>
@@ -59,7 +59,7 @@
                 <param name="xgb_autotune" type="boolean" truevalue="--xgb_autotune" falsevalue="--no-xgb_autotune" label="XGBoost: Autotune hyperparameters" help="(--xgb_autotune / --no-xgb_autotune)"/>
             </when>
         </conditional>
-        <param argument="apply_weights" type="data" format="txt" optional="True" label="Apply PyProphet score weights file instead of semi-supervised learning." />
+        <param argument="apply_weights" type="data" format="osw" optional="True" label="Apply PyProphet score weights file (osw format) instead of semi-supervised learning." />
         <param argument="--level" type="select" display="radio" label="The data level selected for scoring. 'ms1ms2' integrates both MS1- and MS2-level scores and can be used instead of 'ms2'-level results" >
           <option value="ms1" >MS1</option>
           <option value="ms2" >MS2</option>
@@ -85,7 +85,7 @@
         <param argument="pi0_smooth_df" type="integer" value="3" label="Number of degrees-of-freedom to use when estimating pi_0 with a smoother" />
         <param name="pi0_smooth_log" type="boolean" truevalue="--pi0_smooth_log_pi0" falsevalue="--no-pi0_smooth_log_pi0" label="If True and pi0_method = 'smoother', pi0 will be estimated by applying a smoother to a scatterplot of log(pi0) estimates against the tuning parameter lambda" help="(--pi0_smooth_log_pi0 / --no-pi0_smooth_log_pi0)"/>
         <param name="lfdr_truncate" type="boolean" checked="True" truevalue="--lfdr_truncate" falsevalue="--no-lfdr_truncate" label="If True, local FDR values >1 are set to 1" help="(--lfdr_truncate / --no-lfdr_truncate)"/>
-        <param name="lfdr_monotone" type="boolean" checked="True" truevalue="--lfdr_monotone" falsevallUE="--no-lfdr_monotone" label="If True, local FDR values are non-decreasing with increasing p-values" help="(--lfdr_monotone / --no-lfdr_monotone)"/>
+        <param name="lfdr_monotone" type="boolean" checked="True" truevalue="--lfdr_monotone" falsevalue="--no-lfdr_monotone" label="If True, local FDR values are non-decreasing with increasing p-values" help="(--lfdr_monotone / --no-lfdr_monotone)"/>
         <param argument="--lfdr_transformation" type="select" display="radio" label="Either a 'probit' or 'logit' transformation is applied to the p-values so that a local FDR estimate can be formed that does not involve edge effects of the [0,1] interval in which the p-values lie" >
           <option value="probit" selected="True" >probit</option>
           <option value="logit">logit</option>
@@ -116,6 +116,19 @@
             <output name="output" file="score.osw" compare="sim_size" />
             <output name="score_report" file="score_report.pdf" compare="sim_size" />
         </test>
+        <test>
+            <param name="input" value="merged.osw" ftype="osw"/>
+            <param name="apply_weights" value="score.osw" ftype="osw"/>
+            <param name="level" value="ms2"/>
+            <param name="xeval_num_iter" value="2" />
+            <param name="ss_num_iter" value="2" />
+            <param name="pi0_lambda_start" value="0.1" />
+            <param name="pi0_lambda_end" value="0.3" />
+            <param name="pi0_lambda_steps" value="0.01" />
+            <param name="test_mode" value="True" />
+            <output name="output" file="score2.osw" compare="sim_size" />
+            <output name="score_report" file="score_report2.pdf" compare="sim_size" />
+        </test>
     </tests>
     <help>
 <![CDATA[
@@ -133,3 +146,4 @@
     </help>
     <expand macro="citations"/>
 </tool>
+
Binary file test-data/score2.osw has changed
Binary file test-data/score_report2.pdf has changed
Binary file test-data/test_data.osw has changed