diff drep_dereplicate.xml @ 1:ef7cd2e7bc05 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/drep commit 5e6e589002d554be180e575080e9ad66cc78ed74"
author iuc
date Sat, 12 Feb 2022 17:40:42 +0000
parents 8dfcdbeaeed8
children 368cb4bef9d8
line wrap: on
line diff
--- a/drep_dereplicate.xml	Tue May 05 06:12:47 2020 -0400
+++ b/drep_dereplicate.xml	Sat Feb 12 17:40:42 2022 +0000
@@ -1,33 +1,34 @@
-<tool id="drep_dereplicate" name="dRep dereplicate" version="@VERSION@.0" python_template_version="3.5">
+<tool id="drep_dereplicate" name="dRep dereplicate" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@" python_template_version="3.5">
     <description>De-replicate a list of genomes</description>
+    <expand macro="biotools" />
     <macros>
         <import>macros.xml</import>
     </macros>
-    <expand macro="requirements" />
+    <expand macro="requirements">
+        <requirement type="package" version="1.1.3">checkm-genome</requirement>
+    </expand>
     <command detect_errors="exit_code"><![CDATA[
-         @PREPARE_GENOMES@
-         dRep dereplicate outdir
-         @FILTER_OPTIONS@
-         @GENOME_COMPARISON_OPTIONS@
-         @CLUSTERING_OPTIONS@
-         @SCORING_OPTIONS@
-         @TAXONOMY_OPTIONS@
-         @WARNING_OPTIONS@        
-         @GENOMES@
-         --debug
-         || (rc=\$?; 
-             ls -ltr `find outdir -type f`;
-             cat outdir/data/checkM/checkM_outdir/checkm.log;
-             cat outdir/log/logger.log;
-             exit \$rc)
+@PREPARE_GENOMES@
+dRep dereplicate outdir
+@GENOMES@
+@FILTER_OPTIONS@
+@QUALITY_ASSESSMENT_OPTIONS@
+@COMPARISON_CLUSTERING_OPTIONS@
+@SCORING_OPTIONS@
+@WARNING_OPTIONS@
+--debug
+|| (rc=\$?;
+    ls -ltr `find outdir -type f`;
+    cat outdir/data/checkM/checkM_outdir/checkm.log;
+    cat outdir/log/logger.log;
+    exit \$rc)
     ]]></command>
     <inputs>
         <expand macro="genomes"/>
         <expand macro="filtering_options"/>
-        <expand macro="genome_comparison_options"/>
-        <expand macro="clustering_options"/>
+        <expand macro="quality_assessment_options"/>
+        <expand macro="comparison_clustering_options"/>
         <expand macro="scoring_options"/>
-        <expand macro="taxonomy_options"/>
         <expand macro="warning_options"/>
         <expand macro="select_drep_outputs"/>
     </inputs>
@@ -38,23 +39,29 @@
         <expand macro="drep_outputs" />
     </outputs>
     <tests>
-        <expand macro="test_defaults_log">
-            <has_text text="dRep dereplicate finished" />
-        </expand>
-        <test>
-            <param name="genomes" ftype="fasta" value="Enterococcus_casseliflavus_EC20.fasta,Enterococcus_faecalis_T2.fna,Enterococcus_faecalis_TX0104.fa"/>
-            <conditional name="filter">
-                <param name="set_options" value="yes"/>
-                <conditional name="quality">
-                    <param name="source" value="checkm"/>
-                    <param name="checkM_method" value="taxonomy_wf"/>
-                </conditional>
-            </conditional>
-            <output name="log">
-                <assert_contents>
-                    <has_text text="dRep dereplicate finished" />
-                </assert_contents>
-            </output>
+        <test expect_num_outputs="8">
+            <expand macro="test_string_inputs"/>
+            <expand macro="test_default_filtering_options"/>
+            <expand macro="test_default_quality_assessment_options"/>
+            <expand macro="test_default_comparison_clustering_options"/>
+            <expand macro="test_default_scoring_options"/>
+            <expand macro="test_default_warning_options"/>
+            <expand macro="test_default_select_drep_outputs"/>
+            <expand macro="test_log_output">
+                <has_text text="dRep dereplicate finished" />
+            </expand>
+        </test>
+        <test expect_num_outputs="8">
+            <expand macro="test_integer_inputs"/>
+            <expand macro="test_default_filtering_options"/>
+            <expand macro="test_default_quality_assessment_options"/>
+            <expand macro="test_default_comparison_clustering_options"/>
+            <expand macro="test_default_scoring_options"/>
+            <expand macro="test_default_warning_options"/>
+            <expand macro="test_default_select_drep_outputs"/>
+            <expand macro="test_log_output">
+                <has_text text="dRep dereplicate finished" />
+            </expand>
         </test>
     </tests>
     <help><![CDATA[
@@ -62,10 +69,6 @@
 
 `dRep <https://drep.readthedocs.io/en/latest/overview.html>`_ performs rapid pair-wise comparison of genome sets.
 
-
-
-
-
 `De-replication <https://drep.readthedocs.io/en/latest/overview.html#genome-de-replication>`_ is the process of identifying sets of genomes that are the “same” in a list of genomes, and removing all but the “best” genome from each redundant set. How similar genomes need to be to be considered “same”, how to determine which genome is “best”, and other important decisions are discussed in `Choosing parameters. <https://drep.readthedocs.io/en/latest/choosing_parameters.html>`_   Detailed options for each module are described at: https://drep.readthedocs.io/en/latest/module_descriptions.html
 
 A common use for genome de-replication is the case of individual assembly of metagenomic data. If metagenomic samples are collected in a series, a common way to assemble the short reads is with a “co-assembly”. That is, combining the reads from all samples and assembling them together. The problem with this is assembling similar strains together can severely fragment assemblies, precluding recovery of a good genome bin. An alternative option is to assemble each sample separately, and then “de-replicate” the bins from each assembly to make a final genome set.
@@ -87,12 +90,12 @@
 **OUTPUTS**
 
   - `Figures <https://drep.readthedocs.io/en/latest/example_output.html#figures>`_ that show the relationship of the Genome inputs.
-  - `Warnings <https://drep.readthedocs.io/en/latest/example_output.html#warnings>`_ report two things: de-replicated genome similarity and secondary clusters that were almost different. 
+  - `Warnings <https://drep.readthedocs.io/en/latest/example_output.html#warnings>`_ report two things: de-replicated genome similarity and secondary clusters that were almost different.
   - A Dataset collection of the “best” genome of each secondary cluster.
-  - `Tables from intermediate steps <https://drep.readthedocs.io/en/latest/advanced_use.html>`_ 
+  - `Tables from intermediate steps <https://drep.readthedocs.io/en/latest/advanced_use.html>`_
 
     * Chdb.csv # CheckM results for Bdb
-    * Widb.csv # Winning genomes' checkM information 
+    * Widb.csv # Winning genomes' checkM information
 
 
     ]]></help>