view fastq_to_fasta.xml @ 2:44ed3f74ea7a draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fastq_to_fasta commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
author iuc
date Tue, 08 May 2018 12:50:22 -0400
parents 3f358f73d45e
children 4498e994e31b
line wrap: on
line source

<tool id="cshl_fastq_to_fasta" name="FASTQ to FASTA" version="1.0.1">
    <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
-o '$output'
-v @FQQUAL@
    ]]></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>