diff semibin.xml @ 1:6b517dc161e4 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit 59a7b7a334fd2c3aca6163c2ff11d18ef654ab9d
author iuc
date Mon, 27 Mar 2023 08:25:14 +0000
parents 7b382efabb98
children 99ff9221182c
line wrap: on
line diff
--- a/semibin.xml	Fri Oct 14 21:38:26 2022 +0000
+++ b/semibin.xml	Mon Mar 27 08:25:14 2023 +0000
@@ -110,7 +110,7 @@
             <filter>mode["select"]!="multi"</filter>
             <discover_datasets pattern=".*?\.(?P&lt;designation&gt;.*).fa" format="fasta" directory="output/output_bins" />
         </collection>
-        <collection name="multi_bins" type="list" label="${tool.name} on ${on_string}: Reconstructed bins before reclustering">
+        <collection name="multi_bins" type="list" label="${tool.name} on ${on_string}: Reconstructed bins before reclustering (multi_bins)">
             <filter>mode["select"]=="multi"</filter>
             <discover_datasets pattern=".*?\.(?P&lt;designation&gt;.*).fa" format="fasta" directory="output/bins" />
         </collection>
@@ -158,13 +158,34 @@
             <section name="bin">
                 <param name="max_node" value="1"/>
                 <param name="max_edges" value="200"/>
-                <param name="minfasta_kbs" value="200"/>
+                <param name="minfasta_kbs" value="2"/>
                 <param name="no_recluster" value="false"/>
             </section>
             <param name="extra_output" value="data,coverage,contigs"/>
-            <output_collection name="output_recluster_bins" count="0"/>
-            <output_collection name="output_bins" count="3">
-                <element name="0" ftype="fasta">
+            <output_collection name="output_recluster_bins" count="39">
+            	<element name="0" ftype="fasta">
+                    <assert_contents>
+                        <has_text text=">g1k_0"/>
+                    </assert_contents>
+                </element>
+                <element name="1" ftype="fasta">
+                    <assert_contents>
+                        <has_text text=">g1k_1"/>
+                    </assert_contents>
+                </element>
+                <element name="2" ftype="fasta">
+                    <assert_contents>
+                        <has_text text=">g1k_2"/>
+                    </assert_contents>
+                </element>
+                <element name="39" ftype="fasta">
+                    <assert_contents>
+                        <has_text text=">g3k_9"/>
+                    </assert_contents>
+                </element>
+            </output_collection>
+            <output_collection name="output_bins" count="0">
+                <!--<element name="0" ftype="fasta">
                     <assert_contents>
                         <has_text text=">g1k_0"/>
                     </assert_contents>
@@ -178,7 +199,7 @@
                     <assert_contents>
                         <has_text text=">g3k_0"/>
                     </assert_contents>
-                </element>
+                </element>-->
             </output_collection>
             <output name="single_data" ftype="csv">
                 <assert_contents>
@@ -292,6 +313,84 @@
                 </element>
             </output_collection>
         </test>
+        <test expect_num_outputs="4">
+            <conditional name="mode">
+                <param name="select" value="co"/>
+                <param name="input_fasta" ftype="fasta" value="input_single.fasta"/>
+                <param name="input_bam" ftype="bam" value="input_coassembly_sorted1.bam,input_coassembly_sorted2.bam,input_coassembly_sorted3.bam,input_coassembly_sorted4.bam,input_coassembly_sorted5.bam"/>
+                <conditional name="ref">
+                    <param name="select" value="taxonomy"/>
+                    <param name="taxonomy_annotation_table" value="taxonomy.tsv"/>
+                </conditional>
+            </conditional>
+            <conditional name="min_len">
+                <param name="method" value="ratio"/>
+                <param name="ratio" value="0.05"/>
+            </conditional>
+            <param name="orf_finder" value="fraggenescan"/>
+            <param name="random-seed" value="0"/>
+            <section name="annot">
+                <param name="ml_threshold" value=""/>
+            </section>
+            <section name="training">
+                <param name="epoches" value="20"/>
+                <param name="batch_size" value="2048"/>
+            </section>
+            <section name="bin">
+                <param name="max_node" value="1"/>
+                <param name="max_edges" value="200"/>
+                <param name="minfasta_kbs" value="200"/>
+                <param name="no_recluster" value="false"/>
+            </section>
+            <param name="extra_output" value="coverage"/>
+            <output_collection name="output_recluster_bins" count="1">
+                <element name="30" ftype="fasta">
+                    <assert_contents>
+                        <has_text text=">g3k_0"/>
+                    </assert_contents>
+                </element>
+            </output_collection>
+            <output_collection name="co_cov" count="5">
+                <element name="0" ftype="csv">
+                    <assert_contents>
+                        <has_text text="g1k_0"/>
+                        <has_text text="g2k_7"/>
+                    </assert_contents>
+                </element>
+                <element name="1" ftype="csv">
+                    <assert_contents>
+                        <has_text text="g1k_0"/>
+                        <has_text text="g2k_7"/>
+                    </assert_contents>
+                </element>
+                <element name="4" ftype="csv">
+                    <assert_contents>
+                        <has_text text="g1k_0"/>
+                        <has_text text="g2k_7"/>
+                    </assert_contents>
+                </element>
+            </output_collection>
+            <output_collection name="co_split_cov" count="5">
+                <element name="0" ftype="csv">
+                    <assert_contents>
+                        <has_text text="g1k_0_1"/>
+                        <has_text text="g2k_7_2"/>
+                    </assert_contents>
+                </element>
+                <element name="1" ftype="csv">
+                    <assert_contents>
+                        <has_text text="g1k_0_1"/>
+                        <has_text text="g2k_7_2"/>
+                    </assert_contents>
+                </element>
+                <element name="2" ftype="csv">
+                    <assert_contents>
+                        <has_text text="g1k_0_1"/>
+                        <has_text text="g2k_7_2"/>
+                    </assert_contents>
+                </element>
+            </output_collection>
+        </test>
         <test expect_num_outputs="1">
             <conditional name="mode">
                 <param name="select" value="single"/>
@@ -330,6 +429,44 @@
                 </element>
             </output_collection>
         </test>
+        <test expect_num_outputs="2">
+            <conditional name="mode">
+                <param name="select" value="single"/>
+                <param name="input_fasta" ftype="fasta" value="input_single.fasta"/>
+                <param name="input_bam" ftype="bam" value="input_single.bam"/>
+                <conditional name="ref">
+                    <param name="db_selector" value="cached"/>
+                    <param name="cached_db" value="test-db"/>
+                </conditional>
+            </conditional>
+            <conditional name="min_len">
+                <param name="method" value="ratio"/>
+                <param name="ratio" value="0.05"/>
+            </conditional>
+            <param name="orf_finder" value="fraggenescan"/>
+            <param name="random-seed" value="0"/>
+            <section name="annot">
+                <param name="ml_threshold" value=""/>
+            </section>
+            <section name="training">
+                <param name="epoches" value="20"/>
+                <param name="batch_size" value="2048"/>
+            </section>
+            <section name="bin">
+                <param name="max_node" value="1"/>
+                <param name="max_edges" value="200"/>
+                <param name="minfasta_kbs" value="200"/>
+                <param name="no_recluster" value="false"/>
+            </section>
+            <param name="extra_output" value=""/>
+            <output_collection name="output_recluster_bins" count="1">
+                <element name="30" ftype="fasta">
+                    <assert_contents>
+                        <has_text text=">g3k_0"/>
+                    </assert_contents>
+                </element>
+            </output_collection>
+        </test>
         <test expect_num_outputs="8">
             <conditional name="mode">
                 <param name="select" value="multi"/>
@@ -420,6 +557,7 @@
                 </element>
             </output_collection>
         </test>
+        
     </tests>
     <help><![CDATA[
 @HELP_HEADER@