Source code

Download source archive ↓

upstream-extended/iuc/tools/seqtk/seqtk_cutN.xml

1<tool id="seqtk_cutN" name="seqtk_cutN" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05">
2    <description>cut sequence at long N</description>
3    <macros>
4        <import>macros.xml</import>
5    </macros>
6    <expand macro="bio_tools"/>
7    <expand macro="requirements"/>
8    <expand macro="stdio"/>
9    <command><![CDATA[
10seqtk cutN
11-n $n
12-p $p
13$g
14'$in_file'
15@CONDITIONAL_GZIP_OUT@
16    ]]></command>
17    <inputs>
18        <expand macro="in_faq"/>
19        <param argument="-n" type="integer" value="1000" label="Minimum size of N tract" />
20        <param argument="-p" type="integer" value="10" label="Penalty for a non-N" />
21        <param argument="-g" type="boolean" truevalue="-g" falsevalue="" checked="false" label="Print gaps only, no sequence" />
22    </inputs>
23    <outputs>
24       <data name="default" format_source="in_file" label="${tool.name} on ${on_string}: split on N runs longer than $n">
25            <change_format>
26                <when input="g" value="-g" format="bed" />
27            </change_format>
28        </data>
29    </outputs>
30    <tests>
31        <test>
32            <param name="in_file" value="seqtk_cutn.fa"/>
33            <param name="n" value="1"/>
34            <output name="default" file="seqtk_cutn.out" ftype="fasta"/>
35        </test>
36        <test>
37            <param name="in_file" value="seqtk_cutn.fa.gz" ftype="fasta.gz"/>
38            <param name="n" value="1"/>
39            <output name="default" file="seqtk_cutn.out.gz" ftype="fasta.gz"/>
40        </test>
41    </tests>
42    <help><![CDATA[
43**What it does**
44
45Splits long sequences with runs of Ns
46
47::
48
49    >test
50    AACTGATCGATCGATCGNNNNNNNNNNNACATG
51
52This will be split into the component sequences without the ambiguity.
53
54::
55
56    >test:1-17
57    AACTGATCGATCGATCG
58    >test:29-33
59    ACATG
60
61@ATTRIBUTION@
62    ]]></help>
63    <expand macro="citation" />
64</tool>