view seqtk_mergefa.xml @ 5:a09586d5149a draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 83ecfe7d9bbf03c91f27ba18776352a1ebf8cf6f
author iuc
date Fri, 11 Jan 2019 05:15:20 -0500
parents ecf1c30da3a2
children 58c8ece95b53
line wrap: on
line source

<?xml version="1.0"?>
<tool id="seqtk_mergefa" name="seqtk_mergefa" version="@TOOL_VERSION@.1">
    <description>merge two FASTA/Q files</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements"/>
    <expand macro="stdio"/>
    <command><![CDATA[
seqtk mergefa
-q $q
$i
$m
$r
$h
'$in_fa1'
'$in_fa2'
#echo "| pigz --no-name --no-time" if $in_fa1.is_of_type('fasta.gz', 'fastq.gz') else "" # > '$default'
    ]]></command>
    <inputs>
        <param name="in_fa1" type="data" format="fasta,fastq,fasta.gz,fastq.gz" label="Input FASTA/Q file #1"/>
        <param name="in_fa2" type="data" format="fasta,fastq,fasta.gz,fastq.gz" label="Input FASTA/Q file #2"/>
        <param argument="-q" type="integer" value="0" label="Quality threshold"/>
        <param argument="-i" type="boolean" truevalue="-i" falsevalue="" checked="false" label="Take intersection" />
        <param argument="-m" type="boolean" truevalue="-m" falsevalue="" checked="false" label="Convert to lowercase when one of the input base is N" />
        <param argument="-r" type="boolean" truevalue="-r" falsevalue="" checked="false" label="Pick a random allele from het" />
        <param argument="-h" type="boolean" truevalue="-h" falsevalue="" checked="false" label="Suppress hets in the input" />
    </inputs>
    <outputs>
        <data name="default" format_source="in_fa1" label="Merger of $in_fa1.name and $in_fa2.name"/>
    </outputs>
    <tests>
        <test>
            <param name="in_fa1" value="seqtk_mergefa1.fa"/>
            <param name="in_fa2" value="seqtk_mergefa2.fa"/>
            <output name="default" file="seqtk_mergefa.out" ftype="fasta"/>
        </test>
        <test>
            <param name="in_fa1" value="seqtk_mergefa1.fa"/>
            <param name="in_fa2" value="seqtk_mergefa2.fa"/>
            <param name="m" value="True" />
            <output name="default" file="seqtk_mergefa2.out" ftype="fasta"/>
        </test>
        <test>
            <param name="in_fa1" value="seqtk_mergefa1.fa.gz" ftype="fasta.gz"/>
            <param name="in_fa2" value="seqtk_mergefa2.fa.gz" ftype="fasta.gz"/>
            <param name="m" value="True" />
            <output name="default" file="seqtk_mergefa2.out.gz" ftype="fasta.gz"/>
        </test>
    </tests>
    <help><![CDATA[
**What it does**

Merges two fasta files, using ambiguity codes

::

    # seq1.fa
    >test0
    ACTGACTGAAA

    # seq2.fa
    >test0
    ACTGAMTGCGN

In the following the `-m` option has been set to highlight seqtk-mergefa's features.

::

    >test0
    ACTGACTGxxa

@ATTRIBUTION@
    ]]></help>
    <expand macro="citation" />
</tool>