Source code

Download source archive ↓

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

1<?xml version="1.0"?>
2<tool id="seqtk_hety" name="seqtk_hety" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05">
3    <description>regional heterozygosity</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 hety
14-w $w
15-t $t
16$m
17'$in_file' | awk 'BEGIN{print "#chr\tstart\tend\tA\tB\tnum_het"}1'
18> '$default'
19    ]]></command>
20    <inputs>
21        <expand macro="in_faq"/>
22        <param argument="-w" type="integer" value="50000" label="Window size" />
23        <param argument="-t" type="integer" value="5" label="# start positions in a window" />
24        <param argument="-m" type="boolean" truevalue="-m" falsevalue="" checked="false" label="Treat lowercases as masked" />
25    </inputs>
26    <outputs>
27        <data name="default" format="tabular" label="${tool.name} on ${on_string}: Heterozygous regions"/>
28    </outputs>
29    <tests>
30        <test>
31            <param name="in_file" value="seqtk_hety.fa"/>
32            <param name="w" value="8"/>
33            <output name="default" file="seqtk_hety.out" ftype="tabular"/>
34        </test>
35        <test>
36            <param name="in_file" value="seqtk_hety.fa.gz" ftype="fasta.gz"/>
37            <param name="w" value="8"/>
38            <output name="default" file="seqtk_hety.out" ftype="tabular"/>
39        </test>
40    </tests>
41    <help><![CDATA[
42**What it does**
43
44Reports on heterozygosity over a region
45
46::
47
48    >het_region
49    ACTTTACATCGAGCMMMMMMMACAGTACTG
50
51As can be seen in the following output:
52
53::
54
55    #chr        start  end  A       B   num_het
56    het_region  0      8    0.00    8   0
57    het_region  8      9    0.00    8   0
58    het_region  9      10   0.00    8   0
59    het_region  10     11   0.00    8   0
60    het_region  11     12   0.00    8   0
61    het_region  12     13   0.00    8   0
62    het_region  13     14   0.00    8   0
63    het_region  14     15   1.00    8   1
64    het_region  15     16   2.00    8   2
65    het_region  16     17   3.00    8   3
66    het_region  17     18   4.00    8   4
67    het_region  18     19   5.00    8   5
68    het_region  19     20   6.00    8   6
69    het_region  20     21   7.00    8   7
70    het_region  21     22   7.00    8   7
71    het_region  22     23   6.00    8   6
72    het_region  23     24   5.00    8   5
73    het_region  24     25   4.00    8   4
74    het_region  25     26   3.00    8   3
75    het_region  26     27   2.00    8   2
76    het_region  27     28   1.00    8   1
77    het_region  28     29   0.00    8   0
78    het_region  29     30   0.00    1   0
79
80If you know what A and B are measures of, please `submit an issue <https://github.com/galaxyproject/tools-iuc/issues>`__ and it will be corrected
81
82@ATTRIBUTION@
83    ]]></help>
84    <expand macro="citation" />
85</tool>