Source code

Download source archive ↓

upstream-extended/iuc/tools/bedtools/groupbyBed.xml

1<tool id="bedtools_groupbybed" name="bedtools GroupByBed" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@">
2    <description>group by common cols and summarize other cols</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[
10bedtools groupby
11-i '${inputA}'
12-g '$group'
13-c '${cols}'
14-o $operation
15> '${output}'
16    ]]></command>
17    <inputs>
18        <param name="inputA" argument="-i" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file"/>
19        <expand macro="choose_columns" />
20        <param name="group" argument="-g" type="text" value="1,2,3"
21            label="Specifies which column(s) (1-based) should be used to group the input"
22            help="Columns may be comma-separated with each column must be explicitly listed. Or, ranges (e.g. 1-4) are also allowed.">
23            <sanitizer invalid_char="">
24                <valid initial="string.digits"><add value=","/><add value="-"/></valid>
25            </sanitizer>
26        </param>
27        <param name="operation" argument="-o" type="select" label="Specify the operation">
28            <option value="freqasc">Freqasc - comma separated list of values observed and the number of times they were observed (ascending)</option>
29            <option value="freqdesc">Freqdesc - comma separated list of values observed and the number of times they were observed (descending)</option>
30            <expand macro="math_options" />
31            <expand macro="additional_math_options" />
32        </param>
33    </inputs>
34    <outputs>
35        <data name="output" format_source="inputA" metadata_source="inputA"/>
36    </outputs>
37    <tests>
38        <test>
39            <param name="inputA" value="groupbyBed1.bed" ftype="bed" />
40            <param name="cols" value="9" />
41            <param name="group" value="1,2,3" />
42            <param name="operation" value="sum" />
43            <output name="output" file="groupbyBed_result1.bed" ftype="bed" />
44        </test>
45        <test>
46            <param name="inputA" value="groupbyBed1.bed" ftype="bed" />
47            <param name="cols" value="9" />
48            <param name="group" value="1,2,3" />
49            <param name="operation" value="min" />
50            <output name="output" file="groupbyBed_result2.bed" ftype="bed" />
51        </test>
52        <test>
53            <param name="inputA" value="groupbyBed1.bed" ftype="bed" />
54            <param name="cols" value="9" />
55            <param name="group" value="1-4" />
56            <param name="operation" value="median" />
57            <output name="output" file="groupbyBed_result3.bed" ftype="bed" />
58        </test>
59    </tests>
60    <help><![CDATA[
61**What it does**
62
63Replicate lines in a file based on columns of comma-separated values.
64
65@REFERENCES@
66    ]]></help>
67    <expand macro="citations" />
68</tool>