Mercurial > repos > iuc > semibin
diff semibin.xml @ 2:99ff9221182c draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit 13abac83068b126399ec415141007a48c2efaa84
author | iuc |
---|---|
date | Fri, 10 Nov 2023 20:50:01 +0000 |
parents | 6b517dc161e4 |
children |
line wrap: on
line diff
--- a/semibin.xml Mon Mar 27 08:25:14 2023 +0000 +++ b/semibin.xml Fri Nov 10 20:50:01 2023 +0000 @@ -12,8 +12,7 @@ #import re @BAM_FILES@ @FASTA_FILES@ - -SemiBin +SemiBin2 #if $mode.select == 'single' or $mode.select == 'co' single_easy_bin #if $mode.select == 'single' and str($mode.environment) != '' @@ -52,7 +51,10 @@ --max-node $bin.max_node --max-edges $bin.max_edges --minfasta-kbs $bin.minfasta_kbs - $bin.no_recluster +#if ($mode.select == 'single' or $mode.select == 'co') and "pre_reclustering_bins" in $extra_output + --write-pre-reclustering-bins +#end if + --compression none --threads \${GALAXY_SLOTS:-1} --processes \${GALAXY_SLOTS:-1} && @@ -93,26 +95,30 @@ <expand macro="max-node"/> <expand macro="max-edges"/> <expand macro="minfasta-kbs"/> - <expand macro="no-recluster"/> </section> <param name="extra_output" type="select" multiple="true" optional="true" label="Extra outputs" help="In addition to the training data"> <option value="data">Training data</option> <option value="coverage">Coverage files</option> <option value="contigs">Contigs (if multiple sample)</option> + <option value="pre_reclustering_bins">Pre-reclustering bins (only single sample and co-assembly)</option> </param> </inputs> <outputs> - <collection name="output_recluster_bins" type="list" label="${tool.name} on ${on_string}: Reconstructed bins after reclustering"> - <filter>not bin["no_recluster"]</filter> - <discover_datasets pattern=".*?\.(?P<designation>.*).fa" format="fasta" directory="output/output_recluster_bins" /> + <collection name="output_pre_recluster_bins" type="list" label="${tool.name} on ${on_string}: Reconstructed bins before reclustering"> + <filter>mode["select"]!="multi" and extra_output and "pre_reclustering_bins" in extra_output</filter> + <discover_datasets pattern="(?P<designation>.*).fa" format="fasta" directory="output/output_prerecluster_bins"/> </collection> - <collection name="output_bins" type="list" label="${tool.name} on ${on_string}: Reconstructed bins before reclustering"> - <filter>mode["select"]!="multi"</filter> - <discover_datasets pattern=".*?\.(?P<designation>.*).fa" format="fasta" directory="output/output_bins" /> + <collection name="output_after_recluster_bins" type="list" label="${tool.name} on ${on_string}: Reconstructed bins after reclustering"> + <filter>mode["select"]!="multi" and extra_output and "pre_reclustering_bins" in extra_output</filter> + <discover_datasets pattern="(?P<designation>.*).fa" format="fasta" directory="output/output_recluster_bins"/> + </collection> + <collection name="output_bins" type="list" label="${tool.name} on ${on_string}: Reconstructed bins"> + <filter>mode["select"]!="multi" and not "pre_reclustering_bins" in extra_output</filter> + <discover_datasets pattern="(?P<designation>.*).fa" format="fasta" directory="output/output_bins"/> </collection> <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<designation>.*).fa" format="fasta" directory="output/bins" /> + <discover_datasets pattern="(?P<designation>.*).fa" format="fasta" directory="output/bins"/> </collection> <data name="single_data" format="csv" from_work_dir="output/data.csv" label="${tool.name} on ${on_string}: Training data"> <filter>(mode["select"]=="single" or mode["select"]=="co") and extra_output and "data" in extra_output</filter> @@ -131,7 +137,7 @@ <expand macro="generate_sequence_features_extra_outputs"/> </outputs> <tests> - <test expect_num_outputs="6"> + <test expect_num_outputs="5"> <conditional name="mode"> <param name="select" value="single"/> <param name="input_fasta" ftype="fasta" value="input_single.fasta"/> @@ -158,49 +164,10 @@ <section name="bin"> <param name="max_node" value="1"/> <param name="max_edges" value="200"/> - <param name="minfasta_kbs" value="2"/> - <param name="no_recluster" value="false"/> + <param name="minfasta_kbs" value="200"/> </section> <param name="extra_output" value="data,coverage,contigs"/> - <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> - </element> - <element name="1" ftype="fasta"> - <assert_contents> - <has_text text=">g2k_0"/> - </assert_contents> - </element> - <element name="2" ftype="fasta"> - <assert_contents> - <has_text text=">g3k_0"/> - </assert_contents> - </element>--> - </output_collection> + <output_collection name="output_bins" count="0"/> <output name="single_data" ftype="csv"> <assert_contents> <has_text text="g1k_0"/> @@ -239,7 +206,7 @@ <param name="method" value="ratio"/> <param name="ratio" value="0.05"/> </conditional> - <param name="orf_finder" value="fraggenescan"/> + <param name="orf_finder" value="fast-naive"/> <param name="random-seed" value="0"/> <section name="annot"> <param name="ml_threshold" value=""/> @@ -252,26 +219,9 @@ <param name="max_node" value="1"/> <param name="max_edges" value="200"/> <param name="minfasta_kbs" value="200"/> - <param name="no_recluster" value="true"/> </section> <param name="extra_output" value="coverage"/> - <output_collection name="output_bins" count="3"> - <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=">g2k_0"/> - </assert_contents> - </element> - <element name="2" ftype="fasta"> - <assert_contents> - <has_text text=">g3k_0"/> - </assert_contents> - </element> - </output_collection> + <output_collection name="output_bins" count="0"/> <output_collection name="co_cov" count="5"> <element name="0" ftype="csv"> <assert_contents> @@ -313,7 +263,7 @@ </element> </output_collection> </test> - <test expect_num_outputs="4"> + <test expect_num_outputs="3"> <conditional name="mode"> <param name="select" value="co"/> <param name="input_fasta" ftype="fasta" value="input_single.fasta"/> @@ -340,16 +290,9 @@ <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="output_bins" count="0"/> <output_collection name="co_cov" count="5"> <element name="0" ftype="csv"> <assert_contents> @@ -418,13 +361,12 @@ <param name="max_node" value="1"/> <param name="max_edges" value="200"/> <param name="minfasta_kbs" value="200"/> - <param name="no_recluster" value="true"/> </section> <param name="extra_output" value=""/> - <output_collection name="output_bins" count="3"> - <element name="0" ftype="fasta"> + <output_collection name="output_bins" count="1"> + <element name="SemiBin_30" ftype="fasta"> <assert_contents> - <has_text text=">g1k_0"/> + <has_text text=">g3k_0"/> </assert_contents> </element> </output_collection> @@ -456,13 +398,29 @@ <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"> + <param name="extra_output" value="pre_reclustering_bins"/> + <output_collection name="output_pre_recluster_bins" count="3"> + <element name="SemiBin_0" ftype="fasta"> + <assert_contents> + <has_text text="g1k_0"/> + </assert_contents> + </element> + <element name="SemiBin_1" ftype="fasta"> + <assert_contents> + <has_text text="g2k_0"/> + </assert_contents> + </element> + <element name="SemiBin_2" ftype="fasta"> + <assert_contents> + <has_text text="g3k_0"/> + </assert_contents> + </element> + </output_collection> + <output_collection name="output_after_recluster_bins" count="1"> + <element name="SemiBin_30" ftype="fasta"> <assert_contents> - <has_text text=">g3k_0"/> + <has_text text="g3k_0"/> </assert_contents> </element> </output_collection> @@ -497,23 +455,9 @@ <param name="max_node" value="1"/> <param name="max_edges" value="200"/> <param name="minfasta_kbs" value="200"/> - <param name="no_recluster" value="true"/> </section> <param name="extra_output" value="data,coverage,contigs"/> - <output_collection name="multi_bins" count="2"> - <element name="0" ftype="fasta"> - <assert_contents> - <has_text text=">g1k_0"/> - </assert_contents> - </element> - </output_collection> - <output_collection name="multi_contigs" count="10"> - <element name="S8" ftype="fasta"> - <assert_contents> - <has_text text=">g1k_0"/> - </assert_contents> - </element> - </output_collection> + <output_collection name="multi_bins" count="0"/> <output_collection name="multi_data" count="10"> <element name="S8" ftype="csv"> <assert_contents> @@ -521,6 +465,13 @@ </assert_contents> </element> </output_collection> + <output_collection name="multi_data_split" count="10"> + <element name="S8" ftype="csv"> + <assert_contents> + <has_text text="g1k_0_1,"/> + </assert_contents> + </element> + </output_collection> <output_collection name="multi_cov" count="10"> <element name="8" ftype="csv"> <assert_contents> @@ -557,7 +508,6 @@ </element> </output_collection> </test> - </tests> <help><![CDATA[ @HELP_HEADER@