diff ncbi_egapx.xml @ 41:d129c3d0e920 draft default tip

planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
author richard-burhans
date Mon, 28 Jul 2025 14:35:28 +0000
parents b095c69eab5b
children
line wrap: on
line diff
--- a/ncbi_egapx.xml	Fri Jul 18 00:58:39 2025 +0000
+++ b/ncbi_egapx.xml	Mon Jul 28 14:35:28 2025 +0000
@@ -77,7 +77,11 @@
     source /galaxy/env.bash &&
     python3 /galaxy/scripts/galaxy-resource-config.py &&
     ## run EGAPx
-    python3 /galaxy/egapx/ui/egapx.py '$yamlconfig' -e galaxy -o 'egapx_out' &&
+    python3 /galaxy/egapx/ui/egapx.py
+    #if $developer.query_limit.query_limit_selector == "false"
+        --force
+    #end if
+    '$yamlconfig' -e galaxy -o 'egapx_out' &&
     ## hack to support 0.2-alpha
     if [ -e egapx_out/accept.gff ]; then ln -s accept.gff egapx_out/complete.genomic.gff; fi
     #if $developer.collect_star_bams
@@ -86,6 +90,7 @@
     ]]></command>
     <environment_variables>
          <environment_variable name="NXF_DEBUG">3</environment_variable>
+         <environment_variable name="EGAPX_RNASEQ_QUERY_LIMIT">$getVar('developer.query_limit.rnaseq_query_limit', '20')</environment_variable>
     </environment_variables>
     <configfiles>
         <configfile name="short_reads_config"><![CDATA[#slurp
@@ -262,6 +267,16 @@
         </conditional>
         <section name="developer" title="Developer options" expanded="false">
             <param name="collect_star_bams" type="boolean" checked="false" label="Collect BAM output from STAR"/>
+            <conditional name="query_limit">
+                <param name="query_limit_selector" type="select" label="Enforce SRA query limit">
+                    <option value="true" selected="True">Yes</option>
+                    <option value="false">No</option>
+                </param>
+                <when value="true">
+                    <param name="rnaseq_query_limit" type="integer" min="0" value="20" label="SRA query limit"/>
+                </when>
+                <when value="false"/>
+            </conditional>
         </section>
     </inputs>
     <outputs>
@@ -299,7 +314,7 @@
         </collection>
     </outputs>
     <tests>
-        <test expect_num_outputs="27" expect_test_failure="true">
+        <test expect_num_outputs="27" expect_test_failure="false">
             <conditional name="cond_input_style">
                 <param name="input_style" value="fillform"/>
                 <conditional name="cond_genome_style">
@@ -314,16 +329,24 @@
             </conditional>
             <section name="developer">
                 <param name="collect_star_bams" value="true"/>
+                <conditional name="query_limit">
+                    <param name="query_limit_selector" value="true"/>
+                    <param name="rnaseq_query_limit" value="20"/>
+                </conditional>
             </section>
             <expand macro="test_outputs"/>
         </test>
-        <test expect_num_outputs="27" expect_test_failure="true">
+        <test expect_num_outputs="27" expect_test_failure="false">
             <conditional name="cond_input_style">
                 <param name="input_style" value="history"/>
                 <param name="yamlin" value="input.yaml"/>
             </conditional>
             <section name="developer">
                 <param name="collect_star_bams" value="true"/>
+                <conditional name="query_limit">
+                    <param name="query_limit_selector" value="true"/>
+                    <param name="rnaseq_query_limit" value="20"/>
+                </conditional>
             </section>
             <expand macro="test_outputs"/>
         </test>