view fastq_to_fasta.xml @ 4:5dbca5fbdc45 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fastq_to_fasta commit 4c002e52261da2e7609735883d91fa1610ce6ce7"
author iuc
date Thu, 30 Jan 2020 18:26:18 +0000
parents 4498e994e31b
children b8e3c0a52f33
line wrap: on
line source

<tool id="cshl_fastq_to_fasta" name="FASTQ to FASTA" version="1.0.2">
    <description>converter from FASTX-toolkit</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="exit_code"><![CDATA[
@CATS@ fastq_to_fasta
$SKIPN
$RENAMESEQ
-v @FQQUAL@
@GZIP@ > '$output'
    ]]></command>
    <inputs>
        <expand macro="fastq_input" />
        <param name="SKIPN" type="select" label="Discard sequences with unknown (N) bases ">
            <option value="">yes</option>
            <option value="-n">no</option>
        </param>
        <param name="RENAMESEQ" type="select" label="Rename sequence names in output file (reduces file size)">
            <option value="-r">yes</option>
            <option value="">no</option>
        </param>
    </inputs>
    <outputs>
        <data name="output" format="fasta" metadata_source="input" />
    </outputs>
    <tests>
        <test>
            <!-- FASTQ-To-FASTA, keep N, don't rename -->
            <param name="input" value="fastq_to_fasta1.fastq" ftype="fastqsolexa" />
            <param name="SKIPN" value=""/>
            <param name="RENAMESEQ" value=""/>
            <output name="output" file="fastq_to_fasta1a.out" />
        </test>
        <test>
            <!-- FASTQ-To-FASTA, discard N, rename -->
            <param name="input" value="fastq_to_fasta1.fastq" ftype="fastqsolexa" />
            <param name="SKIPN" value="no"/>
            <param name="RENAMESEQ" value="yes"/>
            <output name="output" file="fastq_to_fasta1b.out" />
        </test>
        <test>
            <!-- FASTQ-To-FASTA, discard N, rename -->
            <param name="input" value="fastq_to_fasta-in2.fastq" ftype="fastqsanger" />
            <param name="SKIPN" value="no"/>
            <param name="RENAMESEQ" value="yes"/>
            <output name="output" file="fastq_to_fasta-out2.out" />
        </test>
    </tests>
    <help><![CDATA[
**What it does**

This tool converts data from Solexa format to FASTA format (scroll down for format description).

--------

**Example**

The following data in Solexa-FASTQ format::

    @CSHL_4_FC042GAMMII_2_1_517_596
    GGTCAATGATGAGTTGGCACTGTAGGCACCATCAAT
    +CSHL_4_FC042GAMMII_2_1_517_596
    40 40 40 40 40 40 40 40 40 40 38 40 40 40 40 40 14 40 40 40 40 40 36 40 13 14 24 24 9 24 9 40 10 10 15 40

Will be converted to FASTA (with 'rename sequence names' = NO)::

    >CSHL_4_FC042GAMMII_2_1_517_596
    GGTCAATGATGAGTTGGCACTGTAGGCACCATCAAT

Will be converted to FASTA (with 'rename sequence names' = YES)::

    >1
    GGTCAATGATGAGTTGGCACTGTAGGCACCATCAAT

------

This tool is based on `FASTX-toolkit`__ by Assaf Gordon.

 .. __: http://hannonlab.cshl.edu/fastx_toolkit/
    ]]></help>
    <expand macro="citations" />
<!-- FASTQ-to-FASTA is part of the FASTX-toolkit, by A.Gordon (gordon@cshl.edu) -->
</tool>