upstream-extended/iuc/tools/seqtk/seqtk_comp.xml
1<?xml version="1.0"?>
2<tool id="seqtk_comp" name="seqtk_comp" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05">
3 <description>get the nucleotide composition of FASTA/Q</description>
4 <macros>
5 <import>macros.xml</import>
6 </macros>
7 <expand macro="bio_tools"/>
8 <expand macro="requirements">
9 <expand macro="awk_requirement"/>
10 </expand>
11 <expand macro="stdio"/>
12 <command><![CDATA[
13seqtk comp
14#if $in_bed:
15 -r '$in_bed'
16#end if
17'$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'
18> '$default'
19 ]]></command>
20 <inputs>
21 <expand macro="in_faq"/>
22 <param name="in_bed" type="data" format="bed" optional="true" label="BED file"/>
23 </inputs>
24 <outputs>
25 <data name="default" format="tabular" label="${tool.name} on ${on_string}: Nucleotide composition"/>
26 </outputs>
27 <tests>
28 <test>
29 <param name="in_file" value="seqtk_comp.fa" ftype="fasta"/>
30 <output name="default" file="seqtk_comp.out" ftype="tabular"/>
31 </test>
32 <test>
33 <param name="in_file" value="seqtk_comp.fa.gz" ftype="fasta.gz"/>
34 <output name="default" file="seqtk_comp.out" ftype="tabular"/>
35 </test>
36 </tests>
37 <help><![CDATA[
38**What it does**
39
40Reports composition of fasta/fastq sequences. For an example sequence like
41
42::
43 >test0
44 ACTGACTGAA
45 >ambig_ref
46 ACGTCGTGTTVHDBN
47
48The seqtk tool will report:
49
50::
51
52 #chr length #A #C #G #T #2 #3 #4 #CpG #tv #ts #CpG-ts
53 test0 11 4 2 2 2 0 0 1 0 0 0 0
54 ambig_ref 15 1 2 3 4 0 4 1 4 0 0 0
55
56@ATTRIBUTION@
57 ]]></help>
58 <expand macro="citation" />
59</tool>