changeset 1:2c419df5cdaa draft

planemo upload for repository https://github.com/phac-nml/mob-suite commit 7681cd156a24e77ca039f3137145b6949a2ad5a3
author nml
date Thu, 26 Jul 2018 14:50:59 -0400
parents 820eec3fa31f
children 2c7f721a4905
files mob_recon.xml mob_typer.xml
diffstat 2 files changed, 102 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/mob_recon.xml	Thu May 24 12:17:20 2018 -0400
+++ b/mob_recon.xml	Thu Jul 26 14:50:59 2018 -0400
@@ -1,16 +1,28 @@
-<tool id="mob_recon" name="MOB-Recon" version="1.4.1">
+<tool id="mob_recon" name="MOB-Recon" version="1.4.5">
   <description>Type contigs and extract plasmid sequences</description>
   <requirements>
-     <requirement type="package" version="1.4.1">mob_suite</requirement>
+     <requirement type="package" version="1.4.5">mob_suite</requirement>
   </requirements>   
   <command detect_errors="exit_code">
-    ln -s "${input}" "${input.name}";
-    mob_recon  --num_threads \${GALAXY_SLOTS:-4} --infile "${input.name}" --evalue '${adv_param.evalue}'  --unicycler_contigs '${adv_param.unicycler_contigs}' --run_circlator '${adv_param.run_circlator}' --run_typer --outdir '.';
+  <![CDATA[  
+    ln -s "${input}" "${input.name}"; 
+    
+    mob_recon  --num_threads \${GALAXY_SLOTS:-4} --infile "${input.name}" 
+    #if str($adv_param.unicycler_contigs) == "True":
+      --unicycler_contigs 
+    #end if   
+    #if str($adv_param.run_circlator) == "True":
+      --run_circlator 
+    #end if 
+    #if str($adv_param.min_length_condition.min_length_param) == "True":
+      --min_length ${adv_param.min_length_condition.min_length_value}
+    #end if 
+    --run_typer --outdir '.';
+  ]]>  
   </command>
   <inputs>
     <param name="input" type="data" format="fasta" label="Input" help="FASTA file with contig(s)"/>
     <section name="adv_param" title="Advanced parameters" expanded="False">
-      <param name="evalue" label="Minimum e-value threshold for BLAST" type="float"  min="0.000000000000000000001" max="1" value="0.00001"/>
       <param name="unicycler_contigs" label="Check for circularity flag generated by unicycler in contigs fasta headers" type="select" value="True">
         <option value="True">Yes</option>
         <option value="False">No</option>
@@ -19,14 +31,26 @@
         <option value="True">Yes</option>
         <option value="False">No</option>
       </param>
-
+      <conditional name="min_length_condition">
+        <param name="min_length_param" label="Minimum length of contigs to classify" type="select" value="False">
+          <option value="False">No</option>
+          <option value="True">Yes</option>
+       </param>   
+        <when value="True">
+          <param name="min_length_value" type="integer" value="500" min="50"/> 
+        </when>  
+        <when value="False"/>
+      </conditional> 
     </section>  
   </inputs>
   <outputs>
-    <data name="outfile1" format="tabular" from_work_dir="contig_report.txt" label="${tool.name}: Overall contig MOB-recon report from ${input.name}"/> 
-    <data name="outfile2" format="tabular" from_work_dir="repetitive_blast_report.txt" label="${tool.name}: Repetitive elements BLAST report from ${input.name}"/>
-    <data name="outfile3" format="fasta" from_work_dir="chromosome.fasta" label="${tool.name}: Chromosomal sequences (if any) from ${input.name}"/>
-    <data name="outfile4" format="tabular" from_work_dir="mobtyper_aggregate_report.txt" label="${tool.name}: Aggregate MOB-typer report for all contigs from ${input.name}"/>
+    <data name="outfile1" format="tabular" from_work_dir="contig_report.txt" label="${tool.name}: Overall contig MOB-recon report"/> 
+    <data name="outfile2" format="tabular" from_work_dir="repetitive_blast_report.txt" label="${tool.name}: Repetitive elements BLAST report"/>
+    <data name="outfile3" format="fasta" from_work_dir="chromosome.fasta" label="${tool.name}: Chromosomal sequences"/>
+    <data name="outfile4" format="tabular" from_work_dir="mobtyper_aggregate_report.txt" label="${tool.name}: Aggregate MOB-typer report for all contigs"/>
+    <data name="outfile5" format="fasta" label="${tool.name}: Plasmid sequence"  hidden="true">
+        <discover_datasets pattern="plasmid_.+\.(?P&lt;ext&gt;.+)" ext="fasta" visible="true" assign_primary_output="false"/>
+    </data>
   </outputs>
   <tests>
     <test>
@@ -62,15 +86,19 @@
 
 Tab-delimited report listing information for each input contig on its cluster number, possible replicon, relaxase, and repetitive elements types, etc. Refer to https://github.com/phac-nml/mob-suite#mob-recon-contig-report-format for the description of each column.
 
+Note: Plasmid sequences will not be output if none are found. Some plasmid could be intergrated into a chromosome.
+
 
   </help>
   <citations>
     <citation type="bibtex">
   @misc{githubmob-suite,
+  author = {Robertson J, Nash J},
   title = {MOB-Suite: Software tools for clustering, reconstruction and typing of plasmids from draft assemblies.},
   publisher = {GitHub},
   journal = {GitHub repository},
-  url = {https://github.com/phac-nml/mob-suite},
+  doi = {10.1099/mgen.0.000206},
+  url = {https://github.com/phac-nml/mob-suite}
     }</citation>
   </citations>
 </tool>
--- a/mob_typer.xml	Thu May 24 12:17:20 2018 -0400
+++ b/mob_typer.xml	Thu Jul 26 14:50:59 2018 -0400
@@ -1,23 +1,75 @@
-<tool id="mob_typer" name="MOB-Typer" version="1.4.1">
+<tool id="mob_typer" name="MOB-Typer" version="1.4.5">
   <description>Get the plasmid type and mobility given its sequence</description>
   <requirements>
-     <requirement type="package" version="1.4.1">mob_suite</requirement>
+     <requirement type="package" version="1.4.5">mob_suite</requirement>
   </requirements>   
   <command detect_errors="exit_code">
+  <![CDATA[
     ln -s "${input}" "${input.name}";
-    mob_typer  --num_threads \${GALAXY_SLOTS:-4} --infile "${input.name}" --evalue '${adv_param.evalue}' --min_ident '${adv_param.min_ident}' --min_cov '${adv_param.min_cov}' --outdir '.';
+    mob_typer  --num_threads \${GALAXY_SLOTS:-4} --infile "${input.name}" 
+    #if str($adv_param.min_rep_evalue_condition.min_rep_evalue_param) == "True":
+      --min_rep_evalue $adv_param.min_rep_evalue_condition.min_rep_evalue_value
+    #end if 
+    #if str($adv_param.min_mob_evalue_condition.min_mob_evalue_param) == "True":
+      --min_mob_evalue $adv_param.min_mob_evalue_condition.min_mob_evalue_value
+    #end if 
+    #if str($adv_param.min_con_evalue_condition.min_con_evalue_param) == "True":
+      --min_con_evalue $adv_param.min_con_evalue_condition.min_con_evalue_value
+    #end if 
+    #if str($adv_param.min_ori_evalue_condition.min_ori_evalue_param) == "True":
+      --min_ori_evalue $adv_param.min_ori_evalue_condition.min_ori_evalue_value
+    #end if 
+    --outdir '.';
+  ]]>
   </command>
   <inputs>
     <param name="input" type="data" format="fasta" label="Input" help="FASTA file with contig(s)"/>
     <section name="adv_param" title="Advanced parameters" expanded="False">
-      <param name="evalue" label="Minimum e-value threshold for BLAST" type="float"  min="0.000000000000000000001" max="1" value="0.00001"/>
-      <param name="min_ident" label="Minimum sequence identity for BLAST" type="float" min="1" max="100" value="80"/> 
-      <param name="min_cov" label="Minimum percentage coverage of assembly contig by the plasmid reference database to be considered" type="float" min="1" max="100" value="65"/> 
+      <conditional name="min_rep_evalue_condition">
+        <param name="min_rep_evalue_param" label="Minimum evalue threshold for replicon blastn" type="select" value="False">
+          <option value="False">No</option>
+          <option value="True">Yes</option>
+       </param>   
+        <when value="True">
+          <param name="min_rep_evalue_value" type="float" value="0.00001" min="0" max="1" label="e-value (default: 0.00001)"/> 
+        </when>  
+        <when value="False"/>
+      </conditional>
+      <conditional name="min_mob_evalue_condition">
+        <param name="min_mob_evalue_param" label="Minimum evalue threshold for relaxase tblastn" type="select" value="False">
+          <option value="False">No</option>
+          <option value="True">Yes</option>
+       </param>   
+        <when value="True">
+          <param name="min_mob_evalue_value" type="float" value="0.00001" min="0.00001" max="1" label="e-value (default: 0.00001)"/> 
+        </when>  
+        <when value="False"/>
+      </conditional>
+      <conditional name="min_con_evalue_condition">
+        <param name="min_con_evalue_param" label="Minimum evalue threshold for contig blastn" type="select" value="False">
+          <option value="False">No</option>
+          <option value="True">Yes</option>
+       </param>   
+        <when value="True">
+          <param name="min_con_evalue_value" type="float" value="0.00001" min="0" max="1" label="e-value (default: 0.00001)"/> 
+        </when>  
+        <when value="False"/>
+      </conditional>
+      <conditional name="min_ori_evalue_condition">
+        <param name="min_ori_evalue_param" label="Minimum evalue threshold for oriT elements blastn" type="select" value="False">
+          <option value="False">No</option>
+          <option value="True">Yes</option>
+       </param>   
+        <when value="True">
+          <param name="min_ori_evalue_value" type="float" value="0.00001" min="0" max="1" label="e-value (default: 0.00001)"/> 
+        </when>  
+        <when value="False"/>
+      </conditional>
     </section>  
   </inputs>
   <outputs>
-    <data name="outfile1" label="${tool.name}: Report from ${input.name}" format="tabular" hidden="false">
-      <discover_datasets pattern=".+_report\.txt" visible="true" ext="tabular" assign_primary_output="true"/>
+    <data name="outfile1" label="${tool.name}: Plasmid report on ${input.name}" format="tabular">
+      <discover_datasets pattern=".+_report\.txt" visible="true" format="tabular" assign_primary_output="true"/>
     </data>  
   </outputs>
   <tests>
@@ -52,10 +104,12 @@
   <citations>
     <citation type="bibtex">
   @misc{githubmob-suite,
+  author = {Robertson J, Nash J},
   title = {MOB-Suite: Software tools for clustering, reconstruction and typing of plasmids from draft assemblies.},
   publisher = {GitHub},
   journal = {GitHub repository},
-  url = {https://github.com/phac-nml/mob-suite},
+  doi = {10.1099/mgen.0.000206},
+  url = {https://github.com/phac-nml/mob-suite}
     }</citation>
   </citations>
 </tool>