view seqtk_comp.xml @ 9:4b494533146a draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 2f75805e2e6cfa2af15076e6f4929b87631360a6
author iuc
date Sat, 09 Dec 2023 11:14:21 +0000
parents 3da72230c066
children
line wrap: on
line source

<?xml version="1.0"?>
<tool id="seqtk_comp" name="seqtk_comp" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05">
    <description>get the nucleotide composition of FASTA/Q</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="bio_tools"/>
    <expand macro="requirements">
        <requirement type="package" version="@AWK_VERSION@">gawk</requirement>
    </expand>
    <expand macro="stdio"/>
    <command><![CDATA[
seqtk comp
#if $in_bed:
    -r '$in_bed'
#end if
'$in_file' | awk 'BEGIN{print "#chr\tlength\t#A\t#C\t#G\t#T\t#2\t#3\t#4\t#CpG\t#tv\t#ts\t#CpG-ts"}1'
> '$default'
    ]]></command>
    <inputs>
        <expand macro="in_faq"/>
        <param name="in_bed" type="data" format="bed" optional="true" label="BED file"/>
    </inputs>
    <outputs>
        <data name="default" format="tabular" label="${tool.name} on ${on_string}: Nucleotide composition"/>
    </outputs>
    <tests>
        <test>
            <param name="in_file" value="seqtk_comp.fa" ftype="fasta"/>
            <output name="default" file="seqtk_comp.out" ftype="tabular"/>
        </test>
        <test>
            <param name="in_file" value="seqtk_comp.fa.gz" ftype="fasta.gz"/>
            <output name="default" file="seqtk_comp.out" ftype="tabular"/>
        </test>
    </tests>
    <help><![CDATA[
**What it does**

Reports composition of fasta/fastq sequences. For an example sequence like

::
    >test0
    ACTGACTGAA
    >ambig_ref
    ACGTCGTGTTVHDBN

The seqtk tool will report:

::

    #chr       length #A #C #G #T #2 #3 #4 #CpG #tv #ts #CpG-ts
    test0      11     4  2  2  2  0  0  1  0    0   0   0
    ambig_ref  15     1  2  3  4  0  4  1  4    0   0   0

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