diff pal_finder_wrapper.xml @ 7:5e133b7b79a6 draft

Uploaded version 0.02.04.6 (uses conda dependency resolution).
author pjbriggs
date Mon, 19 Mar 2018 06:33:32 -0400
parents a73c48890bde
children 4e625d3672ba
line wrap: on
line diff
--- a/pal_finder_wrapper.xml	Tue Jun 06 08:54:49 2017 -0400
+++ b/pal_finder_wrapper.xml	Mon Mar 19 06:33:32 2018 -0400
@@ -1,13 +1,18 @@
-<tool id="microsat_pal_finder" name="pal_finder" version="0.02.04.5">
+<tool id="microsat_pal_finder" name="pal_finder" version="0.02.04.6">
   <description>Find microsatellite repeat elements from sequencing reads and design PCR primers to amplify them</description>
+  <macros>
+    <import>pal_finder_macros.xml</import>
+  </macros>
   <requirements>
-    <requirement type="package" version="5.16.3">perl</requirement>
     <requirement type="package" version="0.02.04">pal_finder</requirement>
-    <requirement type="package" version="2.0.0">primer3_core</requirement>
+    <requirement type="package" version="2.7">python</requirement>
     <requirement type="package" version="1.65">biopython</requirement>
     <requirement type="package" version="2.8.1">pandaseq</requirement>
   </requirements>
-  <command interpreter="bash">pal_finder_wrapper.sh
+  <command><![CDATA[
+  @CONDA_PAL_FINDER_SCRIPT_DIR@ &&
+  @CONDA_PAL_FINDER_DATA_DIR@ &&
+  bash $__tool_directory__/pal_finder_wrapper.sh
   #if str( $platform.platform_type ) == "illumina"
     #set $paired_input_type = $platform.paired_input_type_conditional.paired_input_type
     #if $paired_input_type == "pair_of_files"
@@ -57,7 +62,7 @@
       $platform.assembly "$output_assembly"
     #end if
   #end if
-  </command>
+  ]]></command>
   <inputs>
     <param name="primer_prefix" type="text" value="test" size="25" label="Primer prefix" help="This prefix will be added to the beginning of all primer names" />
     <conditional name="platform">
@@ -169,18 +174,18 @@
     </data>
   </outputs>
   <tests>
+    <!-- Test with Illumina input -->
     <test>
-      <!-- Test with Illumina input -->
       <param name="platform_type" value="illumina" />
       <param name="input_fastq_r1" value="illuminaPE_r1.fq" ftype="fastqsanger" />
       <param name="input_fastq_r2" value="illuminaPE_r2.fq" ftype="fastqsanger" />
-      <output name="output_microsat_summary" file="illuminaPE_microsat_types.out" />
-      <output name="output_pal_summary" file="illuminaPE_microsats.out" />
-      <output name="output_filtered_microsats" file="illuminaPE_filtered_microsats.out" />
+      <expand macro="output_illumina_microsat_summary" />
+      <output name="output_pal_summary" compare="re_match" file="illuminaPE_microsats.out.re_match" />
+      <output name="output_filtered_microsats" compare="re_match" file="illuminaPE_filtered_microsats.out.re_match" />
       <output name="output_assembly" file="illuminaPE_assembly_after_filters.out" />
     </test>
+    <!-- Test with Illumina input as dataset pair -->
     <test>
-      <!-- Test with Illumina input as dataset pair -->
       <param name="platform_type" value="illumina" />
       <param name="paired_input_type" value="collection" />
       <param name="input_fastq_pair">
@@ -189,64 +194,65 @@
 	  <element name="reverse" value="illuminaPE_r2.fq" ftype="fastqsanger" />
 	</collection>
       </param>
-      <output name="output_microsat_summary" file="illuminaPE_microsat_types.out" />
-      <output name="output_pal_summary" file="illuminaPE_microsats.out" />
-      <output name="output_filtered_microsats" file="illuminaPE_filtered_microsats.out" />
+      <expand macro="output_illumina_microsat_summary" />
+      <output name="output_pal_summary" compare="re_match" file="illuminaPE_microsats.out.re_match" />
+      <output name="output_filtered_microsats" compare="re_match" file="illuminaPE_filtered_microsats.out.re_match" />
       <output name="output_assembly" file="illuminaPE_assembly_after_filters.out" />
     </test>
+    <!-- Test with Illumina input filter to loci with PandaSEQ assembly
+	 ('-assembly' option)
+    -->
     <test>
-      <!-- Test with Illumina input filter to loci with PandaSEQ assembly
-	   ('-assembly' option) -->
       <param name="platform_type" value="illumina" />
       <param name="filters" value="" />
       <param name="input_fastq_r1" value="illuminaPE_r1.fq" ftype="fastqsanger" />
       <param name="input_fastq_r2" value="illuminaPE_r2.fq" ftype="fastqsanger" />
-      <output name="output_microsat_summary" file="illuminaPE_microsat_types.out" />
-      <output name="output_pal_summary" file="illuminaPE_microsats.out" />
+      <expand macro="output_illumina_microsat_summary" />
+      <output name="output_pal_summary" compare="re_match" file="illuminaPE_microsats.out.re_match" />
       <output name="output_assembly" file="illuminaPE_assembly.out" />
     </test>
+    <!-- Test with Illumina input filter to loci with primers
+	 ('-primers' option) -->
     <test>
-      <!-- Test with Illumina input filter to loci with primers
-	   ('-primers' option) -->
       <param name="platform_type" value="illumina" />
       <param name="filters" value="-primers" />
       <param name="assembly" value="false" />
       <param name="input_fastq_r1" value="illuminaPE_r1.fq" ftype="fastqsanger" />
       <param name="input_fastq_r2" value="illuminaPE_r2.fq" ftype="fastqsanger" />
-      <output name="output_microsat_summary" file="illuminaPE_microsat_types.out" />
-      <output name="output_pal_summary" file="illuminaPE_microsats.out" />
-      <output name="output_filtered_microsats" file="illuminaPE_filtered_microsats_primers.out" />
+      <expand macro="output_illumina_microsat_summary" />
+      <output name="output_pal_summary" compare="re_match" file="illuminaPE_microsats.out.re_match" />
+      <output name="output_filtered_microsats" compare="re_match" file="illuminaPE_filtered_microsats_primers.out.re_match" />
     </test>
+    <!-- Test with Illumina input filter to loci which appear only once
+	 ('-occurrences' option) -->
     <test>
-      <!-- Test with Illumina input filter to loci which appear only once
-	   ('-occurrences' option) -->
       <param name="platform_type" value="illumina" />
       <param name="filters" value="-occurrences" />
       <param name="assembly" value="false" />
       <param name="input_fastq_r1" value="illuminaPE_r1.fq" ftype="fastqsanger" />
       <param name="input_fastq_r2" value="illuminaPE_r2.fq" ftype="fastqsanger" />
-      <output name="output_microsat_summary" file="illuminaPE_microsat_types.out" />
-      <output name="output_pal_summary" file="illuminaPE_microsats.out" />
-      <output name="output_filtered_microsats" file="illuminaPE_filtered_microsats_occurrences.out" />
+      <expand macro="output_illumina_microsat_summary" />
+      <output name="output_pal_summary" compare="re_match" file="illuminaPE_microsats.out.re_match" />
+      <output name="output_filtered_microsats" compare="re_match" file="illuminaPE_filtered_microsats_occurrences.out.re_match" />
     </test>
+    <!-- Test with Illumina input filter and rank loci with perfect motifs
+	 ('-rankmotifs' option) -->
     <test>
-      <!-- Test with Illumina input filter and rank loci with perfect motifs
-	   ('-rankmotifs' option) -->
       <param name="platform_type" value="illumina" />
       <param name="filters" value="-rankmotifs" />
       <param name="assembly" value="false" />
       <param name="input_fastq_r1" value="illuminaPE_r1.fq" ftype="fastqsanger" />
       <param name="input_fastq_r2" value="illuminaPE_r2.fq" ftype="fastqsanger" />
-      <output name="output_microsat_summary" file="illuminaPE_microsat_types.out" />
-      <output name="output_pal_summary" file="illuminaPE_microsats.out" />
-      <output name="output_filtered_microsats" file="illuminaPE_filtered_microsats_rankmotifs.out" />
+      <expand macro="output_illumina_microsat_summary" />
+      <output name="output_pal_summary" compare="re_match" file="illuminaPE_microsats.out.re_match" />
+      <output name="output_filtered_microsats" compare="re_match" file="illuminaPE_filtered_microsats_rankmotifs.out.re_match" />
     </test>
+    <!-- Test with 454 input -->
     <test>
-      <!-- Test with 454 input -->
       <param name="platform_type" value="454" />
       <param name="input_fasta" value="454_in.fa" ftype="fasta" />
-      <output name="output_microsat_summary" file="454_microsat_types.out" />
-      <output name="output_pal_summary" file="454_microsats.out" />
+      <expand macro="output_454_microsat_summary" />
+      <output name="output_pal_summary" compare="re_match" file="454_microsats.out.re_match" />
     </test>
   </tests>
   <help>