diff spring_roc.xml @ 31:3071750405c9 draft

"planemo upload commit b306c715d8284c097220bc5c8461399fdc05eac7-dirty"
author guerler
date Tue, 24 Nov 2020 17:12:07 +0000
parents b0e195a47df7
children 11b3fc8b5b48
line wrap: on
line diff
--- a/spring_roc.xml	Tue Nov 24 14:02:08 2020 +0000
+++ b/spring_roc.xml	Tue Nov 24 17:12:07 2020 +0000
@@ -4,12 +4,27 @@
         <requirement type="package" version="3.3.3">matplotlib</requirement>
     </requirements>
     <command detect_errors="exit_code"><![CDATA[
-        python3 '$__tool_directory__/spring_roc.py' -i '$input' -b '$database' -e '$experiment.type' -m '$experiment.method' -t '$throughput' -l '$locations' -o '$rocplot'
+        python3 '$__tool_directory__/spring_roc.py' -i '$input' -b '$database' -e '$experiment.type' -m '$experiment.method' -t '$throughput' -l '$sampling.locations' -r '$sampling.regions' -o '$rocplot'
     ]]></command>
     <inputs>
-        <param format="tabular" name="input" type="data" label="Interactions" help="Prediction Input Table with 2-columns containing UniProt Accession codes."/>
-        <param format="tabular" name="database" type="data" label="BioGRID Database" help="BioGRID Database in TAB 3.0 format."/>
-        <param format="tabular" name="locations" type="data" label="UniProt Localization" help="UniProt tabular export with localization column to sample non-interacting pairs." optional="True" />
+        <param name="input" type="data" format="tabular" label="Interactions" help="Prediction Input Table with 2-columns containing UniProt Accession codes."/>
+        <param name="database" type="data" format="tabular" label="BioGRID Database" help="BioGRID Database in TAB 3.0 format."/>
+        <conditional name="sampling">
+            <param name="type" type="boolean" label="Use UniProt Localization" />
+            <when value="true">
+                <param name="locations" type="data" format="tabular" label="UniProt Localization" help="UniProt tabular export with localization column to sample non-interacting pairs." optional="True" />
+                <param name="regions" type="select" multiple="True" label="Choose Subcelluar Locations">
+                    <option value="Membrane" selected="True">Membrane</option>
+                    <option value="Mitochondrion" selected="True">Mitochondrion</option>
+                    <option value="Nucleus">Nucleus</option>
+                    <option value="Secreted">Secreted</option>
+                 </param>
+            </when>
+            <when value="false">
+                <param name="locations" type="hidden" value="" />
+                <param name="regions" type="hidden" value="" />
+            </when>
+        </conditional>
         <conditional name="experiment">
             <param name="type" type="select" label="Experimental Type" display="radio" help="Choose a specific experimental system type.">
                 <option value="">Any</option>