diff fastq.info.xml @ 0:19316e7c4802 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
author iuc
date Fri, 19 May 2017 05:29:45 -0400
parents
children 1aa945e00ef2
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fastq.info.xml	Fri May 19 05:29:45 2017 -0400
@@ -0,0 +1,140 @@
+<tool profile="16.07" id="mothur_fastq_info" name="Fastq.info" version="@WRAPPER_VERSION@.0">
+    <description>Convert fastq to fasta and quality</description>
+    <macros>
+        <import>macros.xml</import>
+    </macros>
+    <expand macro="requirements"/>
+    <expand macro="stdio"/>
+    <expand macro="version_command"/>
+    <command><![CDATA[
+        @SHELL_OPTIONS@
+
+        ## create symlinks to input datasets
+        ln -s "$fastq" fastq.dat &&
+        #if $oligo.add == "yes":
+            ln -s "$oligo.oligos" oligo.oligos.dat &&
+        #end if
+
+        echo 'fastq.info(
+            fastq=fastq.dat,
+            pacbio=$pacbio,
+            format=$format
+            #if $oligo.add == "yes":
+                ,oligos=oligo.oligos.dat
+                ,bdiffs=$oligo.bdiffs
+                ,pdiffs=$oligo.pdiffs
+                ,tdiffs=$oligo.tdiffs
+                ,ldiffs=$oligo.ldiffs
+                ,sdiffs=$oligo.sdiffs
+            #end if
+        )'
+        | sed 's/ //g'  ## mothur trips over whitespace
+        | mothur
+        | tee mothur.out.log
+        ## rename some outputs
+        #if $oligo.add == "yes":
+            && mv fastq.scrap.fasta scrap.fasta
+            && mv fastq.scrap.qual scrap.qual
+        #end if
+    ]]></command>
+    <inputs>
+        <param name="fastq" type="data" format="fastq" label="fastq - Fastq Sequence file"/>
+        <param name="pacbio" type="boolean" truevalue="true" falsevalue="false" checked="false" label="pacbio - if set to true, quality scores of 0 will results in a corresponding base of N"/>
+        <param name="format" type="select" label="format of sequence">
+            <option value="sanger" selected="true">sanger</option>
+            <option value="solexa">solexa</option>
+            <option value="illumina">illumina</option>
+            <option value="illumina1.8+">illumina1.8+</option>
+        </param>
+        <conditional name="oligo">
+            <param name="add" type="select" label="Use oligos file?" help="a file that contain the sequences of the forward and reverse primers and barcodes and their sample identifier. Each line of the oligos file can start with the key words &quot;forward&quot;, &quot;reverse&quot;, and &quot;barcode&quot; or it can start with a &quot;#&quot; to tell mothur to ignore that line of the oligos file.">
+                <option value="no">no</option>
+                <option value="yes">yes</option>
+            </param>
+            <when value="yes">
+                <param name="oligos" type="data" format="mothur.oligos" label="oligos - barcodes and primers"/>
+                <param name="bdiffs" type="integer" value="0" min="0" label="bdiffs - number of differences to allow in the barcode (must be > 0; default 0)"/>
+                <param name="pdiffs" type="integer" value="0" min="0" label="pdiffs - number of differences to allow in the primer (must be > 0; default 0)"/>
+                <param name="tdiffs" type="integer" value="0" min="0" label="tdiffs - total number of differences to allow in primer and barcode (must be > 0; default 0)"/>
+                <param name="ldiffs" type="integer" value="0" min="0" label="ldiffs - total number of differences to allow in linker sequence (must be > 0; default 0)"/>
+                <param name="sdiffs" type="integer" value="0" min="0" label="sdiffs - total number of differences to allow in spacer sequence (must be > 0; default 0)"/>
+            </when>
+            <when value="no"/>
+        </conditional>
+    </inputs>
+    <outputs>
+        <expand macro="logfile-output"/>
+        <data name="fasta_out" format="fasta" from_work_dir="fastq*.fasta" label="${tool.name} on ${on_string}: fasta"/>
+        <data name="qfile_out" format="qual454" from_work_dir="fastq*.qual" label="${tool.name} on ${on_string}: qual"/>
+        <data name="fastq_scrap_out" format="fastq" from_work_dir="fastq*.scrap.fastq" label="${tool.name} on ${on_string}: fastq scrap">
+            <filter>oligos</filter>
+        </data>
+        <data name="fasta_scrap_out" format="fasta" from_work_dir="scrap.fasta" label="${tool.name} on ${on_string}: fasta scrap">
+            <filter>oligos</filter>
+        </data>
+        <data name="qfile_scrap_out" format="qual454" from_work_dir="scrap.qual" label="${tool.name} on ${on_string}: qual scrap">
+            <filter>oligos</filter>
+        </data>
+    </outputs>
+    <tests>
+        <test>
+            <param name="fastq" value="Mock_S280_L001_R1_001_small.fastq"/>
+            <param name="pacbio" value="false"/>
+            <param name="format" value="sanger"/>
+            <param name="add" value="no"/>
+            <output name="fasta_out" md5="88c573d00181be6dd519a0c9599f8b0c"/>
+            <output name="qfile_out" md5="d382c496c583b1501666459757cabbe3"/>
+            <expand macro="logfile-test"/>
+        </test>
+        <test>
+            <param name="fastq" value="Mock_S280_L001_R1_001_small.fastq"/>
+            <param name="pacbio" value="false"/>
+            <param name="format" value="sanger"/>
+            <param name="add" value="yes"/>
+            <param name="oligos" value="GQY1XT001.oligos"/>
+            <param name="bdiffs" value="1"/>
+            <param name="pdiffs" value="3"/>
+            <param name="tdiffs" value="3"/>
+            <param name="ldiffs" value="3"/>
+            <param name="sdiffs" value="7"/>
+            <output name="fasta_out" md5="88c573d00181be6dd519a0c9599f8b0c" ftype="fasta"/>
+            <output name="qfile_out" md5="d382c496c583b1501666459757cabbe3" ftype="qual454"/>
+            <output name="fastq_scrap_out" md5="37a280b8af54af2a0a52b2eba1e58933" ftype="fastq"/>
+            <output name="fasta_scrap_out" md5="88c573d00181be6dd519a0c9599f8b0c" ftype="fasta"/>
+            <output name="qfile_scrap_out" md5="96c2f7ea3cf6336d50bef2c087280c01" ftype="qual454"/>
+            <expand macro="logfile-test"/>
+        </test>
+        <test>
+            <param name="fastq" value="Mock_S280_L001_R1_001_small.fastq"/>
+            <param name="pacbio" value="false"/>
+            <param name="format" value="sanger"/>
+            <param name="add" value="yes"/>
+            <param name="oligos" value="HMPv5-v3_1368-1369.oligos"/>
+            <param name="bdiffs" value="1"/>
+            <param name="pdiffs" value="3"/>
+            <param name="tdiffs" value="3"/>
+            <param name="ldiffs" value="3"/>
+            <param name="sdiffs" value="7"/>
+            <output name="fasta_out" md5="88c573d00181be6dd519a0c9599f8b0c"/>
+            <output name="qfile_out" md5="d382c496c583b1501666459757cabbe3"/>
+            <output name="fastq_scrap_out" md5="37a280b8af54af2a0a52b2eba1e58933"/>
+            <output name="fasta_scrap_out" md5="88c573d00181be6dd519a0c9599f8b0c"/>
+            <output name="qfile_scrap_out" md5="96c2f7ea3cf6336d50bef2c087280c01"/>
+            <expand macro="logfile-test"/>
+        </test>
+    </tests>
+    <help>
+<![CDATA[
+
+@MOTHUR_OVERVIEW@
+
+**Command Documentation**
+
+The fastq.info_ command reads a fastq file and creates a fasta and quality file.
+
+
+.. _fastq.info: https://www.mothur.org/wiki/Fastq.info
+]]>
+    </help>
+    <expand macro="citations"/>
+</tool>